9a536cf4be695b55307fae20c06814a834f99a92
[dotfiles/.git] / .config / google-chrome / Default / Extensions / dmkamcknogkgcdfhhbddcghachkejeap / 0.8.13_0 / background.bundle.js
1 !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1539)}([,,function(e,t,r){"use strict";(function(e){
2 /*!
3  * The buffer module from node.js, for the browser.
4  *
5  * @author   Feross Aboukhadijeh <http://feross.org>
6  * @license  MIT
7  */
8 var n=r(117),o=r(426),i=r(237);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),o=(e=a(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(c.isBuffer(t)){var r=0|h(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=a(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(e).length;default:if(n)return q(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return x(this,t,r);case"base64":return j(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,o){var i,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=r;i<a;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+c>a&&(r=a-c),i=r;i>=0;i--){for(var f=!0,d=0;d<c;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function v(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function w(e,t,r,n){return z(q(t,e.length-r),e,r,n)}function _(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return _(e,t,r,n)}function S(e,t,r,n){return z(H(t),e,r,n)}function O(e,t,r,n){return z(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function j(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,c,u=e[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(c=(15&u)<<12|(63&i)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,n,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(n,o),l=e.slice(t,r),f=0;f<a;++f)if(u[f]!==l[f]){i=u[f],s=l[f];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function x(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=U(e[i]);return o}function M(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function T(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function N(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(e,t,r,n,i){return i||N(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return i||N(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;r=new c(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||I(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||C(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||C(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):T(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);C(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);C(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):T(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):T(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return B(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return B(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=c.isBuffer(e)?e:q(new c(e,n).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(this,r(12))},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return s})),r.d(t,"g",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return l}));
9 /*! *****************************************************************************
10 Copyright (c) Microsoft Corporation.
11
12 Permission to use, copy, modify, and/or distribute this software for any
13 purpose with or without fee is hereby granted.
14
15 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 PERFORMANCE OF THIS SOFTWARE.
22 ***************************************************************************** */
23 var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}function l(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},,function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{s=r(445).Buffer}catch(e){}function a(e,t,r){for(var n=0,o=Math.min(e.length,r),i=t;i<o;i++){var s=e.charCodeAt(i)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function c(e,t,r,n){for(var o=0,i=Math.min(e.length,r),s=t;s<i;s++){var a=e.charCodeAt(s)-48;o*=n,o+=a>=49?a-49+10:a>=17?a-17+10:a}return o}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===t?this._parseHex(e,o):this._parseBase(e,t,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,s,a=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o,i=0;for(r=e.length-6,n=0;r>=t;r-=6)o=a(e,r,r+6),this.words[n]|=o<<i&67108863,this.words[n+1]|=o>>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);r+6!==t&&(o=a(e,t,r+6),this.words[n]|=o<<i&67108863,this.words[n+1]|=o>>>26-i&4194303),this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,s=i%n,a=Math.min(i,i-s)+r,u=0,l=r;l<a;l+=n)u=c(e,l,l+n,t),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var f=1;for(u=c(e,l,e.length,t),l=0;l<s;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","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"],l=[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 d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],s=o*i,a=67108863&s,c=s/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=c>>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(s=(o=0|e.words[p])*(i=0|t.words[h])+f)/67108864|0,f=67108863&s}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var o=0,i=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<o|i)).toString(16);r=0!==(i=a>>>24-o&16777215)||s!==this.length-1?u[6-c.length]+c+r:c+r,(o+=2)>=26&&(o-=26,s--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?g+r:u[d-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==s),this.toArrayLike(s,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===t,u=new e(i),l=this.clone();if(c){for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[a]=s;for(;a<i;a++)u[a]=0}else{for(a=0;a<i-o;a++)u[a]=0;for(a=0;!l.isZero();a++)s=l.andln(255),l.iushrn(8),u[i-a-1]=s}return u},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var o=0,i=0;i<n.length;i++)t=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<r.length;i++)t=(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=e):(r=e,n=this);for(var i=0,s=0;s<n.length;s++)i=(t=(0|r.words[s])-(0|n.words[s])+i)>>26,this.words[s]=67108863&t;for(;0!==i&&s<r.length;s++)i=(t=(0|r.words[s])+i)>>26,this.words[s]=67108863&t;if(0===i&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,r){var n,o,i,s=e.words,a=t.words,c=r.words,u=0,l=0|s[0],f=8191&l,d=l>>>13,h=0|s[1],p=8191&h,g=h>>>13,m=0|s[2],y=8191&m,b=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,k=0|s[4],S=8191&k,O=k>>>13,j=0|s[5],E=8191&j,P=j>>>13,x=0|s[6],A=8191&x,M=x>>>13,I=0|s[7],C=8191&I,R=I>>>13,T=0|s[8],N=8191&T,B=T>>>13,D=0|s[9],L=8191&D,U=D>>>13,q=0|a[0],H=8191&q,z=q>>>13,F=0|a[1],K=8191&F,$=F>>>13,V=0|a[2],J=8191&V,G=V>>>13,W=0|a[3],Q=8191&W,Z=W>>>13,Y=0|a[4],X=8191&Y,ee=Y>>>13,te=0|a[5],re=8191&te,ne=te>>>13,oe=0|a[6],ie=8191&oe,se=oe>>>13,ae=0|a[7],ce=8191&ae,ue=ae>>>13,le=0|a[8],fe=8191&le,de=le>>>13,he=0|a[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(f,H))|0)+((8191&(o=(o=Math.imul(f,z))+Math.imul(d,H)|0))<<13)|0;u=((i=Math.imul(d,z))+(o>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,H),o=(o=Math.imul(p,z))+Math.imul(g,H)|0,i=Math.imul(g,z);var ye=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(o=(o=o+Math.imul(f,$)|0)+Math.imul(d,K)|0))<<13)|0;u=((i=i+Math.imul(d,$)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,H),o=(o=Math.imul(y,z))+Math.imul(b,H)|0,i=Math.imul(b,z),n=n+Math.imul(p,K)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(g,K)|0,i=i+Math.imul(g,$)|0;var be=(u+(n=n+Math.imul(f,J)|0)|0)+((8191&(o=(o=o+Math.imul(f,G)|0)+Math.imul(d,J)|0))<<13)|0;u=((i=i+Math.imul(d,G)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,H),o=(o=Math.imul(w,z))+Math.imul(_,H)|0,i=Math.imul(_,z),n=n+Math.imul(y,K)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,$)|0,n=n+Math.imul(p,J)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(g,J)|0,i=i+Math.imul(g,G)|0;var ve=(u+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;u=((i=i+Math.imul(d,Z)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,H),o=(o=Math.imul(S,z))+Math.imul(O,H)|0,i=Math.imul(O,z),n=n+Math.imul(w,K)|0,o=(o=o+Math.imul(w,$)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(y,J)|0,o=(o=o+Math.imul(y,G)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(g,Q)|0,i=i+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((i=i+Math.imul(d,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,H),o=(o=Math.imul(E,z))+Math.imul(P,H)|0,i=Math.imul(P,z),n=n+Math.imul(S,K)|0,o=(o=o+Math.imul(S,$)|0)+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,n=n+Math.imul(w,J)|0,o=(o=o+Math.imul(w,G)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,ee)|0;var _e=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(o=(o=o+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((i=i+Math.imul(d,ne)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,H),o=(o=Math.imul(A,z))+Math.imul(M,H)|0,i=Math.imul(M,z),n=n+Math.imul(E,K)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(S,J)|0,o=(o=o+Math.imul(S,G)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,G)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ne)|0)+Math.imul(g,re)|0,i=i+Math.imul(g,ne)|0;var ke=(u+(n=n+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,se)|0)+Math.imul(d,ie)|0))<<13)|0;u=((i=i+Math.imul(d,se)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(C,H),o=(o=Math.imul(C,z))+Math.imul(R,H)|0,i=Math.imul(R,z),n=n+Math.imul(A,K)|0,o=(o=o+Math.imul(A,$)|0)+Math.imul(M,K)|0,i=i+Math.imul(M,$)|0,n=n+Math.imul(E,J)|0,o=(o=o+Math.imul(E,G)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,o=(o=o+Math.imul(y,ne)|0)+Math.imul(b,re)|0,i=i+Math.imul(b,ne)|0,n=n+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,se)|0)+Math.imul(g,ie)|0,i=i+Math.imul(g,se)|0;var Se=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(o=(o=o+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((i=i+Math.imul(d,ue)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,H),o=(o=Math.imul(N,z))+Math.imul(B,H)|0,i=Math.imul(B,z),n=n+Math.imul(C,K)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(A,J)|0,o=(o=o+Math.imul(A,G)|0)+Math.imul(M,J)|0,i=i+Math.imul(M,G)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(O,X)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,o=(o=o+Math.imul(w,ne)|0)+Math.imul(_,re)|0,i=i+Math.imul(_,ne)|0,n=n+Math.imul(y,ie)|0,o=(o=o+Math.imul(y,se)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,se)|0,n=n+Math.imul(p,ce)|0,o=(o=o+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,i=i+Math.imul(g,ue)|0;var Oe=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((i=i+Math.imul(d,de)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,H),o=(o=Math.imul(L,z))+Math.imul(U,H)|0,i=Math.imul(U,z),n=n+Math.imul(N,K)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(B,K)|0,i=i+Math.imul(B,$)|0,n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(R,J)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,Z)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,Z)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(S,re)|0,o=(o=o+Math.imul(S,ne)|0)+Math.imul(O,re)|0,i=i+Math.imul(O,ne)|0,n=n+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,se)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,se)|0,n=n+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,n=n+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,de)|0)+Math.imul(g,fe)|0,i=i+Math.imul(g,de)|0;var je=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,ge)|0)+Math.imul(d,pe)|0))<<13)|0;u=((i=i+Math.imul(d,ge)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,K),o=(o=Math.imul(L,$))+Math.imul(U,K)|0,i=Math.imul(U,$),n=n+Math.imul(N,J)|0,o=(o=o+Math.imul(N,G)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,G)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(A,X)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,o=(o=o+Math.imul(E,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(S,ie)|0,o=(o=o+Math.imul(S,se)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,se)|0,n=n+Math.imul(w,ce)|0,o=(o=o+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,i=i+Math.imul(_,ue)|0,n=n+Math.imul(y,fe)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(b,fe)|0,i=i+Math.imul(b,de)|0;var Ee=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((i=i+Math.imul(g,ge)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,J),o=(o=Math.imul(L,G))+Math.imul(U,J)|0,i=Math.imul(U,G),n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,o=(o=o+Math.imul(A,ne)|0)+Math.imul(M,re)|0,i=i+Math.imul(M,ne)|0,n=n+Math.imul(E,ie)|0,o=(o=o+Math.imul(E,se)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,se)|0,n=n+Math.imul(S,ce)|0,o=(o=o+Math.imul(S,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,n=n+Math.imul(w,fe)|0,o=(o=o+Math.imul(w,de)|0)+Math.imul(_,fe)|0,i=i+Math.imul(_,de)|0;var Pe=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(o=(o=o+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((i=i+Math.imul(b,ge)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,Q),o=(o=Math.imul(L,Z))+Math.imul(U,Q)|0,i=Math.imul(U,Z),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,ee)|0,n=n+Math.imul(C,re)|0,o=(o=o+Math.imul(C,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(A,ie)|0,o=(o=o+Math.imul(A,se)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,se)|0,n=n+Math.imul(E,ce)|0,o=(o=o+Math.imul(E,ue)|0)+Math.imul(P,ce)|0,i=i+Math.imul(P,ue)|0,n=n+Math.imul(S,fe)|0,o=(o=o+Math.imul(S,de)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,de)|0;var xe=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,ge)|0)+Math.imul(_,pe)|0))<<13)|0;u=((i=i+Math.imul(_,ge)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,X),o=(o=Math.imul(L,ee))+Math.imul(U,X)|0,i=Math.imul(U,ee),n=n+Math.imul(N,re)|0,o=(o=o+Math.imul(N,ne)|0)+Math.imul(B,re)|0,i=i+Math.imul(B,ne)|0,n=n+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,se)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,se)|0,n=n+Math.imul(A,ce)|0,o=(o=o+Math.imul(A,ue)|0)+Math.imul(M,ce)|0,i=i+Math.imul(M,ue)|0,n=n+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0;var Ae=(u+(n=n+Math.imul(S,pe)|0)|0)+((8191&(o=(o=o+Math.imul(S,ge)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,ge)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),o=(o=Math.imul(L,ne))+Math.imul(U,re)|0,i=Math.imul(U,ne),n=n+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,se)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,se)|0,n=n+Math.imul(C,ce)|0,o=(o=o+Math.imul(C,ue)|0)+Math.imul(R,ce)|0,i=i+Math.imul(R,ue)|0,n=n+Math.imul(A,fe)|0,o=(o=o+Math.imul(A,de)|0)+Math.imul(M,fe)|0,i=i+Math.imul(M,de)|0;var Me=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(o=(o=o+Math.imul(E,ge)|0)+Math.imul(P,pe)|0))<<13)|0;u=((i=i+Math.imul(P,ge)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,ie),o=(o=Math.imul(L,se))+Math.imul(U,ie)|0,i=Math.imul(U,se),n=n+Math.imul(N,ce)|0,o=(o=o+Math.imul(N,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,n=n+Math.imul(C,fe)|0,o=(o=o+Math.imul(C,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0;var Ie=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(o=(o=o+Math.imul(A,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((i=i+Math.imul(M,ge)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,ce),o=(o=Math.imul(L,ue))+Math.imul(U,ce)|0,i=Math.imul(U,ue),n=n+Math.imul(N,fe)|0,o=(o=o+Math.imul(N,de)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,de)|0;var Ce=(u+(n=n+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,ge)|0)+Math.imul(R,pe)|0))<<13)|0;u=((i=i+Math.imul(R,ge)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,fe),o=(o=Math.imul(L,de))+Math.imul(U,fe)|0,i=Math.imul(U,de);var Re=(u+(n=n+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,ge)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,ge)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Te=(u+(n=Math.imul(L,pe))|0)+((8191&(o=(o=Math.imul(L,ge))+Math.imul(U,pe)|0))<<13)|0;return u=((i=Math.imul(U,ge))+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=Se,c[8]=Oe,c[9]=je,c[10]=Ee,c[11]=Pe,c[12]=xe,c[13]=Ae,c[14]=Me,c[15]=Ie,c[16]=Ce,c[17]=Re,c[18]=Te,0!==u&&(c[19]=u,r.length++),r};function p(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(h=d),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var s=o;o=0;for(var a=67108863&n,c=Math.min(i,t.length-1),u=Math.max(0,i-e.length+1);u<=c;u++){var l=i-u,f=(0|e.words[l])*(0|t.words[u]),d=67108863&f;a=67108863&(d=d+a|0),o+=(s=(s=s+(f/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[i]=a,n=s,s=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,o=0;o<t;o++)n|=(1&e)<<t-o-1,e>>=1;return n},g.prototype.permute=function(e,t,r,n,o,i){for(var s=0;s<i;s++)n[s]=t[e[s]],o[s]=r[e[s]]},g.prototype.transform=function(e,t,r,n,o,i){this.permute(i,e,t,r,n,o);for(var s=1;s<o;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<o;l+=a)for(var f=c,d=u,h=0;h<s;h++){var p=r[l+h],g=n[l+h],m=r[l+h+s],y=n[l+h+s],b=f*m-d*y;y=f*y+d*m,m=b,r[l+h]=p+m,n[l+h]=g+y,r[l+h+s]=p-m,n[l+h+s]=g-y,h!==a&&(b=c*f-u*d,d=c*d+u*f,f=b)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=e[n];e[n]=e[r-n-1],e[r-n-1]=o,o=t[n],t[n]=-t[r-n-1],t[r-n-1]=-o}},g.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var o=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&o,r=o<67108864?0:o/67108864|0}return e},g.prototype.convert13b=function(e,t,r,o){for(var i=0,s=0;s<t;s++)i+=0|e[s],r[2*s]=8191&i,i>>>=13,r[2*s+1]=8191&i,i>>>=13;for(s=2*t;s<o;++s)r[s]=0;n(0===i),n(0==(-8192&i))},g.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),i=this.stub(n),s=new Array(n),a=new Array(n),c=new Array(n),u=new Array(n),l=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,u,n),this.transform(s,i,a,c,n,o),this.transform(u,i,l,f,n,o);for(var h=0;h<n;h++){var p=a[h]*l[h]-c[h]*f[h];c[h]=a[h]*f[h]+c[h]*l[h],a[h]=p}return this.conjugate(a,c,n),this.transform(a,c,d,i,n,o),this.conjugate(d,i,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var o=(0|this.words[r])*e,i=(67108863&o)+(67108863&t);t>>=26,t+=o/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=(e.words[n]&1<<o)>>>o}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,o=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,c=(0|this.words[t])-a<<r;this.words[t]=c|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var o;n("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,s=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,c=r;if(o-=s,o=Math.max(0,o),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=o);u--){var f=0|this.words[u];this.words[u]=l<<26-i|f>>>i,l=f&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,o=1<<t;return!(this.length<=r)&&!!(this.words[r]&o)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var o,i,s=e.length+r;this._expand(s);var a=0;for(o=0;o<e.length;o++){i=(0|this.words[o+r])+a;var c=(0|e.words[o])*t;a=((i-=67108863&c)>>26)-(c/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)a=(i=(0|this.words[o+r])+a)>>26,this.words[o+r]=67108863&i;if(0===a)return this.strip();for(n(-1===a),a=0,o=0;o<this.length;o++)a=(i=-(0|this.words[o])+a)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,c=n.length-o.length;if("mod"!==t){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=n.clone()._ishlnsubmul(o,1,c);0===l.negative&&(n=l,a&&(a.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(o,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);a&&(a.words[f]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,o=this.length-1;o>=0;o--)r=(t*r+(0|this.words[o]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*t;this.words[r]=o/e|0,t=o%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(f)),o.iushrn(1),s.iushrn(1);for(var p=0,g=1;0==(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(f)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a),s.isub(c)):(r.isub(t),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var f=0,d=1;0==(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,o=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,s=r;0!==i&&s<this.length;s++){var a=0|this.words[s];i=(a+=i)>>>26,a&=67108863,this.words[s]=a}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){n<o?t=-1:n>o&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new k(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}y.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},o(b,y),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,n=10;n<e.length;n++){var i=0|e.words[n];e.words[n-10]=(4194303&i)<<4|o>>>22,o=i}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(v,y),o(w,y),o(_,y),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,o=67108863&n;n>>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=s;0!==h.cmp(a);){for(var g=h,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(f,new i(1).iushln(p-m-1));d=d.redMul(y),f=y.redSqr(),h=h.redMul(f),p=m}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==s?(s<<=1,s|=f,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}c=26}return o},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new S(e)},o(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(71)(e))},function(e,t,r){
24 /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
25 var n=r(2),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},,function(e,t,r){(function(t){var n;e.exports=(n=n||function(e,n){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==t&&t.crypto&&(o=t.crypto),!o)try{o=r(72)}catch(e){}var i=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),a={},c=a.lib={},u=c.Base={extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=c.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(i=0;i<o;i+=4)t[n+i>>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(i());return new l.init(t,e)}}),f=a.enc={},d=f.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},g=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,u=e.min(4*c,i);if(c){for(var f=0;f<c;f+=s)this._doProcessBlock(o,f);r=o.splice(0,c),n.sigBytes-=u}return new l.init(r,u)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(c.Hasher=g.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new m.HMAC.init(e,r).finalize(t)}}}),a.algo={});return a}(Math),n)}).call(this,r(12))},,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(422),t),o(r(423),t),o(r(424),t),o(r(236),t),o(r(427),t)},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||l||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,function(e,t,r){"use strict";r.r(t),r.d(t,"AccountNameRequiredError",(function(){return u})),r.d(t,"AccountNotSupported",(function(){return l})),r.d(t,"AmountRequired",(function(){return f})),r.d(t,"BluetoothRequired",(function(){return d})),r.d(t,"BtcUnmatchedApp",(function(){return h})),r.d(t,"CantOpenDevice",(function(){return p})),r.d(t,"CantScanQRCode",(function(){return Be})),r.d(t,"CashAddrNotSupported",(function(){return g})),r.d(t,"CurrencyNotSupported",(function(){return m})),r.d(t,"DBNotReset",(function(){return Ge})),r.d(t,"DBWrongPassword",(function(){return Je})),r.d(t,"DeviceAppVerifyNotSupported",(function(){return y})),r.d(t,"DeviceGenuineSocketEarlyClose",(function(){return b})),r.d(t,"DeviceHalted",(function(){return S})),r.d(t,"DeviceInOSUExpected",(function(){return k})),r.d(t,"DeviceNameInvalid",(function(){return O})),r.d(t,"DeviceNotGenuineError",(function(){return v})),r.d(t,"DeviceOnDashboardExpected",(function(){return w})),r.d(t,"DeviceOnDashboardUnexpected",(function(){return _})),r.d(t,"DeviceShouldStayInApp",(function(){return Me})),r.d(t,"DeviceSocketFail",(function(){return j})),r.d(t,"DeviceSocketNoBulkStatus",(function(){return E})),r.d(t,"DisconnectedDevice",(function(){return P})),r.d(t,"DisconnectedDeviceDuringOperation",(function(){return x})),r.d(t,"ETHAddressNonEIP",(function(){return Ne})),r.d(t,"EnpointConfigError",(function(){return A})),r.d(t,"EthAppPleaseEnableContractData",(function(){return M})),r.d(t,"FeeEstimationFailed",(function(){return I})),r.d(t,"FeeNotLoaded",(function(){return De})),r.d(t,"FeeRequired",(function(){return Le})),r.d(t,"FeeTooHigh",(function(){return Ue})),r.d(t,"FirmwareNotRecognized",(function(){return C})),r.d(t,"FirmwareOrAppUpdateRequired",(function(){return $e})),r.d(t,"GasLessThanEstimate",(function(){return se})),r.d(t,"GenuineCheckFailed",(function(){return ze})),r.d(t,"HardResetFail",(function(){return R})),r.d(t,"InvalidAddress",(function(){return N})),r.d(t,"InvalidAddressBecauseDestinationIsAlsoSource",(function(){return B})),r.d(t,"InvalidXRPTag",(function(){return T})),r.d(t,"LatestMCUInstalledError",(function(){return D})),r.d(t,"LedgerAPI4xx",(function(){return Fe})),r.d(t,"LedgerAPI5xx",(function(){return Ke})),r.d(t,"LedgerAPIError",(function(){return U})),r.d(t,"LedgerAPIErrorWithMessage",(function(){return q})),r.d(t,"LedgerAPINotAvailable",(function(){return H})),r.d(t,"MCUNotGenuineToDashboard",(function(){return he})),r.d(t,"ManagerAppAlreadyInstalledError",(function(){return z})),r.d(t,"ManagerAppDepInstallRequired",(function(){return K})),r.d(t,"ManagerAppDepUninstallRequired",(function(){return $})),r.d(t,"ManagerAppRelyOnBTCError",(function(){return F})),r.d(t,"ManagerDeviceLockedError",(function(){return V})),r.d(t,"ManagerFirmwareNotEnoughSpaceError",(function(){return J})),r.d(t,"ManagerNotEnoughSpaceError",(function(){return G})),r.d(t,"ManagerUninstallBTCDep",(function(){return W})),r.d(t,"NetworkDown",(function(){return Q})),r.d(t,"NoAccessToCamera",(function(){return ne})),r.d(t,"NoAddressesFound",(function(){return Z})),r.d(t,"NoDBPathGiven",(function(){return Ve})),r.d(t,"NotEnoughBalance",(function(){return Y})),r.d(t,"NotEnoughBalanceBecauseDestinationNotCreated",(function(){return re})),r.d(t,"NotEnoughBalanceInParentAccount",(function(){return ee})),r.d(t,"NotEnoughBalanceToDelegate",(function(){return X})),r.d(t,"NotEnoughGas",(function(){return oe})),r.d(t,"NotEnoughSpendableBalance",(function(){return te})),r.d(t,"NotSupportedLegacyAddress",(function(){return ie})),r.d(t,"PairingFailed",(function(){return He})),r.d(t,"PasswordIncorrectError",(function(){return ce})),r.d(t,"PasswordsDontMatchError",(function(){return ae})),r.d(t,"RecipientRequired",(function(){return pe})),r.d(t,"RecommendSubAccountsToEmpty",(function(){return ue})),r.d(t,"RecommendUndelegation",(function(){return le})),r.d(t,"StatusCodes",(function(){return Qe})),r.d(t,"SyncError",(function(){return qe})),r.d(t,"TimeoutTagged",(function(){return fe})),r.d(t,"TransportError",(function(){return We})),r.d(t,"TransportInterfaceNotAvailable",(function(){return Pe})),r.d(t,"TransportOpenUserCancelled",(function(){return Ee})),r.d(t,"TransportRaceCondition",(function(){return xe})),r.d(t,"TransportStatusError",(function(){return Ye})),r.d(t,"TransportWebUSBGestureRequired",(function(){return Ae})),r.d(t,"UnavailableTezosOriginatedAccountReceive",(function(){return ge})),r.d(t,"UnavailableTezosOriginatedAccountSend",(function(){return me})),r.d(t,"UnexpectedBootloader",(function(){return de})),r.d(t,"UnknownMCU",(function(){return L})),r.d(t,"UpdateFetchFileFail",(function(){return ye})),r.d(t,"UpdateIncorrectHash",(function(){return be})),r.d(t,"UpdateIncorrectSig",(function(){return ve})),r.d(t,"UpdateYourApp",(function(){return we})),r.d(t,"UserRefusedAddress",(function(){return ke})),r.d(t,"UserRefusedAllowManager",(function(){return Oe})),r.d(t,"UserRefusedDeviceNameChange",(function(){return _e})),r.d(t,"UserRefusedFirmwareUpdate",(function(){return Se})),r.d(t,"UserRefusedOnDevice",(function(){return je})),r.d(t,"WebsocketConnectionError",(function(){return Ie})),r.d(t,"WebsocketConnectionFailed",(function(){return Ce})),r.d(t,"WrongAppForCurrency",(function(){return Te})),r.d(t,"WrongDeviceForAccount",(function(){return Re})),r.d(t,"addCustomErrorDeserializer",(function(){return i})),r.d(t,"createCustomErrorClass",(function(){return s})),r.d(t,"deserializeError",(function(){return a})),r.d(t,"getAltStatusMessage",(function(){return Ze})),r.d(t,"serializeError",(function(){return c}));var n={},o={},i=function(e,t){o[e]=t},s=function(e){var t=function(t,r){Object.assign(this,r),this.name=e,this.message=t||e,this.stack=(new Error).stack};return t.prototype=new Error,n[e]=t,t},a=function(e){if("object"==typeof e&&e){try{var t=JSON.parse(e.message);t.message&&t.name&&(e=t)}catch(e){}var r=void 0;if("string"==typeof e.name){var i=e.name,c=o[i];if(c)r=c(e);else{var u="Error"===i?Error:n[i];u||(console.warn("deserializing an unknown class '"+i+"'"),u=s(i)),r=Object.create(u.prototype);try{for(var l in e)e.hasOwnProperty(l)&&(r[l]=e[l])}catch(e){}}}else r=new Error(e.message);return!r.stack&&Error.captureStackTrace&&Error.captureStackTrace(r,a),r}return new Error(String(e))},c=function(e){return e?"object"==typeof e?function e(t,r){var n={};r.push(t);for(var o=0,i=Object.keys(t);o<i.length;o++){var s=i[o],a=t[s];"function"!=typeof a&&(a&&"object"==typeof a?-1!==r.indexOf(t[s])?n[s]="[Circular]":n[s]=e(t[s],r.slice(0)):n[s]=a)}"string"==typeof t.name&&(n.name=t.name);"string"==typeof t.message&&(n.message=t.message);"string"==typeof t.stack&&(n.stack=t.stack);return n}(e,[]):"function"==typeof e?"[Function: "+(e.name||"anonymous")+"]":e:e};var u=s("AccountNameRequired"),l=s("AccountNotSupported"),f=s("AmountRequired"),d=s("BluetoothRequired"),h=s("BtcUnmatchedApp"),p=s("CantOpenDevice"),g=s("CashAddrNotSupported"),m=s("CurrencyNotSupported"),y=s("DeviceAppVerifyNotSupported"),b=s("DeviceGenuineSocketEarlyClose"),v=s("DeviceNotGenuine"),w=s("DeviceOnDashboardExpected"),_=s("DeviceOnDashboardUnexpected"),k=s("DeviceInOSUExpected"),S=s("DeviceHalted"),O=s("DeviceNameInvalid"),j=s("DeviceSocketFail"),E=s("DeviceSocketNoBulkStatus"),P=s("DisconnectedDevice"),x=s("DisconnectedDeviceDuringOperation"),A=s("EnpointConfig"),M=s("EthAppPleaseEnableContractData"),I=s("FeeEstimationFailed"),C=s("FirmwareNotRecognized"),R=s("HardResetFail"),T=s("InvalidXRPTag"),N=s("InvalidAddress"),B=s("InvalidAddressBecauseDestinationIsAlsoSource"),D=s("LatestMCUInstalledError"),L=s("UnknownMCU"),U=s("LedgerAPIError"),q=s("LedgerAPIErrorWithMessage"),H=s("LedgerAPINotAvailable"),z=s("ManagerAppAlreadyInstalled"),F=s("ManagerAppRelyOnBTC"),K=s("ManagerAppDepInstallRequired"),$=s("ManagerAppDepUninstallRequired"),V=s("ManagerDeviceLocked"),J=s("ManagerFirmwareNotEnoughSpace"),G=s("ManagerNotEnoughSpace"),W=s("ManagerUninstallBTCDep"),Q=s("NetworkDown"),Z=s("NoAddressesFound"),Y=s("NotEnoughBalance"),X=s("NotEnoughBalanceToDelegate"),ee=s("NotEnoughBalanceInParentAccount"),te=s("NotEnoughSpendableBalance"),re=s("NotEnoughBalanceBecauseDestinationNotCreated"),ne=s("NoAccessToCamera"),oe=s("NotEnoughGas"),ie=s("NotSupportedLegacyAddress"),se=s("GasLessThanEstimate"),ae=s("PasswordsDontMatch"),ce=s("PasswordIncorrect"),ue=s("RecommendSubAccountsToEmpty"),le=s("RecommendUndelegation"),fe=s("TimeoutTagged"),de=s("UnexpectedBootloader"),he=s("MCUNotGenuineToDashboard"),pe=s("RecipientRequired"),ge=s("UnavailableTezosOriginatedAccountReceive"),me=s("UnavailableTezosOriginatedAccountSend"),ye=s("UpdateFetchFileFail"),be=s("UpdateIncorrectHash"),ve=s("UpdateIncorrectSig"),we=s("UpdateYourApp"),_e=s("UserRefusedDeviceNameChange"),ke=s("UserRefusedAddress"),Se=s("UserRefusedFirmwareUpdate"),Oe=s("UserRefusedAllowManager"),je=s("UserRefusedOnDevice"),Ee=s("TransportOpenUserCancelled"),Pe=s("TransportInterfaceNotAvailable"),xe=s("TransportRaceCondition"),Ae=s("TransportWebUSBGestureRequired"),Me=s("DeviceShouldStayInApp"),Ie=s("WebsocketConnectionError"),Ce=s("WebsocketConnectionFailed"),Re=s("WrongDeviceForAccount"),Te=s("WrongAppForCurrency"),Ne=s("ETHAddressNonEIP"),Be=s("CantScanQRCode"),De=s("FeeNotLoaded"),Le=s("FeeRequired"),Ue=s("FeeTooHigh"),qe=s("SyncError"),He=s("PairingFailed"),ze=s("GenuineCheckFailed"),Fe=s("LedgerAPI4xx"),Ke=s("LedgerAPI5xx"),$e=s("FirmwareOrAppUpdateRequired"),Ve=s("NoDBPathGiven"),Je=s("DBWrongPassword"),Ge=s("DBNotReset");function We(e,t){this.name="TransportError",this.message=e,this.stack=(new Error).stack,this.id=t}We.prototype=new Error,i("TransportError",(function(e){return new We(e.message,e.id)}));var Qe={PIN_REMAINING_ATTEMPTS:25536,INCORRECT_LENGTH:26368,MISSING_CRITICAL_PARAMETER:26624,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,SECURITY_STATUS_NOT_SATISFIED:27010,CONDITIONS_OF_USE_NOT_SATISFIED:27013,INCORRECT_DATA:27264,NOT_ENOUGH_MEMORY_SPACE:27268,REFERENCED_DATA_NOT_FOUND:27272,FILE_ALREADY_EXISTS:27273,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,CLA_NOT_SUPPORTED:28160,TECHNICAL_PROBLEM:28416,OK:36864,MEMORY_PROBLEM:37440,NO_EF_SELECTED:37888,INVALID_OFFSET:37890,FILE_NOT_FOUND:37892,INCONSISTENT_FILE:37896,ALGORITHM_NOT_SUPPORTED:38020,INVALID_KCV:38021,CODE_NOT_INITIALIZED:38914,ACCESS_CONDITION_NOT_FULFILLED:38916,CONTRADICTION_SECRET_CODE_STATUS:38920,CONTRADICTION_INVALIDATION:38928,CODE_BLOCKED:38976,MAX_VALUE_REACHED:38992,GP_AUTH_FAILED:25344,LICENSING:28482,HALTED:28586};function Ze(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received"}if(28416<=e&&e<=28671)return"Internal error, please report"}function Ye(e){this.name="TransportStatusError";var t=Object.keys(Qe).find((function(t){return Qe[t]===e}))||"UNKNOWN_ERROR",r=Ze(e)||t,n=e.toString(16);this.message="Ledger device: "+r+" (0x"+n+")",this.stack=(new Error).stack,this.statusCode=e,this.statusText=t}Ye.prototype=new Error,i("TransportStatusError",(function(e){return new Ye(e.statusCode)}))},,,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(324),t),o(r(652),t),o(r(653),t),o(r(654),t),o(r(655),t),o(r(326),t),o(r(327),t),o(r(325),t),o(r(659),t),o(r(662),t)},,,,function(e,t,r){var n,o,i,s,a,c,u,l,f,d,h,p,g,m,y,b,v,w,_;e.exports=(n=r(9),r(67),void(n.lib.Cipher||(o=n,i=o.lib,s=i.Base,a=i.WordArray,c=i.BufferedBlockAlgorithm,u=o.enc,u.Utf8,l=u.Base64,f=o.algo.EvpKDF,d=i.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:v}return function(t){return{encrypt:function(r,n,o){return e(n).encrypt(t,r,n,o)},decrypt:function(r,n,o){return e(n).decrypt(t,r,n,o)}}}}()}),i.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=o.mode={},p=i.BlockCipherMode=s.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),g=h.CBC=function(){var e=p.extend();function t(e,t,r){var n,o=this._iv;o?(n=o,this._iv=void 0):n=this._prevBlock;for(var i=0;i<r;i++)e[t+i]^=n[i]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize;t.call(this,e,r,o),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+o)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize,i=e.slice(r,r+o);n.decryptBlock(e,r),t.call(this,e,r,o),this._prevBlock=i}}),e}(),m=(o.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,i=[],s=0;s<n;s+=4)i.push(o);var c=a.create(i,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:g,padding:m}),reset:function(){var e;d.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),y=i.CipherParams=s.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),b=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;return(r?a.create([1398893684,1701076831]).concat(r).concat(t):t).toString(l)},parse:function(e){var t,r=l.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=a.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),y.create({ciphertext:r,salt:t})}},v=i.SerializableCipher=s.extend({cfg:s.extend({format:b}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),s=o.cfg;return y.create({ciphertext:i,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(o.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=a.random(8));var o=f.create({keySize:t+r}).compute(e,n),i=a.create(o.words.slice(t),4*r);return o.sigBytes=4*t,y.create({key:o,iv:i,salt:n})}},_=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:w}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,v.decrypt.call(this,e,t,o.key,n)}}))))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(221),t),o(r(421),t),o(r(235),t),o(r(116),t),o(r(112),t),o(r(234),t),o(r(149),t)},function(e,t,r){const n=r(132),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=r(131),{re:s,t:a}=r(84),c=r(133),{compareIdentifiers:u}=r(182);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return u(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return u(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=l},,,,function(e,t,r){"use strict";var n=r(302),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return a(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function r(r,n){c(t[n])&&c(r)?t[n]=e(t[n],r):c(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)l(arguments[n],r);return t},extend:function(e,t,r){return l(t,(function(t,o){e[o]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},,,,function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=t,o=r(6),i=r(32),s=r(280);n.assert=i,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var o=1<<t+1,i=e.clone(),s=0;s<n.length;s++){var a,c=i.andln(o-1);i.isOdd()?(a=c>(o>>1)-1?(o>>1)-c:c,i.isubn(a)):a=0,n[s]=a,i.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,o=0;e.cmpn(-n)>0||t.cmpn(-o)>0;){var i,s,a,c=e.andln(3)+n&3,u=t.andln(3)+o&3;if(3===c&&(c=-1),3===u&&(u=-1),0==(1&c))i=0;else i=3!==(a=e.andln(7)+n&7)&&5!==a||2!==u?c:-c;if(r[0].push(i),0==(1&u))s=0;else s=3!==(a=t.andln(7)+o&7)&&5!==a||2!==c?u:-u;r[1].push(s),2*n===i+1&&(n=1-n),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new o(e,"hex","le")}},,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=t.toRfc3339=t.fromRfc3339=t.toHex=t.fromHex=t.Bech32=t.toBase64=t.fromBase64=t.toAscii=t.fromAscii=void 0;var n=r(615);Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return n.fromAscii}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return n.toAscii}});var o=r(616);Object.defineProperty(t,"fromBase64",{enumerable:!0,get:function(){return o.fromBase64}}),Object.defineProperty(t,"toBase64",{enumerable:!0,get:function(){return o.toBase64}});var i=r(617);Object.defineProperty(t,"Bech32",{enumerable:!0,get:function(){return i.Bech32}});var s=r(618);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return s.fromHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return s.toHex}});var a=r(619);Object.defineProperty(t,"fromRfc3339",{enumerable:!0,get:function(){return a.fromRfc3339}}),Object.defineProperty(t,"toRfc3339",{enumerable:!0,get:function(){return a.toRfc3339}});var c=r(620);Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return c.fromUtf8}}),Object.defineProperty(t,"toUtf8",{enumerable:!0,get:function(){return c.toUtf8}})},function(e,t,r){const n=r(24);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},function(e,t,r){class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!p(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=o.get(t);if(r)return r;const n=this.options.loose,i=n?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(i,P(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],f),a("comparator trim",e,u[l.COMPARATORTRIM]),e=(e=(e=e.replace(u[l.TILDETRIM],d)).replace(u[l.CARETTRIM],h)).split(/\s+/).join(" ");const c=n?u[l.COMPARATORLOOSE]:u[l.COMPARATOR],g=e.split(" ").map(e=>y(e,this.options)).join(" ").split(/\s+/).map(e=>E(e,this.options)).filter(this.options.loose?e=>!!e.match(c):()=>!0).map(e=>new s(e,this.options)),m=(g.length,new Map);for(const e of g){if(p(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const b=[...m.values()];return o.set(t,b),b}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some(r=>m(r,t)&&e.set.some(e=>m(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(x(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=new(r(699))({max:1e3}),i=r(133),s=r(135),a=r(132),c=r(24),{re:u,t:l,comparatorTrimReplace:f,tildeTrimReplace:d,caretTrimReplace:h}=r(84),p=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,m=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every(e=>o.intersects(e,t)),o=n.pop();return r},y=(e,t)=>(a("comp",e,t),e=_(e,t),a("caret",e),e=v(e,t),a("tildes",e),e=S(e,t),a("xrange",e),e=j(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(" "),w=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,(t,r,n,o,i)=>{let s;return a("tilde",e,t,r,n,o,i),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(o)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(a("replaceTilde pr",i),s=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,a("tilde return",s),s})},_=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(" "),k=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,o,i,s)=>{let c;return a("caret",e,t,r,o,i,s),b(r)?c="":b(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(i)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),c="0"===r?"0"===o?`>=${r}.${o}.${i}-${s} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${s} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${s} <${+r+1}.0.0-0`):(a("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),a("caret return",c),c})},S=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>O(e,t)).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,(r,n,o,i,s,c)=>{a("xRange",e,r,n,o,i,s,c);const u=b(o),l=u||b(i),f=l||b(s),d=f;return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(i=0),s=0,">"===n?(n=">=",l?(o=+o+1,i=0,s=0):(i=+i+1,s=0)):"<="===n&&(n="<",l?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${s}${c}`):l?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),a("xRange return",r),r})},j=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),E=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),P=e=>(t,r,n,o,i,s,a,c,u,l,f,d,h)=>`${r=b(n)?"":b(o)?`>=${n}.0.0${e?"-0":""}`:b(i)?`>=${n}.${o}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`} ${c=b(u)?"":b(l)?`<${+u+1}.0.0-0`:b(f)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${f}-${d}`:e?`<${u}.${l}.${+f+1}-0`:"<="+c}`.trim(),x=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(732);t.Bech32=n.Bech32;var o=r(733);t.Decimal=o.Decimal;var i=r(360);t.Encoding=i.Encoding;var s=r(734);t.Int53=s.Int53,t.Uint32=s.Uint32,t.Uint53=s.Uint53,t.Uint64=s.Uint64;var a=r(735);t.isJsonCompatibleValue=a.isJsonCompatibleValue,t.isJsonCompatibleDictionary=a.isJsonCompatibleDictionary,t.isJsonCompatibleArray=a.isJsonCompatibleArray;var c=r(736);t.TransactionEncoder=c.TransactionEncoder;var u=r(362);t.isNonNullObject=u.isNonNullObject,t.isUint8Array=u.isUint8Array},function(e,t,r){"use strict";var n;r.r(t),r.d(t,"Lifecycle",(function(){return o})),r.d(t,"autoInjectable",(function(){return E})),r.d(t,"inject",(function(){return P})),r.d(t,"injectable",(function(){return x})),r.d(t,"registry",(function(){return A})),r.d(t,"singleton",(function(){return M})),r.d(t,"injectAll",(function(){return I})),r.d(t,"injectAllWithTransform",(function(){return C})),r.d(t,"injectWithTransform",(function(){return R})),r.d(t,"scoped",(function(){return T})),r.d(t,"instanceCachingFactory",(function(){return N})),r.d(t,"predicateAwareClassFactory",(function(){return B})),r.d(t,"isClassProvider",(function(){return c})),r.d(t,"isFactoryProvider",(function(){return u})),r.d(t,"isNormalToken",(function(){return d})),r.d(t,"isTokenProvider",(function(){return g})),r.d(t,"isValueProvider",(function(){return m})),r.d(t,"delay",(function(){return f})),r.d(t,"container",(function(){return j})),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(n||(n={}));var o=n,i=r(3);function s(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],r=Reflect.getOwnMetadata("injectionTokens",e)||{};return Object.keys(r).forEach((function(e){t[+e]=r[e]})),t}function a(e,t){return function(r,n,o){var i=Reflect.getOwnMetadata("injectionTokens",r)||{};i[o]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata("injectionTokens",i,r)}}function c(e){return!!e.useClass}function u(e){return!!e.useFactory}var l=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct"]}return e.prototype.createProxy=function(e){var t,r=this,n=!1;return new Proxy({},this.createHandler((function(){return n||(t=e(r.wrap()),n=!0),t})))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach((function(r){t[r]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t[0]=e();var o=Reflect[r];return o.apply(void 0,Object(i.e)(t))}})),t},e}();function f(e){if(void 0===e)throw new Error("Attempt to `delay` undefined. Constructor must be wrapped in a callback");return new l(e)}function d(e){return"string"==typeof e||"symbol"==typeof e}function h(e){return"object"==typeof e&&"token"in e&&"multiple"in e}function p(e){return"object"==typeof e&&"token"in e&&"transform"in e}function g(e){return!!e.useToken}function m(e){return null!=e.useValue}var y=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.b)(t,e),t}(y),v=function(){this.scopedResolutions=new Map};function w(e,t,r){var n,o,s,a=Object(i.c)(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],c=function(e,t){return null===e?"at position #"+t:'"'+e.split(",")[t].trim()+'" at position #'+t}(void 0===a?null:a,t);return n="Cannot inject the dependency "+c+' of "'+e.name+'" constructor. Reason:',o=r,void 0===s&&(s="    "),Object(i.e)([n],o.message.split("\n").map((function(e){return s+e}))).join("\n")}var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.b)(t,e),t}(y),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.b)(t,e),t}(y),S=function(){this.preResolution=new _,this.postResolution=new k},O=new Map,j=new(function(){function e(e){this.parent=e,this._registry=new b,this.interceptors=new S}return e.prototype.register=function(e,t,r){var n;if(void 0===r&&(r={lifecycle:o.Transient}),n=function(e){return c(e)||m(e)||g(e)||u(e)}(t)?t:{useClass:t},g(n))for(var s=[e],a=n;null!=a;){var l=a.useToken;if(s.includes(l))throw new Error("Token registration cycle detected! "+Object(i.e)(s,[l]).join(" -> "));s.push(l);var f=this._registry.get(l);a=f&&g(f.provider)?f.provider:null}if((r.lifecycle===o.Singleton||r.lifecycle==o.ContainerScoped||r.lifecycle==o.ResolutionScoped)&&(m(n)||u(n)))throw new Error('Cannot use lifecycle "'+o[r.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:n,options:r}),this},e.prototype.registerType=function(e,t){return d(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(d(e)){if(d(t))return this.register(e,{useToken:t},{lifecycle:o.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:o.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var r=e;return t&&!d(t)&&(r=t),this.register(e,{useClass:r},{lifecycle:o.Singleton})},e.prototype.resolve=function(e,t){void 0===t&&(t=new v);var r=this.getRegistration(e);if(!r&&d(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),r){var n=this.resolveRegistration(r,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}if(function(e){return"function"==typeof e||e instanceof l}(e)){n=this.construct(e,t);return this.executePostResolutionInterceptor(e,n,"Single"),n}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var r,n;if(this.interceptors.preResolution.has(e)){var o=[];try{for(var s=Object(i.g)(this.interceptors.preResolution.getAll(e)),a=s.next();!a.done;a=s.next()){var c=a.value;"Once"!=c.options.frequency&&o.push(c),c.callback(e,t)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}this.interceptors.preResolution.setAll(e,o)}},e.prototype.executePostResolutionInterceptor=function(e,t,r){var n,o;if(this.interceptors.postResolution.has(e)){var s=[];try{for(var a=Object(i.g)(this.interceptors.postResolution.getAll(e)),c=a.next();!c.done;c=a.next()){var u=c.value;"Once"!=u.options.frequency&&s.push(u),u.callback(e,t,r)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}this.interceptors.postResolution.setAll(e,s)}},e.prototype.resolveRegistration=function(e,t){if(e.options.lifecycle===o.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var r,n=e.options.lifecycle===o.Singleton,i=e.options.lifecycle===o.ContainerScoped,s=n||i;return r=m(e.provider)?e.provider.useValue:g(e.provider)?s?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):c(e.provider)?s?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):u(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===o.ResolutionScoped&&t.scopedResolutions.set(e,r),r},e.prototype.resolveAll=function(e,t){var r=this;void 0===t&&(t=new v);var n=this.getAllRegistrations(e);if(!n&&d(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),n){var o=n.map((function(e){return r.resolveRegistration(e,t)}));return this.executePostResolutionInterceptor(e,o,"All"),o}var i=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,i,"All"),i},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;try{for(var r=Object(i.g)(this._registry.entries()),n=r.next();!n.done;n=r.next()){var o=Object(i.c)(n.value,2),s=o[0],a=o[1];this._registry.setAll(s,a.filter((function(e){return!m(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,r,n=new e(this);try{for(var s=Object(i.g)(this._registry.entries()),a=s.next();!a.done;a=s.next()){var c=Object(i.c)(a.value,2),u=c[0],l=c[1];l.some((function(e){return e.options.lifecycle===o.ContainerScoped}))&&n._registry.setAll(u,l.map((function(e){return e.options.lifecycle===o.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return n},e.prototype.beforeResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:r})},e.prototype.afterResolution=function(e,t,r){void 0===r&&(r={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:r})},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var r=this;if(e instanceof l)return e.createProxy((function(e){return r.resolve(e,t)}));var n=O.get(e);if(!n||0===n.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var o=n.map(this.resolveParams(t,e));return new(e.bind.apply(e,Object(i.e)([void 0],o)))},e.prototype.resolveParams=function(e,t){var r=this;return function(n,o){var s,a,c;try{return h(n)?p(n)?n.multiple?(s=r.resolve(n.transform)).transform.apply(s,Object(i.e)([r.resolveAll(n.token)],n.transformArgs)):(a=r.resolve(n.transform)).transform.apply(a,Object(i.e)([r.resolve(n.token,e)],n.transformArgs)):n.multiple?r.resolveAll(n.token):r.resolve(n.token,e):p(n)?(c=r.resolve(n.transform,e)).transform.apply(c,Object(i.e)([r.resolve(n.token,e)],n.transformArgs)):r.resolve(n,e)}catch(e){throw new Error(w(t,o,e))}}},e}());var E=function(){return function(e){var t=s(e);return function(r){function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return r.apply(this,Object(i.e)(n.concat(t.slice(n.length).map((function(t,r){var o,s,a;try{return h(t)?p(t)?t.multiple?(o=j.resolve(t.transform)).transform.apply(o,Object(i.e)([j.resolveAll(t.token)],t.transformArgs)):(s=j.resolve(t.transform)).transform.apply(s,Object(i.e)([j.resolve(t.token)],t.transformArgs)):t.multiple?j.resolveAll(t.token):j.resolve(t.token):p(t)?(a=j.resolve(t.transform)).transform.apply(a,Object(i.e)([j.resolve(t.token)],t.transformArgs)):j.resolve(t)}catch(t){var c=r+n.length;throw new Error(w(e,c,t))}})))))||this}return Object(i.b)(n,r),n}(e)}};var P=function(e){return a(e)};var x=function(){return function(e){O.set(e,s(e))}};var A=function(e){return void 0===e&&(e=[]),function(t){return e.forEach((function(e){var t=e.token,r=e.options,n=Object(i.d)(e,["token","options"]);return j.register(t,n,r)})),t}};var M=function(){return function(e){x()(e),j.registerSingleton(e)}};var I=function(e){return a({token:e,multiple:!0})};var C=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o={token:e,multiple:!0,transform:t,transformArgs:r};return a(o)};var R=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return a(e,{transformToken:t,args:r})};function T(e,t){return function(r){x()(r),j.register(t||r,r,{lifecycle:e})}}function N(e){var t;return function(r){return null==t&&(t=e(r)),t}}function B(e,t,r,n){var o,i;return void 0===n&&(n=!0),function(s){var a=e(s);return n&&i===a||(o=(i=a)?s.resolve(t):s.resolve(r)),o}}if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.")},function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return c}));var n=r(207),o=r.n(n);const i={blue:{id:"blue",productName:"Ledger Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,blockSize:4096,getBlockSize:e=>4096},nanoS:{id:"nanoS",productName:"Ledger Nano S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,blockSize:4096,getBlockSize:e=>o.a.lt(o.a.coerce(e),"2.0.0")?4096:2048},nanoX:{id:"nanoX",productName:"Ledger Nano X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,blockSize:4096,getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"d973f2e0-b19e-11e2-9e96-0800200c9a66",notifyUuid:"d973f2e1-b19e-11e2-9e96-0800200c9a66",writeUuid:"d973f2e2-b19e-11e2-9e96-0800200c9a66"},{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572"}]}},s=Object.values(i),a=11415,c=e=>{const t=s.find(t=>t.legacyUsbProductId===e);if(t)return t;const r=e>>8;return s.find(e=>e.productIdMM===r)},u=[],l={};for(let e in i){const t=i[e],{bluetoothSpec:r}=t;if(r)for(let e=0;e<r.length;e++){const n=r[e];u.push(n.serviceUuid),l[n.serviceUuid]=l[n.serviceUuid.replace(/-/g,"")]={deviceModel:t,...n}}}},function(e,t,r){"use strict";var n=t;n.version=r(508).version,n.utils=r(33),n.rand=r(161),n.curve=r(281),n.curves=r(164),n.ec=r(513),n.eddsa=r(517)},,,function(e,t,r){"use strict";e.exports=r(428)},function(e,t,r){"use strict";var n=r(32),o=r(4);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e[n];"little"===t&&(o=s(o)),r+=c(o.toString(16))}return r},t.zero2=a,t.zero8=c,t.join32=function(e,t,r,o){var i=r-t;n(i%4==0);for(var s=new Array(i/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===o?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,o=0;n<e.length;n++,o+=4){var i=e[n];"big"===t?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,o){return e+t+r+n+o>>>0},t.sum64=function(e,t,r,n){var o=e[t],i=n+e[t+1]>>>0,s=(i<n?1:0)+r+o;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,i,s,a){var c=0,u=t;return c+=(u=u+n>>>0)<t?1:0,c+=(u=u+i>>>0)<i?1:0,e+r+o+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,o,i,s,a){return t+n+i+a>>>0},t.sum64_5_hi=function(e,t,r,n,o,i,s,a,c,u){var l=0,f=t;return l+=(f=f+n>>>0)<t?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+a>>>0)<a?1:0,e+r+o+s+c+(l+=(f=f+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,o,i,s,a,c,u){return t+n+i+a+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slip10CurveFromString=t.Slip10RawIndex=t.Slip10Curve=t.Slip10=t.stringToPath=t.pathToString=t.sha512=t.Sha512=t.sha256=t.Sha256=t.sha1=t.Sha1=t.Secp256k1Signature=t.ExtendedSecp256k1Signature=t.Secp256k1=t.ripemd160=t.Ripemd160=t.Random=t.Ed25519Keypair=t.Ed25519=t.isArgon2idOptions=t.Argon2id=t.xchacha20NonceLength=t.Xchacha20poly1305Ietf=t.keccak256=t.Keccak256=t.Hmac=t.EnglishMnemonic=t.Bip39=void 0;var n=r(614);Object.defineProperty(t,"Bip39",{enumerable:!0,get:function(){return n.Bip39}});var o=r(312);Object.defineProperty(t,"EnglishMnemonic",{enumerable:!0,get:function(){return o.EnglishMnemonic}});var i=r(313);Object.defineProperty(t,"Hmac",{enumerable:!0,get:function(){return i.Hmac}});var s=r(621);Object.defineProperty(t,"Keccak256",{enumerable:!0,get:function(){return s.Keccak256}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return s.keccak256}});var a=r(622);Object.defineProperty(t,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return a.Xchacha20poly1305Ietf}}),Object.defineProperty(t,"xchacha20NonceLength",{enumerable:!0,get:function(){return a.xchacha20NonceLength}}),Object.defineProperty(t,"Argon2id",{enumerable:!0,get:function(){return a.Argon2id}}),Object.defineProperty(t,"isArgon2idOptions",{enumerable:!0,get:function(){return a.isArgon2idOptions}}),Object.defineProperty(t,"Ed25519",{enumerable:!0,get:function(){return a.Ed25519}}),Object.defineProperty(t,"Ed25519Keypair",{enumerable:!0,get:function(){return a.Ed25519Keypair}});var c=r(623);Object.defineProperty(t,"Random",{enumerable:!0,get:function(){return c.Random}});var u=r(624);Object.defineProperty(t,"Ripemd160",{enumerable:!0,get:function(){return u.Ripemd160}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return u.ripemd160}});var l=r(625);Object.defineProperty(t,"Secp256k1",{enumerable:!0,get:function(){return l.Secp256k1}});var f=r(315);Object.defineProperty(t,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return f.ExtendedSecp256k1Signature}}),Object.defineProperty(t,"Secp256k1Signature",{enumerable:!0,get:function(){return f.Secp256k1Signature}});var d=r(316);Object.defineProperty(t,"Sha1",{enumerable:!0,get:function(){return d.Sha1}}),Object.defineProperty(t,"sha1",{enumerable:!0,get:function(){return d.sha1}}),Object.defineProperty(t,"Sha256",{enumerable:!0,get:function(){return d.Sha256}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return d.sha256}}),Object.defineProperty(t,"Sha512",{enumerable:!0,get:function(){return d.Sha512}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return d.sha512}});var h=r(626);Object.defineProperty(t,"pathToString",{enumerable:!0,get:function(){return h.pathToString}}),Object.defineProperty(t,"stringToPath",{enumerable:!0,get:function(){return h.stringToPath}}),Object.defineProperty(t,"Slip10",{enumerable:!0,get:function(){return h.Slip10}}),Object.defineProperty(t,"Slip10Curve",{enumerable:!0,get:function(){return h.Slip10Curve}}),Object.defineProperty(t,"Slip10RawIndex",{enumerable:!0,get:function(){return h.Slip10RawIndex}}),Object.defineProperty(t,"slip10CurveFromString",{enumerable:!0,get:function(){return h.slip10CurveFromString}})},function(e,t,r){"use strict";var n,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var o,i,s,a;if(u(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=l(e))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,a=c,console&&console.warn&&console.warn(a)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=d.bind(n);return o.listener=r,n.wrapFn=o,o}function p(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):m(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var u=c.length,l=m(c,u);for(r=0;r<u;++r)i(l[r],this,t)}return!0},a.prototype.addListener=function(e,t){return f(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return f(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,h(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,o,i,s;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},a.prototype.listenerCount=g,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPES=void 0,t.TYPES={ChainsStore:Symbol("ChainsStore"),ChainsEmbedChainInfos:Symbol("ChainsEmbededChainInfos"),InteractionStore:Symbol("InteractionStore"),KeyRingStore:Symbol("KeyRingStore"),LedgerStore:Symbol("LedgerStore"),PermissionStore:Symbol("PermissionStore"),PermissionServicePrivilegedOrigins:Symbol("PermissionServicePrivilegedOrigins"),PersistentMemoryStore:Symbol("PersistentMemoryStore"),SecretWasmStore:Symbol("SecretWasmStore"),TokensStore:Symbol("TokensStore"),TxStore:Symbol("TxStore"),UpdaterStore:Symbol("UpdaterStore"),EventMsgRequester:Symbol("EventMsgRequester"),RNG:Symbol("RandomNumberGenerator")}},,function(e,t,r){"use strict";var n=r(4),o=r(156),i=r(75),s=r(76),a=r(56);function c(e){a.call(this,"digest"),this._hash=e}n(c,a),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new o:"rmd160"===e||"ripemd160"===e?new i:new c(s(e))}},,function(e,t,r){var n=r(7).Buffer,o=r(397).Transform,i=r(66).StringDecoder;function s(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(4)(s,o),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var o=this._update(e);return this.hashMode?this:(r&&(o=this._toString(o,r)),o)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new i(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=s},function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)o(r,n)&&(e[n]=r[n])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){var t,r,n,o,i,s;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),o=0,t=0,r=e.length;t<r;t++)i=e[t],s.set(i,o),o+=i.length;return s}},s={arraySet:function(e,t,r,n,o){for(var i=0;i<n;i++)e[o+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,s))},t.setTyped(n)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(332),t),o(r(128),t),o(r(333),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0,r(665);const a=r(43),c=r(52),u=i(r(666)),l=i(r(669)),f=i(r(678)),d=i(r(715)),h=i(r(730)),p=i(r(805)),g=i(r(808)),m=i(r(811)),y=i(r(814)),b=i(r(817));s(r(820),t),s(r(58),t),s(r(350),t),s(r(103),t),s(r(821),t),s(r(822),t),s(r(334),t),s(r(823),t),s(r(83),t),s(r(102),t),t.init=function(e,t,r,n,o,i){a.container.register(c.TYPES.ChainsEmbedChainInfos,{useValue:n}),a.container.register(c.TYPES.EventMsgRequester,{useValue:r}),a.container.register(c.TYPES.RNG,{useValue:i}),a.container.register(c.TYPES.ChainsStore,{useValue:t("chains")}),a.container.register(c.TYPES.InteractionStore,{useValue:t("interaction")}),a.container.register(c.TYPES.KeyRingStore,{useValue:t("keyring")}),a.container.register(c.TYPES.LedgerStore,{useValue:t("ledger")}),a.container.register(c.TYPES.PermissionStore,{useValue:t("permission")}),a.container.register(c.TYPES.PermissionServicePrivilegedOrigins,{useValue:o}),a.container.register(c.TYPES.PersistentMemoryStore,{useValue:t("persistent-memory")}),a.container.register(c.TYPES.SecretWasmStore,{useValue:t("secretwasm")}),a.container.register(c.TYPES.TokensStore,{useValue:t("tokens")}),a.container.register(c.TYPES.TxStore,{useValue:t("background-tx")}),a.container.register(c.TYPES.UpdaterStore,{useValue:t("updator")});const s=a.container.resolve(y.InteractionService);y.init(e,s);const v=a.container.resolve(u.PersistentMemoryService);u.init(e,v);const w=a.container.resolve(b.PermissionService);b.init(e,w);const _=a.container.resolve(g.ChainUpdaterService);g.init(e,_);const k=a.container.resolve(m.TokensService);m.init(e,k);const S=a.container.resolve(l.ChainsService);l.init(e,S);const O=a.container.resolve(f.LedgerService);f.init(e,O);const j=a.container.resolve(d.KeyRingService);d.init(e,j);const E=a.container.resolve(h.SecretWasmService);h.init(e,E);const P=a.container.resolve(p.BackgroundTxService);p.init(e,P)}},,,function(e,t,r){"use strict";(function(t,n){var o=r(7).Buffer,i=t.crypto||t.msCrypto;i&&i.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=o.allocUnsafe(e);if(e>0)if(e>65536)for(var s=0;s<e;s+=65536)i.getRandomValues(r.slice(s,s+65536));else i.getRandomValues(r);if("function"==typeof t)return n.nextTick((function(){t(null,r)}));return r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(12),r(13))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(910),t),o(r(916),t),o(r(917),t)},function(e,t,r){"use strict";(function(e){var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o<n.length;++o)void 0!==e[n[o]]&&r||(e[n[o]]=t[n[o]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&o(this,r)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}n.asPromise=r(429),n.base64=r(430),n.EventEmitter=r(431),n.float=r(432),n.inquire=r(433),n.utf8=r(434),n.pool=r(435),n.LongBits=r(436),n.isNode=Boolean(void 0!==e&&e&&e.process&&e.process.versions&&e.process.versions.node),n.global=n.isNode&&e||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var e=n.Buffer;e?(n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):n._Buffer_from=n._Buffer_allocUnsafe=null}}).call(this,r(12))},function(e,t,r){"use strict";var n=r(119),o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var i=Object.create(r(95));i.inherits=r(4);var s=r(243),a=r(154);i.inherits(f,s);for(var c=o(a.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=a.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){"use strict";var n=r(7).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=s(t[n]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--n<r||-2===o)return 0;if((o=s(t[n]))>=0)return o>0&&(e.lastNeed=o-2),o;if(--n<r||-2===o)return 0;if((o=s(t[n]))>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){var n,o,i,s,a,c,u,l;e.exports=(l=r(9),r(171),r(172),o=(n=l).lib,i=o.Base,s=o.WordArray,a=n.algo,c=a.MD5,u=a.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r,n=this.cfg,o=n.hasher.create(),i=s.create(),a=i.words,c=n.keySize,u=n.iterations;a.length<c;){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var l=1;l<u;l++)r=o.finalize(r),o.reset();i.concat(r)}return i.sigBytes=4*c,i}}),n.EvpKDF=function(e,t,r){return u.create(r).compute(e,t)},l.EvpKDF)},function(e,t,r){e.exports=r(593)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(54),o=r(97),i=r(62),s=r(297);let a=s._default;const c="A wordlist is required but a default could not be found.\nPlease explicitly pass a 2048 word array explicitly.";function u(e){return(e||"").normalize("NFKD")}function l(e,t,r){for(;e.length<r;)e=t+e;return e}function f(e){return parseInt(e,2)}function d(e){return e.map(e=>l(e.toString(2),"0",8)).join("")}function h(e){const t=8*e.length/32,r=n("sha256").update(e).digest();return d(Array.from(r)).slice(0,t)}function p(e){return"mnemonic"+(e||"")}function g(t,r){if(!(r=r||a))throw new Error(c);const n=u(t).split(" ");if(n.length%3!=0)throw new Error("Invalid mnemonic");const o=n.map(e=>{const t=r.indexOf(e);if(-1===t)throw new Error("Invalid mnemonic");return l(t.toString(2),"0",11)}).join(""),i=32*Math.floor(o.length/33),s=o.slice(0,i),d=o.slice(i),p=s.match(/(.{1,8})/g).map(f);if(p.length<16)throw new Error("Invalid entropy");if(p.length>32)throw new Error("Invalid entropy");if(p.length%4!=0)throw new Error("Invalid entropy");const g=e.from(p);if(h(g)!==d)throw new Error("Invalid mnemonic checksum");return g.toString("hex")}function m(t,r){if(e.isBuffer(t)||(t=e.from(t,"hex")),!(r=r||a))throw new Error(c);if(t.length<16)throw new TypeError("Invalid entropy");if(t.length>32)throw new TypeError("Invalid entropy");if(t.length%4!=0)throw new TypeError("Invalid entropy");const n=(d(Array.from(t))+h(t)).match(/(.{1,11})/g).map(e=>{const t=f(e);return r[t]});return"あいこくしん"===r[0]?n.join(" "):n.join(" ")}t.mnemonicToSeedSync=function(t,r){const n=e.from(u(t),"utf8"),i=e.from(p(u(r)),"utf8");return o.pbkdf2Sync(n,i,2048,64,"sha512")},t.mnemonicToSeed=function(t,r){return Promise.resolve().then(()=>function(e,t,r,n,i){return Promise.resolve().then(()=>new Promise((s,a)=>{o.pbkdf2(e,t,r,n,i,(e,t)=>e?a(e):s(t))}))}(e.from(u(t),"utf8"),e.from(p(u(r)),"utf8"),2048,64,"sha512"))},t.mnemonicToEntropy=g,t.entropyToMnemonic=m,t.generateMnemonic=function(e,t,r){if((e=e||128)%32!=0)throw new TypeError("Invalid entropy");return m((t=t||i)(e/8),r)},t.validateMnemonic=function(e,t){try{g(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=s.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');a=t},t.getDefaultWordlist=function(){if(!a)throw new Error("No Default Wordlist set");return Object.keys(s.wordlists).filter(e=>"JA"!==e&&"EN"!==e&&s.wordlists[e].every((e,t)=>e===a[t]))[0]};var y=r(297);t.wordlists=y.wordlists}).call(this,r(2).Buffer)},function(e,t,r){var n=t;n.utils=r(49),n.common=r(96),n.sha=r(452),n.ripemd=r(456),n.hmac=r(457),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(62),t.createHash=t.Hash=r(54),t.createHmac=t.Hmac=r(120);var n=r(475),o=Object.keys(n),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);t.getHashes=function(){return i};var s=r(97);t.pbkdf2=s.pbkdf2,t.pbkdf2Sync=s.pbkdf2Sync;var a=r(477);t.Cipher=a.Cipher,t.createCipher=a.createCipher,t.Cipheriv=a.Cipheriv,t.createCipheriv=a.createCipheriv,t.Decipher=a.Decipher,t.createDecipher=a.createDecipher,t.Decipheriv=a.Decipheriv,t.createDecipheriv=a.createDecipheriv,t.getCiphers=a.getCiphers,t.listCiphers=a.listCiphers;var c=r(492);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=r(496);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=r(531);var l=r(532);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var f=r(535);t.randomFill=f.randomFill,t.randomFillSync=f.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){"use strict";var n={};function o(e,t,r){r||(r=Error);var o=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);o.prototype.name=r.name,o.prototype.code=e,n[e]=o}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,s,a;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(c," ").concat(n," ").concat(i(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(251),i=r(255);r(4)(u,o);for(var s=n(i.prototype),a=0;a<s.length;a++){var c=s[a];u.prototype[c]||(u.prototype[c]=i.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||t.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(13))},function(e,t,r){"use strict";var n=r(2).Buffer,o=r(4),i=r(250),s=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function g(e,t,r,n,o,i,s,a){return p(e+(t^r^n)+i+s|0,a)+o|0}function m(e,t,r,n,o,i,s,a){return p(e+(t&r|~t&n)+i+s|0,a)+o|0}function y(e,t,r,n,o,i,s,a){return p(e+((t|~r)^n)+i+s|0,a)+o|0}function b(e,t,r,n,o,i,s,a){return p(e+(t&n|r&~n)+i+s|0,a)+o|0}function v(e,t,r,n,o,i,s,a){return p(e+(t^(r|~n))+i+s|0,a)+o|0}o(h,i),h.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,o=0|this._c,i=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,S=0|this._d,O=0|this._e,j=0;j<80;j+=1){var E,P;j<16?(E=g(r,n,o,i,h,e[a[j]],f[0],u[j]),P=v(w,_,k,S,O,e[c[j]],d[0],l[j])):j<32?(E=m(r,n,o,i,h,e[a[j]],f[1],u[j]),P=b(w,_,k,S,O,e[c[j]],d[1],l[j])):j<48?(E=y(r,n,o,i,h,e[a[j]],f[2],u[j]),P=y(w,_,k,S,O,e[c[j]],d[2],l[j])):j<64?(E=b(r,n,o,i,h,e[a[j]],f[3],u[j]),P=m(w,_,k,S,O,e[c[j]],d[3],l[j])):(E=v(r,n,o,i,h,e[a[j]],f[4],u[j]),P=g(w,_,k,S,O,e[c[j]],d[4],l[j])),r=h,h=i,i=p(o,10),o=n,n=E,w=O,O=S,S=p(k,10),k=_,_=P}var x=this._b+o+S|0;this._b=this._c+i+O|0,this._c=this._d+h+w|0,this._d=this._e+r+_|0,this._e=this._a+n+k|0,this._a=x},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(466),t.sha1=r(467),t.sha224=r(468),t.sha256=r(257),t.sha384=r(469),t.sha512=r(258)},function(e,t,r){var n=r(7).Buffer;function o(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}o.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,o=this._blockSize,i=e.length,s=this._len,a=0;a<i;){for(var c=s%o,u=Math.min(i-a,o-c),l=0;l<u;l++)r[c+l]=e[a+l];a+=u,(s+=u)%o==0&&this._update(r)}return this._len+=i,this},o.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,o=(r-n)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,r){"use strict";var n={};function o(e,t,r){r||(r=Error);var o=function(e){var r,n;function o(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,o}(r);o.prototype.name=r.name,o.prototype.code=e,n[e]=o}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,o,s,a;if("string"==typeof t&&(o="not ",t.substr(!s||s<0?0:+s,o.length)===o)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(c," ").concat(n," ").concat(i(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},function(e,t,r){"use strict";(function(t){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(274),i=r(278);r(4)(u,o);for(var s=n(i.prototype),a=0;a<s.length;a++){var c=s[a];u.prototype[c]||(u.prototype[c]=i.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||t.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,r(13))},function(e,t,r){var n,o,i;e.exports=(i=r(9),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<r.length;i++)n[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],i=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2,c=r[e.charCodeAt(s)]>>>6-s%4*2,u=a|c;n[i>>>2]|=u<<24-i%4*8,i++}return o.create(n,i)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],_=e[t+10],k=e[t+11],S=e[t+12],O=e[t+13],j=e[t+14],E=e[t+15],P=i[0],x=i[1],A=i[2],M=i[3];P=u(P,x,A,M,s,7,a[0]),M=u(M,P,x,A,c,12,a[1]),A=u(A,M,P,x,h,17,a[2]),x=u(x,A,M,P,p,22,a[3]),P=u(P,x,A,M,g,7,a[4]),M=u(M,P,x,A,m,12,a[5]),A=u(A,M,P,x,y,17,a[6]),x=u(x,A,M,P,b,22,a[7]),P=u(P,x,A,M,v,7,a[8]),M=u(M,P,x,A,w,12,a[9]),A=u(A,M,P,x,_,17,a[10]),x=u(x,A,M,P,k,22,a[11]),P=u(P,x,A,M,S,7,a[12]),M=u(M,P,x,A,O,12,a[13]),A=u(A,M,P,x,j,17,a[14]),P=l(P,x=u(x,A,M,P,E,22,a[15]),A,M,c,5,a[16]),M=l(M,P,x,A,y,9,a[17]),A=l(A,M,P,x,k,14,a[18]),x=l(x,A,M,P,s,20,a[19]),P=l(P,x,A,M,m,5,a[20]),M=l(M,P,x,A,_,9,a[21]),A=l(A,M,P,x,E,14,a[22]),x=l(x,A,M,P,g,20,a[23]),P=l(P,x,A,M,w,5,a[24]),M=l(M,P,x,A,j,9,a[25]),A=l(A,M,P,x,p,14,a[26]),x=l(x,A,M,P,v,20,a[27]),P=l(P,x,A,M,O,5,a[28]),M=l(M,P,x,A,h,9,a[29]),A=l(A,M,P,x,b,14,a[30]),P=f(P,x=l(x,A,M,P,S,20,a[31]),A,M,m,4,a[32]),M=f(M,P,x,A,v,11,a[33]),A=f(A,M,P,x,k,16,a[34]),x=f(x,A,M,P,j,23,a[35]),P=f(P,x,A,M,c,4,a[36]),M=f(M,P,x,A,g,11,a[37]),A=f(A,M,P,x,b,16,a[38]),x=f(x,A,M,P,_,23,a[39]),P=f(P,x,A,M,O,4,a[40]),M=f(M,P,x,A,s,11,a[41]),A=f(A,M,P,x,p,16,a[42]),x=f(x,A,M,P,y,23,a[43]),P=f(P,x,A,M,w,4,a[44]),M=f(M,P,x,A,S,11,a[45]),A=f(A,M,P,x,E,16,a[46]),P=d(P,x=f(x,A,M,P,h,23,a[47]),A,M,s,6,a[48]),M=d(M,P,x,A,b,10,a[49]),A=d(A,M,P,x,j,15,a[50]),x=d(x,A,M,P,m,21,a[51]),P=d(P,x,A,M,S,6,a[52]),M=d(M,P,x,A,p,10,a[53]),A=d(A,M,P,x,_,15,a[54]),x=d(x,A,M,P,c,21,a[55]),P=d(P,x,A,M,v,6,a[56]),M=d(M,P,x,A,E,10,a[57]),A=d(A,M,P,x,y,15,a[58]),x=d(x,A,M,P,O,21,a[59]),P=d(P,x,A,M,g,6,a[60]),M=d(M,P,x,A,k,10,a[61]),A=d(A,M,P,x,h,15,a[62]),x=d(x,A,M,P,w,21,a[63]),i[0]=i[0]+P|0,i[1]=i[1]+x|0,i[2]=i[2]+A|0,i[3]=i[3]+M|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),s=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+o+s;return(a<<i|a>>>32-i)+t}function l(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+o+s;return(a<<i|a>>>32-i)+t}function f(e,t,r,n,o,i,s){var a=e+(t^r^n)+o+s;return(a<<i|a>>>32-i)+t}function d(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+o+s;return(a<<i|a>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Uint32=t.Int53=t.Decimal=void 0;var n=r(627);Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return n.Decimal}});var o=r(628);Object.defineProperty(t,"Int53",{enumerable:!0,get:function(){return o.Int53}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return o.Uint32}}),Object.defineProperty(t,"Uint53",{enumerable:!0,get:function(){return o.Uint53}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return o.Uint64}})},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(338),t),o(r(180),t),o(r(675),t),o(r(339),t)},function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(131),o=r(132),i=(t=e.exports={}).re=[],s=t.src=[],a=t.t={};let c=0;const u=(e,t,r)=>{const n=c++;o(n,t),a[e]=n,s[n]=t,i[n]=new RegExp(t,r?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),u("FULL",`^${s[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),u("LOOSE",`^${s[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",s[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),u("XRANGEIDENTIFIER",s[a.NUMERICIDENTIFIER]+"|x|X|\\*"),u("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),u("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),u("COERCERTL",s[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",u("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",u("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},function(e,t,r){const{MAX_LENGTH:n}=r(131),{re:o,t:i}=r(84),s=r(24),a=r(133);e.exports=(e,t)=>{if(t=a(t),e instanceof s)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));let n=0;const o=[],i=(e,t,r)=>{const i={type:e,id:String(++n),date:new Date};t&&(i.message=t),r&&(i.data=r),function(e){for(let t=0;t<o.length;t++)try{o[t](e)}catch(e){console.error(e)}}(i)},s=e=>(o.push(e),()=>{const t=o.indexOf(e);-1!==t&&(o[t]=o[o.length-1],o.pop())});"undefined"!=typeof window&&(window.__ledgerLogsListen=s)},,function(e,t,r){"use strict";r.d(t,"d",(function(){return i})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return c}));var n=r(44);const o=[{vendorId:n.b}];async function i(){return await navigator.usb.requestDevice({filters:o})}async function s(){return(await navigator.usb.getDevices()).filter(e=>e.vendorId===n.b)}async function a(){const e=await s();return e.length>0?e[0]:i()}const c=()=>Promise.resolve(!!navigator&&!!navigator.usb&&"function"==typeof navigator.usb.getDevices)},,,,,,function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},i=0;i<n.length;i++){var s=n.charAt(i);if(void 0!==o[s])throw new TypeError(s+" is ambiguous");o[s]=i}function a(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=a(t)^n>>5}for(t=a(t),r=0;r<e.length;++r){var o=e.charCodeAt(r);t=a(t)^31&o}return t}function u(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;var i=(e=r).lastIndexOf("1");if(-1===i)return"No separator character for "+e;if(0===i)return"Missing prefix for "+e;var s=e.slice(0,i),u=e.slice(i+1);if(u.length<6)return"Data too short";var l=c(s);if("string"==typeof l)return l;for(var f=[],d=0;d<u.length;++d){var h=u.charAt(d),p=o[h];if(void 0===p)return"Unknown character "+h;l=a(l)^p,d+6>=u.length||f.push(p)}return 1!==l?"Invalid checksum for "+e:{prefix:s,words:f}}function l(e,t,r,n){for(var o=0,i=0,s=(1<<r)-1,a=[],c=0;c<e.length;++c)for(o=o<<t|e[c],i+=t;i>=r;)i-=r,a.push(o>>i&s);if(n)i>0&&a.push(o<<r-i&s);else{if(i>=t)return"Excess padding";if(o<<r-i&s)return"Non-zero padding"}return a}e.exports={decodeUnsafe:function(){var e=u.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=u.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");var o=c(e=e.toLowerCase());if("string"==typeof o)throw new Error(o);for(var i=e+"1",s=0;s<t.length;++s){var u=t[s];if(u>>5!=0)throw new Error("Non 5-bit word");o=a(o)^u,i+=n.charAt(u)}for(s=0;s<6;++s)o=a(o);for(o^=1,s=0;s<6;++s){i+=n.charAt(o>>5*(5-s)&31)}return i},toWordsUnsafe:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=l(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=l(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=r(49),o=r(32);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=e>>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},function(e,t,r){t.pbkdf2=r(476),t.pbkdf2Sync=r(263)},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),o=new t(n),i=0;i<n;++i)o[i]=e[i]^r[i];return o}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";const n=r(4),o=r(167).Reporter,i=r(165).Buffer;function s(e,t){o.call(this,t),i.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return a.isEncoderBuffer(e)||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=i.byteLength(e);else{if(!i.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,o),t.DecoderBuffer=s,s.isDecoderBuffer=function(e){if(e instanceof s)return!0;return"object"==typeof e&&i.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},s.prototype.restore=function(e){const t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=a,a.isEncoderBuffer=function(e){if(e instanceof a)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},a.prototype.join=function(e,t){return e||(e=i.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):i.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=t.isNonNullObject=t.sleep=t.assertDefinedAndNotNull=t.assertDefined=t.assert=t.arrayContentEquals=void 0;var n=r(610);Object.defineProperty(t,"arrayContentEquals",{enumerable:!0,get:function(){return n.arrayContentEquals}});var o=r(611);Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(t,"assertDefined",{enumerable:!0,get:function(){return o.assertDefined}}),Object.defineProperty(t,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return o.assertDefinedAndNotNull}});var i=r(612);Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return i.sleep}});var s=r(613);Object.defineProperty(t,"isNonNullObject",{enumerable:!0,get:function(){return s.isNonNullObject}}),Object.defineProperty(t,"isUint8Array",{enumerable:!0,get:function(){return s.isUint8Array}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignDoc=t.makeSignDoc=t.sortedJsonStringify=void 0;const n=r(39),o=r(82);function i(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(i);const t=Object.keys(e).sort(),r={};return t.forEach(t=>{r[t]=i(e[t])}),r}function s(e){return JSON.stringify(i(e))}t.sortedJsonStringify=s,t.makeSignDoc=function(e,t,r,n,i,s){return{chain_id:r,account_number:o.Uint53.fromString(i.toString()).toString(),sequence:o.Uint53.fromString(s.toString()).toString(),fee:t,msgs:e,memo:n||""}},t.serializeSignDoc=function(e){return n.toUtf8(s(e))}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(351),t),o(r(352),t),o(r(192),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(349),t),o(r(191),t),o(r(718),t),o(r(190),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42),{fromBase64:o,fromHex:i}=n.Encoding;t.isStdTx=function(e){const{memo:t,msg:r,fee:n,signatures:o}=e;return"string"==typeof t&&Array.isArray(r)&&"object"==typeof n&&Array.isArray(o)},t.isMsgSend=function(e){return"cosmos-sdk/MsgSend"===e.type},t.isMsgStoreCode=function(e){return"wasm/MsgStoreCode"===e.type},t.isMsgInstantiateContract=function(e){return"wasm/MsgInstantiateContract"===e.type},t.isMsgExecuteContract=function(e){return"wasm/MsgExecuteContract"===e.type},t.extractContractMsg=function(e){return"wasm/MsgExecuteContract"===e.type?n.Encoding.fromBase64(e.value.msg):n.Encoding.fromBase64(e.value.init_msg)},t.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519"},t.pubkeyTypes=[t.pubkeyType.secp256k1,t.pubkeyType.ed25519,t.pubkeyType.sr25519],t.parseWasmData=function({key:e,val:t}){return{key:i(e),val:o(t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(738);t.Bip39=n.Bip39;var o=r(364);t.EnglishMnemonic=o.EnglishMnemonic;var i=r(365);t.Hmac=i.Hmac;var s=r(754);t.Keccak256=s.Keccak256;var a=r(755);t.Xchacha20poly1305Ietf=a.Xchacha20poly1305Ietf,t.Argon2id=a.Argon2id,t.Ed25519=a.Ed25519,t.Ed25519Keypair=a.Ed25519Keypair;var c=r(756);t.Random=c.Random;var u=r(757);t.Ripemd160=u.Ripemd160;var l=r(758);t.Secp256k1=l.Secp256k1;var f=r(366);t.ExtendedSecp256k1Signature=f.ExtendedSecp256k1Signature,t.Secp256k1Signature=f.Secp256k1Signature;var d=r(367);t.Sha1=d.Sha1,t.Sha256=d.Sha256,t.Sha512=d.Sha512;var h=r(759);t.Slip10=h.Slip10,t.Slip10Curve=h.Slip10Curve,t.Slip10RawIndex=h.Slip10RawIndex,t.slip10CurveFromString=h.slip10CurveFromString},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(199),o=r(200);class i{constructor(){this.data=new Uint8Array(i.SIZE)}clear(){o.wipe(this.data)}clone(){const e=new i;return e.copy(this),e}copy(e){this.data.set(e.data)}dbl(){let e=0;for(let t=i.SIZE-1;t>=0;t--){const r=this.data[t]>>>7&255;this.data[t]=this.data[t]<<1|e,e=r}this.data[i.SIZE-1]^=n.select(e,i.R,0),e=0}}i.SIZE=16,i.R=135,t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONUint8Array=void 0;const n=r(2);class o{static parse(e){return JSON.parse(e,(e,t)=>t&&"string"==typeof t&&t.startsWith("__uint8array__")?new Uint8Array(n.Buffer.from(t.replace("__uint8array__",""),"hex")):t)}static stringify(e){return JSON.stringify(e,(e,t)=>t&&(t instanceof Uint8Array||"object"==typeof t&&"type"in t&&"data"in t&&"Buffer"===t.type&&Array.isArray(t.data))?"__uint8array__"+n.Buffer.from(t).toString("hex"):t)}static wrap(e){if(void 0!==e)return JSON.parse(o.stringify(e))}static unwrap(e){if(void 0!==e)return o.parse(JSON.stringify(e))}}t.JSONUint8Array=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(547),t),o(r(567),t),o(r(592),t)},,,,function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dec=void 0;const o=n(r(233)),i=r(116);class s{constructor(e,t=0){if("string"==typeof e){if(0===e.length)throw new Error("empty string");if(!/^(-?\d+\.\d+)$|^(-?\d+)$/.test(e))throw new Error("invalid decimal: "+e);e.indexOf(".")>=0&&(t=e.length-e.indexOf(".")-1,e=e.replace(".","")),this.int=o.default(e)}else"number"==typeof e?this.int=o.default(e):e instanceof i.Int?this.int=o.default(e.toString()):this.int=o.default(e);this.int=this.int.multiply(s.calcPrecisionMultiplier(o.default(t)))}static calcPrecisionMultiplier(e){if(e.lt(o.default(0)))throw new Error("Invalid prec");if(e.gt(s.precision))throw new Error("Too much precision");if(s.precisionMultipliers[e.toString()])return s.precisionMultipliers[e.toString()];const t=s.precision.minus(e),r=o.default(10).pow(t);return s.precisionMultipliers[e.toString()]=r,r}isZero(){return this.int.eq(o.default(0))}isNegative(){return this.int.isNegative()}isPositive(){return this.int.isPositive()}equals(e){return this.int.eq(e.int)}gt(e){return this.int.gt(e.int)}gte(e){return this.int.geq(e.int)}lt(e){return this.int.lt(e.int)}lte(e){return this.int.leq(e.int)}neg(){return new s(this.int.negate(),s.precision.toJSNumber())}abs(){return new s(this.int.abs(),s.precision.toJSNumber())}add(e){return new s(this.int.add(e.int),s.precision.toJSNumber())}sub(e){return new s(this.int.subtract(e.int),s.precision.toJSNumber())}mul(e){return new s(this.mulRaw(e).chopPrecisionAndRound(),s.precision.toJSNumber())}mulTruncate(e){return new s(this.mulRaw(e).chopPrecisionAndTruncate(),s.precision.toJSNumber())}mulRaw(e){return new s(this.int.multiply(e.int),s.precision.toJSNumber())}quo(e){return new s(this.quoRaw(e).chopPrecisionAndRound(),s.precision.toJSNumber())}quoTruncate(e){return new s(this.quoRaw(e).chopPrecisionAndTruncate(),s.precision.toJSNumber())}quoRoundUp(e){return new s(this.quoRaw(e).chopPrecisionAndRoundUp(),s.precision.toJSNumber())}quoRaw(e){const t=s.calcPrecisionMultiplier(o.default(0)),r=this.int.multiply(t).multiply(t);return new s(r.divide(e.int),s.precision.toJSNumber())}isInteger(){const e=s.calcPrecisionMultiplier(o.default(0));return this.int.remainder(e).equals(o.default(0))}chopPrecisionAndRound(){if(this.isNegative()){return this.abs().chopPrecisionAndRound().negate()}const e=s.calcPrecisionMultiplier(o.default(0)),t=e.divide(o.default(2)),{quotient:r,remainder:n}=this.int.divmod(e);return n.equals(o.default(0))||n.lt(t)?r:n.gt(t)?r.add(o.default(1)):r.divide(o.default(2)).equals(o.default(0))?r:r.add(o.default(1))}chopPrecisionAndRoundUp(){if(this.isNegative()){return this.abs().chopPrecisionAndTruncate().negate()}const e=s.calcPrecisionMultiplier(o.default(0)),{quotient:t,remainder:r}=this.int.divmod(e);return r.equals(o.default(0))?t:t.add(o.default(1))}chopPrecisionAndTruncate(){const e=s.calcPrecisionMultiplier(o.default(0));return this.int.divide(e)}toString(e=s.precision.toJSNumber(),t=!1){const r=s.calcPrecisionMultiplier(o.default(0)),n=this.int.abs(),{quotient:i,remainder:a}=n.divmod(r);let c=a.toString(10);for(let e=0,t=c.length;e<s.precision.toJSNumber()-t;e++)c="0"+c;c=c.substring(0,e);return`${this.isNegative()&&!(i.eq(o.default(0))&&0===c.length)?"-":""}${t?BigInt(i.toString()).toLocaleString("en-US"):i.toString()}${c.length>0?"."+c:""}`}round(){return new i.Int(this.chopPrecisionAndRound())}roundUp(){return new i.Int(this.chopPrecisionAndRoundUp())}truncate(){return new i.Int(this.chopPrecisionAndTruncate())}}t.Dec=s,s.precision=o.default(18),s.precisionMultipliers={}},function(e,t){e.exports=n;var r=null;try{r=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function o(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=o;var i={},s={};function a(e,t){var r,n,o;return t?(o=0<=(e>>>=0)&&e<256)&&(n=s[e])?n:(r=u(e,(0|e)<0?-1:0,!0),o&&(s[e]=r),r):(o=-128<=(e|=0)&&e<128)&&(n=i[e])?n:(r=u(e,e<0?-1:0,!1),o&&(i[e]=r),r)}function c(e,t){if(isNaN(e))return t?b:y;if(t){if(e<0)return b;if(e>=p)return S}else{if(e<=-g)return O;if(e+1>=g)return k}return e<0?c(-e,t).neg():u(e%h|0,e/h|0,t)}function u(e,t,r){return new n(e,t,r)}n.fromInt=a,n.fromNumber=c,n.fromBits=u;var l=Math.pow;function f(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return y;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return f(e.substring(1),t,r).neg();for(var o=c(l(r,8)),i=y,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),r);if(a<8){var d=c(l(r,a));i=i.mul(d).add(c(u))}else i=(i=i.mul(o)).add(c(u))}return i.unsigned=t,i}function d(e,t){return"number"==typeof e?c(e,t):"string"==typeof e?f(e,t):u(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}n.fromString=f,n.fromValue=d;var h=4294967296,p=h*h,g=p/2,m=a(1<<24),y=a(0);n.ZERO=y;var b=a(0,!0);n.UZERO=b;var v=a(1);n.ONE=v;var w=a(1,!0);n.UONE=w;var _=a(-1);n.NEG_ONE=_;var k=u(-1,2147483647,!1);n.MAX_VALUE=k;var S=u(-1,-1,!0);n.MAX_UNSIGNED_VALUE=S;var O=u(0,-2147483648,!1);n.MIN_VALUE=O;var j=n.prototype;j.toInt=function(){return this.unsigned?this.low>>>0:this.low},j.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},j.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(O)){var t=c(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=c(l(e,6),this.unsigned),i=this,s="";;){var a=i.div(o),u=(i.sub(a.mul(o)).toInt()>>>0).toString(e);if((i=a).isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}},j.getHighBits=function(){return this.high},j.getHighBitsUnsigned=function(){return this.high>>>0},j.getLowBits=function(){return this.low},j.getLowBitsUnsigned=function(){return this.low>>>0},j.getNumBitsAbs=function(){if(this.isNegative())return this.eq(O)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},j.isZero=function(){return 0===this.high&&0===this.low},j.eqz=j.isZero,j.isNegative=function(){return!this.unsigned&&this.high<0},j.isPositive=function(){return this.unsigned||this.high>=0},j.isOdd=function(){return 1==(1&this.low)},j.isEven=function(){return 0==(1&this.low)},j.equals=function(e){return o(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},j.eq=j.equals,j.notEquals=function(e){return!this.eq(e)},j.neq=j.notEquals,j.ne=j.notEquals,j.lessThan=function(e){return this.comp(e)<0},j.lt=j.lessThan,j.lessThanOrEqual=function(e){return this.comp(e)<=0},j.lte=j.lessThanOrEqual,j.le=j.lessThanOrEqual,j.greaterThan=function(e){return this.comp(e)>0},j.gt=j.greaterThan,j.greaterThanOrEqual=function(e){return this.comp(e)>=0},j.gte=j.greaterThanOrEqual,j.ge=j.greaterThanOrEqual,j.compare=function(e){if(o(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},j.comp=j.compare,j.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(v)},j.neg=j.negate,j.add=function(e){o(e)||(e=d(e));var t=this.high>>>16,r=65535&this.high,n=this.low>>>16,i=65535&this.low,s=e.high>>>16,a=65535&e.high,c=e.low>>>16,l=0,f=0,h=0,p=0;return h+=(p+=i+(65535&e.low))>>>16,f+=(h+=n+c)>>>16,l+=(f+=r+a)>>>16,l+=t+s,u((h&=65535)<<16|(p&=65535),(l&=65535)<<16|(f&=65535),this.unsigned)},j.subtract=function(e){return o(e)||(e=d(e)),this.add(e.neg())},j.sub=j.subtract,j.multiply=function(e){if(this.isZero())return y;if(o(e)||(e=d(e)),r)return u(r.mul(this.low,this.high,e.low,e.high),r.get_high(),this.unsigned);if(e.isZero())return y;if(this.eq(O))return e.isOdd()?O:y;if(e.eq(O))return this.isOdd()?O:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return c(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,a=e.high>>>16,l=65535&e.high,f=e.low>>>16,h=65535&e.low,p=0,g=0,b=0,v=0;return b+=(v+=s*h)>>>16,g+=(b+=i*h)>>>16,b&=65535,g+=(b+=s*f)>>>16,p+=(g+=n*h)>>>16,g&=65535,p+=(g+=i*f)>>>16,g&=65535,p+=(g+=s*l)>>>16,p+=t*h+n*f+i*l+s*a,u((b&=65535)<<16|(v&=65535),(p&=65535)<<16|(g&=65535),this.unsigned)},j.mul=j.multiply,j.divide=function(e){if(o(e)||(e=d(e)),e.isZero())throw Error("division by zero");var t,n,i;if(r)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?u((this.unsigned?r.div_u:r.div_s)(this.low,this.high,e.low,e.high),r.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?b:y;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return w;i=b}else{if(this.eq(O))return e.eq(v)||e.eq(_)?O:e.eq(O)?v:(t=this.shr(1).div(e).shl(1)).eq(y)?e.isNegative()?v:_:(n=this.sub(e.mul(t)),i=t.add(n.div(e)));if(e.eq(O))return this.unsigned?b:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=y}for(n=this;n.gte(e);){t=Math.max(1,Math.floor(n.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(t)/Math.LN2),a=s<=48?1:l(2,s-48),f=c(t),h=f.mul(e);h.isNegative()||h.gt(n);)h=(f=c(t-=a,this.unsigned)).mul(e);f.isZero()&&(f=v),i=i.add(f),n=n.sub(h)}return i},j.div=j.divide,j.modulo=function(e){return o(e)||(e=d(e)),r?u((this.unsigned?r.rem_u:r.rem_s)(this.low,this.high,e.low,e.high),r.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},j.mod=j.modulo,j.rem=j.modulo,j.not=function(){return u(~this.low,~this.high,this.unsigned)},j.and=function(e){return o(e)||(e=d(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},j.or=function(e){return o(e)||(e=d(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},j.xor=function(e){return o(e)||(e=d(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},j.shiftLeft=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):u(0,this.low<<e-32,this.unsigned)},j.shl=j.shiftLeft,j.shiftRight=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},j.shr=j.shiftRight,j.shiftRightUnsigned=function(e){if(o(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?u(this.low>>>e|t<<32-e,t>>>e,this.unsigned):u(32===e?t:t>>>e-32,0,this.unsigned)},j.shru=j.shiftRightUnsigned,j.shr_u=j.shiftRightUnsigned,j.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},j.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},j.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},j.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},j.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1Wallet=t.Secp256k1HdWallet=t.extractKdfConfiguration=t.executeKdf=t.pubkeyType=t.makeStdTx=t.isWrappedStdTx=t.isStdTx=t.SigningCosmosClient=t.decodeSignature=t.encodeSecp256k1Signature=t.findSequenceForSignedTx=t.encodeSecp256k1Pubkey=t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.makeCosmoshubPath=t.isMsgWithdrawValidatorCommission=t.isMsgWithdrawDelegatorReward=t.isMsgUndelegate=t.isMsgSetWithdrawAddress=t.isMsgSend=t.isMsgMultiSend=t.isMsgFundCommunityPool=t.isMsgEditValidator=t.isMsgDelegate=t.isMsgCreateValidator=t.isMsgBeginRedelegate=t.uint64ToString=t.uint64ToNumber=t.setupSupplyExtension=t.setupStakingExtension=t.setupSlashingExtension=t.setupMintExtension=t.setupGovExtension=t.setupDistributionExtension=t.setupBankExtension=t.setupAuthExtension=t.normalizePubkey=t.normalizeLcdApiArray=t.LcdClient=t.BroadcastMode=t.GasPrice=t.buildFeeTable=t.serializeSignDoc=t.makeSignDoc=t.isSearchByTagsQuery=t.isSearchBySentFromOrToQuery=t.isSearchByHeightQuery=t.isBroadcastTxSuccess=t.isBroadcastTxFailure=t.CosmosClient=t.assertIsBroadcastTxSuccess=t.parseCoins=t.coins=t.coin=t.rawSecp256k1PubkeyToAddress=t.pubkeyToAddress=t.logs=void 0;const s=i(r(310));t.logs=s;var a=r(173);Object.defineProperty(t,"pubkeyToAddress",{enumerable:!0,get:function(){return a.pubkeyToAddress}}),Object.defineProperty(t,"rawSecp256k1PubkeyToAddress",{enumerable:!0,get:function(){return a.rawSecp256k1PubkeyToAddress}});var c=r(317);Object.defineProperty(t,"coin",{enumerable:!0,get:function(){return c.coin}}),Object.defineProperty(t,"coins",{enumerable:!0,get:function(){return c.coins}}),Object.defineProperty(t,"parseCoins",{enumerable:!0,get:function(){return c.parseCoins}});var u=r(318);Object.defineProperty(t,"assertIsBroadcastTxSuccess",{enumerable:!0,get:function(){return u.assertIsBroadcastTxSuccess}}),Object.defineProperty(t,"CosmosClient",{enumerable:!0,get:function(){return u.CosmosClient}}),Object.defineProperty(t,"isBroadcastTxFailure",{enumerable:!0,get:function(){return u.isBroadcastTxFailure}}),Object.defineProperty(t,"isBroadcastTxSuccess",{enumerable:!0,get:function(){return u.isBroadcastTxSuccess}}),Object.defineProperty(t,"isSearchByHeightQuery",{enumerable:!0,get:function(){return u.isSearchByHeightQuery}}),Object.defineProperty(t,"isSearchBySentFromOrToQuery",{enumerable:!0,get:function(){return u.isSearchBySentFromOrToQuery}}),Object.defineProperty(t,"isSearchByTagsQuery",{enumerable:!0,get:function(){return u.isSearchByTagsQuery}});var l=r(101);Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return l.makeSignDoc}}),Object.defineProperty(t,"serializeSignDoc",{enumerable:!0,get:function(){return l.serializeSignDoc}});var f=r(320);Object.defineProperty(t,"buildFeeTable",{enumerable:!0,get:function(){return f.buildFeeTable}}),Object.defineProperty(t,"GasPrice",{enumerable:!0,get:function(){return f.GasPrice}});var d=r(174);Object.defineProperty(t,"BroadcastMode",{enumerable:!0,get:function(){return d.BroadcastMode}}),Object.defineProperty(t,"LcdClient",{enumerable:!0,get:function(){return d.LcdClient}}),Object.defineProperty(t,"normalizeLcdApiArray",{enumerable:!0,get:function(){return d.normalizeLcdApiArray}}),Object.defineProperty(t,"normalizePubkey",{enumerable:!0,get:function(){return d.normalizePubkey}}),Object.defineProperty(t,"setupAuthExtension",{enumerable:!0,get:function(){return d.setupAuthExtension}}),Object.defineProperty(t,"setupBankExtension",{enumerable:!0,get:function(){return d.setupBankExtension}}),Object.defineProperty(t,"setupDistributionExtension",{enumerable:!0,get:function(){return d.setupDistributionExtension}}),Object.defineProperty(t,"setupGovExtension",{enumerable:!0,get:function(){return d.setupGovExtension}}),Object.defineProperty(t,"setupMintExtension",{enumerable:!0,get:function(){return d.setupMintExtension}}),Object.defineProperty(t,"setupSlashingExtension",{enumerable:!0,get:function(){return d.setupSlashingExtension}}),Object.defineProperty(t,"setupStakingExtension",{enumerable:!0,get:function(){return d.setupStakingExtension}}),Object.defineProperty(t,"setupSupplyExtension",{enumerable:!0,get:function(){return d.setupSupplyExtension}}),Object.defineProperty(t,"uint64ToNumber",{enumerable:!0,get:function(){return d.uint64ToNumber}}),Object.defineProperty(t,"uint64ToString",{enumerable:!0,get:function(){return d.uint64ToString}});var h=r(639);Object.defineProperty(t,"isMsgBeginRedelegate",{enumerable:!0,get:function(){return h.isMsgBeginRedelegate}}),Object.defineProperty(t,"isMsgCreateValidator",{enumerable:!0,get:function(){return h.isMsgCreateValidator}}),Object.defineProperty(t,"isMsgDelegate",{enumerable:!0,get:function(){return h.isMsgDelegate}}),Object.defineProperty(t,"isMsgEditValidator",{enumerable:!0,get:function(){return h.isMsgEditValidator}}),Object.defineProperty(t,"isMsgFundCommunityPool",{enumerable:!0,get:function(){return h.isMsgFundCommunityPool}}),Object.defineProperty(t,"isMsgMultiSend",{enumerable:!0,get:function(){return h.isMsgMultiSend}}),Object.defineProperty(t,"isMsgSend",{enumerable:!0,get:function(){return h.isMsgSend}}),Object.defineProperty(t,"isMsgSetWithdrawAddress",{enumerable:!0,get:function(){return h.isMsgSetWithdrawAddress}}),Object.defineProperty(t,"isMsgUndelegate",{enumerable:!0,get:function(){return h.isMsgUndelegate}}),Object.defineProperty(t,"isMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return h.isMsgWithdrawDelegatorReward}}),Object.defineProperty(t,"isMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return h.isMsgWithdrawValidatorCommission}});var p=r(321);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return p.makeCosmoshubPath}});var g=r(175);Object.defineProperty(t,"decodeAminoPubkey",{enumerable:!0,get:function(){return g.decodeAminoPubkey}}),Object.defineProperty(t,"decodeBech32Pubkey",{enumerable:!0,get:function(){return g.decodeBech32Pubkey}}),Object.defineProperty(t,"encodeAminoPubkey",{enumerable:!0,get:function(){return g.encodeAminoPubkey}}),Object.defineProperty(t,"encodeBech32Pubkey",{enumerable:!0,get:function(){return g.encodeBech32Pubkey}}),Object.defineProperty(t,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return g.encodeSecp256k1Pubkey}});var m=r(640);Object.defineProperty(t,"findSequenceForSignedTx",{enumerable:!0,get:function(){return m.findSequenceForSignedTx}});var y=r(127);Object.defineProperty(t,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return y.encodeSecp256k1Signature}}),Object.defineProperty(t,"decodeSignature",{enumerable:!0,get:function(){return y.decodeSignature}});var b=r(641);Object.defineProperty(t,"SigningCosmosClient",{enumerable:!0,get:function(){return b.SigningCosmosClient}});var v=r(322);Object.defineProperty(t,"isStdTx",{enumerable:!0,get:function(){return v.isStdTx}}),Object.defineProperty(t,"isWrappedStdTx",{enumerable:!0,get:function(){return v.isWrappedStdTx}}),Object.defineProperty(t,"makeStdTx",{enumerable:!0,get:function(){return v.makeStdTx}});var w=r(126);Object.defineProperty(t,"pubkeyType",{enumerable:!0,get:function(){return w.pubkeyType}});var _=r(323);Object.defineProperty(t,"executeKdf",{enumerable:!0,get:function(){return _.executeKdf}});var k=r(643);Object.defineProperty(t,"extractKdfConfiguration",{enumerable:!0,get:function(){return k.extractKdfConfiguration}}),Object.defineProperty(t,"Secp256k1HdWallet",{enumerable:!0,get:function(){return k.Secp256k1HdWallet}});var S=r(644);Object.defineProperty(t,"Secp256k1Wallet",{enumerable:!0,get:function(){return S.Secp256k1Wallet}})},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint=t.Int=void 0;const o=n(r(233));class i{constructor(e,t,r,n){this.int="string"==typeof e?o.default(e,t,r,n):o.default(e)}toString(){return this.int.toString(10)}equals(e){return this.int.equals(e.int)}gt(e){return this.int.gt(e.int)}gte(e){return this.int.greaterOrEquals(e.int)}lt(e){return this.int.lt(e.int)}lte(e){return this.int.lesserOrEquals(e.int)}add(e){return new i(this.int.add(e.int))}sub(e){return new i(this.int.subtract(e.int))}mul(e){return new i(this.int.multiply(e.int))}div(e){return new i(this.int.divide(e.int))}mod(e){return new i(this.int.mod(e.int))}neg(){return new i(this.int.negate())}}t.Int=i;class s{constructor(e,t,r,n){if(this.uint="string"==typeof e?o.default(e,t,r,n):o.default(e),this.uint.isNegative())throw new TypeError("Uint should not be negative")}toString(){return this.uint.toString(10)}equals(e){return this.uint.equals(e.uint)}gt(e){return this.uint.gt(e.uint)}gte(e){return this.uint.greaterOrEquals(e.uint)}lt(e){return this.uint.lt(e.uint)}lte(e){return this.uint.lesserOrEquals(e.uint)}add(e){return new s(this.uint.add(e.uint))}sub(e){return new s(this.uint.subtract(e.uint))}mul(e){return new s(this.uint.multiply(e.uint))}div(e){return new s(this.uint.divide(e.uint))}mod(e){return new s(this.uint.mod(e.uint))}}t.Uint=s},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),s=n[0],a=n[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===a&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=0,a=r-o;s<a;s+=16383)i.push(l(e,s,s+16383>a?a:s+16383));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var o,i,s=[],a=t;a<r;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=i(r(113)),a=i(r(48));a.default.util.Long=s.default,a.default.configure(),o(r(442),t)},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,o)}));default:for(i=new Array(a-1),s=0;s<i.length;)i[s++]=arguments[s];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,r(13))},function(e,t,r){"use strict";var n=r(4),o=r(474),i=r(56),s=r(7).Buffer,a=r(259),c=r(75),u=r(76),l=s.alloc(128);function f(e,t){i.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length<r&&(t=s.concat([t,l],r));for(var n=this._ipad=s.allocUnsafe(r),o=this._opad=s.allocUnsafe(r),a=0;a<r;a++)n[a]=54^t[a],o[a]=92^t[a];this._hash="rmd160"===e?new c:u(e),this._hash.update(n)}n(f,i),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new o(a,t):new f(e,t)}},function(e,t,r){var n=r(7).Buffer;function o(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),o=0;o<t;o++)r[o]=e.readUInt32BE(4*o);return r}function i(e){for(;0<e.length;e++)e[0]=0}function s(e,t,r,n,o){for(var i,s,a,c,u=r[0],l=r[1],f=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],g=e[2]^t[2],m=e[3]^t[3],y=4,b=1;b<o;b++)i=u[h>>>24]^l[p>>>16&255]^f[g>>>8&255]^d[255&m]^t[y++],s=u[p>>>24]^l[g>>>16&255]^f[m>>>8&255]^d[255&h]^t[y++],a=u[g>>>24]^l[m>>>16&255]^f[h>>>8&255]^d[255&p]^t[y++],c=u[m>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&g]^t[y++],h=i,p=s,g=a,m=c;return i=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&m])^t[y++],s=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[m>>>8&255]<<8|n[255&h])^t[y++],a=(n[g>>>24]<<24|n[m>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[y++],c=(n[m>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^t[y++],[i>>>=0,s>>>=0,a>>>=0,c>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],o=[[],[],[],[]],i=[[],[],[],[]],s=0,a=0,c=0;c<256;++c){var u=a^a<<1^a<<2^a<<3^a<<4;u=u>>>8^255&u^99,r[s]=u,n[u]=s;var l=e[s],f=e[l],d=e[f],h=257*e[u]^16843008*u;o[0][s]=h<<24|h>>>8,o[1][s]=h<<16|h>>>16,o[2][s]=h<<8|h>>>24,o[3][s]=h,h=16843009*d^65537*f^257*l^16843008*s,i[0][u]=h<<24|h>>>8,i[1][u]=h<<16|h>>>16,i[2][u]=h<<8|h>>>24,i[3][u]=h,0===s?s=a=1:(s=l^e[e[e[d^l]]],a^=e[e[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:o,INV_SUB_MIX:i}}();function u(e){this._key=o(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),o=[],i=0;i<t;i++)o[i]=e[i];for(i=t;i<n;i++){var s=o[i-1];i%t==0?(s=s<<8|s>>>24,s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s],s^=a[i/t|0]<<24):t>6&&i%t==4&&(s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s]),o[i]=o[i-t]^s}for(var u=[],l=0;l<n;l++){var f=n-l,d=o[f-(l%4?0:4)];u[l]=l<4||f<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=r,this._keySchedule=o,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return s(e=o(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),i=n.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=u},function(e,t,r){var n=r(7).Buffer,o=r(156);e.exports=function(e,t,r,i){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,a=n.alloc(s),c=n.alloc(i||0),u=n.alloc(0);s>0||i>0;){var l=new o;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var f=0;if(s>0){var d=a.length-s;f=Math.min(s,u.length),u.copy(a,d,0,f),s-=f}if(f<u.length&&i>0){var h=c.length-i,p=Math.min(i,u.length-f);u.copy(c,h,f,f+p),i-=p}}return u.fill(0),{key:a,iv:c}}},function(e,t,r){"use strict";var n=r(6),o=r(33),i=o.getNAF,s=o.getJSF,a=o.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r=e._getDoubles(),n=i(t,1,this._bitLength),o=(1<<r.step+1)-(r.step%2==0?2:1);o/=3;for(var s=[],c=0;c<n.length;c+=r.step){var u=0;for(t=c+r.step-1;t>=c;t--)u=(u<<1)+n[t];s.push(u)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=o;d>0;d--){for(c=0;c<s.length;c++){(u=s[c])===d?f=f.mixedAdd(r.points[c]):u===-d&&(f=f.mixedAdd(r.points[c].neg()))}l=l.add(f)}return l.toP()},c.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var o=n.points,s=i(t,r,this._bitLength),c=this.jpoint(null,null,null),u=s.length-1;u>=0;u--){for(t=0;u>=0&&0===s[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var l=s[u];a(0!==l),c="affine"===e.type?l>0?c.mixedAdd(o[l-1>>1]):c.mixedAdd(o[-l-1>>1].neg()):l>0?c.add(o[l-1>>1]):c.add(o[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,o){for(var a=this._wnafT1,c=this._wnafT2,u=this._wnafT3,l=0,f=0;f<n;f++){var d=(j=t[f])._getNAFPoints(e);a[f]=d.wnd,c[f]=d.points}for(f=n-1;f>=1;f-=2){var h=f-1,p=f;if(1===a[h]&&1===a[p]){var g=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(g[1]=t[h].add(t[p]),g[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(g[1]=t[h].toJ().mixedAdd(t[p]),g[2]=t[h].add(t[p].neg())):(g[1]=t[h].toJ().mixedAdd(t[p]),g[2]=t[h].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],y=s(r[h],r[p]);l=Math.max(y[0].length,l),u[h]=new Array(l),u[p]=new Array(l);for(var b=0;b<l;b++){var v=0|y[0][b],w=0|y[1][b];u[h][b]=m[3*(v+1)+(w+1)],u[p][b]=0,c[h]=g}}else u[h]=i(r[h],a[h],this._bitLength),u[p]=i(r[p],a[p],this._bitLength),l=Math.max(u[h].length,l),l=Math.max(u[p].length,l)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(f=l;f>=0;f--){for(var S=0;f>=0;){var O=!0;for(b=0;b<n;b++)k[b]=0|u[b][f],0!==k[b]&&(O=!1);if(!O)break;S++,f--}if(f>=0&&S++,_=_.dblp(S),f<0)break;for(b=0;b<n;b++){var j,E=k[b];0!==E&&(E>0?j=c[b][E-1>>1]:E<0&&(j=c[b][-E-1>>1].neg()),_="affine"===j.type?_.mixedAdd(j):_.add(j))}}for(f=0;f<n;f++)c[f]=null;return o?_:_.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=o.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return o.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o<t;o+=e){for(var i=0;i<e;i++)n=n.dbl();r.push(n)}return{step:e,points:r}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),o=1;o<r;o++)t[o]=t[o-1].add(n);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){var n=r(521),o=r(528),i=r(529),s=r(159),a=r(97),c=r(7).Buffer;function u(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var r,u,l=i(e,t),f=l.tag,d=l.data;switch(f){case"CERTIFICATE":u=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(d,"der")),r=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=o[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(i.split("-")[1],10)/8,d=a.pbkdf2Sync(t,r,n,f,"sha1"),h=s.createDecipheriv(i,d,u),p=[];return p.push(h.update(l)),p.push(h.final()),c.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(r=(u=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+f)}}e.exports=u,u.signature=n.signature},function(e,t,r){var n,o,i,s,a,c;e.exports=(c=r(9),o=(n=c).lib,i=o.Base,s=o.WordArray,(a=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return s.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),c)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubkeyType=void 0,t.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSignature=t.encodeSecp256k1Signature=void 0;const n=r(39),o=r(175),i=r(126);t.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:o.encodeSecp256k1Pubkey(e),signature:n.toBase64(t)}},t.decodeSignature=function(e){switch(e.pub_key.type){case i.pubkeyType.secp256k1:return{pubkey:n.fromBase64(e.pub_key.value),signature:n.fromBase64(e.signature)};default:throw new Error("Unsupported pubkey type")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveSuggestedChainInfoMsg=t.SuggestChainInfoMsg=t.GetChainInfosMsg=void 0;const n=r(18),o=r(336);class i extends n.Message{static type(){return"get-chain-infos"}validateBasic(){}route(){return o.ROUTE}type(){return i.type()}}t.GetChainInfosMsg=i;class s extends n.Message{constructor(e){super(),this.chainInfo=e}static type(){return"suggest-chain-info"}validateBasic(){if(!this.chainInfo)throw new Error("chain info not set")}approveExternal(){return!0}route(){return o.ROUTE}type(){return s.type()}}t.SuggestChainInfoMsg=s;class a extends n.Message{constructor(e){super(),this.chainId=e}static type(){return"remove-suggested-chain-info"}validateBasic(){if(!this.chainId)throw new Error("Chain id not set")}route(){return o.ROUTE}type(){return a.type()}}t.RemoveSuggestedChainInfoMsg=a},function(e,t,r){e.exports=r(680)},function(e,t){function r(e,t,r,n,o,i,s){try{var a=e[i](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var s=e.apply(t,n);function a(e){r(s,o,i,a,c,"next",e)}function c(e){r(s,o,i,a,c,"throw",e)}a(void 0)}))}}},function(e,t){const r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:r,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,r){(function(t){const r="object"==typeof t&&t.env&&t.env.NODE_DEBUG&&/\bsemver\b/i.test(t.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r}).call(this,r(13))},function(e,t){const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{}},function(e,t,r){const n=r(40);e.exports=(e,t,r)=>n(e,t,r)>0},function(e,t,r){const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new f(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new f(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&s||a||u}}e.exports=o;const i=r(133),{re:s,t:a}=r(84),c=r(347),u=r(132),l=r(24),f=r(41)},function(e,t,r){const n=r(41);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecProto=t.IntProto=t.DecCoin=t.Coin=t.protobufPackage=void 0;const o=n(r(48));t.protobufPackage="cosmos.base.v1beta1";const i={denom:"",amount:""};t.Coin={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).string(e.denom),t.uint32(18).string(e.amount),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const s=Object.assign({},i);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:s.denom=r.string();break;case 2:s.amount=r.string();break;default:r.skipType(7&e)}}return s},fromJSON(e){const t=Object.assign({},i);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},fromPartial(e){const t=Object.assign({},i);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t}};const s={denom:"",amount:""};t.DecCoin={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).string(e.denom),t.uint32(18).string(e.amount),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const i=Object.assign({},s);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:i.denom=r.string();break;case 2:i.amount=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t}};const a={int:""};t.IntProto={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).string(e.int),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const i=Object.assign({},a);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:i.int=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},a);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},fromPartial(e){const t=Object.assign({},a);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t},toJSON(e){const t={};return void 0!==e.int&&(t.int=e.int),t}};const c={dec:""};t.DecProto={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).string(e.dec),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const i=Object.assign({},c);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:i.dec=r.string();break;default:r.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},c);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},fromPartial(e){const t=Object.assign({},c);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t},toJSON(e){const t={};return void 0!==e.dec&&(t.dec=e.dec),t}}},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;const o=n(r(48));t.protobufPackage="google.protobuf";const i={typeUrl:""};t.Any={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).string(e.typeUrl),t.uint32(18).bytes(e.value),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const s=Object.assign({},i);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:s.typeUrl=r.string();break;case 2:s.value=r.bytes();break;default:r.skipType(7&e)}}return s},fromJSON(e){const t=Object.assign({},i);return void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){const t=a(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}(e.value)),t},fromPartial(e){const t=Object.assign({},i);return void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=e.typeUrl:t.typeUrl="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){const t=[];for(let r=0;r<e.byteLength;++r)t.push(String.fromCharCode(e[r]));return c(t.join(""))}(void 0!==e.value?e.value:new Uint8Array)),t}};var s=(()=>{if(void 0!==s)return s;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const a=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary"));const c=s.btoa||(e=>s.Buffer.from(e,"binary").toString("base64"))}).call(this,r(12))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(739);t.Int53=n.Int53,t.Uint32=n.Uint32,t.Uint53=n.Uint53,t.Uint64=n.Uint64,t.Decimal=n.Decimal;var o=r(195);t.fromHex=o.fromHex,t.toHex=o.toHex,t.fromAscii=o.fromAscii,t.toAscii=o.toAscii,t.fromBase64=o.fromBase64,t.toBase64=o.toBase64,t.fromRfc3339=o.fromRfc3339,t.toRfc3339=o.toRfc3339,t.fromUtf8=o.fromUtf8,t.toUtf8=o.toUtf8,t.Bech32=o.Bech32;var i=r(363);t.isNonNullObject=i.isNonNullObject,t.isUint8Array=i.isUint8Array;var s=r(751);t.isJsonCompatibleValue=s.isJsonCompatibleValue,t.isJsonCompatibleDictionary=s.isJsonCompatibleDictionary,t.isJsonCompatibleArray=s.isJsonCompatibleArray;var a=r(752);t.TransactionEncoder=a.TransactionEncoder;var c=r(753);t.Encoding=c.Encoding},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(198),i=r(762),s=r(763);t.WebCryptoProvider=class{constructor(e=window.crypto){this.crypto=e}importBlockCipherKey(e){return n(this,void 0,void 0,(function*(){return i.default.importKey(this.crypto,e)}))}importCTRKey(e){return n(this,void 0,void 0,(function*(){try{return yield s.default.importKey(this.crypto,e)}catch(e){throw e.message.includes("unsupported")?new o.NotImplementedError("WebCryptoProvider: AES-CTR unsupported. Use PolyfillCryptoProvider."):e}}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return"undefined"!=typeof window?void 0:r(72)};t.getNodeCrypto=n;var o=function(){if("undefined"!=typeof window&&window.crypto)return window.crypto.subtle};t.getWebCrypto=o;var i=function(){if("undefined"!=typeof window){if(window.msCrypto)return window.msCrypto.subtle;if(window.crypto)return window.crypto.subtle}};t.getWebCryptoAll=i;var s=function(){if("undefined"!=typeof window){if(window.msCrypto)return window.msCrypto;if(window.crypto)return window.crypto}};t.getRootWebCryptoAll=s;var a=function(){if("undefined"!=typeof window&&window.msCrypto)return window.msCrypto.subtle};t.getMsCrypto=a;var c=function(){var e=o(),t=n(),r=a();return void 0!==t?{name:"nodeCrypto",crypto:t}:void 0!==e&&void 0===r?{name:"webCrypto",crypto:e}:void 0!==r?{name:"msCrypto",crypto:r}:{name:void 0}};t.getCrypto=c,t.default={getNodeCrypto:n,getWebCrypto:o,getMsCrypto:a,getWebCryptoAll:i,getRootWebCryptoAll:s,getCrypto:c}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetSecret20ViewingKey=t.RemoveTokenMsg=t.AddTokenMsg=t.SuggestTokenMsg=t.GetTokensMsg=void 0;const n=r(18),o=r(382);class i extends n.Message{constructor(e){super(),this.chainId=e}static type(){return"get-tokens"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty")}route(){return o.ROUTE}type(){return i.type()}}t.GetTokensMsg=i;class s extends n.Message{constructor(e,t,r){super(),this.chainId=e,this.contractAddress=t,this.viewingKey=r}static type(){return"suggest-token"}approveExternal(){return!0}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty");if(!this.contractAddress)throw new Error("Contract address is empty")}route(){return o.ROUTE}type(){return s.type()}}t.SuggestTokenMsg=s;class a extends n.Message{constructor(e,t){super(),this.chainId=e,this.currency=t}static type(){return"add-token"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty")}route(){return o.ROUTE}type(){return a.type()}}t.AddTokenMsg=a;class c extends n.Message{constructor(e,t){super(),this.chainId=e,this.currency=t}static type(){return"remove-token"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty")}route(){return o.ROUTE}type(){return c.type()}}t.RemoveTokenMsg=c;class u extends n.Message{constructor(e,t){super(),this.chainId=e,this.contractAddress=t}static type(){return"get-secret20-viewing-key"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty");if(!this.contractAddress)throw new Error("Contract address is empty")}approveExternal(){return!0}route(){return o.ROUTE}type(){return u.type()}}t.GetSecret20ViewingKey=u},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));var n=r(51),o=r.n(n),i=r(15);class s{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new o.a,this.send=async(t,r,n,o,s=e.alloc(0),a=[i.StatusCodes.OK])=>{if(s.length>=256)throw new i.TransportError("data.length exceed 256 bytes limit. Got: "+s.length,"DataLengthTooBig");const c=await this.exchange(e.concat([e.from([t,r,n,o]),e.from([s.length]),s])),u=c.readUInt16BE(c.length-2);if(!a.some(e=>e===u))throw new i.TransportStatusError(u);return c},this.exchangeBusyPromise=void 0,this.exchangeAtomicImpl=async e=>{if(this.exchangeBusyPromise)throw new i.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");let t;const r=new Promise(e=>{t=e});this.exchangeBusyPromise=r;let n=!1;const o=setTimeout(()=>{n=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{const r=await e();return n&&this.emit("responsive"),r}finally{clearTimeout(o),t&&t(),this.exchangeBusyPromise=null}},this._appAPIlock=null}exchange(e){throw new Error("exchange not implemented")}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise((r,n)=>{let o=!1;const s=this.listen({next:t=>{o=!0,s&&s.unsubscribe(),a&&clearTimeout(a),this.open(t.descriptor,e).then(r,n)},error:e=>{a&&clearTimeout(a),n(e)},complete:()=>{a&&clearTimeout(a),o||n(new i.TransportError(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),a=t?setTimeout(()=>{s.unsubscribe(),n(new i.TransportError(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},t):null})}decorateAppAPIMethods(e,t,r){for(let n of t)e[n]=this.decorateAppAPIMethod(n,e[n],e,r)}decorateAppAPIMethod(e,t,r,n){return async(...o)=>{const{_appAPIlock:s}=this;if(s)return Promise.reject(new i.TransportError("Ledger Device is busy (lock "+s+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(n),await t.apply(r,o)}finally{this._appAPIlock=null}}}}s.isSupported=void 0,s.list=void 0,s.listen=void 0,s.open=void 0,s.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",s.ErrorMessage_NoDeviceFound="No Ledger device found"}).call(this,r(2).Buffer)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(15);function o(t){const r=e.alloc(2);return r.writeUInt16BE(t,0),r}const i={data:e.alloc(0),dataLength:0,sequence:0};var s=(t,r)=>({makeBlocks(n){let i=e.concat([o(n.length),n]);const s=r-5,a=Math.ceil(i.length/s);i=e.concat([i,e.alloc(a*s-i.length+1).fill(0)]);const c=[];for(let r=0;r<a;r++){const n=e.alloc(5);n.writeUInt16BE(t,0),n.writeUInt8(5,2),n.writeUInt16BE(r,3);const o=i.slice(r*s,(r+1)*s);c.push(e.concat([n,o]))}return c},reduceResponse(r,o){let{data:s,dataLength:a,sequence:c}=r||i;if(o.readUInt16BE(0)!==t)throw new n.TransportError("Invalid channel","InvalidChannel");if(5!==o.readUInt8(2))throw new n.TransportError("Invalid tag","InvalidTag");if(o.readUInt16BE(3)!==c)throw new n.TransportError("Invalid sequence","InvalidSequence");r||(a=o.readUInt16BE(5)),c++;const u=o.slice(r?5:7);return s=e.concat([s,u]),s.length>a&&(s=s.slice(0,a)),{data:s,dataLength:a,sequence:c}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}});t.default=s}).call(this,r(2).Buffer)},,,,function(e,t,r){(t=e.exports=r(243)).Stream=t,t.Readable=t,t.Writable=r(154),t.Duplex=r(65),t.Transform=r(246),t.PassThrough=r(450)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecUtils=void 0;const n=r(112);class o{static trim(e){let t="string"==typeof e?e:e.toString();if(t.indexOf(".")<0)return t;for(let e=t.length-1;e>=0&&"0"===t[e];e--)t=t.slice(0,e);return t.length>0&&"."===t[t.length-1]&&(t=t.slice(0,t.length-1)),t}static getPrecisionDec(e){if(o.precisions[e.toString()])return o.precisions[e.toString()];let t=new n.Dec(1);for(let r=0;r<e;r++)t=t.mul(new n.Dec(10));return o.precisions[e.toString()]=t,t}}t.DecUtils=o,o.precisions={}},,,,function(e,t,r){var n=r(2),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,o){var i=r(119);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var a,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;b.WritableState=y;var u=Object.create(r(95));u.inherits=r(4);var l={deprecate:r(155)},f=r(244),d=r(153).Buffer,h=o.Uint8Array||function(){};var p,g=r(245);function m(){}function y(e,t){a=a||r(65),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),O(e,t))}(e,r,n,t,o);else{var s=k(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?c(w,e,r,s,o):w(e,r,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function b(e){if(a=a||r(65),!(p.call(b,this)||this instanceof a))return new b(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function v(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),O(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var a=0,c=!0;r;)o[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;o.allBuffers=c,v(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var r=k(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(b,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof y)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,o=this._writableState,s=!1,a=!o.objectMode&&(n=e,d.isBuffer(n)||n instanceof h);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=m),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),i.nextTick(n,s),o=!1),o}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,r,n,o,i){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r));return t}(t,n,o);n!==s&&(r=!0,o="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,a,n,o,i);return c}(this,o,a,e,t,r)),s},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,O(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(13),r(223).setImmediate,r(12))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(12))},function(e,t,r){"use strict";var n=r(4),o=r(250),i=r(7).Buffer,s=new Array(16);function a(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,o,i,s){return c(e+(t&r|~t&n)+o+i|0,s)+t|0}function l(e,t,r,n,o,i,s){return c(e+(t&n|r&~n)+o+i|0,s)+t|0}function f(e,t,r,n,o,i,s){return c(e+(t^r^n)+o+i|0,s)+t|0}function d(e,t,r,n,o,i,s){return c(e+(r^(t|~n))+o+i|0,s)+t|0}n(a,o),a.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,o=this._c,i=this._d;r=u(r,n,o,i,e[0],3614090360,7),i=u(i,r,n,o,e[1],3905402710,12),o=u(o,i,r,n,e[2],606105819,17),n=u(n,o,i,r,e[3],3250441966,22),r=u(r,n,o,i,e[4],4118548399,7),i=u(i,r,n,o,e[5],1200080426,12),o=u(o,i,r,n,e[6],2821735955,17),n=u(n,o,i,r,e[7],4249261313,22),r=u(r,n,o,i,e[8],1770035416,7),i=u(i,r,n,o,e[9],2336552879,12),o=u(o,i,r,n,e[10],4294925233,17),n=u(n,o,i,r,e[11],2304563134,22),r=u(r,n,o,i,e[12],1804603682,7),i=u(i,r,n,o,e[13],4254626195,12),o=u(o,i,r,n,e[14],2792965006,17),r=l(r,n=u(n,o,i,r,e[15],1236535329,22),o,i,e[1],4129170786,5),i=l(i,r,n,o,e[6],3225465664,9),o=l(o,i,r,n,e[11],643717713,14),n=l(n,o,i,r,e[0],3921069994,20),r=l(r,n,o,i,e[5],3593408605,5),i=l(i,r,n,o,e[10],38016083,9),o=l(o,i,r,n,e[15],3634488961,14),n=l(n,o,i,r,e[4],3889429448,20),r=l(r,n,o,i,e[9],568446438,5),i=l(i,r,n,o,e[14],3275163606,9),o=l(o,i,r,n,e[3],4107603335,14),n=l(n,o,i,r,e[8],1163531501,20),r=l(r,n,o,i,e[13],2850285829,5),i=l(i,r,n,o,e[2],4243563512,9),o=l(o,i,r,n,e[7],1735328473,14),r=f(r,n=l(n,o,i,r,e[12],2368359562,20),o,i,e[5],4294588738,4),i=f(i,r,n,o,e[8],2272392833,11),o=f(o,i,r,n,e[11],1839030562,16),n=f(n,o,i,r,e[14],4259657740,23),r=f(r,n,o,i,e[1],2763975236,4),i=f(i,r,n,o,e[4],1272893353,11),o=f(o,i,r,n,e[7],4139469664,16),n=f(n,o,i,r,e[10],3200236656,23),r=f(r,n,o,i,e[13],681279174,4),i=f(i,r,n,o,e[0],3936430074,11),o=f(o,i,r,n,e[3],3572445317,16),n=f(n,o,i,r,e[6],76029189,23),r=f(r,n,o,i,e[9],3654602809,4),i=f(i,r,n,o,e[12],3873151461,11),o=f(o,i,r,n,e[15],530742520,16),r=d(r,n=f(n,o,i,r,e[2],3299628645,23),o,i,e[0],4096336452,6),i=d(i,r,n,o,e[7],1126891415,10),o=d(o,i,r,n,e[14],2878612391,15),n=d(n,o,i,r,e[5],4237533241,21),r=d(r,n,o,i,e[12],1700485571,6),i=d(i,r,n,o,e[3],2399980690,10),o=d(o,i,r,n,e[10],4293915773,15),n=d(n,o,i,r,e[1],2240044497,21),r=d(r,n,o,i,e[8],1873313359,6),i=d(i,r,n,o,e[15],4264355552,10),o=d(o,i,r,n,e[6],2734768916,15),n=d(n,o,i,r,e[13],1309151649,21),r=d(r,n,o,i,e[4],4149444226,6),i=d(i,r,n,o,e[11],3174756917,10),o=d(o,i,r,n,e[2],718787259,15),n=d(n,o,i,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+o|0,this._d=this._d+i|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},function(e,t,r){"use strict";var n=r(73).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||o);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){a=!1,u=!0,s||i.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,f=!0,a||i.call(t)},h=function(e){i.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",l),t.on("abort",p),t.req?g():t.on("request",g)),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},function(e,t,r){"use strict";var n=r(32);function o(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=o,o.prototype._init=function(){},o.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},o.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},o.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,o=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(o,r)));for(var i=e.length-(e.length-t)%this.blockSize;t<i;t+=this.blockSize)this._update(e,t,o,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return o},o.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,o=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(o,r);return t+=this._buffer(e,t),o},o.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},o.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},o.prototype._unpad=function(e){return e},o.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){var n=r(482),o=r(490),i=r(269);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=o.createDecipher,t.createDecipheriv=t.Decipheriv=o.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(i)}},function(e,t,r){var n={ECB:r(483),CBC:r(484),CFB:r(485),CFB8:r(486),CFB1:r(487),OFB:r(488),CTR:r(267),GCM:r(267)},o=r(269);for(var i in o)o[i].module=n[o[i].mode];e.exports=o},function(e,t,r){var n;function o(e){this.rand=e}if(e.exports=function(e){return n||(n=new o(null)),n.generate(e)},e.exports.Rand=o,o.prototype.generate=function(e){return this._rand(e)},o.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var i=r(493);if("function"!=typeof i.randomBytes)throw new Error("Not supported");o.prototype._rand=function(e){return i.randomBytes(e)}}catch(e){}},function(e,t,r){"use strict";var n=r(78).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||o);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){a=!1,u=!0,s||i.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){s=!1,f=!0,a||i.call(t)},h=function(e){i.call(t,e)},p=function(){var e;return s&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},g=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",l),t.on("abort",p),t.req?g():t.on("request",g)),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",g),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},function(e,t,r){(function(t){var n=r(506),o=r(62);function i(e){var t,r=e.modulus.byteLength();do{t=new n(o(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,r){var o=function(e){var t=i(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),s=r.modulus.byteLength(),a=new n(e).mul(o.blinder).umod(r.modulus),c=a.toRed(n.mont(r.prime1)),u=a.toRed(n.mont(r.prime2)),l=r.coefficient,f=r.prime1,d=r.prime2,h=c.redPow(r.exponent1).fromRed(),p=u.redPow(r.exponent2).fromRed(),g=h.isub(p).imul(l).umod(f).imul(d);return p.iadd(g).imul(o.unblinder).umod(r.modulus).toArrayLike(t,"be",s)}s.getr=i,e.exports=s}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n,o=t,i=r(70),s=r(281),a=r(33).assert;function c(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:r}),r}})}o.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(512)}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";(function(t){var n,o=r(2),i=o.Buffer,s={};for(n in o)o.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=o[n]);var a=s.Buffer={};for(n in i)i.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(a[n]=i[n]);if(s.Buffer.prototype=i.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return i(e,t,r)}),a.alloc||(a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=i(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),e.exports=s}).call(this,r(13))},function(e,t,r){"use strict";const n=r(167).Reporter,o=r(99).EncoderBuffer,i=r(99).DecoderBuffer,s=r(32),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function u(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=u;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,t={};l.forEach((function(r){t[r]=e[r]}));const r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){const e=this._baseState;c.forEach((function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},u.prototype._init=function(e){const t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){const t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){u.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}})),u.prototype.use=function(e){s(e);const t=this._baseState;return s(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){const t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){const t=this._baseState;return s(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){const t=this._baseState;return s(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,o=r.default,s=!0,a=null;if(null!==r.key&&(a=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(s=this._peekTag(e,n,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new i(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&s&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==s?null!==a&&e.exitKey(a):e.leaveKey(a,r.key,o),o},u.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,o=!1;return Object.keys(r.choice).some((function(i){const s=e.save(),a=r.choice[i];try{const r=a._decode(e,t);if(e.isError(r))return!1;n={type:i,value:r},o=!0}catch(t){return e.restore(s),!1}return!0}),this),o?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},u.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n.default&&n.default===e)return;const o=this._encodeValue(e,t,r);return void 0===o||this._skipDefault(o,t,r)?void 0:o},u.prototype._encodeValue=function(e,t,r){const o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new n);let i=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}let s=null,a=!1;if(o.any)i=this._createEncoderBuffer(e);else if(o.choice)i=this._encodeChoice(e,t);else if(o.contains)s=this._getUse(o.contains,r)._encode(e,t),a=!0;else if(o.children)s=o.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const o=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),o}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return t.error("Too many args for : "+o.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),r))}else null!==o.use?i=this._getUse(o.use,r)._encode(e,t):(s=this._encodePrimitive(o.tag,e),a=!0);if(!o.any&&null===o.choice){const e=null!==o.implicit?o.implicit:o.tag,r=null===o.implicit?"universal":"context";null===e?null===o.use&&t.error("Tag could be omitted only for .use()"):null===o.use&&(i=this._encodeComposite(e,a,r,s))}return null!==o.explicit&&(i=this._encodeComposite(o.explicit,!1,"context",i)),i},u.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,r){"use strict";const n=r(4);function o(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}t.Reporter=o,o.prototype.isError=function(e){return e instanceof i},o.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},o.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},o.prototype.enterKey=function(e){return this._reporterState.path.push(e)},o.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},o.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},o.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},o.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof i;if(t=n?e:new i(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},o.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){"use strict";function n(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},function(e,t,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t){var r={Array:function(e){return null!=e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var n in r.Null=r.Nil,r)r[n].toJSON=function(e){return e}.bind(null,n);e.exports=r},function(e,t,r){var n,o,i,s,a,c,u,l;e.exports=(l=r(9),o=(n=l).lib,i=o.WordArray,s=o.Hasher,a=n.algo,c=[],u=a.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+a+c[u];f+=u<20?1518500249+(o&i|~o&s):u<40?1859775393+(o^i^s):u<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,a=s,s=i,i=o<<30|o>>>2,o=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=s._createHelper(u),n.HmacSHA1=s._createHmacHelper(u),l.SHA1)},function(e,t,r){var n,o,i,s;e.exports=(n=r(9),i=(o=n).lib.Base,s=o.enc.Utf8,void(o.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,u=0;u<r;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubkeyToAddress=t.rawSecp256k1PubkeyToAddress=void 0;const n=r(50),o=r(39),i=r(126);function s(e,t){if(33!==e.length)throw new Error("Invalid Secp256k1 pubkey length (compressed): "+e.length);const r=n.sha256(e),i=n.ripemd160(r);return o.Bech32.encode(t,i)}t.rawSecp256k1PubkeyToAddress=s,t.pubkeyToAddress=function(e,t){const r=o.fromBase64(e.value);switch(e.type){case i.pubkeyType.secp256k1:return s(r,t);case i.pubkeyType.ed25519:{if(32!==r.length)throw new Error("Invalid Ed25519 pubkey length: "+r.length);const e=n.sha256(r);return o.Bech32.encode(t,e.slice(0,20))}case i.pubkeyType.sr25519:{if(32!==r.length)throw new Error("Invalid Sr25519 pubkey length: "+r.length);const e=n.sha256(r);return o.Bech32.encode(t,e.slice(0,20))}default:throw new Error("Unrecognized public key algorithm")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint64ToString=t.uint64ToNumber=t.normalizePubkey=t.normalizeLcdApiArray=t.LcdClient=t.BroadcastMode=t.setupSupplyExtension=t.setupStakingExtension=t.setupSlashingExtension=t.setupMintExtension=t.setupGovExtension=t.setupDistributionExtension=t.setupBankExtension=t.setupAuthExtension=void 0;var n=r(629);Object.defineProperty(t,"setupAuthExtension",{enumerable:!0,get:function(){return n.setupAuthExtension}});var o=r(630);Object.defineProperty(t,"setupBankExtension",{enumerable:!0,get:function(){return o.setupBankExtension}});var i=r(631);Object.defineProperty(t,"setupDistributionExtension",{enumerable:!0,get:function(){return i.setupDistributionExtension}});var s=r(632);Object.defineProperty(t,"setupGovExtension",{enumerable:!0,get:function(){return s.setupGovExtension}});var a=r(633);Object.defineProperty(t,"setupMintExtension",{enumerable:!0,get:function(){return a.setupMintExtension}});var c=r(634);Object.defineProperty(t,"setupSlashingExtension",{enumerable:!0,get:function(){return c.setupSlashingExtension}});var u=r(635);Object.defineProperty(t,"setupStakingExtension",{enumerable:!0,get:function(){return u.setupStakingExtension}});var l=r(636);Object.defineProperty(t,"setupSupplyExtension",{enumerable:!0,get:function(){return l.setupSupplyExtension}});var f=r(319);Object.defineProperty(t,"BroadcastMode",{enumerable:!0,get:function(){return f.BroadcastMode}});var d=r(637);Object.defineProperty(t,"LcdClient",{enumerable:!0,get:function(){return d.LcdClient}}),Object.defineProperty(t,"normalizeLcdApiArray",{enumerable:!0,get:function(){return d.normalizeLcdApiArray}});var h=r(638);Object.defineProperty(t,"normalizePubkey",{enumerable:!0,get:function(){return h.normalizePubkey}}),Object.defineProperty(t,"uint64ToNumber",{enumerable:!0,get:function(){return h.uint64ToNumber}}),Object.defineProperty(t,"uint64ToString",{enumerable:!0,get:function(){return h.uint64ToString}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.encodeSecp256k1Pubkey=void 0;const n=r(39),o=r(100),i=r(126);t.encodeSecp256k1Pubkey=function(e){if(33!==e.length||2!==e[0]&&3!==e[0])throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:i.pubkeyType.secp256k1,value:n.toBase64(e)}};const s=n.fromHex("eb5ae98721"),a=n.fromHex("1624de6420"),c=n.fromHex("0dfb1005"),u=s.length;function l(e){const t=e.slice(0,u),r=e.slice(u);if(o.arrayContentEquals(t,s)){if(33!==r.length)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:i.pubkeyType.secp256k1,value:n.toBase64(r)}}if(o.arrayContentEquals(t,a)){if(32!==r.length)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:i.pubkeyType.ed25519,value:n.toBase64(r)}}if(o.arrayContentEquals(t,c)){if(32!==r.length)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:i.pubkeyType.sr25519,value:n.toBase64(r)}}throw new Error("Unsupported Pubkey type. Amino prefix: "+n.toHex(t))}function f(e){let t;switch(e.type){case i.pubkeyType.secp256k1:t=s;break;case i.pubkeyType.ed25519:t=a;break;default:throw new Error("Unsupported pubkey type")}return new Uint8Array([...t,...n.fromBase64(e.value)])}t.decodeAminoPubkey=l,t.decodeBech32Pubkey=function(e){const{data:t}=n.Bech32.decode(e);return l(t)},t.encodeAminoPubkey=f,t.encodeBech32Pubkey=function(e,t){return n.Bech32.encode(t,f(e))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Router=void 0;const o=r(325),i=r(107);t.Router=class{constructor(e){this.envProducer=e,this.msgRegistry=new o.MessageRegistry,this.registeredHandler=new Map,this.guards=[],this.port=""}registerMessage(e){this.msgRegistry.registerMessage(e)}addHandler(e,t){if(this.registeredHandler.has(e))throw new Error("Already registered type "+e);this.registeredHandler.set(e,t)}addGuard(e){this.guards.push(e)}handleMessage(e,t){return n(this,void 0,void 0,(function*(){const r=this.msgRegistry.parseMessage(i.JSONUint8Array.unwrap(e)),n=this.envProducer(t);for(const e of this.guards)yield e(n,r,t);r.validateBasic();const o=r.route();if(!o)throw new Error("Null router");const s=this.registeredHandler.get(o);if(!s)throw new Error("Can't get handler");return i.JSONUint8Array.wrap(yield s(n,r))}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetPersistentMemoryMsg=t.SetPersistentMemoryMsg=void 0;const n=r(18),o=r(331);class i extends n.Message{constructor(e){super(),this.data=e}static type(){return"set-persistent-memory"}validateBasic(){}route(){return o.ROUTE}type(){return i.type()}}t.SetPersistentMemoryMsg=i;class s extends n.Message{static type(){return"get-persistent-memory"}constructor(){super()}validateBasic(){}route(){return o.ROUTE}type(){return s.type()}}t.GetPersistentMemoryMsg=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TryUpdateChainMsg=void 0;const n=r(18),o=r(337);class i extends n.Message{constructor(e){super(),this.chainId=e}static type(){return"try-update-chain"}validateBasic(){if(!this.chainId)throw new Error("Empty chain id")}route(){return o.ROUTE}type(){return i.type()}}t.TryUpdateChainMsg=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushEventDataMsg=t.PushInteractionDataMsg=void 0;const n=r(18),o=r(340);class i extends n.Message{constructor(e){super(),this.data=e}static type(){return"push-interaction-data"}validateBasic(){if(!this.data.type)throw new Error("Type should not be empty")}route(){return o.ROUTE}type(){return i.type()}}t.PushInteractionDataMsg=i;class s extends n.Message{constructor(e){super(),this.data=e}static type(){return"push-event-data"}validateBasic(){if(!this.data.type)throw new Error("Type should not be empty")}route(){return o.ROUTE}type(){return s.type()}}t.PushEventDataMsg=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RejectInteractionMsg=t.ApproveInteractionMsg=void 0;const n=r(18),o=r(341);class i extends n.Message{constructor(e,t){super(),this.id=e,this.result=t}static type(){return"approve-interaction"}validateBasic(){}route(){return o.ROUTE}type(){return i.type()}}t.ApproveInteractionMsg=i;class s extends n.Message{constructor(e){super(),this.id=e}static type(){return"reject-interaction"}validateBasic(){}route(){return o.ROUTE}type(){return s.type()}}t.RejectInteractionMsg=s},function(e,t,r){"use strict";var n=r(115);Object.defineProperty(t,"__esModule",{value:!0}),t.errorCodeToString=u,t.processErrorResponse=l,t.getVersion=function(e){return f.apply(this,arguments)},t.ERROR_CODE=t.P1_VALUES=t.PAYLOAD_TYPE=t.INS=t.APP_KEY=t.CHUNK_SIZE=t.CLA=void 0;var o=n(r(129)),i=n(r(130)),s=n(r(683));t.CLA=85;t.CHUNK_SIZE=250;t.APP_KEY="CSM";var a={GET_VERSION:0,INS_PUBLIC_KEY_SECP256K1:1,SIGN_SECP256K1:2,GET_ADDR_SECP256K1:4};t.INS=a;t.PAYLOAD_TYPE={INIT:0,ADD:1,LAST:2};t.P1_VALUES={ONLY_RETRIEVE:0,SHOW_ADDRESS_IN_DEVICE:1};t.ERROR_CODE={NoError:36864};var c={1:"U2F: Unknown",2:"U2F: Bad request",3:"U2F: Configuration unsupported",4:"U2F: Device Ineligible",5:"U2F: Timeout",14:"Timeout",36864:"No errors",36865:"Device is busy",26626:"Error deriving keys",25600:"Execution Error",26368:"Wrong Length",27010:"Empty Buffer",27011:"Output buffer too small",27012:"Data is invalid",27013:"Conditions not satisfied",27014:"Transaction rejected",27264:"Bad key handle",27392:"Invalid P1/P2",27904:"Instruction not supported",28160:"App does not seem to be open",28416:"Unknown error",28417:"Sign/verify error"};function u(e){return e in c?c[e]:"Unknown Status Code: ".concat(e)}function l(e){if(e){if(t=e,!("object"!==(0,s.default)(t)||null===t||t instanceof Array||t instanceof Date)){if(Object.prototype.hasOwnProperty.call(e,"statusCode"))return{return_code:e.statusCode,error_message:u(e.statusCode)};if(Object.prototype.hasOwnProperty.call(e,"return_code")&&Object.prototype.hasOwnProperty.call(e,"error_message"))return e}return{return_code:65535,error_message:e.toString()}}var t;return{return_code:65535,error_message:e.toString()}}function f(){return(f=(0,i.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.send(85,a.GET_VERSION,0,0).then((function(e){var t=e.slice(-2),r=256*t[0]+t[1],n=0;return e.length>=9&&(n=(e[5]<<24)+(e[6]<<16)+(e[7]<<8)+(e[8]<<0)),{return_code:r,error_message:u(r),test_mode:0!==e[0],major:e[1],minor:e[2],patch:e[3],device_locked:1===e[4],target_id:n.toString(16)}}),l));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t){const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),o=r.test(t);return n&&o&&(e=+e,t=+t),e===t?0:n&&!o?-1:o&&!n?1:e<t?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},function(e,t,r){const n=r(40);e.exports=(e,t,r)=>0===n(e,t,r)},function(e,t,r){const n=r(24);e.exports=(e,t,r)=>{const o=new n(e,r),i=new n(t,r);return o.compare(i)||o.compareBuild(i)}},function(e,t,r){const n=r(40);e.exports=(e,t,r)=>n(e,t,r)<0},function(e,t,r){const n=r(40);e.exports=(e,t,r)=>n(e,t,r)>=0},function(e,t,r){const n=r(40);e.exports=(e,t,r)=>n(e,t,r)<=0},function(e,t,r){const n=r(24),o=r(135),{ANY:i}=o,s=r(41),a=r(136),c=r(134),u=r(185),l=r(187),f=r(186);e.exports=(e,t,r,d)=>{let h,p,g,m,y;switch(e=new n(e,d),t=new s(t,d),r){case">":h=c,p=l,g=u,m=">",y=">=";break;case"<":h=u,p=f,g=c,m="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let s=null,a=null;if(n.forEach(e=>{e.semver===i&&(e=new o(">=0.0.0")),s=s||e,a=a||e,h(e.semver,s.semver,d)?s=e:g(e.semver,a.semver,d)&&(a=e)}),s.operator===m||s.operator===y)return!1;if((!a.operator||a.operator===m)&&p(e,a.semver))return!1;if(a.operator===y&&g(e,a.semver))return!1}return!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LedgerSetWebHIDFlagMsg=t.LedgerGetWebHIDFlagMsg=void 0;const n=r(18),o=r(348);class i extends n.Message{static type(){return"ledger-get-webhid-flag"}constructor(){super()}validateBasic(){}route(){return o.ROUTE}type(){return i.type()}}t.LedgerGetWebHIDFlagMsg=i;class s extends n.Message{constructor(e){super(),this.flag=e}static type(){return"ledger-set-webhid-flag"}validateBasic(){if(null==this.flag)throw new Error("Flag is null")}route(){return o.ROUTE}type(){return s.type()}}t.LedgerSetWebHIDFlagMsg=s},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyRing=t.KeyRingStatus=void 0;const o=r(716),i=r(108),s=r(2),a=r(11);var c;!function(e){e[e.NOTLOADED=0]="NOTLOADED",e[e.EMPTY=1]="EMPTY",e[e.LOCKED=2]="LOCKED",e[e.UNLOCKED=3]="UNLOCKED"}(c=t.KeyRingStatus||(t.KeyRingStatus={}));class u{constructor(e,t,r,n){this.embedChainInfos=e,this.kvStore=t,this.ledgerKeeper=r,this.rng=n,this.cached=new Map,this.password="",this.loaded=!1,this.keyStore=null,this.multiKeyStore=[]}get type(){if(this.keyStore){const e=this.keyStore.type;if(null==e)return"mnemonic";if("mnemonic"!==e&&"privateKey"!==e&&"ledger"!==e)throw new Error("Invalid type of key store");return e}return"none"}isLocked(){return null==this.privateKey&&null==this.mnemonic&&null==this.ledgerPublicKey}get privateKey(){return this._privateKey}set privateKey(e){this._privateKey=e,this._mnemonic=void 0,this._ledgerPublicKey=void 0,this.cached=new Map}get mnemonic(){return this._mnemonic}set mnemonic(e){this._mnemonic=e,this._privateKey=void 0,this._ledgerPublicKey=void 0,this.cached=new Map}get ledgerPublicKey(){return this._ledgerPublicKey}set ledgerPublicKey(e){this._mnemonic=void 0,this._privateKey=void 0,this._ledgerPublicKey=e,this.cached=new Map}get status(){return this.loaded?this.keyStore?this.isLocked()?c.LOCKED:c.UNLOCKED:c.EMPTY:c.NOTLOADED}getKeyStoreCoinType(e){if(this.keyStore&&this.keyStore.coinTypeForChain)return this.keyStore.coinTypeForChain[a.ChainIdHelper.parse(e).identifier]}getKey(e,t){return this.loadKey(this.computeKeyStoreCoinType(e,t))}getKeyStoreMeta(e){var t;return this.keyStore&&null!=this.keyStore.meta&&null!==(t=this.keyStore.meta[e])&&void 0!==t?t:""}computeKeyStoreCoinType(e,t){var r;if(!this.keyStore)throw new Error("Key Store is empty");return this.keyStore.coinTypeForChain&&null!==(r=this.keyStore.coinTypeForChain[a.ChainIdHelper.parse(e).identifier])&&void 0!==r?r:t}getKeyFromCoinType(e){return this.loadKey(e)}createMnemonicKey(e,t,r,o){return n(this,void 0,void 0,(function*(){if(this.status!==c.EMPTY)throw new Error("Key ring is not loaded or not empty");this.mnemonic=e,this.keyStore=yield u.CreateMnemonicKeyStore(this.rng,e,t,yield this.assignKeyStoreIdMeta(r),o),this.password=t,this.multiKeyStore.push(this.keyStore),yield this.save()}))}createPrivateKey(e,t,r){return n(this,void 0,void 0,(function*(){if(this.status!==c.EMPTY)throw new Error("Key ring is not loaded or not empty");this.privateKey=e,this.keyStore=yield u.CreatePrivateKeyStore(this.rng,e,t,yield this.assignKeyStoreIdMeta(r)),this.password=t,this.multiKeyStore.push(this.keyStore),yield this.save()}))}createLedgerKey(e,t,r,o){return n(this,void 0,void 0,(function*(){if(this.status!==c.EMPTY)throw new Error("Key ring is not loaded or not empty");this.ledgerPublicKey=yield this.ledgerKeeper.getPublicKey(e,o);const n=yield u.CreateLedgerKeyStore(this.rng,this.ledgerPublicKey,t,yield this.assignKeyStoreIdMeta(r),o);this.password=t,this.keyStore=n,this.multiKeyStore.push(this.keyStore),yield this.save()}))}lock(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");this.mnemonic=void 0,this.privateKey=void 0,this.ledgerPublicKey=void 0,this.password=""}unlock(e){return n(this,void 0,void 0,(function*(){if(!this.keyStore||"none"===this.type)throw new Error("Key ring not initialized");if("mnemonic"===this.type)this.mnemonic=s.Buffer.from(yield o.Crypto.decrypt(this.keyStore,e)).toString();else if("privateKey"===this.type)this.privateKey=s.Buffer.from(s.Buffer.from(yield o.Crypto.decrypt(this.keyStore,e)).toString(),"hex");else{if("ledger"!==this.type)throw new Error("Unexpected type of keyring");this.ledgerPublicKey=s.Buffer.from(s.Buffer.from(yield o.Crypto.decrypt(this.keyStore,e)).toString(),"hex")}this.password=e}))}save(){return n(this,void 0,void 0,(function*(){yield this.kvStore.set("key-store",this.keyStore),yield this.kvStore.set("key-multi-store",this.multiKeyStore)}))}restore(){return n(this,void 0,void 0,(function*(){const e=yield this.kvStore.get("key-store");this.keyStore=e||null;const t=yield this.kvStore.get("key-multi-store");t?this.multiKeyStore=t:(e?(e.meta=yield this.assignKeyStoreIdMeta({}),this.multiKeyStore=[e]):this.multiKeyStore=[],yield this.save());let r=!1;this.keyStore&&("1"!==this.keyStore.version&&"1.1"!==this.keyStore.version||(r=!0,this.updateLegacyKeyStore(this.keyStore)));for(const e of this.multiKeyStore)"1"!==e.version&&"1.1"!==e.version||(r=!0,this.updateLegacyKeyStore(e));r&&(yield this.save()),this.loaded=!0}))}updateLegacyKeyStore(e){e.version="1.2";for(const t of this.embedChainInfos){const r=t.alternativeBIP44s&&t.alternativeBIP44s.length>0?t.alternativeBIP44s[0].coinType:t.bip44.coinType;e.coinTypeForChain=Object.assign(Object.assign({},e.coinTypeForChain),{[a.ChainIdHelper.parse(t.chainId).identifier]:r})}}isKeyStoreCoinTypeSet(e){if(!this.keyStore)throw new Error("Empty key store");return this.keyStore.coinTypeForChain&&void 0!==this.keyStore.coinTypeForChain[a.ChainIdHelper.parse(e).identifier]}setKeyStoreCoinType(e,t){return n(this,void 0,void 0,(function*(){if(!this.keyStore)throw new Error("Empty key store");if(this.keyStore.coinTypeForChain&&void 0!==this.keyStore.coinTypeForChain[a.ChainIdHelper.parse(e).identifier])throw new Error("Coin type already set");this.keyStore.coinTypeForChain=Object.assign(Object.assign({},this.keyStore.coinTypeForChain),{[a.ChainIdHelper.parse(e).identifier]:t});const r=this.multiKeyStore.find(e=>u.getKeyStoreId(e)===u.getKeyStoreId(this.keyStore));r&&(r.coinTypeForChain=Object.assign({},this.keyStore.coinTypeForChain)),yield this.save()}))}deleteKeyRing(e,t){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(this.password!==t)throw new Error("Invalid password");const r=this.multiKeyStore[e];if(!r)throw new Error("Empty key store");const n=this.multiKeyStore.slice(0,e).concat(this.multiKeyStore.slice(e+1));return yield o.Crypto.decrypt(r,t),this.keyStore&&u.getKeyStoreId(r)===u.getKeyStoreId(this.keyStore)&&(n.length>0?(yield this.lock(),this.keyStore=n[0],yield this.unlock(t)):(this.keyStore=null,this.mnemonic=void 0,this.privateKey=void 0)),this.multiKeyStore=n,yield this.save(),this.getMultiKeyStoreInfo()}))}updateNameKeyRing(e,t){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");const r=this.multiKeyStore[e];if(!r)throw new Error("Empty key store");return r.meta=Object.assign(Object.assign({},r.meta),{name:t}),this.keyStore&&u.getKeyStoreId(this.keyStore)===u.getKeyStoreId(r)&&(this.keyStore=r),yield this.save(),this.getMultiKeyStoreInfo()}))}loadKey(e){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(!this.keyStore)throw new Error("Key Store is empty");if("ledger"===this.keyStore.type){if(!this.ledgerPublicKey)throw new Error("Ledger public key not set");const e=new i.PubKeySecp256k1(this.ledgerPublicKey);return{algo:"secp256k1",pubKey:e.toBytes(),address:e.getAddress(),isNanoLedger:!0}}{const t=this.loadPrivKey(e).getPubKey();return{algo:"secp256k1",pubKey:t.toBytes(),address:t.getAddress(),isNanoLedger:!1}}}loadPrivKey(e){if(this.status!==c.UNLOCKED||"none"===this.type||!this.keyStore)throw new Error("Key ring is not unlocked");const t=u.getKeyStoreBIP44Path(this.keyStore);if("mnemonic"===this.type){const r=`m/44'/${e}'/${t.account}'/${t.change}/${t.addressIndex}`,n=this.cached.get(r);if(n)return new i.PrivKeySecp256k1(n);if(!this.mnemonic)throw new Error("Key store type is mnemonic and it is unlocked. But, mnemonic is not loaded unexpectedly");const o=i.Mnemonic.generateWalletFromMnemonic(this.mnemonic,r);return this.cached.set(r,o),new i.PrivKeySecp256k1(o)}if("privateKey"===this.type){if(!this.privateKey)throw new Error("Key store type is private key and it is unlocked. But, private key is not loaded unexpectedly");return new i.PrivKeySecp256k1(this.privateKey)}throw new Error("Unexpected type of keyring")}sign(e,t,r,o){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(!this.keyStore)throw new Error("Key Store is empty");if("ledger"===this.keyStore.type){const t=this.ledgerPublicKey;if(!t)throw new Error("Ledger public key is not initialized");return yield this.ledgerKeeper.sign(e,u.getKeyStoreBIP44Path(this.keyStore),t,o)}{const e=this.computeKeyStoreCoinType(t,r);return this.loadPrivKey(e).sign(o)}}))}showKeyRing(e,t){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(this.password!==t)throw new Error("Invalid password");const r=this.multiKeyStore[e];if(!r)throw new Error("Empty key store");return r.type,s.Buffer.from(yield o.Crypto.decrypt(r,t)).toString()}))}get canSetPath(){return"mnemonic"===this.type||"ledger"===this.type}addMnemonicKey(e,t,r){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const n=yield u.CreateMnemonicKeyStore(this.rng,e,this.password,yield this.assignKeyStoreIdMeta(t),r);return this.multiKeyStore.push(n),yield this.save(),this.getMultiKeyStoreInfo()}))}addPrivateKey(e,t){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const r=yield u.CreatePrivateKeyStore(this.rng,e,this.password,yield this.assignKeyStoreIdMeta(t));return this.multiKeyStore.push(r),yield this.save(),this.getMultiKeyStoreInfo()}))}addLedgerKey(e,t,r){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const n=yield this.ledgerKeeper.getPublicKey(e,r),o=yield u.CreateLedgerKeyStore(this.rng,n,this.password,yield this.assignKeyStoreIdMeta(t),r);return this.multiKeyStore.push(o),yield this.save(),this.getMultiKeyStoreInfo()}))}changeKeyStoreFromMultiKeyStore(e){return n(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const t=this.multiKeyStore[e];if(!t)throw new Error("Invalid keystore");return this.keyStore=t,yield this.unlock(this.password),yield this.save(),this.getMultiKeyStoreInfo()}))}getMultiKeyStoreInfo(){const e=[];for(const t of this.multiKeyStore)e.push({version:t.version,type:t.type,meta:t.meta,coinTypeForChain:t.coinTypeForChain,bip44HDPath:t.bip44HDPath,selected:!!this.keyStore&&u.getKeyStoreId(t)===u.getKeyStoreId(this.keyStore)});return e}static CreateMnemonicKeyStore(e,t,r,i,s){return n(this,void 0,void 0,(function*(){return yield o.Crypto.encrypt(e,"mnemonic",t,r,i,s)}))}static CreatePrivateKeyStore(e,t,r,i){return n(this,void 0,void 0,(function*(){return yield o.Crypto.encrypt(e,"privateKey",s.Buffer.from(t).toString("hex"),r,i)}))}static CreateLedgerKeyStore(e,t,r,i,a){return n(this,void 0,void 0,(function*(){return yield o.Crypto.encrypt(e,"ledger",s.Buffer.from(t).toString("hex"),r,i,a)}))}assignKeyStoreIdMeta(e){return n(this,void 0,void 0,(function*(){return Object.assign({},e,{__id__:(yield this.getIncrementalNumber()).toString()})}))}static getKeyStoreId(e){var t;const r=null===(t=e.meta)||void 0===t?void 0:t.__id__;if(!r)throw new Error("Key store's id is empty");return r}static getKeyStoreBIP44Path(e){return e.bip44HDPath?(u.validateBIP44Path(e.bip44HDPath),e.bip44HDPath):{account:0,change:0,addressIndex:0}}static validateBIP44Path(e){if(!Number.isInteger(e.account)||e.account<0)throw new Error("Invalid account in hd path");if(!Number.isInteger(e.change)||0!==e.change&&1!==e.change)throw new Error("Invalid change in hd path");if(!Number.isInteger(e.addressIndex)||e.addressIndex<0)throw new Error("Invalid address index in hd path")}getIncrementalNumber(){return n(this,void 0,void 0,(function*(){let e=yield this.kvStore.get("incrementalNumber");return void 0===e&&(e=0),e++,yield this.kvStore.set("incrementalNumber",e),e}))}}t.KeyRing=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetKeyStoreCoinTypeMsg=t.GetIsKeyStoreCoinTypeSetMsg=t.ChangeKeyRingMsg=t.GetMultiKeyStoreInfoMsg=t.GetKeyRingTypeMsg=t.RequestSignDirectMsg=t.RequestSignAminoMsg=t.GetKeyMsg=t.UnlockKeyRingMsg=t.LockKeyRingMsg=t.AddLedgerKeyMsg=t.AddPrivateKeyMsg=t.CreateLedgerKeyMsg=t.CreatePrivateKeyMsg=t.AddMnemonicKeyMsg=t.CreateMnemonicKeyMsg=t.ShowKeyRingMsg=t.UpdateNameKeyRingMsg=t.DeleteKeyRingMsg=t.RestoreKeyRingMsg=void 0;const n=r(18),o=r(353),i=r(190),s=r(11),a=r(69),c=r(11);class u extends n.Message{static type(){return"restore-keyring"}constructor(){super()}validateBasic(){}route(){return o.ROUTE}type(){return u.type()}}t.RestoreKeyRingMsg=u;class l extends n.Message{constructor(e,t){super(),this.index=e,this.password=t}static type(){return"delete-keyring"}validateBasic(){if(!Number.isInteger(this.index))throw new Error("Invalid index");if(!this.password)throw new Error("password not set")}route(){return o.ROUTE}type(){return l.type()}}t.DeleteKeyRingMsg=l;class f extends n.Message{constructor(e,t){super(),this.index=e,this.name=t}static type(){return"update-name-keyring"}validateBasic(){if(!Number.isInteger(this.index))throw new Error("Invalid index");if(!this.name)throw new Error("name not set")}route(){return o.ROUTE}type(){return f.type()}}t.UpdateNameKeyRingMsg=f;class d extends n.Message{constructor(e,t){super(),this.index=e,this.password=t}static type(){return"show-keyring"}validateBasic(){if(!Number.isInteger(this.index))throw new Error("Invalid index");if(!this.password)throw new Error("password not set")}route(){return o.ROUTE}type(){return d.type()}}t.ShowKeyRingMsg=d;class h extends n.Message{constructor(e,t,r,n){super(),this.mnemonic=e,this.password=t,this.meta=r,this.bip44HDPath=n}static type(){return"create-mnemonic-key"}validateBasic(){if(!this.mnemonic)throw new Error("mnemonic not set");if(!this.password)throw new Error("password not set");try{a.mnemonicToEntropy(this.mnemonic)}catch(e){if("Invalid mnemonic checksum"!==e.message)throw e}i.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return o.ROUTE}type(){return h.type()}}t.CreateMnemonicKeyMsg=h;class p extends n.Message{constructor(e,t,r){super(),this.mnemonic=e,this.meta=t,this.bip44HDPath=r}static type(){return"add-mnemonic-key"}validateBasic(){if(!this.mnemonic)throw new Error("mnemonic not set");try{a.mnemonicToEntropy(this.mnemonic)}catch(e){if("Invalid mnemonic checksum"!==e.message)throw e}i.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return o.ROUTE}type(){return p.type()}}t.AddMnemonicKeyMsg=p;class g extends n.Message{constructor(e,t,r){super(),this.privateKey=e,this.password=t,this.meta=r}static type(){return"create-private-key"}validateBasic(){if(!this.privateKey||0===this.privateKey.length)throw new Error("private key not set");if(32!==this.privateKey.length)throw new Error("invalid length of private key");if(!this.password)throw new Error("password not set")}route(){return o.ROUTE}type(){return g.type()}}t.CreatePrivateKeyMsg=g;class m extends n.Message{constructor(e,t,r){super(),this.password=e,this.meta=t,this.bip44HDPath=r}static type(){return"create-ledger-key"}validateBasic(){if(!this.password)throw new Error("password not set");i.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return o.ROUTE}type(){return m.type()}}t.CreateLedgerKeyMsg=m;class y extends n.Message{constructor(e,t){super(),this.privateKey=e,this.meta=t}static type(){return"add-private-key"}validateBasic(){if(!this.privateKey||0===this.privateKey.length)throw new Error("private key not set");if(32!==this.privateKey.length)throw new Error("invalid length of private key")}route(){return o.ROUTE}type(){return y.type()}}t.AddPrivateKeyMsg=y;class b extends n.Message{constructor(e,t){super(),this.meta=e,this.bip44HDPath=t}static type(){return"add-ledger-key"}validateBasic(){i.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return o.ROUTE}type(){return b.type()}}t.AddLedgerKeyMsg=b;class v extends n.Message{static type(){return"lock-keyring"}constructor(){super()}validateBasic(){}route(){return o.ROUTE}type(){return v.type()}}t.LockKeyRingMsg=v;class w extends n.Message{constructor(e=""){super(),this.password=e}static type(){return"unlock-keyring"}validateBasic(){if(!this.password)throw new Error("password not set")}route(){return o.ROUTE}type(){return w.type()}}t.UnlockKeyRingMsg=w;class _ extends n.Message{constructor(e){super(),this.chainId=e}static type(){return"get-key"}validateBasic(){if(!this.chainId)throw new Error("chain id not set")}approveExternal(){return!0}route(){return o.ROUTE}type(){return _.type()}}t.GetKeyMsg=_;class k extends n.Message{constructor(e,t,r,n={}){super(),this.chainId=e,this.signer=t,this.signDoc=r,this.signOptions=n}static type(){return"request-sign-amino"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.signer)throw new Error("signer not set");if(s.Bech32Address.validate(this.signer),this.signDoc.chain_id!==this.chainId)throw new Error("Chain id in the message is not matched with the requested chain id");if(!this.signOptions)throw new Error("Sign options are null")}approveExternal(){return!0}route(){return o.ROUTE}type(){return k.type()}}t.RequestSignAminoMsg=k;class S extends n.Message{constructor(e,t,r,n={}){super(),this.chainId=e,this.signer=t,this.signDocBytes=r,this.signOptions=n}static type(){return"request-sign-direct"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.signer)throw new Error("signer not set");s.Bech32Address.validate(this.signer);if(c.cosmos.tx.v1beta1.SignDoc.decode(this.signDocBytes).chainId!==this.chainId)throw new Error("Chain id in the message is not matched with the requested chain id");if(!this.signOptions)throw new Error("Sign options are null")}approveExternal(){return!0}route(){return o.ROUTE}type(){return S.type()}}t.RequestSignDirectMsg=S;class O extends n.Message{static type(){return"get-keyring-type"}constructor(){super()}validateBasic(){}route(){return o.ROUTE}type(){return O.type()}}t.GetKeyRingTypeMsg=O;class j extends n.Message{static type(){return"get-multi-key-store-info"}constructor(){super()}validateBasic(){}route(){return o.ROUTE}type(){return j.type()}}t.GetMultiKeyStoreInfoMsg=j;class E extends n.Message{constructor(e){super(),this.index=e}static type(){return"change-keyring"}validateBasic(){if(this.index<0)throw new Error("Index is negative");if(!Number.isInteger(this.index))throw new Error("Invalid index")}route(){return o.ROUTE}type(){return E.type()}}t.ChangeKeyRingMsg=E;class P extends n.Message{constructor(e,t){super(),this.chainId=e,this.paths=t}static type(){return"get-is-keystore-coin-type-set"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(0===this.paths.length)throw new Error("empty bip44 path list")}route(){return o.ROUTE}type(){return P.type()}}t.GetIsKeyStoreCoinTypeSetMsg=P;class x extends n.Message{constructor(e,t){super(),this.chainId=e,this.coinType=t}static type(){return"set-keystore-coin-type"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(this.coinType<0)throw new Error("coin type can not be negative");if(!Number.isInteger(this.coinType))throw new Error("coin type should be integer")}route(){return o.ROUTE}type(){return x.type()}}t.SetKeyStoreCoinTypeMsg=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemovePermissionOrigin=t.GetPermissionOriginsMsg=t.EnableAccessMsg=void 0;const n=r(18),o=r(354);class i extends n.Message{constructor(e){super(),this.chainIds=e}static type(){return"enable-access"}validateBasic(){if(!this.chainIds||0===this.chainIds.length)throw new Error("chain id not set")}route(){return o.ROUTE}approveExternal(){return!0}type(){return i.type()}}t.EnableAccessMsg=i;class s extends n.Message{constructor(e,t){super(),this.chainId=e,this.permissionType=t}static type(){return"get-permission-origins"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.permissionType)throw new Error("empty permission type")}route(){return o.ROUTE}type(){return s.type()}}t.GetPermissionOriginsMsg=s;class a extends n.Message{constructor(e,t,r){super(),this.chainId=e,this.permissionType=t,this.permissionOrigin=r}static type(){return"remove-permission-origin"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.permissionType)throw new Error("empty permission type");if(!this.permissionOrigin)throw new Error("empty permission origin")}route(){return o.ROUTE}type(){return a.type()}}t.RemovePermissionOrigin=a},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.makeSignBytes=t.makeSignDoc=t.makeAuthInfoBytes=void 0;const o=n(r(113)),i=r(356),s=r(355);t.makeAuthInfoBytes=function(e,t,r,n,a=i.SignMode.SIGN_MODE_DIRECT){const c={signerInfos:e.map(e=>({publicKey:e,modeInfo:{single:{mode:a}},sequence:o.default.fromNumber(n)})),fee:{amount:[...t],gasLimit:o.default.fromNumber(r)}};return s.AuthInfo.encode(s.AuthInfo.fromPartial(c)).finish()},t.makeSignDoc=function(e,t,r,n){return{bodyBytes:e,authInfoBytes:t,chainId:r,accountNumber:o.default.fromNumber(n)}},t.makeSignBytes=function({accountNumber:e,authInfoBytes:t,bodyBytes:r,chainId:n}){const o=s.SignDoc.fromPartial({accountNumber:e,authInfoBytes:t,bodyBytes:r,chainId:n});return s.SignDoc.encode(o).finish()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42);function o(e){if(!n.isNonNullObject(e))throw new Error("Attribute must be a non-null object");const{key:t,value:r}=e;if("string"!=typeof t||!t)throw new Error("Attribute's key must be a non-empty string");if("string"!=typeof r&&void 0!==r)throw new Error("Attribute's value must be a string or unset");return{key:t,value:r||""}}function i(e){if(!n.isNonNullObject(e))throw new Error("Event must be a non-null object");const{type:t,attributes:r}=e;if("string"!=typeof t||""===t)throw new Error("Event type must be a non-empty string");if(!Array.isArray(r))throw new Error("Event's attributes must be an array");return{type:t,attributes:r.map(o)}}function s(e){if(!n.isNonNullObject(e))throw new Error("Log must be a non-null object");const{msg_index:t,log:r,events:o}=e;if("number"!=typeof t)throw new Error("Log's msg_index must be a number");if("string"!=typeof r)throw new Error("Log's log must be a string");if(!Array.isArray(o))throw new Error("Log's events must be an array");return{msg_index:t,log:r,events:o.map(i)}}t.parseAttribute=o,t.parseEvent=i,t.parseLog=s,t.parseLogs=function(e){if(!Array.isArray(e))throw new Error("Logs must be an array");return e.map(s)},t.findAttribute=function(e,t,r){var n,o;const i=null===(o=null===(n=e.find(()=>!0))||void 0===n?void 0:n.events.find(e=>e.type===t))||void 0===o?void 0:o.attributes.find(e=>e.key===r);if(!i)throw new Error(`Could not find attribute '${r}' in first event of type '${t}' in first log.`);return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(742);Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return n.fromAscii}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return n.toAscii}});var o=r(743);Object.defineProperty(t,"fromBase64",{enumerable:!0,get:function(){return o.fromBase64}}),Object.defineProperty(t,"toBase64",{enumerable:!0,get:function(){return o.toBase64}});var i=r(744);Object.defineProperty(t,"Bech32",{enumerable:!0,get:function(){return i.Bech32}});var s=r(745);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return s.fromHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return s.toHex}});var a=r(746);Object.defineProperty(t,"fromRfc3339",{enumerable:!0,get:function(){return a.fromRfc3339}}),Object.defineProperty(t,"toRfc3339",{enumerable:!0,get:function(){return a.toRfc3339}});var c=r(747);Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return c.fromUtf8}}),Object.defineProperty(t,"toUtf8",{enumerable:!0,get:function(){return c.toUtf8}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42),{toUtf8:o}=n.Encoding;function i(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(i);return Object.keys(e).sort().reduce((t,r)=>Object.assign(Object.assign({},t),{[r]:i(e[r])}),{})}t.marshalTx=function(e){const t=JSON.stringify(e);return n.Encoding.toUtf8(t)},t.makeSignBytes=function(e,t,r,n,s,a){const c=i({account_number:s.toString(),chain_id:r,fee:t,memo:n,msgs:e,sequence:a.toString()});return o(JSON.stringify(c))}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(42),i=n(r(68)),s=n(r(368));function a(e){return e||[]}var c;function u(e){return void 0!==e.error}function l(e){if(u(e))throw new Error(e.error);return e.result}function f(e){var t;if(null===(t=e.response)||void 0===t?void 0:t.data){let t;const r=e.response.data;throw t=r.error&&"string"==typeof r.error?r.error:"string"==typeof r?r:JSON.stringify(r),new Error(`${t} (HTTP ${e.response.status})`)}throw e}!function(e){e.Block="block",e.Sync="sync",e.Async="async"}(c=t.BroadcastMode||(t.BroadcastMode={}));t.RestClient=class{constructor(e,t=c.Block,r){this.client=i.default.create({baseURL:e,headers:{post:{"Content-Type":"application/json"}}}),this.broadcastMode=t,this.enigmautils=new s.default(e,r),this.codeHashCache=new Map}async get(e){const{data:t}=await this.client.get(e).catch(f);if(null===t)throw new Error("Received null response from server");return t}async post(e,t){if(!o.isNonNullObject(t))throw new Error("Got unexpected type of params. Expected object.");const{data:r}=await this.client.post(e,t).catch(f);if(null===r)throw new Error("Received null response from server");return r}async authAccounts(e){const t="/auth/accounts/"+e,r=await this.get(t);if("cosmos-sdk/Account"!==r.result.type)throw new Error("Unexpected response data format");return r}async blocksLatest(){const e=await this.get("/blocks/latest");if(!e.block)throw new Error("Unexpected response data format");return e}async blocks(e){const t=await this.get("/blocks/"+e);if(!t.block)throw new Error("Unexpected response data format");return t}async nodeInfo(){const e=await this.get("/node_info");if(!e.node_info)throw new Error("Unexpected response data format");return e}async txById(e,t=!0){const r=await this.get("/txs/"+e);if(!r.tx)throw new Error("Unexpected response data format");return t?this.decryptTxsResponse(r):r}async txsQuery(e){const t=await this.get("/txs?"+e);if(!t.txs)throw new Error("Unexpected response data format");const r=t;for(let e=0;e<r.txs.length;e++)r.txs[e]=await this.decryptTxsResponse(r.txs[e]);return r}async encodeTx(e){const t=await this.post("/txs/encode",e);if(!t.tx)throw new Error("Unexpected response data format");return o.Encoding.fromBase64(t.tx)}async postTx(e){const t={tx:e,mode:this.broadcastMode},r=await this.post("/txs",t);if(!r.txhash)throw new Error("Unexpected response data format");return r}async listCodeInfo(){const e=await this.get("/wasm/code");return a(await l(e))}async getCode(e){const t="/wasm/code/"+e,r=await this.get(t);return await l(r)}async listContractsByCodeId(e){const t=`/wasm/code/${e}/contracts`,r=await this.get(t);return a(await l(r))}async getCodeHashByCodeId(e){const t=this.codeHashCache.get(e);if("string"==typeof t)return t;const r=`/wasm/code/${e}/hash`,n=await this.get(r);return this.codeHashCache.set(e,n.result),n.result}async getCodeHashByContractAddr(e){const t=this.codeHashCache.get(e);if("string"==typeof t)return t;const r=`/wasm/contract/${e}/code-hash`,n=await this.get(r);return this.codeHashCache.set(e,n.result),n.result}async getContractInfo(e){const t="/wasm/contract/"+e,r=await this.get(t);return await l(r)}async queryContractSmart(e,t,r){const n=await this.getCodeHashByContractAddr(e),i=await this.enigmautils.encrypt(n,t),s=i.slice(0,32),a=`/wasm/contract/${e}/query/${o.Encoding.toHex(o.Encoding.toUtf8(o.Encoding.toBase64(i)))}?encoding=hex&${new URLSearchParams(r).toString()}`;let c;try{c=await this.get(a)}catch(e){try{const t=/contract failed: encrypted: (.+?) \(HTTP 500\)/g.exec(e.message);if(null==t||2!=t.length)throw e;const r=t[1],n=o.Encoding.fromBase64(r),i=await this.enigmautils.decrypt(n,s);e.message=e.message.replace(r,o.Encoding.fromUtf8(i))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}.`)}throw e}if(u(c))throw new Error(JSON.stringify(await this.enigmautils.decrypt(o.Encoding.fromBase64(c.error),s)));return JSON.parse(o.Encoding.fromUtf8(o.Encoding.fromBase64(o.Encoding.fromUtf8(await this.enigmautils.decrypt(o.Encoding.fromBase64(c.result.smart),s)))))}async getMasterCerts(e,t){return this.get("/register/master-cert")}async decryptDataField(e="",t){const r=o.Encoding.fromHex(e);let n;for(const e of t)try{return o.Encoding.fromBase64(o.Encoding.fromUtf8(await this.enigmautils.decrypt(r,e)))}catch(e){n=e}throw n}async decryptLogs(e,t){for(const r of e)for(const e of r.events)if("wasm"===e.type)for(const r of t){let t=!1;for(const n of e.attributes){try{n.key=o.Encoding.fromUtf8(await this.enigmautils.decrypt(o.Encoding.fromBase64(n.key),r)),t=!0}catch(e){}try{n.value=o.Encoding.fromUtf8(await this.enigmautils.decrypt(o.Encoding.fromBase64(n.value),r)),t=!0}catch(e){}}}return e}async decryptTxsResponse(e){if(1===e.tx.value.msg.length){const t=e.tx.value.msg[0];let r;if("wasm/MsgExecuteContract"===t.type)r=o.Encoding.fromBase64(t.value.msg);else{if("wasm/MsgInstantiateContract"!==t.type)return e;r=o.Encoding.fromBase64(t.value.init_msg)}const n=r.slice(32,64);if(o.Encoding.toBase64(await this.enigmautils.getPubkey())===o.Encoding.toBase64(n)){const n=r.slice(0,32),i=o.Encoding.fromUtf8(await this.enigmautils.decrypt(r.slice(64),n));let s;"wasm/MsgExecuteContract"===t.type?e.tx.value.msg[0].value.msg=i:"wasm/MsgInstantiateContract"===t.type&&(e.tx.value.msg[0].value.init_msg=i),e.data=await this.decryptDataField(e.data,[n]),e.logs&&(s=await this.decryptLogs(e.logs,[n]),e=Object.assign({},e,{logs:s}));const a=/contract failed: encrypted: (.+?): failed to execute message; message index: 0/g.exec(e.raw_log);if(Array.isArray(a)&&2===a.length){const t=a[1],r=o.Encoding.fromBase64(t),i=await this.enigmautils.decrypt(r,n);e.raw_log=e.raw_log.replace(t,o.Encoding.fromUtf8(i))}}}return e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}t.IntegrityError=n;class o extends Error{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}t.NotImplementedError=o},function(e,t,r){"use strict";function n(e,t){if(e.length!==t.length)return 0;let r=0;for(let n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.compare=n,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(let t=0;t<e.length;t++)e[t]=0;return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xor=function(e,t){for(let r=0;r<t.length;r++)e[r]^=t[r]}},function(e,t,r){"use strict";e.exports=function(e,t){return function(r,n){var o=2*n,i=2*t;r[o]=e[i],r[o+1]=e[i+1]}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(42),i=n(r(798)),s=r(104);t.encodeSecp256k1Pubkey=function(e){if(33!==e.length||2!==e[0]&&3!==e[0])throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:s.pubkeyType.secp256k1,value:o.Encoding.toBase64(e)}};const a=o.Encoding.fromHex("eb5ae98721"),c=o.Encoding.fromHex("1624de6420"),u=o.Encoding.fromHex("0dfb1005"),l=a.length;t.decodeBech32Pubkey=function(e){const{data:t}=o.Bech32.decode(e),r=t.slice(0,l),n=t.slice(l);if(i.default(r,a)){if(33!==n.length)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:s.pubkeyType.secp256k1,value:o.Encoding.toBase64(n)}}if(i.default(r,c)){if(32!==n.length)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:s.pubkeyType.ed25519,value:o.Encoding.toBase64(n)}}if(i.default(r,u)){if(32!==n.length)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:s.pubkeyType.sr25519,value:o.Encoding.toBase64(n)}}throw new Error("Unsupported Pubkey type. Amino prefix: "+o.Encoding.toHex(r))},t.encodeBech32Pubkey=function(e,t){let r;switch(e.type){case s.pubkeyType.secp256k1:r=a;break;default:throw new Error("Unsupported pubkey type")}const n=new Uint8Array([...r,...o.Encoding.fromBase64(e.value)]);return o.Bech32.encode(t,n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42),o=r(203),i=r(104);t.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:o.encodeSecp256k1Pubkey(e),signature:n.Encoding.toBase64(t)}},t.decodeSignature=function(e){switch(e.pub_key.type){case i.pubkeyType.secp256k1:return{pubkey:n.Encoding.fromBase64(e.pub_key.value),signature:n.Encoding.fromBase64(e.signature)};default:throw new Error("Unsupported pubkey type")}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetTxEncryptionKeyMsg=t.RequestDecryptMsg=t.ReqeustEncryptMsg=t.GetPubkeyMsg=void 0;const n=r(18),o=r(378);class i extends n.Message{constructor(e){super(),this.chainId=e}static type(){return"get-pubkey-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set")}approveExternal(){return!0}route(){return o.ROUTE}type(){return i.type()}}t.GetPubkeyMsg=i;class s extends n.Message{constructor(e,t,r){super(),this.chainId=e,this.contractCodeHash=t,this.msg=r}static type(){return"request-encrypt-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.contractCodeHash)throw new Error("contract code hash not set");if(!this.msg)throw new Error("msg not set")}approveExternal(){return!0}route(){return o.ROUTE}type(){return s.type()}}t.ReqeustEncryptMsg=s;class a extends n.Message{constructor(e,t,r){super(),this.chainId=e,this.cipherText=t,this.nonce=r}static type(){return"request-decrypt-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.cipherText||0===this.cipherText.length)throw new Error("ciphertext not set");if(!this.nonce||0===this.nonce.length)throw new Error("nonce not set")}approveExternal(){return!0}route(){return o.ROUTE}type(){return a.type()}}t.RequestDecryptMsg=a;class c extends n.Message{constructor(e,t){super(),this.chainId=e,this.nonce=t}static type(){return"get-tx-encryption-key-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.nonce)throw new Error("nonce is null")}approveExternal(){return!0}route(){return o.ROUTE}type(){return c.type()}}t.GetTxEncryptionKeyMsg=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SendTxMsg=void 0;const n=r(18),o=r(380);class i extends n.Message{constructor(e,t,r){super(),this.chainId=e,this.tx=t,this.mode=r}static type(){return"send-tx-to-background"}validateBasic(){if(!this.chainId)throw new Error("chain id is empty");if(!this.tx)throw new Error("tx is empty");if(!this.mode||"sync"!==this.mode&&"async"!==this.mode&&"block"!==this.mode)throw new Error("invalid mode")}approveExternal(){return!0}route(){return o.ROUTE}type(){return i.type()}}t.SendTxMsg=i},function(e,t,r){const n=r(84);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(131).SEMVER_SPEC_VERSION,SemVer:r(24),compareIdentifiers:r(182).compareIdentifiers,rcompareIdentifiers:r(182).rcompareIdentifiers,parse:r(85),valid:r(686),clean:r(687),inc:r(688),diff:r(689),major:r(690),minor:r(691),patch:r(692),prerelease:r(693),compare:r(40),rcompare:r(694),compareLoose:r(695),compareBuild:r(184),sort:r(696),rsort:r(697),gt:r(134),lt:r(185),eq:r(183),neq:r(346),gte:r(186),lte:r(187),cmp:r(347),coerce:r(698),Comparator:r(135),Range:r(41),satisfies:r(136),toComparators:r(702),maxSatisfying:r(703),minSatisfying:r(704),minVersion:r(705),validRange:r(706),outside:r(188),gtr:r(707),ltr:r(708),intersects:r(709),simplifyRange:r(710),subset:r(711)}},,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntPretty=void 0;const n=r(112),o=r(149),i=r(234);class s{constructor(e){if(this._options={precision:0,maxDecimals:0,trim:!1,shrink:!1,ready:!0,locale:!0},e instanceof n.Dec){let t=e,r=0;for(let e=0;e<18&&(t=t.mul(new n.Dec(10)),!t.equals(new n.Dec(t.truncate())));e++)r++;const i=e.mulTruncate(o.DecUtils.getPrecisionDec(r));this.int=i.truncate(),this._options.precision=r}else this.int=e}get options(){return this._options}precision(e){const t=this.clone();return t._options.precision=e,t}maxDecimals(e){const t=this.clone();return t._options.maxDecimals=e,t}trim(e){const t=this.clone();return t._options.trim=e,t}shrink(e){const t=this.clone();return t._options.shrink=e,t}locale(e){const t=this.clone();return t._options.locale=e,t}ready(e){const t=this.clone();return t._options.ready=e,t}get isReady(){return this._options.ready}add(e){const t=this.clone();return t.int=t.int.add(e.int),t}toDec(){let e=new n.Dec(this.int);return this._options.precision&&(e=e.quoTruncate(o.DecUtils.getPrecisionDec(this._options.precision))),e}toString(){const e=this.toDec();let t="";return t=this._options.shrink?i.CoinUtils.shrinkDecimals(this.int,this._options.precision,0,this._options.maxDecimals,this._options.locale):e.toString(this._options.maxDecimals,this._options.locale),this._options.trim&&(t=o.DecUtils.trim(t)),t}clone(){const e=new s(this.int);return e._options=Object.assign({},this._options),e}}t.IntPretty=s},function(e,t,r){(function(n,o){var i;
26 /**
27  * [js-sha3]{@link https://github.com/emn178/js-sha3}
28  *
29  * @version 0.8.0
30  * @author Chen, Yi-Cyuan [emn178@gmail.com]
31  * @copyright Chen, Yi-Cyuan 2015-2018
32  * @license MIT
33  */!function(){"use strict";var s="input is invalid type",a="object"==typeof window,c=a?window:{};c.JS_SHA3_NO_WINDOW&&(a=!1);var u=!a&&"object"==typeof self;!c.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?c=o:u&&(c=self);var l=!c.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,f=r(408),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,h="0123456789abcdef".split(""),p=[4,1024,262144,67108864],g=[0,8,16,24],m=[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],y=[224,256,384,512],b=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var _=function(e,t,r){return function(n){return new B(e,t,e).update(n)[r]()}},k=function(e,t,r){return function(n,o){return new B(e,t,o).update(n)[r]()}},S=function(e,t,r){return function(t,n,o,i){return x["cshake"+e].update(t,n,o,i)[r]()}},O=function(e,t,r){return function(t,n,o,i){return x["kmac"+e].update(t,n,o,i)[r]()}},j=function(e,t,r,n){for(var o=0;o<v.length;++o){var i=v[o];e[i]=t(r,n,i)}return e},E=function(e,t){var r=_(e,t,"hex");return r.create=function(){return new B(e,t,e)},r.update=function(e){return r.create().update(e)},j(r,_,e,t)},P=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:E},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:E},{name:"shake",padding:[31,7936,2031616,520093696],bits:b,createMethod:function(e,t){var r=k(e,t,"hex");return r.create=function(r){return new B(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},j(r,k,e,t)}},{name:"cshake",padding:p,bits:b,createMethod:function(e,t){var r=w[e],n=S(e,0,"hex");return n.create=function(n,o,i){return o||i?new B(e,t,n).bytepad([o,i],r):x["shake"+e].create(n)},n.update=function(e,t,r,o){return n.create(t,r,o).update(e)},j(n,S,e,t)}},{name:"kmac",padding:p,bits:b,createMethod:function(e,t){var r=w[e],n=O(e,0,"hex");return n.create=function(n,o,i){return new D(e,t,o).bytepad(["KMAC",i],r).bytepad([n],r)},n.update=function(e,t,r,o){return n.create(e,r,o).update(t)},j(n,O,e,t)}}],x={},A=[],M=0;M<P.length;++M)for(var I=P[M],C=I.bits,R=0;R<C.length;++R){var T=I.name+"_"+C[R];if(A.push(T),x[T]=I.createMethod(C[R],I.padding),"sha3"!==I.name){var N=I.name+C[R];A.push(N),x[N]=x[T]}}function B(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function D(e,t,r){B.call(this,e,t,r)}B.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}for(var n,o,i=this.blocks,a=this.byteCount,c=e.length,u=this.blockCount,l=0,f=this.s;l<c;){if(this.reset)for(this.reset=!1,i[0]=this.block,n=1;n<u+1;++n)i[n]=0;if(t)for(n=this.start;l<c&&n<a;++l)i[n>>2]|=e[l]<<g[3&n++];else for(n=this.start;l<c&&n<a;++l)(o=e.charCodeAt(l))<128?i[n>>2]|=o<<g[3&n++]:o<2048?(i[n>>2]|=(192|o>>6)<<g[3&n++],i[n>>2]|=(128|63&o)<<g[3&n++]):o<55296||o>=57344?(i[n>>2]|=(224|o>>12)<<g[3&n++],i[n>>2]|=(128|o>>6&63)<<g[3&n++],i[n>>2]|=(128|63&o)<<g[3&n++]):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++l)),i[n>>2]|=(240|o>>18)<<g[3&n++],i[n>>2]|=(128|o>>12&63)<<g[3&n++],i[n>>2]|=(128|o>>6&63)<<g[3&n++],i[n>>2]|=(128|63&o)<<g[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=i[u],n=0;n<u;++n)f[n]^=i[n];L(f),this.reset=!0}else this.start=n}return this},B.prototype.encode=function(e,t){var r=255&e,n=1,o=[r];for(r=255&(e>>=8);r>0;)o.unshift(r),r=255&(e>>=8),++n;return t?o.push(n):o.unshift(n),this.update(o),o.length},B.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(s);if(null===e)throw new Error(s);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(s);t=!0}var n=0,o=e.length;if(t)n=o;else for(var i=0;i<e.length;++i){var a=e.charCodeAt(i);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),n+=4)}return n+=this.encode(8*n),this.update(e),n},B.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var o=t-r%t,i=[];return i.length=o,this.update(i),this},B.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];L(n)}},B.prototype.toString=B.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,s=0,a="";s<n;){for(i=0;i<t&&s<n;++i,++s)e=r[i],a+=h[e>>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];s%t==0&&(L(r),i=0)}return o&&(e=r[i],a+=h[e>>4&15]+h[15&e],o>1&&(a+=h[e>>12&15]+h[e>>8&15]),o>2&&(a+=h[e>>20&15]+h[e>>16&15])),a},B.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,s=0,a=this.outputBits>>3;e=o?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var c=new Uint32Array(e);s<n;){for(i=0;i<t&&s<n;++i,++s)c[s]=r[i];s%t==0&&L(r)}return o&&(c[i]=r[i],e=e.slice(0,a)),e},B.prototype.buffer=B.prototype.arrayBuffer,B.prototype.digest=B.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,o=this.outputBlocks,i=this.extraBytes,s=0,a=0,c=[];a<o;){for(s=0;s<r&&a<o;++s,++a)e=a<<2,t=n[s],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;a%r==0&&L(n)}return i&&(e=a<<2,t=n[s],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},D.prototype=new B,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),B.prototype.finalize.call(this)};var L=function(e){var t,r,n,o,i,s,a,c,u,l,f,d,h,p,g,y,b,v,w,_,k,S,O,j,E,P,x,A,M,I,C,R,T,N,B,D,L,U,q,H,z,F,K,$,V,J,G,W,Q,Z,Y,X,ee,te,re,ne,oe,ie,se,ae,ce,ue,le;for(n=0;n<48;n+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|a>>>31),r=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(a<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=o^(c<<1|u>>>31),r=i^(u<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(l<<1|f>>>31),r=a^(f<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(d<<1|h>>>31),r=u^(h<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(o<<1|i>>>31),r=f^(i<<1|o>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],g=e[1],J=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,A=e[20]<<3|e[21]>>>29,M=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,F=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,W=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,I=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,T=e[44]<<29|e[45]>>>3,j=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,q=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,x=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,se=e[28]<<7|e[29]>>>25,H=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,S=e[48]<<14|e[49]>>>18,O=e[49]<<14|e[48]>>>18,e[0]=p^~y&v,e[1]=g^~b&w,e[10]=j^~P&A,e[11]=E^~x&M,e[20]=N^~D&U,e[21]=B^~L&q,e[30]=$^~J&W,e[31]=V^~G&Q,e[40]=te^~ne&ie,e[41]=re^~oe&se,e[2]=y^~v&_,e[3]=b^~w&k,e[12]=P^~A&I,e[13]=x^~M&C,e[22]=D^~U&H,e[23]=L^~q&z,e[32]=J^~W&Z,e[33]=G^~Q&Y,e[42]=ne^~ie&ae,e[43]=oe^~se&ce,e[4]=v^~_&S,e[5]=w^~k&O,e[14]=A^~I&R,e[15]=M^~C&T,e[24]=U^~H&F,e[25]=q^~z&K,e[34]=W^~Z&X,e[35]=Q^~Y&ee,e[44]=ie^~ae&ue,e[45]=se^~ce&le,e[6]=_^~S&p,e[7]=k^~O&g,e[16]=I^~R&j,e[17]=C^~T&E,e[26]=H^~F&N,e[27]=z^~K&B,e[36]=Z^~X&$,e[37]=Y^~ee&V,e[46]=ae^~ue&te,e[47]=ce^~le&re,e[8]=S^~p&y,e[9]=O^~g&b,e[18]=R^~j&P,e[19]=T^~E&x,e[28]=F^~N&D,e[29]=K^~B&L,e[38]=X^~$&J,e[39]=ee^~V&G,e[48]=ue^~te&ne,e[49]=le^~re&oe,e[0]^=m[n],e[1]^=m[n+1]};if(l)e.exports=x;else{for(M=0;M<A.length;++M)c[A[M]]=x[A[M]];f&&(void 0===(i=function(){return x}.call(t,r,t,e))||(e.exports=i))}}()}).call(this,r(13),r(12))},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(449),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(12))},,,,,,,,,,function(e,t,r){(function(e){var n,o=function(e){"use strict";var t=1e7,r=9007199254740992,n=f(r),i="function"==typeof BigInt;function s(e,t,r,n){return void 0===e?s[0]:void 0!==t&&(10!=+t||r)?q(e,t,r,n):$(e)}function a(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function l(e){return-r<e&&e<r}function f(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function d(e){h(e);var r=e.length;if(r<4&&x(e,n)<0)switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function h(e){for(var t=e.length;0===e[--t];);e.length=t+1}function p(e){for(var t=new Array(e),r=-1;++r<e;)t[r]=0;return t}function g(e){return e>0?Math.floor(e):Math.ceil(e)}function m(e,r){var n,o,i=e.length,s=r.length,a=new Array(i),c=0,u=t;for(o=0;o<s;o++)c=(n=e[o]+r[o]+c)>=u?1:0,a[o]=n-c*u;for(;o<i;)c=(n=e[o]+c)===u?1:0,a[o++]=n-c*u;return c>0&&a.push(c),a}function y(e,t){return e.length>=t.length?m(e,t):m(t,e)}function b(e,r){var n,o,i=e.length,s=new Array(i),a=t;for(o=0;o<i;o++)n=e[o]-a+r,r=Math.floor(n/a),s[o]=n-r*a,r+=1;for(;r>0;)s[o++]=r%a,r=Math.floor(r/a);return s}function v(e,t){var r,n,o=e.length,i=t.length,s=new Array(o),a=0;for(r=0;r<i;r++)(n=e[r]-a-t[r])<0?(n+=1e7,a=1):a=0,s[r]=n;for(r=i;r<o;r++){if(!((n=e[r]-a)<0)){s[r++]=n;break}n+=1e7,s[r]=n}for(;r<o;r++)s[r]=e[r];return h(s),s}function w(e,t,r){var n,o,i=e.length,s=new Array(i),u=-t;for(n=0;n<i;n++)o=e[n]+u,u=Math.floor(o/1e7),o%=1e7,s[n]=o<0?o+1e7:o;return"number"==typeof(s=d(s))?(r&&(s=-s),new c(s)):new a(s,r)}function _(e,t){var r,n,o,i,s=e.length,a=t.length,c=p(s+a);for(o=0;o<s;++o){i=e[o];for(var u=0;u<a;++u)r=i*t[u]+c[o+u],n=Math.floor(r/1e7),c[o+u]=r-1e7*n,c[o+u+1]+=n}return h(c),c}function k(e,r){var n,o,i=e.length,s=new Array(i),a=t,c=0;for(o=0;o<i;o++)n=e[o]*r+c,c=Math.floor(n/a),s[o]=n-c*a;for(;c>0;)s[o++]=c%a,c=Math.floor(c/a);return s}function S(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function O(e,r,n){return new a(e<t?k(r,e):_(r,f(e)),n)}function j(e){var t,r,n,o,i=e.length,s=p(i+i);for(n=0;n<i;n++){r=0-(o=e[n])*o;for(var a=n;a<i;a++)t=o*e[a]*2+s[n+a]+r,r=Math.floor(t/1e7),s[n+a]=t-1e7*r;s[n+i]=r}return h(s),s}function E(e,t){var r,n,o,i,s=e.length,a=p(s);for(o=0,r=s-1;r>=0;--r)o=(i=1e7*o+e[r])-(n=g(i/t))*t,a[r]=0|n;return[a,0|o]}function P(e,r){var n,o=$(r);if(i)return[new u(e.value/o.value),new u(e.value%o.value)];var l,m=e.value,y=o.value;if(0===y)throw new Error("Cannot divide by zero");if(e.isSmall)return o.isSmall?[new c(g(m/y)),new c(m%y)]:[s[0],e];if(o.isSmall){if(1===y)return[e,s[0]];if(-1==y)return[e.negate(),s[0]];var b=Math.abs(y);if(b<t){l=d((n=E(m,b))[0]);var w=n[1];return e.sign&&(w=-w),"number"==typeof l?(e.sign!==o.sign&&(l=-l),[new c(l),new c(w)]):[new a(l,e.sign!==o.sign),new c(w)]}y=f(b)}var _=x(m,y);if(-1===_)return[s[0],e];if(0===_)return[s[e.sign===o.sign?1:-1],s[0]];l=(n=m.length+y.length<=200?function(e,r){var n,o,i,s,a,c,u,l=e.length,f=r.length,h=t,g=p(r.length),m=r[f-1],y=Math.ceil(h/(2*m)),b=k(e,y),v=k(r,y);for(b.length<=l&&b.push(0),v.push(0),m=v[f-1],o=l-f;o>=0;o--){for(n=h-1,b[o+f]!==m&&(n=Math.floor((b[o+f]*h+b[o+f-1])/m)),i=0,s=0,c=v.length,a=0;a<c;a++)i+=n*v[a],u=Math.floor(i/h),s+=b[o+a]-(i-u*h),i=u,s<0?(b[o+a]=s+h,s=-1):(b[o+a]=s,s=0);for(;0!==s;){for(n-=1,i=0,a=0;a<c;a++)(i+=b[o+a]-h+v[a])<0?(b[o+a]=i+h,i=0):(b[o+a]=i,i=1);s+=i}g[o]=n}return b=E(b,y)[0],[d(g),d(b)]}(m,y):function(e,t){for(var r,n,o,i,s,a=e.length,c=t.length,u=[],l=[];a;)if(l.unshift(e[--a]),h(l),x(l,t)<0)u.push(0);else{o=1e7*l[(n=l.length)-1]+l[n-2],i=1e7*t[c-1]+t[c-2],n>c&&(o=1e7*(o+1)),r=Math.ceil(o/i);do{if(x(s=k(t,r),l)<=0)break;r--}while(r);u.push(r),l=v(l,s)}return u.reverse(),[d(u),d(l)]}(m,y))[0];var S=e.sign!==o.sign,O=n[1],j=e.sign;return"number"==typeof l?(S&&(l=-l),l=new c(l)):l=new a(l,S),"number"==typeof O?(j&&(O=-O),O=new c(O)):O=new a(O,j),[l,O]}function x(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function A(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function M(e,t){for(var r,n,i,s=e.prev(),a=s,c=0;a.isEven();)a=a.divide(2),c++;e:for(n=0;n<t.length;n++)if(!e.lesser(t[n])&&!(i=o(t[n]).modPow(a,e)).isUnit()&&!i.equals(s)){for(r=c-1;0!=r;r--){if((i=i.square().mod(e)).isUnit())return!1;if(i.equals(s))continue e}return!1}return!0}a.prototype=Object.create(s.prototype),c.prototype=Object.create(s.prototype),u.prototype=Object.create(s.prototype),a.prototype.add=function(e){var t=$(e);if(this.sign!==t.sign)return this.subtract(t.negate());var r=this.value,n=t.value;return t.isSmall?new a(b(r,Math.abs(n)),this.sign):new a(y(r,n),this.sign)},a.prototype.plus=a.prototype.add,c.prototype.add=function(e){var t=$(e),r=this.value;if(r<0!==t.sign)return this.subtract(t.negate());var n=t.value;if(t.isSmall){if(l(r+n))return new c(r+n);n=f(Math.abs(n))}return new a(b(n,Math.abs(r)),r<0)},c.prototype.plus=c.prototype.add,u.prototype.add=function(e){return new u(this.value+$(e).value)},u.prototype.plus=u.prototype.add,a.prototype.subtract=function(e){var t=$(e);if(this.sign!==t.sign)return this.add(t.negate());var r=this.value,n=t.value;return t.isSmall?w(r,Math.abs(n),this.sign):function(e,t,r){var n;return x(e,t)>=0?n=v(e,t):(n=v(t,e),r=!r),"number"==typeof(n=d(n))?(r&&(n=-n),new c(n)):new a(n,r)}(r,n,this.sign)},a.prototype.minus=a.prototype.subtract,c.prototype.subtract=function(e){var t=$(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new c(r-n):w(n,Math.abs(r),r>=0)},c.prototype.minus=c.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-$(e).value)},u.prototype.minus=u.prototype.subtract,a.prototype.negate=function(){return new a(this.value,!this.sign)},c.prototype.negate=function(){var e=this.sign,t=new c(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},a.prototype.abs=function(){return new a(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},a.prototype.multiply=function(e){var r,n,o,i=$(e),c=this.value,u=i.value,l=this.sign!==i.sign;if(i.isSmall){if(0===u)return s[0];if(1===u)return this;if(-1===u)return this.negate();if((r=Math.abs(u))<t)return new a(k(c,r),l);u=f(r)}return n=c.length,o=u.length,new a(-.012*n-.012*o+15e-6*n*o>0?function e(t,r){var n=Math.max(t.length,r.length);if(n<=30)return _(t,r);n=Math.ceil(n/2);var o=t.slice(n),i=t.slice(0,n),s=r.slice(n),a=r.slice(0,n),c=e(i,a),u=e(o,s),l=e(y(i,o),y(a,s)),f=y(y(c,S(v(v(l,c),u),n)),S(u,2*n));return h(f),f}(c,u):_(c,u),l)},a.prototype.times=a.prototype.multiply,c.prototype._multiplyBySmall=function(e){return l(e.value*this.value)?new c(e.value*this.value):O(Math.abs(e.value),f(Math.abs(this.value)),this.sign!==e.sign)},a.prototype._multiplyBySmall=function(e){return 0===e.value?s[0]:1===e.value?this:-1===e.value?this.negate():O(Math.abs(e.value),this.value,this.sign!==e.sign)},c.prototype.multiply=function(e){return $(e)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*$(e).value)},u.prototype.times=u.prototype.multiply,a.prototype.square=function(){return new a(j(this.value),!1)},c.prototype.square=function(){var e=this.value*this.value;return l(e)?new c(e):new a(j(f(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},a.prototype.divmod=function(e){var t=P(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=c.prototype.divmod=a.prototype.divmod,a.prototype.divide=function(e){return P(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/$(e).value)},c.prototype.over=c.prototype.divide=a.prototype.over=a.prototype.divide,a.prototype.mod=function(e){return P(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%$(e).value)},c.prototype.remainder=c.prototype.mod=a.prototype.remainder=a.prototype.mod,a.prototype.pow=function(e){var t,r,n,o=$(e),i=this.value,a=o.value;if(0===a)return s[1];if(0===i)return s[0];if(1===i)return s[1];if(-1===i)return o.isEven()?s[1]:s[-1];if(o.sign)return s[0];if(!o.isSmall)throw new Error("The exponent "+o.toString()+" is too large.");if(this.isSmall&&l(t=Math.pow(i,a)))return new c(g(t));for(r=this,n=s[1];!0&a&&(n=n.times(r),--a),0!==a;)a/=2,r=r.square();return n},c.prototype.pow=a.prototype.pow,u.prototype.pow=function(e){var t=$(e),r=this.value,n=t.value,o=BigInt(0),i=BigInt(1),a=BigInt(2);if(n===o)return s[1];if(r===o)return s[0];if(r===i)return s[1];if(r===BigInt(-1))return t.isEven()?s[1]:s[-1];if(t.isNegative())return new u(o);for(var c=this,l=s[1];(n&i)===i&&(l=l.times(c),--n),n!==o;)n/=a,c=c.square();return l},a.prototype.modPow=function(e,t){if(e=$(e),(t=$(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=s[1],n=this.mod(t);for(e.isNegative()&&(e=e.multiply(s[-1]),n=n.modInv(t));e.isPositive();){if(n.isZero())return s[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},u.prototype.modPow=c.prototype.modPow=a.prototype.modPow,a.prototype.compareAbs=function(e){var t=$(e),r=this.value,n=t.value;return t.isSmall?1:x(r,n)},c.prototype.compareAbs=function(e){var t=$(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,r=$(e).value;return(t=t>=0?t:-t)===(r=r>=0?r:-r)?0:t>r?1:-1},a.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=$(e),r=this.value,n=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:x(r,n)*(this.sign?-1:1)},a.prototype.compareTo=a.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=$(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},c.prototype.compareTo=c.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,r=$(e).value;return t===r?0:t>r?1:-1},u.prototype.compareTo=u.prototype.compare,a.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=c.prototype.eq=c.prototype.equals=a.prototype.eq=a.prototype.equals,a.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=a.prototype.neq=a.prototype.notEquals,a.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=c.prototype.gt=c.prototype.greater=a.prototype.gt=a.prototype.greater,a.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=c.prototype.lt=c.prototype.lesser=a.prototype.lt=a.prototype.lesser,a.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=a.prototype.geq=a.prototype.greaterOrEquals,a.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=a.prototype.leq=a.prototype.lesserOrEquals,a.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},a.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},a.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=c.prototype.isPositive,a.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=c.prototype.isNegative,a.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},a.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},a.prototype.isDivisibleBy=function(e){var t=$(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=c.prototype.isDivisibleBy=a.prototype.isDivisibleBy,a.prototype.isPrime=function(e){var t=A(this);if(void 0!==t)return t;var r=this.abs(),n=r.bitLength();if(n<=64)return M(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var i=Math.log(2)*n.toJSNumber(),s=Math.ceil(!0===e?2*Math.pow(i,2):i),a=[],c=0;c<s;c++)a.push(o(c+2));return M(r,a)},u.prototype.isPrime=c.prototype.isPrime=a.prototype.isPrime,a.prototype.isProbablePrime=function(e,t){var r=A(this);if(void 0!==r)return r;for(var n=this.abs(),i=void 0===e?5:e,s=[],a=0;a<i;a++)s.push(o.randBetween(2,n.minus(2),t));return M(n,s)},u.prototype.isProbablePrime=c.prototype.isProbablePrime=a.prototype.isProbablePrime,a.prototype.modInv=function(e){for(var t,r,n,i=o.zero,s=o.one,a=$(e),c=this.abs();!c.isZero();)t=a.divide(c),r=i,n=a,i=s,a=c,s=r.subtract(t.multiply(s)),c=n.subtract(t.multiply(c));if(!a.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===i.compare(0)&&(i=i.add(e)),this.isNegative()?i.negate():i},u.prototype.modInv=c.prototype.modInv=a.prototype.modInv,a.prototype.next=function(){var e=this.value;return this.sign?w(e,1,this.sign):new a(b(e,1),this.sign)},c.prototype.next=function(){var e=this.value;return e+1<r?new c(e+1):new a(n,!1)},u.prototype.next=function(){return new u(this.value+BigInt(1))},a.prototype.prev=function(){var e=this.value;return this.sign?new a(b(e,1),!0):w(e,1,this.sign)},c.prototype.prev=function(){var e=this.value;return e-1>-r?new c(e-1):new a(n,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var I=[1];2*I[I.length-1]<=t;)I.push(2*I[I.length-1]);var C=I.length,R=I[C-1];function T(e){return Math.abs(e)<=t}function N(e,t,r){t=$(t);for(var n=e.isNegative(),i=t.isNegative(),s=n?e.not():e,a=i?t.not():t,c=0,u=0,l=null,f=null,d=[];!s.isZero()||!a.isZero();)c=(l=P(s,R))[1].toJSNumber(),n&&(c=R-1-c),u=(f=P(a,R))[1].toJSNumber(),i&&(u=R-1-u),s=l[0],a=f[0],d.push(r(c,u));for(var h=0!==r(n?1:0,i?1:0)?o(-1):o(0),p=d.length-1;p>=0;p-=1)h=h.multiply(R).add(o(d[p]));return h}a.prototype.shiftLeft=function(e){var t=$(e).toJSNumber();if(!T(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;for(;t>=C;)r=r.multiply(R),t-=C-1;return r.multiply(I[t])},u.prototype.shiftLeft=c.prototype.shiftLeft=a.prototype.shiftLeft,a.prototype.shiftRight=function(e){var t,r=$(e).toJSNumber();if(!T(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=C;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(t=P(n,R))[1].isNegative()?t[0].prev():t[0],r-=C-1}return(t=P(n,I[r]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=c.prototype.shiftRight=a.prototype.shiftRight,a.prototype.not=function(){return this.negate().prev()},u.prototype.not=c.prototype.not=a.prototype.not,a.prototype.and=function(e){return N(this,e,(function(e,t){return e&t}))},u.prototype.and=c.prototype.and=a.prototype.and,a.prototype.or=function(e){return N(this,e,(function(e,t){return e|t}))},u.prototype.or=c.prototype.or=a.prototype.or,a.prototype.xor=function(e){return N(this,e,(function(e,t){return e^t}))},u.prototype.xor=c.prototype.xor=a.prototype.xor;function B(e){var r=e.value,n="number"==typeof r?r|1<<30:"bigint"==typeof r?r|BigInt(1<<30):r[0]+r[1]*t|1073758208;return n&-n}function D(e,t){return e=$(e),t=$(t),e.greater(t)?e:t}function L(e,t){return e=$(e),t=$(t),e.lesser(t)?e:t}function U(e,t){if(e=$(e).abs(),t=$(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,o=s[1];e.isEven()&&t.isEven();)r=L(B(e),B(t)),e=e.divide(r),t=t.divide(r),o=o.multiply(r);for(;e.isEven();)e=e.divide(B(e));do{for(;t.isEven();)t=t.divide(B(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return o.isUnit()?e:e.multiply(o)}a.prototype.bitLength=function(){var e=this;return e.compareTo(o(0))<0&&(e=e.negate().subtract(o(1))),0===e.compareTo(o(0))?o(0):o(function e(t,r){if(r.compareTo(t)<=0){var n=e(t,r.square(r)),i=n.p,s=n.e,a=i.multiply(r);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:i,e:2*s}}return{p:o(1),e:0}}(e,o(2)).e).add(o(1))},u.prototype.bitLength=c.prototype.bitLength=a.prototype.bitLength;var q=function(e,t,r,n){r=r||"0123456789abcdefghijklmnopqrstuvwxyz",e=String(e),n||(e=e.toLowerCase(),r=r.toLowerCase());var o,i=e.length,s=Math.abs(t),a={};for(o=0;o<r.length;o++)a[r[o]]=o;for(o=0;o<i;o++){if("-"!==(l=e[o])&&(l in a&&a[l]>=s)){if("1"===l&&1===s)continue;throw new Error(l+" is not a valid digit in base "+t+".")}}t=$(t);var c=[],u="-"===e[0];for(o=u?1:0;o<e.length;o++){var l;if((l=e[o])in a)c.push($(a[l]));else{if("<"!==l)throw new Error(l+" is not a valid character");var f=o;do{o++}while(">"!==e[o]&&o<e.length);c.push($(e.slice(f+1,o)))}}return H(c,t,u)};function H(e,t,r){var n,o=s[0],i=s[1];for(n=e.length-1;n>=0;n--)o=o.add(e[n].times(i)),i=i.times(t);return r?o.negate():o}function z(e,t){if((t=o(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(e.isNegative()&&t.isPositive()&&(n=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var i,s=[],a=e;a.isNegative()||a.compareAbs(t)>=0;){i=a.divmod(t),a=i.quotient;var c=i.remainder;c.isNegative()&&(c=t.minus(c).abs(),a=a.next()),s.push(c.toJSNumber())}return s.push(a.toJSNumber()),{value:s.reverse(),isNegative:n}}function F(e,t,r){var n=z(e,t);return(n.isNegative?"-":"")+n.value.map((function(e){return function(e,t){return e<(t=t||"0123456789abcdefghijklmnopqrstuvwxyz").length?t[e]:"<"+e+">"}(e,r)})).join("")}function K(e){if(l(+e)){var t=+e;if(t===g(t))return i?new u(BigInt(t)):new c(t);throw new Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var o=n[1];if("+"===o[0]&&(o=o.slice(1)),(o=+o)!==g(o)||!l(o))throw new Error("Invalid integer: "+o+" is not a valid exponent.");var s=n[0],f=s.indexOf(".");if(f>=0&&(o-=s.length-f-1,s=s.slice(0,f)+s.slice(f+1)),o<0)throw new Error("Cannot include negative exponent part for integers");e=s+=new Array(o+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(i)return new u(BigInt(r?"-"+e:e));for(var d=[],p=e.length,m=p-7;p>0;)d.push(+e.slice(m,p)),(m-=7)<0&&(m=0),p-=7;return h(d),new a(d,r)}function $(e){return"number"==typeof e?function(e){if(i)return new u(BigInt(e));if(l(e)){if(e!==g(e))throw new Error(e+" is not an integer.");return new c(e)}return K(e.toString())}(e):"string"==typeof e?K(e):"bigint"==typeof e?new u(e):e}a.prototype.toArray=function(e){return z(this,e)},c.prototype.toArray=function(e){return z(this,e)},u.prototype.toArray=function(e){return z(this,e)},a.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e)return F(this,e,t);for(var r,n=this.value,o=n.length,i=String(n[--o]);--o>=0;)r=String(n[o]),i+="0000000".slice(r.length)+r;return(this.sign?"-":"")+i},c.prototype.toString=function(e,t){return void 0===e&&(e=10),10!=e?F(this,e,t):String(this.value)},u.prototype.toString=c.prototype.toString,u.prototype.toJSON=a.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},a.prototype.valueOf=function(){return parseInt(this.toString(),10)},a.prototype.toJSNumber=a.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var V=0;V<1e3;V++)s[V]=$(V),V>0&&(s[-V]=$(-V));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=D,s.min=L,s.gcd=U,s.lcm=function(e,t){return e=$(e).abs(),t=$(t).abs(),e.divide(U(e,t)).multiply(t)},s.isInstance=function(e){return e instanceof a||e instanceof c||e instanceof u},s.randBetween=function(e,r,n){e=$(e),r=$(r);var o=n||Math.random,i=L(e,r),a=D(e,r).subtract(i).add(1);if(a.isSmall)return i.add(Math.floor(o()*a));for(var c=z(a,t).value,u=[],l=!0,f=0;f<c.length;f++){var d=l?c[f]:t,h=g(o()*d);u.push(h),h<d&&(l=!1)}return i.add(s.fromArray(u,t,!1))},s.fromArray=function(e,t,r){return H(e.map($),$(t||10),r)},s}();e.hasOwnProperty("exports")&&(e.exports=o),void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}).call(this,r(71)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinUtils=void 0;const n=r(235),o=r(116),i=r(112),s=r(149);t.CoinUtils=class{static createCoinsFromPrimitives(e){return e.map(e=>new n.Coin(e.denom,e.amount))}static amountOf(e,t){const r=e.find(e=>e.denom===t);return r?r.amount:new o.Int(0)}static exclude(e,t){return e.filter(e=>0===t.indexOf(e.denom))}static concat(...e){if(0===e.length)return[];return e.slice().reduce((e,t)=>{const r=e.find(e=>e.denom===t.denom);if(r){const o=new n.Coin(r.denom,r.amount.add(t.amount));e.push(o)}else{const r=new n.Coin(t.denom,t.amount);e.push(r)}return e},[])}static getCoinFromDecimals(e,t,r){const o=e.find(e=>e.coinDenom===r);if(!o)throw new Error("Invalid currency");let s=new i.Dec(1);for(let e=0;e<o.coinDecimals;e++)s=s.mul(new i.Dec(10));let a=new i.Dec(t);if(a=a.mul(s),!new i.Dec(a.truncate()).equals(a))throw new Error("Can't divide anymore");return new n.Coin(o.coinMinimalDenom,a.truncate())}static parseDecAndDenomFromCoin(e,t){let r=e.find(e=>e.coinMinimalDenom===t.denom);r||(r={coinDecimals:0,coinDenom:t.denom,coinMinimalDenom:t.denom});let n=new i.Dec(1);for(let e=0;e<r.coinDecimals;e++)n=n.mul(new i.Dec(10));return{amount:new i.Dec(t.amount).quoTruncate(n).toString(r.coinDecimals),denom:r.coinDenom}}static shrinkDecimals(e,t,r,n,s=!1){if(e.equals(new o.Int(0)))return"0";const a=new i.Dec(e,t),c=a.truncate(),u=a.sub(new i.Dec(c)),l=Math.max(n-c.toString().length+1,r),f=u.toString(l).replace("0.","");return(s?BigInt(c.toString()).toLocaleString("en-US"):c.toString())+(f.length>0?".":"")+f}static coinToTrimmedString(e,t,r=" "){const n=new i.Dec(e.amount).quoTruncate(s.DecUtils.getPrecisionDec(t.coinDecimals));return`${s.DecUtils.trim(n)}${r}${t.coinDenom}`}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Coin=void 0;const n=r(116);class o{constructor(e,t){this.denom=e,this.amount=t instanceof n.Int?t:new n.Int(t)}static parse(e){const t=new RegExp("([0-9]+)[ ]*([a-zA-Z]+)").exec(e);if(!t||3!==t.length)throw new Error("Invalid coin str");const r=t[2],n=t[1];return new o(r,n)}toString(){return`${this.amount.toString()}${this.denom}`}}t.Coin=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TendermintTxTracer=void 0;const n=r(425),o=r(2);t.TendermintTxTracer=class{constructor(e,t,r={}){this.url=e,this.wsEndpoint=t,this.options=r,this.newBlockSubscribes=[],this.txSubscribes=new Map,this.pendingQueries=new Map,this.listeners={},this.onOpen=e=>{var t;this.newBlockSubscribes.length>0&&this.sendSubscribeBlockRpc();for(const[e,t]of this.txSubscribes)this.sendSubscribeTxRpc(e,t.hash);for(const[e,t]of this.pendingQueries)this.sendQueryRpc(e,t.method,t.params);for(const r of null!==(t=this.listeners.open)&&void 0!==t?t:[])r(e)},this.onMessage=e=>{var t,r,n,o,i;for(const r of null!==(t=this.listeners.message)&&void 0!==t?t:[])r(e);if(e.data)try{const t=JSON.parse(e.data);if((null==t?void 0:t.id)&&this.pendingQueries.has(t.id)&&(t.error?this.pendingQueries.get(t.id).rejector(new Error(t.error.data||t.error.message)):this.pendingQueries.get(t.id).resolver(t.result),this.pendingQueries.delete(t.id)),"tendermint/event/NewBlock"===(null===(n=null===(r=null==t?void 0:t.result)||void 0===r?void 0:r.data)||void 0===n?void 0:n.type))for(const e of this.newBlockSubscribes)e.handler(t.result.data.value);"tendermint/event/Tx"===(null===(i=null===(o=null==t?void 0:t.result)||void 0===o?void 0:o.data)||void 0===i?void 0:i.type)&&(null==t?void 0:t.id)&&this.txSubscribes.has(t.id)&&(t.error?this.txSubscribes.get(t.id).rejector(new Error(t.error.data||t.error.message)):this.txSubscribes.get(t.id).resolver(t.result.data.value.TxResult.result),this.txSubscribes.delete(t.id))}catch(e){console.log("Tendermint websocket jsonrpc response is not JSON: "+(e.message||e.toString()))}},this.onClose=e=>{var t;for(const r of null!==(t=this.listeners.close)&&void 0!==t?t:[])r(e)},this.ws=this.options.wsObject?new this.options.wsObject(this.getWsEndpoint()):new WebSocket(this.getWsEndpoint()),this.ws.onopen=this.onOpen,this.ws.onmessage=this.onMessage,this.ws.onclose=this.onClose}getWsEndpoint(){let e=this.url;if(e.startsWith("http")&&(e=e.replace("http","ws")),!e.endsWith(this.wsEndpoint)){const t=this.wsEndpoint.startsWith("/")?this.wsEndpoint:"/"+this.wsEndpoint;e=e.endsWith("/")?e+t.slice(1):e+t}return e}close(){this.ws.close()}get readyState(){switch(this.ws.readyState){case 0:return n.WsReadyState.CONNECTING;case 1:return n.WsReadyState.OPEN;case 2:return n.WsReadyState.CLOSING;case 3:return n.WsReadyState.CLOSED;default:return n.WsReadyState.NONE}}addEventListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}subscribeBlock(e){this.newBlockSubscribes.push({handler:e}),1===this.newBlockSubscribes.length&&this.sendSubscribeBlockRpc()}sendSubscribeBlockRpc(){this.readyState===n.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:"subscribe",params:["tm.event='NewBlock'"],id:1}))}traceTx(e){return new Promise(t=>{this.queryTx(e).then(t).catch(()=>{}),this.subscribeTx(e).then(t)})}subscribeTx(e){const t=this.createRandomId();return new Promise((r,n)=>{this.txSubscribes.set(t,{hash:e,resolver:r,rejector:n}),this.sendSubscribeTxRpc(t,e)})}sendSubscribeTxRpc(e,t){this.readyState===n.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:"subscribe",params:[`tm.event='Tx' AND tx.hash='${o.Buffer.from(t).toString("hex").toUpperCase()}'`],id:e}))}queryTx(e){return this.query("tx",[o.Buffer.from(e).toString("base64"),!1])}query(e,t){const r=this.createRandomId();return new Promise((n,o)=>{this.pendingQueries.set(r,{method:e,params:t,resolver:n,rejector:o}),this.sendQueryRpc(r,e,t)})}sendQueryRpc(e,t,r){this.readyState===n.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:t,params:r,id:e}))}createRandomId(){return parseInt(Array.from({length:6}).map(()=>Math.floor(100*Math.random())).join(""))}}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProtoCodec=t.ProtoCodec=void 0;const i=r(118),s=r(118),a=r(241);o(r(241),t);class c{constructor(){this.typeUrlMap=new Map}unpackAny(e){const t=new i.google.protobuf.Any(e);return this.typeUrlMap.has(t.type_url)?this.typeUrlMap.get(t.type_url).decode(t.value):new a.UnknownMessage(t.type_url,t.value)}registerAny(e,t){this.typeUrlMap.set(e,t)}}t.ProtoCodec=c,t.defaultProtoCodec=new c,t.defaultProtoCodec.registerAny("/cosmos.bank.v1beta1.MsgSend",s.cosmos.bank.v1beta1.MsgSend),t.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgDelegate",s.cosmos.staking.v1beta1.MsgDelegate),t.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgUndelegate",s.cosmos.staking.v1beta1.MsgUndelegate),t.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgBeginRedelegate",s.cosmos.staking.v1beta1.MsgBeginRedelegate)},function(e,t,r){"use strict";e.exports=f;var n,o=r(64),i=o.LongBits,s=o.base64,a=o.utf8;function c(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function u(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new c(u,0,0),this.tail=this.head,this.states=null}var d=function(){return o.Buffer?function(){return(f.create=function(){return new n})()}:function(){return new f}};function h(e,t,r){t[r]=255&e}function p(e,t){this.len=e,this.next=void 0,this.val=t}function g(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=d(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new c(e,t,r),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(g,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(g,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(g,t.length(),t)},f.prototype.bool=function(e){return this._push(h,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var y=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n<e.length;++n)t[r+n]=e[n]};f.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(h,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(y,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new c(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=d(),n._configure()}},function(e,t,r){"use strict";e.exports=c;var n,o=r(64),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(c.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function d(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function h(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw a(this,8);return new i(h(this.buf,this.pos+=4),h(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return h(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|h(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},c.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){n=e,c.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(c.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownMessage=void 0;const n=r(2);t.UnknownMessage=class{constructor(e,t){this._typeUrl=e,this._value=t}get typeUrl(){return this._typeUrl}get value(){return this._value}toJSON(){return{type_url:this._typeUrl,value:n.Buffer.from(this._value).toString("base64")}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtoSignDocDecoder=void 0;const n=r(118),o=r(238);class i{constructor(e,t=o.defaultProtoCodec){this.signDoc=e,this.protoCodec=t}static decode(e){return new i(n.cosmos.tx.v1beta1.SignDoc.decode(e))}get txBody(){return this._txBody||(this._txBody=n.cosmos.tx.v1beta1.TxBody.decode(this.signDoc.bodyBytes)),this._txBody}get txMsgs(){const e=[];for(const t of this.txBody.messages)e.push(this.protoCodec.unpackAny(t));return e}get authInfo(){return this._authInfo||(this._authInfo=n.cosmos.tx.v1beta1.AuthInfo.decode(this.signDoc.authInfoBytes)),this._authInfo}get chainId(){return this.signDoc.chainId}get accountNumber(){return this.signDoc.accountNumber.toString()}toBytes(){return n.cosmos.tx.v1beta1.SignDoc.encode(this.signDoc).finish()}toJSON(){return{txBody:Object.assign(Object.assign({},this.txBody.toJSON()),{messages:this.txMsgs.map(e=>e&&e.toJSON?e.toJSON():e)}),authInfo:this.authInfo.toJSON(),chainId:this.chainId,accountNumber:this.accountNumber}}}t.ProtoSignDocDecoder=i},function(e,t,r){"use strict";(function(t,n){var o=r(119);e.exports=v;var i,s=r(237);v.ReadableState=b;r(51).EventEmitter;var a=function(e,t){return e.listeners(t).length},c=r(244),u=r(153).Buffer,l=t.Uint8Array||function(){};var f=Object.create(r(95));f.inherits=r(4);var d=r(446),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=r(447),m=r(245);f.inherits(v,c);var y=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var n=t instanceof(i=i||r(65));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(66).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function v(e){if(i=i||r(65),!(this instanceof v))return new v(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,r,n,o){var i,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,s)):(o||(i=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),i?e.emit("error",i):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?_(e,s,t,!1):j(e,s)):_(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&S(e)),j(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return p||(p=r(66).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(O,e):O(e))}function O(e){h("emit readable"),e.emit("readable"),A(e)}function j(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function P(e){h("readable nexttick read 0"),e.read(0)}function x(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,o=r.data;e-=o.length;for(;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++n}return t.length-=n,o}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,o=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,s),0===(e-=s)){s===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++o}return t.length-=o,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):S(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",o=!0),t.ended||t.reading?h("reading or ended",o=!1):o&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(r,t))),null===(n=e>0?M(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:v;function u(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",v),r.removeListener("data",g),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}i.endEmitted?o.nextTick(c):r.once("end",c),e.on("unpipe",u);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,A(e))}}(r);e.on("drain",f);var d=!1;var p=!1;function g(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==R(i.pipes,e))&&!d&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function m(t){h("onerror",t),v(),e.removeListener("error",m),0===a(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),v()}function b(){h("onfinish"),e.removeListener("close",y),v()}function v(){h("unpipe"),r.unpipe(e)}return r.on("data",g),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",y),e.once("finish",b),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,r);return this}var s=R(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):o.nextTick(P,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(x,e,t))}(this,e)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(h("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<y.length;i++)e.on(y[i],this.emit.bind(this,y[i]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=M}).call(this,r(12),r(13))},function(e,t,r){e.exports=r(51).EventEmitter},function(e,t,r){"use strict";var n=r(119);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";e.exports=s;var n=r(65),o=Object.create(r(95));function i(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=r(4),o.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){"use strict";var n=r(49).rotr32;function o(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?s(t,r,n):2===e?i(t,r,n):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(49),o=r(96),i=r(247),s=r(32),a=n.sum32,c=n.sum32_4,u=n.sum32_5,l=i.ch32,f=i.maj32,d=i.s0_256,h=i.s1_256,p=i.g0_256,g=i.g1_256,m=o.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=c(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],m=this.h[2],y=this.h[3],b=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var k=u(_,h(b),l(b,v,w),this.k[n],r[n]),S=a(d(o),f(o,i,m));_=w,w=v,v=b,b=a(y,k),y=m,m=i,i=o,o=a(k,S)}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],y),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],v),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],_)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(49),o=r(96),i=r(32),s=n.rotr64_hi,a=n.rotr64_lo,c=n.shr64_hi,u=n.shr64_lo,l=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,y=o.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,r,n,o){var i=e&r^~e&o;return i<0&&(i+=4294967296),i}function _(e,t,r,n,o,i){var s=t&n^~t&i;return s<0&&(s+=4294967296),s}function k(e,t,r,n,o){var i=e&r^e&o^r&o;return i<0&&(i+=4294967296),i}function S(e,t,r,n,o,i){var s=t&n^t&i^n&i;return s<0&&(s+=4294967296),s}function O(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function j(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function P(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function x(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var o=M(r[n-4],r[n-3]),i=I(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],c=x(r[n-30],r[n-29]),u=A(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=h(o,i,s,a,c,u,l,f),r[n+1]=p(o,i,s,a,c,u,l,f)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],o=this.h[1],s=this.h[2],a=this.h[3],c=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],y=this.h[8],b=this.h[9],v=this.h[10],x=this.h[11],A=this.h[12],M=this.h[13],I=this.h[14],C=this.h[15];i(this.k.length===r.length);for(var R=0;R<r.length;R+=2){var T=I,N=C,B=E(y,b),D=P(y,b),L=w(y,b,v,x,A),U=_(y,b,v,x,A,M),q=this.k[R],H=this.k[R+1],z=r[R],F=r[R+1],K=g(T,N,B,D,L,U,q,H,z,F),$=m(T,N,B,D,L,U,q,H,z,F);T=O(n,o),N=j(n,o),B=k(n,o,s,a,c),D=S(n,o,s,a,c,u);var V=f(T,N,B,D),J=d(T,N,B,D);I=A,C=M,A=v,M=x,v=y,x=b,y=f(h,p,K,$),b=d(p,p,K,$),h=c,p=u,c=s,u=a,s=n,a=o,n=f(K,$,V,J),o=d(K,$,V,J)}l(this.h,0,n,o),l(this.h,2,s,a),l(this.h,4,c,u),l(this.h,6,h,p),l(this.h,8,y,b),l(this.h,10,v,x),l(this.h,12,A,M),l(this.h,14,I,C)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(7).Buffer,o=r(458).Transform;function i(e){o.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(4)(i,o),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,o=0;this._blockOffset+e.length-o>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[o++];this._update(),this._blockOffset=0}for(;o<e.length;)r[this._blockOffset++]=e[o++];for(var s=0,a=8*e.length;a>0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},function(e,t,r){"use strict";(function(t,n){var o;e.exports=j,j.ReadableState=O;r(51).EventEmitter;var i=function(e,t){return e.listeners(t).length},s=r(252),a=r(2).Buffer,c=t.Uint8Array||function(){};var u,l=r(459);u=l&&l.debuglog?l.debuglog("stream"):function(){};var f,d,h,p=r(460),g=r(253),m=r(254).getHighWaterMark,y=r(73).codes,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(4)(j,s);var k=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function O(e,t,n){o=o||r(74),e=e||{},"boolean"!=typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(66).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function j(e){if(o=o||r(74),!(this instanceof j))return new j(e);var t=this instanceof o;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function E(e,t,r,n,o){u("readableAddChunk",t);var i,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}(e,s);else if(o||(i=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(s,t)),i)k(e,i);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)s.endEmitted?k(e,new _):P(e,s,t,!0);else if(s.ended)k(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):I(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,I(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&A(e)),I(e,t)}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},j.prototype.unshift=function(e){return E(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){f||(f=r(66).StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(M,e))}function M(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function I(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){u("readable nexttick read 0"),e.read(0)}function N(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(U,t,e))}function U(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}j.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):A(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,o=t.needReadable;return u("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",o=!0),t.ended||t.reading?u("reading or ended",o=!1):o&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},j.prototype._read=function(e){k(this,new w("_read()"))},j.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:m;function a(t,n){u("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",a),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){u("onend"),e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",a);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,B(e))}}(r);e.on("drain",l);var f=!1;function d(t){u("ondata");var n=e.write(t);u("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!f&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function h(t){u("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&k(e,t)}function p(){e.removeListener("finish",g),m()}function g(){u("onfinish"),e.removeListener("close",p),m()}function m(){u("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",g),e.emit("pipe",r),o.flowing||(u("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=q(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},j.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,u("on readable",o.length,o.reading),o.length?A(this):o.reading||n.nextTick(T,this))),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(R,this),r},j.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(R,this),t},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),e.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(u("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(j.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(462)),d(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=D,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(j.from=function(e,t){return void 0===h&&(h=r(463)),h(j,e,t)})}).call(this,r(12),r(13))},function(e,t,r){e.exports=r(51).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){o(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var s=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?s._writableState?s._writableState.errorEmitted?t.nextTick(n,s):(s._writableState.errorEmitted=!0,t.nextTick(r,s,e)):t.nextTick(r,s,e):i?(t.nextTick(n,s),i(e)):t.nextTick(n,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(13))},function(e,t,r){"use strict";var n=r(73).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=j,j.WritableState=O;var s={deprecate:r(155)},a=r(252),c=r(2).Buffer,u=t.Uint8Array||function(){};var l,f=r(253),d=r(254).getHighWaterMark,h=r(73).codes,p=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function S(){}function O(e,t,s){i=i||r(74),e=e||{},"boolean"!=typeof s&&(s=t instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,o=r.sync,i=r.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,o,i){--t.pendingcb,r?(n.nextTick(i,o),n.nextTick(I,e,t),e._writableState.errorEmitted=!0,k(e,o)):(i(o),e._writableState.errorEmitted=!0,k(e,o),I(e,t))}(e,r,o,t,i);else{var s=A(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),o?n.nextTick(P,e,r,s,i):P(e,r,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function j(e){var t=this instanceof(i=i||r(74));if(!t&&!l.call(j,this))return new j(e);this._writableState=new O(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function E(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function P(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)i[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;i.allBuffers=c,E(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(E(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),I(e,t)}))}function I(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return r}r(4)(j,a),O.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(O.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===j&&(e&&e._writableState instanceof O)}})):l=function(e){return e instanceof this},j.prototype.pipe=function(){k(this,new y)},j.prototype.write=function(e,t,r){var o,i=this._writableState,s=!1,a=!i.objectMode&&(o=e,c.isBuffer(o)||o instanceof u);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=S),i.ending?function(e,t){var r=new w;k(e,r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,o){var i;return null===r?i=new v:"string"==typeof r||t.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i||(k(e,i),n.nextTick(o,i),!1)}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,o,i){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r));return t}(t,n,o);n!==s&&(r=!0,o="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,a,n,o,i);return u}(this,i,a,e,t,r)),s},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},j.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,t,r){r(new g("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,t,r){var o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,o,r),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=f.destroy,j.prototype._undestroy=f.undestroy,j.prototype._destroy=function(e,t){t(e)}}).call(this,r(12),r(13))},function(e,t,r){"use strict";e.exports=l;var n=r(73).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(74);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(4)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){var n=r(4),o=r(77),i=r(7).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,o),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,p=0|this._f,g=0|this._g,m=0|this._h,y=0;y<16;++y)r[y]=e.readInt32BE(4*y);for(;y<64;++y)r[y]=0|(((t=r[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[y-7]+h(r[y-15])+r[y-16];for(var b=0;b<64;++b){var v=m+d(c)+u(c,p,g)+s[b]+r[b]|0,w=f(n)+l(n,o,i)|0;m=g,g=p,p=c,c=a+v|0,a=i,i=o,o=n,n=v+w|0}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},c.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,r){var n=r(4),o=r(77),i=r(7).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,o.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}n(c,o),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,o=0|this._ch,i=0|this._dh,a=0|this._eh,c=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,S=0|this._dl,O=0|this._el,j=0|this._fl,E=0|this._gl,P=0|this._hl,x=0;x<32;x+=2)t[x]=e.readInt32BE(4*x),t[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var A=t[x-30],M=t[x-30+1],I=h(A,M),C=p(M,A),R=g(A=t[x-4],M=t[x-4+1]),T=m(M,A),N=t[x-14],B=t[x-14+1],D=t[x-32],L=t[x-32+1],U=C+B|0,q=I+N+y(U,C)|0;q=(q=q+R+y(U=U+T|0,T)|0)+D+y(U=U+L|0,L)|0,t[x]=q,t[x+1]=U}for(var H=0;H<160;H+=2){q=t[H],U=t[H+1];var z=l(r,n,o),F=l(w,_,k),K=f(r,w),$=f(w,r),V=d(a,O),J=d(O,a),G=s[H],W=s[H+1],Q=u(a,c,b),Z=u(O,j,E),Y=P+J|0,X=v+V+y(Y,P)|0;X=(X=(X=X+Q+y(Y=Y+Z|0,Z)|0)+G+y(Y=Y+W|0,W)|0)+q+y(Y=Y+U|0,U)|0;var ee=$+F|0,te=K+z+y(ee,$)|0;v=b,P=E,b=c,E=j,c=a,j=O,a=i+X+y(O=S+Y|0,S)|0,i=o,S=k,o=n,k=_,n=r,_=w,r=X+te+y(w=Y+ee|0,Y)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+S|0,this._el=this._el+O|0,this._fl=this._fl+j|0,this._gl=this._gl+E|0,this._hl=this._hl+P|0,this._ah=this._ah+r+y(this._al,w)|0,this._bh=this._bh+n+y(this._bl,_)|0,this._ch=this._ch+o+y(this._cl,k)|0,this._dh=this._dh+i+y(this._dl,S)|0,this._eh=this._eh+a+y(this._el,O)|0,this._fh=this._fh+c+y(this._fl,j)|0,this._gh=this._gh+b+y(this._gl,E)|0,this._hh=this._hh+v+y(this._hl,P)|0},c.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,r){var n=r(156);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t){var r=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},function(e,t,r){(function(t){var r;if(t.browser)r="utf-8";else if(t.version){r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";e.exports=r}).call(this,r(13))},function(e,t,r){var n=r(259),o=r(75),i=r(76),s=r(7).Buffer,a=r(261),c=r(262),u=r(264),l=s.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var a=function(e){function t(t){return i(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new o).update(e).digest()}:"md5"===e?n:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=a(t):t.length<c&&(t=s.concat([t,l],c));for(var u=s.allocUnsafe(c+f[e]),d=s.allocUnsafe(c+f[e]),h=0;h<c;h++)u[h]=54^t[h],d[h]=92^t[h];var p=s.allocUnsafe(c+r+4);u.copy(p,0,0,c),this.ipad1=p,this.ipad2=u,this.opad=d,this.alg=e,this.blocksize=c,this.hash=a,this.size=f[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,o){a(r,n);var i=new d(o=o||"sha1",e=u(e,c,"Password"),(t=u(t,c,"Salt")).length),l=s.allocUnsafe(n),h=s.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,g=f[o],m=Math.ceil(n/g),y=1;y<=m;y++){h.writeUInt32BE(y,t.length);for(var b=i.run(h,i.ipad1),v=b,w=1;w<r;w++){v=i.run(v,i.ipad2);for(var _=0;_<g;_++)b[_]^=v[_]}b.copy(l,p),p+=g}return l}},function(e,t,r){var n=r(7).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var o=0,i=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)o<<=1,o|=t>>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=e>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)i<<=1,i|=t>>>a+s&1;for(a=1;a<=25;a+=8)i<<=1,i|=e>>>a+s&1}r[n+0]=o>>>0,r[n+1]=i>>>0},t.rip=function(e,t,r,n){for(var o=0,i=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)o<<=1,o|=t>>>a+s&1,o<<=1,o|=e>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)i<<=1,i|=t>>>a+s&1,i<<=1,i|=e>>>a+s&1;r[n+0]=o>>>0,r[n+1]=i>>>0},t.pc1=function(e,t,r,n){for(var o=0,i=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1;r[n+0]=o>>>0,r[n+1]=i>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,o){for(var i=0,s=0,a=n.length>>>1,c=0;c<a;c++)i<<=1,i|=e>>>n[c]&1;for(c=a;c<n.length;c++)s<<=1,s|=t>>>n[c]&1;r[o+0]=i>>>0,r[o+1]=s>>>0},t.expand=function(e,t,r){var n=0,o=0;n=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)n<<=6,n|=e>>>i&63;for(i=11;i>=3;i-=4)o|=e>>>i&63,o<<=6;o|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=o[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=o[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<i.length;r++)t<<=1,t|=e>>>i[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var o=[],i=0;i<t;i+=r)o.push(n.slice(i,i+r));return o.join(" ")}},function(e,t,r){"use strict";var n=r(32),o=r(4),i=r(265),s=r(158);function a(){this.tmp=new Array(2),this.keys=null}function c(e){s.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}o(c,s),e.exports=c,c.create=function(e){return new c(e)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=i.readUInt32BE(t,0),o=i.readUInt32BE(t,4);i.pc1(r,o,e.tmp,0),r=e.tmp[0],o=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var a=u[s>>>1];r=i.r28shl(r,a),o=i.r28shl(o,a),i.pc2(r,o,e.keys,s)}},c.prototype._update=function(e,t,r,n){var o=this._desState,s=i.readUInt32BE(e,t),a=i.readUInt32BE(e,t+4);i.ip(s,a,o.tmp,0),s=o.tmp[0],a=o.tmp[1],"encrypt"===this.type?this._encrypt(o,s,a,o.tmp,0):this._decrypt(o,s,a,o.tmp,0),s=o.tmp[0],a=o.tmp[1],i.writeUInt32BE(r,s,n),i.writeUInt32BE(r,a,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},c.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,r,n,o){for(var s=t,a=r,c=0;c<e.keys.length;c+=2){var u=e.keys[c],l=e.keys[c+1];i.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=i.substitute(u,l),d=a;a=(s^i.permute(f))>>>0,s=d}i.rip(a,s,n,o)},c.prototype._decrypt=function(e,t,r,n,o){for(var s=r,a=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];i.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=i.substitute(u,l),d=s;s=(a^i.permute(f))>>>0,a=d}i.rip(s,a,n,o)}},function(e,t,r){var n=r(98),o=r(7).Buffer,i=r(268);function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return i(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),i=e._cache.length;e._cache=o.concat([e._cache,o.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var c=s(e),u=i+16*a;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,l)}},function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,r){var n=r(121),o=r(7).Buffer,i=r(56),s=r(4),a=r(489),c=r(98),u=r(268);function l(e,t,r,s){i.call(this);var c=o.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new a(l),r=function(e,t,r){if(12===t.length)return e._finID=o.concat([t,o.from([0,0,0,1])]),o.concat([t,o.from([0,0,0,2])]);var n=new a(r),i=t.length,s=i%16;n.update(t),s&&(s=16-s,n.update(o.alloc(s,0))),n.update(o.alloc(8,0));var c=8*i,l=o.alloc(8);l.writeUIntBE(c,0,8),n.update(l),e._finID=n.state;var f=o.from(e._finID);return u(f),f}(this,r,l),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(l,i),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=o.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),o=0;o<n;++o)r+=e[o]^t[o];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=l},function(e,t,r){var n=r(121),o=r(7).Buffer,i=r(56);function s(e,t,r,s){i.call(this),this._cipher=new n.AES(t),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=s,this._mode=e}r(4)(s,i),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},function(e,t,r){var n=r(62);e.exports=b,b.simpleSieve=m,b.fermatTest=y;var o=r(6),i=new o(24),s=new(r(273)),a=new o(1),c=new o(2),u=new o(5),l=(new o(16),new o(8),new o(10)),f=new o(3),d=(new o(7),new o(11)),h=new o(4),p=(new o(12),null);function g(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),o=0;o<t&&e[o]<=n&&r%e[o]!=0;o++);t!==o&&e[o]<=n||(e[t++]=r)}return p=e,e}function m(e){for(var t=g(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function y(e){var t=o.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new o(t);;){for(r=new o(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(a),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(f);)r.iadd(h)}else for(;r.mod(i).cmp(d);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&y(p)&&y(r)&&s.test(p)&&s.test(r))return r}}},function(e,t,r){var n=r(6),o=r(161);function i(e){this.rand=e||new o.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var o=new n(this.rand.generate(r))}while(o.cmp(e)>=0);return o},i.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},i.prototype.test=function(e,t,r){var o=e.bitLength(),i=n.mont(e),s=new n(1).toRed(i);t||(t=Math.max(1,o/48|0));for(var a=e.subn(1),c=0;!a.testn(c);c++);for(var u=e.shrn(c),l=a.toRed(i);t>0;t--){var f=this._randrange(new n(2),a);r&&r(f);var d=f.toRed(i).redPow(u);if(0!==d.cmp(s)&&0!==d.cmp(l)){for(var h=1;h<c;h++){if(0===(d=d.redSqr()).cmp(s))return!1;if(0===d.cmp(l))break}if(h===c)return!1}}return!0},i.prototype.getDivisor=function(e,t){var r=e.bitLength(),o=n.mont(e),i=new n(1).toRed(o);t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),a=0;!s.testn(a);a++);for(var c=e.shrn(a),u=s.toRed(o);t>0;t--){var l=this._randrange(new n(2),s),f=e.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(o).redPow(c);if(0!==d.cmp(i)&&0!==d.cmp(u)){for(var h=1;h<a;h++){if(0===(d=d.redSqr()).cmp(i))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(u))break}if(h===a)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){"use strict";(function(t,n){var o;e.exports=j,j.ReadableState=O;r(51).EventEmitter;var i=function(e,t){return e.listeners(t).length},s=r(275),a=r(2).Buffer,c=t.Uint8Array||function(){};var u,l=r(498);u=l&&l.debuglog?l.debuglog("stream"):function(){};var f,d,h,p=r(499),g=r(276),m=r(277).getHighWaterMark,y=r(78).codes,b=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(4)(j,s);var k=g.errorOrDestroy,S=["error","close","destroy","pause","resume"];function O(e,t,n){o=o||r(79),e=e||{},"boolean"!=typeof n&&(n=t instanceof o),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(66).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function j(e){if(o=o||r(79),!(this instanceof j))return new j(e);var t=this instanceof o;this._readableState=new O(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function E(e,t,r,n,o){u("readableAddChunk",t);var i,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}(e,s);else if(o||(i=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(s,t)),i)k(e,i);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)s.endEmitted?k(e,new _):P(e,s,t,!0);else if(s.ended)k(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?P(e,s,t,!1):I(e,s)):P(e,s,t,!1)}else n||(s.reading=!1,I(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function P(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&A(e)),I(e,t)}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),j.prototype.destroy=g.destroy,j.prototype._undestroy=g.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),E(this,e,t,!1,r)},j.prototype.unshift=function(e){return E(this,e,null,!0,!1)},j.prototype.isPaused=function(){return!1===this._readableState.flowing},j.prototype.setEncoding=function(e){f||(f=r(66).StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(M,e))}function M(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,B(e)}function I(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function T(e){u("readable nexttick read 0"),e.read(0)}function N(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),B(e),t.flowing&&!t.reading&&e.read(0)}function B(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(U,t,e))}function U(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}j.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):A(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,o=t.needReadable;return u("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",o=!0),t.ended||t.reading?u("reading or ended",o=!1):o&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},j.prototype._read=function(e){k(this,new w("_read()"))},j.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,t);var s=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:m;function a(t,n){u("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",h),e.removeListener("unpipe",a),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",d),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){u("onend"),e.end()}o.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",a);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,B(e))}}(r);e.on("drain",l);var f=!1;function d(t){u("ondata");var n=e.write(t);u("dest.write",n),!1===n&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!f&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),r.pause())}function h(t){u("onerror",t),m(),e.removeListener("error",h),0===i(e,"error")&&k(e,t)}function p(){e.removeListener("finish",g),m()}function g(){u("onfinish"),e.removeListener("close",p),m()}function m(){u("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",h),e.once("close",p),e.once("finish",g),e.emit("pipe",r),o.flowing||(u("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=q(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},j.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,u("on readable",o.length,o.reading),o.length?A(this):o.reading||n.nextTick(T,this))),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(R,this),r},j.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||n.nextTick(R,this),t},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),e.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(u("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(j.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=r(501)),d(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=D,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(j.from=function(e,t){return void 0===h&&(h=r(502)),h(j,e,t)})}).call(this,r(12),r(13))},function(e,t,r){e.exports=r(51).EventEmitter},function(e,t,r){"use strict";(function(t){function r(e,t){o(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var s=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?s._writableState?s._writableState.errorEmitted?t.nextTick(n,s):(s._writableState.errorEmitted=!0,t.nextTick(r,s,e)):t.nextTick(r,s,e):i?(t.nextTick(n,s),i(e)):t.nextTick(n,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,r(13))},function(e,t,r){"use strict";var n=r(78).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},function(e,t,r){"use strict";(function(t,n){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=j,j.WritableState=O;var s={deprecate:r(155)},a=r(275),c=r(2).Buffer,u=t.Uint8Array||function(){};var l,f=r(276),d=r(277).getHighWaterMark,h=r(78).codes,p=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function S(){}function O(e,t,s){i=i||r(79),e=e||{},"boolean"!=typeof s&&(s=t instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,o=r.sync,i=r.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,o,i){--t.pendingcb,r?(n.nextTick(i,o),n.nextTick(I,e,t),e._writableState.errorEmitted=!0,k(e,o)):(i(o),e._writableState.errorEmitted=!0,k(e,o),I(e,t))}(e,r,o,t,i);else{var s=A(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),o?n.nextTick(P,e,r,s,i):P(e,r,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function j(e){var t=this instanceof(i=i||r(79));if(!t&&!l.call(j,this))return new j(e);this._writableState=new O(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function E(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function P(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),I(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,c=!0;r;)i[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;i.allBuffers=c,E(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(E(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),I(e,t)}))}function I(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return r}r(4)(j,a),O.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(O.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===j&&(e&&e._writableState instanceof O)}})):l=function(e){return e instanceof this},j.prototype.pipe=function(){k(this,new y)},j.prototype.write=function(e,t,r){var o,i=this._writableState,s=!1,a=!i.objectMode&&(o=e,c.isBuffer(o)||o instanceof u);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=S),i.ending?function(e,t){var r=new w;k(e,r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,o){var i;return null===r?i=new v:"string"==typeof r||t.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i||(k(e,i),n.nextTick(o,i),!1)}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,o,i){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r));return t}(t,n,o);n!==s&&(r=!0,o="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,a,n,o,i);return u}(this,i,a,e,t,r)),s},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},j.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,t,r){r(new g("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,t,r){var o=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,r){t.ending=!0,I(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,o,r),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=f.destroy,j.prototype._undestroy=f.undestroy,j.prototype._destroy=function(e,t){t(e)}}).call(this,r(12),r(13))},function(e,t,r){"use strict";e.exports=l;var n=r(78).codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(79);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(4)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,r){"use strict";var n=t;function o(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var o=e.charCodeAt(n),i=o>>8,s=255&o;i?r.push(i,s):r.push(s)}return r},n.zero2=o,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(123),n.short=r(509),n.mont=r(510),n.edwards=r(511)},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{s=r(520).Buffer}catch(e){}function a(e,t,r){for(var o=0,i=Math.min(e.length,r),s=0,a=t;a<i;a++){var c,u=e.charCodeAt(a)-48;o<<=4,o|=c=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,s|=c}return n(!(240&s),"Invalid character in "+e),o}function c(e,t,r,o){for(var i=0,s=0,a=Math.min(e.length,r),c=t;c<a;c++){var u=e.charCodeAt(c)-48;i*=o,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<o,"Invalid character"),i+=s}return i}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===t?this._parseHex(e,o):this._parseBase(e,t,o),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,s,a=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o,i=0;for(r=e.length-6,n=0;r>=t;r-=6)o=a(e,r,r+6),this.words[n]|=o<<i&67108863,this.words[n+1]|=o>>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);r+6!==t&&(o=a(e,t,r+6),this.words[n]|=o<<i&67108863,this.words[n+1]|=o>>>26-i&4194303),this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,s=i%n,a=Math.min(i,i-s)+r,u=0,l=r;l<a;l+=n)u=c(e,l,l+n,t),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var f=1;for(u=c(e,l,e.length,t),l=0;l<s;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){u(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","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"],d=[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],h=[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];i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var o=0,i=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<o|i)).toString(16);r=0!==(i=a>>>24-o&16777215)||s!==this.length-1?f[6-c.length]+c+r:c+r,(o+=2)>=26&&(o-=26,s--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],s=o*i,a=67108863&s,c=s/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=c>>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(s=(o=0|e.words[p])*(i=0|t.words[h])+f)/67108864|0,f=67108863&s}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}i.prototype.toArrayLike=function(e,t,r){this._strip();var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,o),s},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,o=0,i=0;o<this.length;o++){var s=this.words[o]<<i|n;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===i?(r<e.length&&(e[r++]=s>>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,o=0,i=0;o<this.length;o++){var s=this.words[o]<<i|n;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===i?(r>=0&&(e[r--]=s>>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<o:this.words[r]&~(1<<o),this._strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var o=0,i=0;i<n.length;i++)t=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<r.length;i++)t=(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=e):(r=e,n=this);for(var i=0,s=0;s<n.length;s++)i=(t=(0|r.words[s])-(0|n.words[s])+i)>>26,this.words[s]=67108863&t;for(;0!==i&&s<r.length;s++)i=(t=(0|r.words[s])+i)>>26,this.words[s]=67108863&t;if(0===i&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,o,i,s=e.words,a=t.words,c=r.words,u=0,l=0|s[0],f=8191&l,d=l>>>13,h=0|s[1],p=8191&h,g=h>>>13,m=0|s[2],y=8191&m,b=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,k=0|s[4],S=8191&k,O=k>>>13,j=0|s[5],E=8191&j,P=j>>>13,x=0|s[6],A=8191&x,M=x>>>13,I=0|s[7],C=8191&I,R=I>>>13,T=0|s[8],N=8191&T,B=T>>>13,D=0|s[9],L=8191&D,U=D>>>13,q=0|a[0],H=8191&q,z=q>>>13,F=0|a[1],K=8191&F,$=F>>>13,V=0|a[2],J=8191&V,G=V>>>13,W=0|a[3],Q=8191&W,Z=W>>>13,Y=0|a[4],X=8191&Y,ee=Y>>>13,te=0|a[5],re=8191&te,ne=te>>>13,oe=0|a[6],ie=8191&oe,se=oe>>>13,ae=0|a[7],ce=8191&ae,ue=ae>>>13,le=0|a[8],fe=8191&le,de=le>>>13,he=0|a[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(f,H))|0)+((8191&(o=(o=Math.imul(f,z))+Math.imul(d,H)|0))<<13)|0;u=((i=Math.imul(d,z))+(o>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,H),o=(o=Math.imul(p,z))+Math.imul(g,H)|0,i=Math.imul(g,z);var ye=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(o=(o=o+Math.imul(f,$)|0)+Math.imul(d,K)|0))<<13)|0;u=((i=i+Math.imul(d,$)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,H),o=(o=Math.imul(y,z))+Math.imul(b,H)|0,i=Math.imul(b,z),n=n+Math.imul(p,K)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(g,K)|0,i=i+Math.imul(g,$)|0;var be=(u+(n=n+Math.imul(f,J)|0)|0)+((8191&(o=(o=o+Math.imul(f,G)|0)+Math.imul(d,J)|0))<<13)|0;u=((i=i+Math.imul(d,G)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,H),o=(o=Math.imul(w,z))+Math.imul(_,H)|0,i=Math.imul(_,z),n=n+Math.imul(y,K)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,$)|0,n=n+Math.imul(p,J)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(g,J)|0,i=i+Math.imul(g,G)|0;var ve=(u+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;u=((i=i+Math.imul(d,Z)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,H),o=(o=Math.imul(S,z))+Math.imul(O,H)|0,i=Math.imul(O,z),n=n+Math.imul(w,K)|0,o=(o=o+Math.imul(w,$)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(y,J)|0,o=(o=o+Math.imul(y,G)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(g,Q)|0,i=i+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((i=i+Math.imul(d,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,H),o=(o=Math.imul(E,z))+Math.imul(P,H)|0,i=Math.imul(P,z),n=n+Math.imul(S,K)|0,o=(o=o+Math.imul(S,$)|0)+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,n=n+Math.imul(w,J)|0,o=(o=o+Math.imul(w,G)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,ee)|0;var _e=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(o=(o=o+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((i=i+Math.imul(d,ne)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,H),o=(o=Math.imul(A,z))+Math.imul(M,H)|0,i=Math.imul(M,z),n=n+Math.imul(E,K)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(S,J)|0,o=(o=o+Math.imul(S,G)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,G)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ne)|0)+Math.imul(g,re)|0,i=i+Math.imul(g,ne)|0;var ke=(u+(n=n+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,se)|0)+Math.imul(d,ie)|0))<<13)|0;u=((i=i+Math.imul(d,se)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(C,H),o=(o=Math.imul(C,z))+Math.imul(R,H)|0,i=Math.imul(R,z),n=n+Math.imul(A,K)|0,o=(o=o+Math.imul(A,$)|0)+Math.imul(M,K)|0,i=i+Math.imul(M,$)|0,n=n+Math.imul(E,J)|0,o=(o=o+Math.imul(E,G)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,o=(o=o+Math.imul(y,ne)|0)+Math.imul(b,re)|0,i=i+Math.imul(b,ne)|0,n=n+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,se)|0)+Math.imul(g,ie)|0,i=i+Math.imul(g,se)|0;var Se=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(o=(o=o+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((i=i+Math.imul(d,ue)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,H),o=(o=Math.imul(N,z))+Math.imul(B,H)|0,i=Math.imul(B,z),n=n+Math.imul(C,K)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(A,J)|0,o=(o=o+Math.imul(A,G)|0)+Math.imul(M,J)|0,i=i+Math.imul(M,G)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(O,X)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,o=(o=o+Math.imul(w,ne)|0)+Math.imul(_,re)|0,i=i+Math.imul(_,ne)|0,n=n+Math.imul(y,ie)|0,o=(o=o+Math.imul(y,se)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,se)|0,n=n+Math.imul(p,ce)|0,o=(o=o+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,i=i+Math.imul(g,ue)|0;var Oe=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((i=i+Math.imul(d,de)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,H),o=(o=Math.imul(L,z))+Math.imul(U,H)|0,i=Math.imul(U,z),n=n+Math.imul(N,K)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(B,K)|0,i=i+Math.imul(B,$)|0,n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(R,J)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,Z)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,Z)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(S,re)|0,o=(o=o+Math.imul(S,ne)|0)+Math.imul(O,re)|0,i=i+Math.imul(O,ne)|0,n=n+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,se)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,se)|0,n=n+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,n=n+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,de)|0)+Math.imul(g,fe)|0,i=i+Math.imul(g,de)|0;var je=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,ge)|0)+Math.imul(d,pe)|0))<<13)|0;u=((i=i+Math.imul(d,ge)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,K),o=(o=Math.imul(L,$))+Math.imul(U,K)|0,i=Math.imul(U,$),n=n+Math.imul(N,J)|0,o=(o=o+Math.imul(N,G)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,G)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(A,X)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,o=(o=o+Math.imul(E,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(S,ie)|0,o=(o=o+Math.imul(S,se)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,se)|0,n=n+Math.imul(w,ce)|0,o=(o=o+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,i=i+Math.imul(_,ue)|0,n=n+Math.imul(y,fe)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(b,fe)|0,i=i+Math.imul(b,de)|0;var Ee=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((i=i+Math.imul(g,ge)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,J),o=(o=Math.imul(L,G))+Math.imul(U,J)|0,i=Math.imul(U,G),n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,o=(o=o+Math.imul(A,ne)|0)+Math.imul(M,re)|0,i=i+Math.imul(M,ne)|0,n=n+Math.imul(E,ie)|0,o=(o=o+Math.imul(E,se)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,se)|0,n=n+Math.imul(S,ce)|0,o=(o=o+Math.imul(S,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,n=n+Math.imul(w,fe)|0,o=(o=o+Math.imul(w,de)|0)+Math.imul(_,fe)|0,i=i+Math.imul(_,de)|0;var Pe=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(o=(o=o+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((i=i+Math.imul(b,ge)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,Q),o=(o=Math.imul(L,Z))+Math.imul(U,Q)|0,i=Math.imul(U,Z),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,ee)|0,n=n+Math.imul(C,re)|0,o=(o=o+Math.imul(C,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(A,ie)|0,o=(o=o+Math.imul(A,se)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,se)|0,n=n+Math.imul(E,ce)|0,o=(o=o+Math.imul(E,ue)|0)+Math.imul(P,ce)|0,i=i+Math.imul(P,ue)|0,n=n+Math.imul(S,fe)|0,o=(o=o+Math.imul(S,de)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,de)|0;var xe=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,ge)|0)+Math.imul(_,pe)|0))<<13)|0;u=((i=i+Math.imul(_,ge)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,X),o=(o=Math.imul(L,ee))+Math.imul(U,X)|0,i=Math.imul(U,ee),n=n+Math.imul(N,re)|0,o=(o=o+Math.imul(N,ne)|0)+Math.imul(B,re)|0,i=i+Math.imul(B,ne)|0,n=n+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,se)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,se)|0,n=n+Math.imul(A,ce)|0,o=(o=o+Math.imul(A,ue)|0)+Math.imul(M,ce)|0,i=i+Math.imul(M,ue)|0,n=n+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0;var Ae=(u+(n=n+Math.imul(S,pe)|0)|0)+((8191&(o=(o=o+Math.imul(S,ge)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,ge)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),o=(o=Math.imul(L,ne))+Math.imul(U,re)|0,i=Math.imul(U,ne),n=n+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,se)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,se)|0,n=n+Math.imul(C,ce)|0,o=(o=o+Math.imul(C,ue)|0)+Math.imul(R,ce)|0,i=i+Math.imul(R,ue)|0,n=n+Math.imul(A,fe)|0,o=(o=o+Math.imul(A,de)|0)+Math.imul(M,fe)|0,i=i+Math.imul(M,de)|0;var Me=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(o=(o=o+Math.imul(E,ge)|0)+Math.imul(P,pe)|0))<<13)|0;u=((i=i+Math.imul(P,ge)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,ie),o=(o=Math.imul(L,se))+Math.imul(U,ie)|0,i=Math.imul(U,se),n=n+Math.imul(N,ce)|0,o=(o=o+Math.imul(N,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,n=n+Math.imul(C,fe)|0,o=(o=o+Math.imul(C,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0;var Ie=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(o=(o=o+Math.imul(A,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((i=i+Math.imul(M,ge)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,ce),o=(o=Math.imul(L,ue))+Math.imul(U,ce)|0,i=Math.imul(U,ue),n=n+Math.imul(N,fe)|0,o=(o=o+Math.imul(N,de)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,de)|0;var Ce=(u+(n=n+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,ge)|0)+Math.imul(R,pe)|0))<<13)|0;u=((i=i+Math.imul(R,ge)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,fe),o=(o=Math.imul(L,de))+Math.imul(U,fe)|0,i=Math.imul(U,de);var Re=(u+(n=n+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,ge)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,ge)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Te=(u+(n=Math.imul(L,pe))|0)+((8191&(o=(o=Math.imul(L,ge))+Math.imul(U,pe)|0))<<13)|0;return u=((i=Math.imul(U,ge))+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=Se,c[8]=Oe,c[9]=je,c[10]=Ee,c[11]=Pe,c[12]=xe,c[13]=Ae,c[14]=Me,c[15]=Ie,c[16]=Ce,c[17]=Re,c[18]=Te,0!==u&&(c[19]=u,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var s=o;o=0;for(var a=67108863&n,c=Math.min(i,t.length-1),u=Math.max(0,i-e.length+1);u<=c;u++){var l=i-u,f=(0|e.words[l])*(0|t.words[u]),d=67108863&f;a=67108863&(d=d+a|0),o+=(s=(s=s+(f/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[i]=a,n=s,s=o}return 0!==n?r.words[i]=n:r.length--,r._strip()}function y(e,t,r){return m(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=p),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?p(this,e,t):r<1024?m(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,o=0;o<t;o++)n|=(1&e)<<t-o-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,o,i){for(var s=0;s<i;s++)n[s]=t[e[s]],o[s]=r[e[s]]},b.prototype.transform=function(e,t,r,n,o,i){this.permute(i,e,t,r,n,o);for(var s=1;s<o;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<o;l+=a)for(var f=c,d=u,h=0;h<s;h++){var p=r[l+h],g=n[l+h],m=r[l+h+s],y=n[l+h+s],b=f*m-d*y;y=f*y+d*m,m=b,r[l+h]=p+m,n[l+h]=g+y,r[l+h+s]=p-m,n[l+h+s]=g-y,h!==a&&(b=c*f-u*d,d=c*d+u*f,f=b)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=e[n];e[n]=e[r-n-1],e[r-n-1]=o,o=t[n],t[n]=-t[r-n-1],t[r-n-1]=-o}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var o=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&o,r=o<67108864?0:o/67108864|0}return e},b.prototype.convert13b=function(e,t,r,o){for(var i=0,s=0;s<t;s++)i+=0|e[s],r[2*s]=8191&i,i>>>=13,r[2*s+1]=8191&i,i>>>=13;for(s=2*t;s<o;++s)r[s]=0;n(0===i),n(0==(-8192&i))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),i=this.stub(n),s=new Array(n),a=new Array(n),c=new Array(n),u=new Array(n),l=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,u,n),this.transform(s,i,a,c,n,o),this.transform(u,i,l,f,n,o);for(var h=0;h<n;h++){var p=a[h]*l[h]-c[h]*f[h];c[h]=a[h]*f[h]+c[h]*l[h],a[h]=p}return this.conjugate(a,c,n),this.transform(a,c,d,i,n,o),this.conjugate(d,i,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),y(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,o=0;o<this.length;o++){var i=(0|this.words[o])*e,s=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=s>>>26,this.words[o]=67108863&s}return 0!==r&&(this.words[o]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=e.words[n]>>>o&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,o=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,c=(0|this.words[t])-a<<r;this.words[t]=c|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var o;n("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,s=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,c=r;if(o-=s,o=Math.max(0,o),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=o);u--){var f=0|this.words[u];this.words[u]=l<<26-i|f>>>i,l=f&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,o=1<<t;return!(this.length<=r)&&!!(this.words[r]&o)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var o,i,s=e.length+r;this._expand(s);var a=0;for(o=0;o<e.length;o++){i=(0|this.words[o+r])+a;var c=(0|e.words[o])*t;a=((i-=67108863&c)>>26)-(c/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)a=(i=(0|this.words[o+r])+a)>>26,this.words[o+r]=67108863&i;if(0===a)return this._strip();for(n(-1===a),a=0,o=0;o<this.length;o++)a=(i=-(0|this.words[o])+a)>>26,this.words[o]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,c=n.length-o.length;if("mod"!==t){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=n.clone()._ishlnsubmul(o,1,c);0===l.negative&&(n=l,a&&(a.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(o,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);a&&(a.words[f]=d)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,o=0,i=this.length-1;i>=0;i--)o=(r*o+(0|this.words[i]))%e;return t?-o:o},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+67108864*r;this.words[o]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(f)),o.iushrn(1),s.iushrn(1);for(var p=0,g=1;0==(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(f)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a),s.isub(c)):(r.isub(t),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var f=0,d=1;0==(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,o=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,s=r;0!==i&&s<this.length;s++){var a=0|this.words[s];i=(a+=i)>>>26,a&=67108863,this.words[s]=a}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){n<o?t=-1:n>o&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new j(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},o(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,n=10;n<e.length;n++){var i=0|e.words[n];e.words[n-10]=(4194303&i)<<4|o>>>22,o=i}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(k,w),o(S,w),o(O,w),O.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,o=67108863&n;n>>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new O}return v[e]=t,t},j.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},j.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=s;0!==h.cmp(a);){for(var g=h,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(f,new i(1).iushln(p-m-1));d=d.redMul(y),f=y.redSqr(),h=h.redMul(f),p=m}return d},j.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},j.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==s?(s<<=1,s|=f,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}c=26}return o},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},o(E,j),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(71)(e))},function(e,t,r){"use strict";const n=t;n.bignum=r(6),n.define=r(522).define,n.base=r(525),n.constants=r(526),n.decoders=r(286),n.encoders=r(284)},function(e,t,r){"use strict";const n=t;n.der=r(285),n.pem=r(523)},function(e,t,r){"use strict";const n=r(4),o=r(165).Buffer,i=r(166),s=r(168);function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){i.call(this,"der",e)}function u(e){return e<10?"0"+e:e}e.exports=a,a.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(c,i),c.prototype._encodeComposite=function(e,t,r,n){const i=function(e,t,r,n){let o;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))o=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);o=e}if(o>=31)return n.error("Multi-octet tag encoding unsupported");t||(o|=32);return o|=s.tagClassByName[r||"universal"]<<6,o}(e,t,r,this.reporter);if(n.length<128){const e=o.alloc(2);return e[0]=i,e[1]=n.length,this._createEncoderBuffer([e,n])}let a=1;for(let e=n.length;e>=256;e>>=8)a++;const c=o.alloc(2+a);c[0]=i,c[1]=128|a;for(let e=1+a,t=n.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,n])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=o.alloc(2*e.length);for(let r=0;r<e.length;r++)t.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let t=0;t<e.length;t++){let r=e[t];for(n++;r>=128;r>>=7)n++}const i=o.alloc(n);let s=i.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(i[s--]=127&r;(r>>=7)>0;)i[s--]=128|127&r}return this._createEncoderBuffer(i)},c.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[u(n.getUTCFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getUTCFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!o.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=o.from(t)}if(o.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=o.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;const n=new Array(r);for(let t=n.length-1;t>=0;t--)n[t]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(o.from(n))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,r){const n=this._baseState;let o;if(null===n.default)return!1;const i=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),i.length!==n.defaultBuffer.length)return!1;for(o=0;o<i.length;o++)if(i[o]!==n.defaultBuffer[o])return!1;return!0}},function(e,t,r){"use strict";const n=t;n.der=r(287),n.pem=r(524)},function(e,t,r){"use strict";const n=r(4),o=r(6),i=r(99).DecoderBuffer,s=r(166),a=r(168);function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){s.call(this,"der",e)}function l(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const n=a.tagClass[r>>6],o=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:o,tag:r,tagStr:a.tag[r]}}function f(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const o=127&n;if(o>4)return e.error("length octect is too long");n=0;for(let t=0;t<o;t++){n<<=8;const t=e.readUInt8(r);if(e.isError(t))return t;n|=t}return n}e.exports=c,c.prototype.decode=function(e,t){return i.isDecoderBuffer(e)||(e=new i(e,t)),this.tree._decode(e,t)},n(u,s),u.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;const n=e.save(),o=l(e,'Failed to peek tag: "'+t+'"');return e.isError(o)?o:(e.restore(n),o.tag===t||o.tagStr===t||o.tagStr+"of"===t||r)},u.prototype._decodeTag=function(e,t,r){const n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;let o=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(o))return o;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==o)return e.skip(o,'Failed to match body of: "'+t+'"');const i=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(o=e.offset-i.offset,e.restore(i),e.skip(o,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){const r=l(e,t);if(e.isError(r))return r;const n=f(e,r.primitive,t);if(e.isError(n))return n;let o;if(o=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(o))return o;if("end"===r.tagStr)break}},u.prototype._decodeList=function(e,t,r,n){const o=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const i=r.decode(e,"der",n);if(e.isError(i)&&t)break;o.push(i)}return o},u.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let e=0;e<t.length/2;e++)r+=String.fromCharCode(t.readUInt16BE(2*e));return r}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,r){let n;const o=[];let i=0,s=0;for(;!e.isEmpty();)s=e.readUInt8(),i<<=7,i|=127&s,0==(128&s)&&(o.push(i),i=0);128&s&&o.push(i);const a=o[0]/40|0,c=o[0]%40;if(n=r?o:[a,c].concat(o.slice(1)),t){let e=t[n.join(" ")];void 0===e&&(e=t[n.join(".")]),void 0!==e&&(n=e)}return n},u.prototype._decodeTime=function(e,t){const r=e.raw().toString();let n,o,i,s,a,c;if("gentime"===t)n=0|r.slice(0,4),o=0|r.slice(4,6),i=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),c=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),o=0|r.slice(2,4),i=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),c=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,o-1,i,s,a,c,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){const r=e.raw();let n=new o(r);return t&&(n=t[n.toString(10)]||n),n},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,r){var n=r(54),o=r(7).Buffer;function i(e){var t=o.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,s=o.alloc(0),a=0;s.length<t;)r=i(a++),s=o.concat([s,n("sha1").update(e).update(r).digest()]);return s.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){var n=r(6),o=r(7).Buffer;e.exports=function(e,t){return o.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},function(e,t,r){"use strict";e.exports=function(e,t,r,n){for(var o=65535&e|0,i=e>>>16&65535|0,s=0;0!==r;){r-=s=r>2e3?2e3:r;do{i=i+(o=o+t[n++]|0)|0}while(--s);o%=65521,i%=65521}return o|i<<16|0}},function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t,r,o){var i=n,s=o+r;e^=-1;for(var a=o;a<s;a++)e=e>>>8^i[255&(e^t[a])];return-1^e}},function(e,t,r){"use strict";var n=r(57),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,t.string2buf=function(e){var t,r,o,i,s,a=e.length,c=0;for(i=0;i<a;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),c+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(c),s=0,i=0;s<c;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<a&&56320==(64512&(o=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(o-56320),i++),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|63&r):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|63&r):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|63&r);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r<o;r++)t[r]=e.charCodeAt(r);return t},t.buf2string=function(e,t){var r,n,o,i,a=t||e.length,u=new Array(2*a);for(n=0,r=0;r<a;)if((o=e[r++])<128)u[n++]=o;else if((i=s[o])>4)u[n++]=65533,r+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&r<a;)o=o<<6|63&e[r++],i--;i>1?u[n++]=65533:o<65536?u[n++]=o:(o-=65536,u[n++]=55296|o>>10&1023,u[n++]=56320|1023&o)}return c(u,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},function(e,t,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={};let o;t.wordlists=n,t._default=o;try{t._default=o=r(548),n.czech=o}catch(e){}try{t._default=o=r(549),n.chinese_simplified=o}catch(e){}try{t._default=o=r(550),n.chinese_traditional=o}catch(e){}try{t._default=o=r(551),n.korean=o}catch(e){}try{t._default=o=r(552),n.french=o}catch(e){}try{t._default=o=r(553),n.italian=o}catch(e){}try{t._default=o=r(554),n.spanish=o}catch(e){}try{t._default=o=r(555),n.japanese=o,n.JA=o}catch(e){}try{t._default=o=r(556),n.english=o,n.EN=o}catch(e){}},function(e,t,r){"use strict";var n=r(54),o=r(560);e.exports=o((function(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()}))},function(e,t,r){var n=r(170);function o(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function i(e){return n.Nil(e)?"":o(e.constructor)}function s(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function a(e){return n.Function(e)?e.toJSON?e.toJSON():o(e):n.Array(e)?"Array":e&&n.Object(e)?"Object":void 0!==e?e:""}function c(e,t,r){var o=function(e){return n.Function(e)?"":n.String(e)?JSON.stringify(e):e&&n.Object(e)?"":e}(t);return"Expected "+a(e)+", got"+(""!==r?" "+r:"")+(""!==o?" "+o:"")}function u(e,t,r){r=r||i(t),this.message=c(e,t,r),s(this,u),this.__type=e,this.__value=t,this.__valueTypeName=r}function l(e,t,r,n,o){e?(o=o||i(n),this.message=function(e,t,r,n,o){var i='" of type ';return"key"===t&&(i='" with key type '),c('property "'+a(r)+i+a(e),n,o)}(e,r,t,n,o)):this.message='Unexpected property "'+t+'"',s(this,u),this.__label=r,this.__property=t,this.__type=e,this.__value=n,this.__valueTypeName=o}u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,l.prototype=Object.create(Error.prototype),l.prototype.constructor=u,e.exports={TfTypeError:u,TfPropertyTypeError:l,tfCustomError:function(e,t){return new u(e,{},t)},tfSubError:function(e,t,r){return e instanceof l?(t=t+"."+e.__property,e=new l(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof u&&(e=new l(e.__type,t,r,e.__value,e.__valueTypeName)),s(e),e},tfJSON:a,getValueTypeName:i}},function(e,t,r){var n;e.exports=(n=r(9),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],l=r[5],f=r[6],d=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=u[h-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=g+u[h-7]+y+u[h-16]}var b=n&o^n&i^o&i,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&f)+c[h]+u[h];d=f,f=l,l=a,a=s+w|0,s=i,i=o,o=n,n=w+(v+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),n.SHA256)},function(e,t,r){var n;e.exports=(n=r(9),r(125),function(){var e=n,t=e.lib.Hasher,r=e.x64,o=r.Word,i=r.WordArray,s=e.algo;function a(){return o.create.apply(o,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=a()}();var l=s.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],l=r[5],f=r[6],d=r[7],h=n.high,p=n.low,g=o.high,m=o.low,y=i.high,b=i.low,v=s.high,w=s.low,_=a.high,k=a.low,S=l.high,O=l.low,j=f.high,E=f.low,P=d.high,x=d.low,A=h,M=p,I=g,C=m,R=y,T=b,N=v,B=w,D=_,L=k,U=S,q=O,H=j,z=E,F=P,K=x,$=0;$<80;$++){var V,J,G=u[$];if($<16)J=G.high=0|e[t+2*$],V=G.low=0|e[t+2*$+1];else{var W=u[$-15],Q=W.high,Z=W.low,Y=(Q>>>1|Z<<31)^(Q>>>8|Z<<24)^Q>>>7,X=(Z>>>1|Q<<31)^(Z>>>8|Q<<24)^(Z>>>7|Q<<25),ee=u[$-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,oe=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),ie=u[$-7],se=ie.high,ae=ie.low,ce=u[$-16],ue=ce.high,le=ce.low;J=(J=(J=Y+se+((V=X+ae)>>>0<X>>>0?1:0))+ne+((V+=oe)>>>0<oe>>>0?1:0))+ue+((V+=le)>>>0<le>>>0?1:0),G.high=J,G.low=V}var fe,de=D&U^~D&H,he=L&q^~L&z,pe=A&I^A&R^I&R,ge=M&C^M&T^C&T,me=(A>>>28|M<<4)^(A<<30|M>>>2)^(A<<25|M>>>7),ye=(M>>>28|A<<4)^(M<<30|A>>>2)^(M<<25|A>>>7),be=(D>>>14|L<<18)^(D>>>18|L<<14)^(D<<23|L>>>9),ve=(L>>>14|D<<18)^(L>>>18|D<<14)^(L<<23|D>>>9),we=c[$],_e=we.high,ke=we.low,Se=F+be+((fe=K+ve)>>>0<K>>>0?1:0),Oe=ye+ge;F=H,K=z,H=U,z=q,U=D,q=L,D=N+(Se=(Se=(Se=Se+de+((fe+=he)>>>0<he>>>0?1:0))+_e+((fe+=ke)>>>0<ke>>>0?1:0))+J+((fe+=V)>>>0<V>>>0?1:0))+((L=B+fe|0)>>>0<B>>>0?1:0)|0,N=R,B=T,R=I,T=C,I=A,C=M,A=Se+(me+pe+(Oe>>>0<ye>>>0?1:0))+((M=fe+Oe|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+M,n.high=h+A+(p>>>0<M>>>0?1:0),m=o.low=m+C,o.high=g+I+(m>>>0<C>>>0?1:0),b=i.low=b+T,i.high=y+R+(b>>>0<T>>>0?1:0),w=s.low=w+B,s.high=v+N+(w>>>0<B>>>0?1:0),k=a.low=k+L,a.high=_+D+(k>>>0<L>>>0?1:0),O=l.low=O+q,l.high=S+U+(O>>>0<q>>>0?1:0),E=f.low=E+z,f.high=j+H+(E>>>0<z>>>0?1:0),x=d.low=x+K,d.high=P+F+(x>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),n.SHA512)},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},function(e,t,r){"use strict";var n=r(28);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,r){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,r){"use strict";(function(t){var n=r(28),o=r(598),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var a,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(a=r(306)),a),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(i)})),e.exports=c}).call(this,r(13))},function(e,t,r){"use strict";var n=r(28),o=r(599),i=r(601),s=r(303),a=r(602),c=r(605),u=r(606),l=r(307);e.exports=function(e){return new Promise((function(t,r){var f=e.data,d=e.headers;n.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+g)}var m=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),s(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};o(t,r,i),h=null}},h.onabort=function(){h&&(r(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var y=(e.withCredentials||u(m))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in h&&n.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),r(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,r){"use strict";var n=r(600);e.exports=function(e,t,r,o,i){var s=new Error(e);return n(s,t,r,o,i)}},function(e,t,r){"use strict";var n=r(28);e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function u(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=c(void 0,e[o])):r[o]=c(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=c(void 0,t[e]))})),n.forEach(i,u),n.forEach(s,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=c(void 0,e[o])):r[o]=c(void 0,t[o])})),n.forEach(a,(function(n){n in t?r[n]=c(e[n],t[n]):n in e&&(r[n]=c(void 0,e[n]))}));var l=o.concat(i).concat(s).concat(a),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(f,u),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAttribute=t.parseLogs=t.parseLog=t.parseEvent=t.parseAttribute=void 0;const n=r(100);function o(e){if(!n.isNonNullObject(e))throw new Error("Attribute must be a non-null object");const{key:t,value:r}=e;if("string"!=typeof t||!t)throw new Error("Attribute's key must be a non-empty string");if("string"!=typeof r&&void 0!==r)throw new Error("Attribute's value must be a string or unset");return{key:t,value:r||""}}function i(e){if(!n.isNonNullObject(e))throw new Error("Event must be a non-null object");const{type:t,attributes:r}=e;if("string"!=typeof t||""===t)throw new Error("Event type must be a non-empty string");if(!Array.isArray(r))throw new Error("Event's attributes must be an array");return{type:t,attributes:r.map(o)}}function s(e){if(!n.isNonNullObject(e))throw new Error("Log must be a non-null object");const{msg_index:t,log:r,events:o}=e;if("number"!=typeof t)throw new Error("Log's msg_index must be a number");if("string"!=typeof r)throw new Error("Log's log must be a string");if(!Array.isArray(o))throw new Error("Log's events must be an array");return{msg_index:t,log:r,events:o.map(i)}}t.parseAttribute=o,t.parseEvent=i,t.parseLog=s,t.parseLogs=function(e){if(!Array.isArray(e))throw new Error("Logs must be an array");return e.map(s)},t.findAttribute=function(e,t,r){var n;const o=e.find(()=>!0),i=null===(n=null==o?void 0:o.events.find(e=>e.type===t))||void 0===n?void 0:n.attributes.find(e=>e.key===r);if(!i)throw new Error(`Could not find attribute '${r}' in first event of type '${t}' in first log.`);return i}},function(e,t,r){!function(t){"use strict";for(var r=[null,0,{}],n=function(e,t){this.codepoint=e,this.feature=t},o={},i=[],s=0;s<=255;++s)i[s]=0;var a=[function(e,t,o){return t<60||13311<t&&t<42607?new n(t,r):e(t,o)},function(e,t,r){var n=o[t];return n||(n=e(t,r)).feature&&++i[t>>8&255]>10&&(o[t]=n),n},function(e,t,r){return r?e(t,r):new n(t,null)},function(e,t,r){var o;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,r);if(4352<=t&&t<4371){var i={},s=21*(t-4352);for(o=0;o<21;++o)i[4449+o]=44032+28*(o+s);return new n(t,[,,i])}var a=t-44032,c=a%28,u=[];if(0!==c)u[0]=[44032+a-c,4519+c];else for(u[0]=[4352+Math.floor(a/588),4449+Math.floor(a%588/28)],u[2]={},o=1;o<28;++o)u[2][4519+o]=t+o;return new n(t,u)},function(e,t,o){var i=(n.udata[65280&t]||{})[t];return new n(t,i||r)}];n.fromCharCode=a.reduceRight((function(e,t){return function(r,n){return t(e,r,n)}}),null),n.isHighSurrogate=function(e){return e>=55296&&e<=56319},n.isLowSurrogate=function(e){return e>=56320&&e<=57343},n.prototype.prepFeature=function(){this.feature||(this.feature=n.fromCharCode(this.codepoint,!0).feature)},n.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},n.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},n.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},n.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},n.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},n.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?n.fromCharCode(t):null};var c=function(e){this.str=e,this.cursor=0};c.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return n.isHighSurrogate(t)&&this.cursor<this.str.length&&n.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),n.fromCharCode(t)}return this.str=null,null};var u=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};u.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,r){var o=r.getDecomp();if(!o||t&&r.isCompatibility())return[r];for(var i=[],s=0;s<o.length;++s){var a=e(t,n.fromCharCode(o[s]));i=i.concat(a)}return i}(this.canonical,e)}return this.resBuf.shift()};var l=function(e){this.it=e,this.resBuf=[]};l.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var r=this.resBuf.length;if(0!==e)for(;r>0;--r){if(this.resBuf[r-1].getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var f=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};f.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass<r||0===this.lastClass)?this.procBuf[0]=t:(0===r&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=r,this.procBuf.push(e))}}return this.resBuf.shift()};var d=function(e,t){for(var r,n=function(e,t){switch(e){case"NFD":return new l(new u(new c(t),!0));case"NFKD":return new l(new u(new c(t),!1));case"NFC":return new f(new l(new u(new c(t),!0)));case"NFKC":return new f(new l(new u(new c(t),!1)))}throw e+" is invalid"}(e,t),o="";r=n.next();)o+=r.toString();return o};n.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var h={nfc:function(e){return d("NFC",e)},nfd:function(e){return d("NFD",e)},nfkc:function(e){return d("NFKC",e)},nfkd:function(e){return d("NFKD",e)}};e.exports=h,h.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=""+this,t=void 0===arguments[0]?"NFC":arguments[0];if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===t)return h.nfc(e);if("NFD"===t)return h.nfd(e);if("NFKC"===t)return h.nfkc(e);if("NFKD"===t)return h.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),h.shimApplied=!0)}()},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EnglishMnemonic=void 0;const s=i(r(69));class a{constructor(e){if(!a.mnemonicMatcher.test(e))throw new Error("Invalid mnemonic format");const t=e.split(" "),r=[12,15,18,21,24];if(-1===r.indexOf(t.length))throw new Error(`Invalid word count in mnemonic (allowed: ${r} got: ${t.length})`);for(const e of t)if(-1===a.wordlist.indexOf(e))throw new Error("Mnemonic contains invalid word");s.mnemonicToEntropy(e),this.data=e}toString(){return this.data}}t.EnglishMnemonic=a,a.wordlist=s.wordlists.english,a.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hmac=void 0;t.Hmac=class{constructor(e,t){const r=(new e).blockSize;this.hash=t=>(new e).update(t).digest();let n=t;if(n.length>r&&(n=this.hash(n)),n.length<r){const e=new Uint8Array(r-n.length);n=new Uint8Array([...n,...e])}this.oKeyPad=n.map(e=>92^e),this.iKeyPad=n.map(e=>54^e),this.messageHasher=new e,this.blockSize=r,this.update(this.iKeyPad)}update(e){return this.messageHasher.update(e),this}digest(){const e=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...e]))}}},function(e,t,r){"use strict";r.r(t),t.default={}},function(e,t,r){"use strict";function n(e){let t=0;for(const r of e){if(0!==r)break;t++}return e.slice(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedSecp256k1Signature=t.Secp256k1Signature=void 0;class o{constructor(e,t){if(e.length>32||0===e.length||0===e[0])throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(t.length>32||0===t.length||0===t[0])throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:e,s:t}}static fromFixedLength(e){if(64!==e.length)throw new Error(`Got invalid data length: ${e.length}. Expected 2x 32 bytes for the pair (r, s)`);return new o(n(e.slice(0,32)),n(e.slice(32,64)))}static fromDer(e){let t=0;if(48!==e[t++])throw new Error("Prefix 0x30 expected");const r=e[t++];if(e.length-t!==r)throw new Error("Data length mismatch detected");if(2!==e[t++])throw new Error("INTEGER tag expected");const i=e[t++];if(i>=128)throw new Error("Decoding length values above 127 not supported");const s=e.slice(t,t+i);t+=i;if(2!==e[t++])throw new Error("INTEGER tag expected");const a=e[t++];if(a>=128)throw new Error("Decoding length values above 127 not supported");const c=e.slice(t,t+a);return t+=a,new o(n(s),n(c))}r(e){if(void 0===e)return this.data.r;{const t=e-this.data.r.length;if(t<0)throw new Error("Length too small to hold parameter r");const r=new Uint8Array(t);return new Uint8Array([...r,...this.data.r])}}s(e){if(void 0===e)return this.data.s;{const t=e-this.data.s.length;if(t<0)throw new Error("Length too small to hold parameter s");const r=new Uint8Array(t);return new Uint8Array([...r,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){const e=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,t=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,r=e.length,n=t.length,o=new Uint8Array([2,r,...e,2,n,...t]);return new Uint8Array([48,o.length,...o])}}t.Secp256k1Signature=o;class i extends o{constructor(e,t,r){if(super(e,t),!Number.isInteger(r))throw new Error("The recovery parameter must be an integer.");if(r<0||r>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=r}static fromFixedLength(e){if(65!==e.length)throw new Error(`Got invalid data length ${e.length}. Expected 32 + 32 + 1`);return new i(n(e.slice(0,32)),n(e.slice(32,64)),e[64])}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}t.ExtendedSecp256k1Signature=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.Sha512=t.sha256=t.Sha256=t.sha1=t.Sha1=void 0;const o=n(r(76));class i{constructor(e){this.blockSize=64,this.impl=o.default("sha1"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Sha1=i,t.sha1=function(e){return new i(e).digest()};class s{constructor(e){this.blockSize=64,this.impl=o.default("sha256"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Sha256=s,t.sha256=function(e){return new s(e).digest()};class a{constructor(e){this.blockSize=128,this.impl=o.default("sha512"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Sha512=a,t.sha512=function(e){return new a(e).digest()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoins=t.coins=t.coin=void 0;const n=r(82);function o(e,t){return{amount:new n.Uint53(e).toString(),denom:t}}t.coin=o,t.coins=function(e,t){return[o(e,t)]},t.parseCoins=function(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map(e=>{const t=e.match(/^([0-9]+)([a-zA-Z]+)/);if(!t)throw new Error("Got an invalid coin string");return{amount:n.Uint64.fromString(t[1]).toString(),denom:t[2]}})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CosmosClient=t.isSearchByTagsQuery=t.isSearchBySentFromOrToQuery=t.isSearchByHeightQuery=t.assertIsBroadcastTxSuccess=t.isBroadcastTxSuccess=t.isBroadcastTxFailure=void 0;const n=r(50),o=r(39),i=r(82),s=r(174),a=r(310);function c(e){return!!e.code}function u(e){return void 0!==e.height}function l(e){return void 0!==e.sentFromOrTo}function f(e){return void 0!==e.tags}t.isBroadcastTxFailure=c,t.isBroadcastTxSuccess=function(e){return!c(e)},t.assertIsBroadcastTxSuccess=function(e){if(c(e))throw new Error(`Error when broadcasting tx ${e.transactionHash} at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`)},t.isSearchByHeightQuery=u,t.isSearchBySentFromOrToQuery=l,t.isSearchByTagsQuery=f;t.CosmosClient=class{constructor(e,t=s.BroadcastMode.Block){this.lcdClient=s.LcdClient.withExtensions({apiUrl:e,broadcastMode:t},s.setupAuthExtension)}async getChainId(){if(!this.chainId){const e=(await this.lcdClient.nodeInfo()).node_info.network;if(!e)throw new Error("Chain ID must not be empty");this.chainId=e}return this.chainId}async getHeight(){if(this.anyValidAddress){const{height:e}=await this.lcdClient.auth.account(this.anyValidAddress);return parseInt(e,10)}{const e=await this.lcdClient.blocksLatest();return parseInt(e.block.header.height,10)}}async getIdentifier(e){const t=await this.lcdClient.encodeTx(e),r=n.sha256(o.fromBase64(t.tx));return o.toHex(r).toUpperCase()}async getSequence(e){const t=await this.getAccount(e);if(!t)throw new Error("Account does not exist on chain. Send some tokens there before trying to query sequence.");return{accountNumber:t.accountNumber,sequence:t.sequence}}async getAccount(e){const t=(await this.lcdClient.auth.account(e)).result.value;return""===t.address?void 0:(this.anyValidAddress=t.address,{address:t.address,balance:t.coins,pubkey:s.normalizePubkey(t.public_key)||void 0,accountNumber:s.uint64ToNumber(t.account_number),sequence:s.uint64ToNumber(t.sequence)})}async getBlock(e){const t=void 0!==e?await this.lcdClient.blocks(e):await this.lcdClient.blocksLatest();return{id:t.block_id.hash,header:{version:t.block.header.version,time:t.block.header.time,height:parseInt(t.block.header.height,10),chainId:t.block.header.chain_id},txs:(t.block.data.txs||[]).map(o.fromBase64)}}async getTx(e){var t;return null!==(t=(await this.txsQuery("tx.hash="+e))[0])&&void 0!==t?t:null}async searchTx(e,t={}){const r=t.minHeight||0,n=t.maxHeight||Number.MAX_SAFE_INTEGER;if(n<r)return[];function o(e){return`${e}&tx.minheight=${r}&tx.maxheight=${n}`}let i;if(u(e))i=e.height<r||e.height>n?[]:await this.txsQuery("tx.height="+e.height);else if(l(e)){const t=o("message.module=bank&message.sender="+e.sentFromOrTo),r=o("message.module=bank&transfer.recipient="+e.sentFromOrTo),n=await this.txsQuery(t),s=await this.txsQuery(r),a=n.map(e=>e.hash);i=[...n,...s.filter(e=>!a.includes(e.hash))]}else{if(!f(e))throw new Error("Unknown query type");{const t=o(e.tags.map(e=>`${e.key}=${e.value}`).join("&"));i=await this.txsQuery(t)}}return i.filter(e=>e.height>=r&&e.height<=n)}async broadcastTx(e){const t=await this.lcdClient.broadcastTx(e);if(!t.txhash.match(/^([0-9A-F][0-9A-F])+$/))throw new Error("Received ill-formatted txhash. Must be non-empty upper-case hex");return void 0!==t.code?{height:i.Uint53.fromString(t.height).toNumber(),transactionHash:t.txhash,code:t.code,rawLog:t.raw_log||""}:{logs:t.logs?a.parseLogs(t.logs):[],rawLog:t.raw_log||"",transactionHash:t.txhash,data:t.data?o.fromHex(t.data):void 0}}async txsQuery(e){const t=await this.lcdClient.txsQuery(e+"&limit=100");if(parseInt(t.page_total,10)>1)throw new Error(`Found more results on the backend than we can process currently. Results: ${t.total_count}, supported: 100`);return t.txs.map(e=>({height:parseInt(e.height,10),hash:e.txhash,code:e.code||0,rawLog:e.raw_log,logs:a.parseLogs(e.logs||[]),tx:e.tx,timestamp:e.timestamp}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastMode=void 0,function(e){e.Block="block",e.Sync="sync",e.Async="async"}(t.BroadcastMode||(t.BroadcastMode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildFeeTable=t.GasPrice=void 0;const n=r(82),o=r(317);class i{constructor(e,t){this.amount=e,this.denom=t}static fromString(e){const t=e.match(/^(?<amount>.+?)(?<denom>[a-z]+)$/);if(!t)throw new Error("Invalid gas price string");const{amount:r,denom:o}=t.groups;if(o.length<3||o.length>127)throw new Error("Gas price denomination must be between 3 and 127 characters");const s=n.Decimal.fromUserInput(r,18);return new i(s,o)}}function s(e,{denom:t,amount:r}){const i=Math.ceil(r.multiply(new n.Uint53(e)).toFloatApproximation());return{amount:o.coins(i,t),gas:e.toString()}}t.GasPrice=i,t.buildFeeTable=function(e,t,r){return Object.entries(t).reduce((t,[n,o])=>Object.assign(Object.assign({},t),{[n]:s(r[n]||o,e)}),{})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;const n=r(50);t.makeCosmoshubPath=function(e){return[n.Slip10RawIndex.hardened(44),n.Slip10RawIndex.hardened(118),n.Slip10RawIndex.hardened(0),n.Slip10RawIndex.normal(0),n.Slip10RawIndex.normal(e)]}},function(e,t,r){"use strict";function n(e){const{memo:t,msg:r,fee:n,signatures:o}=e;return"string"==typeof t&&Array.isArray(r)&&"object"==typeof n&&Array.isArray(o)}Object.defineProperty(t,"__esModule",{value:!0}),t.isWrappedStdTx=t.makeStdTx=t.isStdTx=void 0,t.isStdTx=n,t.makeStdTx=function(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}},t.isWrappedStdTx=function(e){return"cosmos-sdk/StdTx"===e.type&&n(e.value)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;const n=r(50),o=r(39);t.cosmjsSalt=o.toAscii("The CosmJS salt."),t.executeKdf=async function(e,r){switch(r.algorithm){case"argon2id":{const o=r.params;if(!n.isArgon2idOptions(o))throw new Error("Invalid format of argon2id params");return n.Argon2id.execute(e,t.cosmjsSalt,o)}default:throw new Error("Unsupported KDF algorithm")}},t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=async function(e,r,o){switch(o.algorithm){case t.supportedAlgorithms.xchacha20poly1305Ietf:{const t=n.Random.getBytes(n.xchacha20NonceLength);return new Uint8Array([...t,...await n.Xchacha20poly1305Ietf.encrypt(e,r,t)])}default:throw new Error(`Unsupported encryption algorithm: '${o.algorithm}'`)}},t.decrypt=async function(e,r,o){switch(o.algorithm){case t.supportedAlgorithms.xchacha20poly1305Ietf:{const t=e.slice(0,n.xchacha20NonceLength);return n.Xchacha20poly1305Ietf.decrypt(e.slice(n.xchacha20NonceLength),r,t)}default:throw new Error(`Unsupported encryption algorithm: '${o.algorithm}'`)}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(176),t),o(r(650),t),o(r(651),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageRegistry=void 0;t.MessageRegistry=class{constructor(){this.registeredMsgType=new Map}registerMessage(e){if(this.registeredMsgType.has(e.type()))throw new Error("Already registered type "+e.type());this.registeredMsgType.set(e.type(),e)}parseMessage(e){if(!e.type)throw new Error("Null type");const t=this.registeredMsgType.get(e.type);if(!t)throw new Error("Unregistered msg type "+e.type);return Object.setPrototypeOf(e.msg,t.prototype)}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(656),t),o(r(657),t),o(r(658),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBPAGE_PORT=t.APP_PORT=t.BACKGROUND_PORT=void 0,t.BACKGROUND_PORT="background",t.APP_PORT="popup",t.WEBPAGE_PORT="webpage"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionGuards=void 0;class n{}t.ExtensionGuards=n,n.checkOriginIsValid=(e,t,r)=>{if(!r.url)throw new Error("url is empty");if(!t.origin)throw new Error("origin is empty");if(new URL(r.url).origin!==t.origin)throw new Error("Invalid origin");return Promise.resolve()},n.checkMessageIsInternal=(e,t,r)=>{if(!e.isInternalMsg&&!t.approveExternal(e,r))throw new Error("Permission rejected");return Promise.resolve()}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionEnv=void 0;const i=r(407),s=r(327),a=r(326),c=new(o(r(412)).default)({concurrency:1});class u{}t.ExtensionEnv=u,u.produceEnv=e=>{const t=u.checkIsInternalMessage(e,browser.runtime.id,browser.runtime.getURL("/")),r="interaction=true&interactionInternal="+t,o=(e,t,o)=>n(void 0,void 0,void 0,(function*(){e.startsWith("/")&&(e=e.slice(1)),(e=browser.runtime.getURL("/popup.html#/"+e)).includes("?")?e+="&"+r:e+="?"+r;const u=yield function(e,t="default"){return n(this,void 0,void 0,(function*(){return yield c.add(()=>i.openPopupWindow(e,t))}))}(e,null==o?void 0:o.channel),l=(yield browser.windows.get(u,{populate:!0})).tabs[0].id;return yield n(void 0,void 0,void 0,(function*(){if("complete"!==(yield browser.tabs.get(l)).status)return new Promise(e=>{browser.tabs.onUpdated.addListener((t,r)=>{l===t&&"complete"===r.status&&e()})})})),yield a.InExtensionMessageRequester.sendMessageToTab(l,s.APP_PORT,t)}));if(t){return{isInternalMsg:t,requestInteraction:(t,i,c)=>n(void 0,void 0,void 0,(function*(){if(null==c?void 0:c.forceOpenWindow)return yield o(t,i,c);t.startsWith("/")&&(t=t.slice(1)),(t=browser.runtime.getURL("/popup.html#/"+t)).includes("?")?t+="&"+r:t+="?"+r;const n=yield browser.runtime.getBackgroundPage(),u=browser.extension.getViews().filter(e=>e.location.href!==n.location.href),l=u.find(t=>t.location.href===e.url);return(null!=l?l:u[0]).location.href=t,yield(new a.InExtensionMessageRequester).sendMessage(s.APP_PORT,i)}))}}return{isInternalMsg:t,requestInteraction:o}},u.checkIsInternalMessage=(e,t,r)=>{if(!e.url)throw new Error("Empty sender url");const n=new URL(e.url);if(!n.origin||"null"===n.origin)throw new Error("Invalid sender url");const o=new URL(r);if(!o.origin||"null"===o.origin)throw new Error("Invalid browser url");return n.origin===o.origin&&e.id===t}},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.PersistentMemoryService=void 0;const o=r(43);let i=class{constructor(){this.data={}}set(e){this.data=Object.assign(Object.assign({},this.data),e)}get(){return this.data}};i=n([o.singleton()],i),t.PersistentMemoryService=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="persistent-memory"},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainsService=void 0;const c=r(43),u=r(52),l=r(333),f=r(334),d=r(83),h=r(128),p=r(11),g=a(r(342));let m=class{constructor(e,t,r,n){this.kvStore=e,this.embedChainInfos=t,this.chainUpdaterKeeper=r,this.interactionKeeper=n,this.onChainRemovedHandlers=[],this.getChainInfos=g.default.promise(()=>s(this,void 0,void 0,(function*(){var e;if(this.cachedChainInfos)return this.cachedChainInfos;const t=this.embedChainInfos.map(e=>Object.assign(Object.assign({},e),{embeded:!0})),r=new Map;for(const e of t)r.set(p.ChainIdHelper.parse(e.chainId).identifier,!0);const n=(null!==(e=yield this.kvStore.get("chain-infos"))&&void 0!==e?e:[]).filter(e=>!r.get(p.ChainIdHelper.parse(e.chainId).identifier)).map(e=>Object.assign(Object.assign({},e),{embeded:!1}));let o=t.concat(n);return o=yield Promise.all(o.map(e=>s(this,void 0,void 0,(function*(){const t=yield this.chainUpdaterKeeper.putUpdatedPropertyToChainInfo(e);return Object.assign(Object.assign({},t),{embeded:e.embeded})})))),this.cachedChainInfos=o,o})))}clearCachedChainInfos(){this.cachedChainInfos=void 0}getChainInfo(e){return s(this,void 0,void 0,(function*(){const t=(yield this.getChainInfos()).find(t=>p.ChainIdHelper.parse(t.chainId).identifier===p.ChainIdHelper.parse(e).identifier);if(!t)throw new Error("There is no chain info for "+e);return t}))}getChainCoinType(e){return s(this,void 0,void 0,(function*(){const t=yield this.getChainInfo(e);if(!t)throw new Error("There is no chain info for "+e);return t.bip44.coinType}))}hasChainInfo(e){return s(this,void 0,void 0,(function*(){return null!=(yield this.getChainInfos()).find(t=>p.ChainIdHelper.parse(t.chainId).identifier===p.ChainIdHelper.parse(e).identifier)}))}suggestChainInfo(e,t,r){return s(this,void 0,void 0,(function*(){t=yield l.ChainInfoSchema.validateAsync(t,{stripUnknown:!0}),yield this.interactionKeeper.waitApprove(e,"/suggest-chain",h.SuggestChainInfoMsg.type(),Object.assign(Object.assign({},t),{origin:r})),yield this.addChainInfo(t)}))}addChainInfo(e){var t;return s(this,void 0,void 0,(function*(){if(yield this.hasChainInfo(e.chainId))throw new Error("Same chain is already registered");const r=null!==(t=yield this.kvStore.get("chain-infos"))&&void 0!==t?t:[];r.push(e),yield this.kvStore.set("chain-infos",r),this.clearCachedChainInfos()}))}removeChainInfo(e){var t;return s(this,void 0,void 0,(function*(){if(!(yield this.hasChainInfo(e)))throw new Error("Chain is not registered");if((yield this.getChainInfo(e)).embeded)throw new Error("Can't remove the embedded chain");const r=(null!==(t=yield this.kvStore.get("chain-infos"))&&void 0!==t?t:[]).filter(t=>p.ChainIdHelper.parse(t.chainId).identifier!==p.ChainIdHelper.parse(e).identifier);yield this.kvStore.set("chain-infos",r),yield this.chainUpdaterKeeper.clearUpdatedProperty(e);for(const t of this.onChainRemovedHandlers)t(e,p.ChainIdHelper.parse(e).identifier);this.clearCachedChainInfos()}))}addChainRemovedHandler(e){this.onChainRemovedHandlers.push(e)}};m=n([c.singleton(),i(0,c.inject(u.TYPES.ChainsStore)),i(1,c.inject(u.TYPES.ChainsEmbedChainInfos)),i(2,c.inject(c.delay(()=>f.ChainUpdaterService))),i(3,c.inject(c.delay(()=>d.InteractionService))),o("design:paramtypes",[Object,Array,f.ChainUpdaterService,d.InteractionService])],m),t.ChainsService=m},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainInfoSchema=t.SuggestingBIP44Schema=t.Bech32ConfigSchema=t.Secret20CurrencyShema=t.CW20CurrencyShema=t.CurrencySchema=void 0;const o=n(r(670));t.CurrencySchema=o.default.object({coinDenom:o.default.string().required(),coinMinimalDenom:o.default.string().required(),coinDecimals:o.default.number().integer().min(0).max(18).required(),coinGeckoId:o.default.string()}),t.CW20CurrencyShema=t.CurrencySchema.keys({type:o.default.string().equal("cw20").required(),contractAddress:o.default.string().required()}).custom(e=>e.coinMinimalDenom.startsWith(`${e.type}:${e.contractAddress}:`)?e:Object.assign(Object.assign({},e),{coinMinimalDenom:`${e.type}:${e.contractAddress}:`+e.coinMinimalDenom})),t.Secret20CurrencyShema=t.CurrencySchema.keys({type:o.default.string().equal("secret20").required(),contractAddress:o.default.string().required(),viewingKey:o.default.string().required()}).custom(e=>e.coinMinimalDenom.startsWith(`${e.type}:${e.contractAddress}:`)?e:Object.assign(Object.assign({},e),{coinMinimalDenom:`${e.type}:${e.contractAddress}:`+e.coinMinimalDenom})),t.Bech32ConfigSchema=o.default.object({bech32PrefixAccAddr:o.default.string().required(),bech32PrefixAccPub:o.default.string().required(),bech32PrefixValAddr:o.default.string().required(),bech32PrefixValPub:o.default.string().required(),bech32PrefixConsAddr:o.default.string().required(),bech32PrefixConsPub:o.default.string().required()}),t.SuggestingBIP44Schema=o.default.object({coinType:o.default.number().integer().min(0).required()}).unknown(!0),t.ChainInfoSchema=o.default.object({rpc:o.default.string().required().uri(),rest:o.default.string().required().uri(),chainId:o.default.string().required().min(1).max(30),chainName:o.default.string().required().min(1).max(30),stakeCurrency:t.CurrencySchema.required(),walletUrl:o.default.string().uri(),walletUrlForStaking:o.default.string().uri(),bip44:t.SuggestingBIP44Schema.required(),bech32Config:t.Bech32ConfigSchema.required(),currencies:o.default.array().min(1).items(t.CurrencySchema,t.CW20CurrencyShema,t.Secret20CurrencyShema).required(),feeCurrencies:o.default.array().min(1).items(t.CurrencySchema).required(),coinType:o.default.number().integer(),beta:o.default.boolean(),gasPriceStep:o.default.object({low:o.default.number().required(),average:o.default.number().required(),high:o.default.number().required()}),features:o.default.array().items(o.default.string().valid("stargate","cosmwasm","secretwasm","ibc-transfer")).unique().custom(e=>{if(e.indexOf("cosmwasm")>=0&&e.indexOf("secretwasm")>=0)throw new Error("cosmwasm and secretwasm are not compatible");return e})})},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(335),t),o(r(178),t)},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainUpdaterService=void 0;const c=r(43),u=r(52),l=a(r(68)),f=r(11),d=r(58);let h=class{constructor(e,t){this.kvStore=e,this.chainsService=t}putUpdatedPropertyToChainInfo(e){var t,r;return s(this,void 0,void 0,(function*(){const n=yield this.getUpdatedChainProperty(e.chainId),o=f.ChainIdHelper.parse(e.chainId);if(f.ChainIdHelper.parse(n.chainId||e.chainId).version<o.version)return e;const i=null!==(t=e.features)&&void 0!==t?t:[];for(const e of null!==(r=n.features)&&void 0!==r?r:[])i.includes(e)||i.push(e);return Object.assign(Object.assign({},e),{chainId:n.chainId||e.chainId,features:i})}))}clearUpdatedProperty(e){return s(this,void 0,void 0,(function*(){yield this.kvStore.set(f.ChainIdHelper.parse(e).identifier,null),this.chainsService.clearCachedChainInfos()}))}tryUpdateChain(e){var t,r;return s(this,void 0,void 0,(function*(){const n=yield this.chainsService.getChainInfo(e);if(!f.ChainIdHelper.hasChainVersion(n.chainId))return n.chainId;const o=l.default.create({baseURL:n.rpc}),i=yield o.get("/block"),s=f.ChainIdHelper.parse(n.chainId),a=i.data.result.block.header.chain_id,c=f.ChainIdHelper.parse(a);s.identifier===c.identifier&&s.version<c.version&&(yield this.saveChainProperty(s.identifier,{chainId:a}));let u=!1;try{if(!n.features||!n.features.includes("stargate")){const e=l.default.create({baseURL:n.rest});yield e.get("/cosmos/base/tendermint/v1beta1/node_info");const r=yield this.getUpdatedChainProperty(n.chainId);yield this.saveChainProperty(s.identifier,{features:(null!==(t=r.features)&&void 0!==t?t:[]).concat(["stargate"])}),u=!0}}catch(e){}try{if((!n.features||!n.features.includes("ibc-transfer"))&&(u||n.features&&n.features.includes("stargate"))){const e=l.default.create({baseURL:n.rest}),t=yield e.get("/ibc/applications/transfer/v1beta1/params");if(t.data.params.receive_enabled&&t.data.params.send_enabled){const e=yield this.getUpdatedChainProperty(n.chainId);yield this.saveChainProperty(s.identifier,{features:(null!==(r=e.features)&&void 0!==r?r:[]).concat(["ibc-transfer"])})}}}catch(e){}}))}getUpdatedChainProperty(e){return s(this,void 0,void 0,(function*(){const t=f.ChainIdHelper.parse(e);return yield this.loadChainProperty(t.identifier)}))}saveChainProperty(e,t){return s(this,void 0,void 0,(function*(){const r=yield this.loadChainProperty(e);yield this.kvStore.set(e,Object.assign(Object.assign({},r),t)),this.chainsService.clearCachedChainInfos()}))}loadChainProperty(e){return s(this,void 0,void 0,(function*(){const t=yield this.kvStore.get(e);return t||{}}))}static checkChainUpdate(e){return s(this,void 0,void 0,(function*(){const t=e.chainId;if(!f.ChainIdHelper.hasChainVersion(t))return{explicit:!1,slient:!1};const r=l.default.create({baseURL:e.rpc}),n=(yield r.get("/block")).data.result.block.header.chain_id,o=f.ChainIdHelper.parse(t),i=f.ChainIdHelper.parse(n);if(o.identifier!==i.identifier)return{explicit:!1,slient:!1};let s=!1;try{if(!e.features||!e.features.includes("stargate")){const t=l.default.create({baseURL:e.rest});yield t.get("/cosmos/base/tendermint/v1beta1/node_info"),s=!0}}catch(e){}let a=!1;try{if((!e.features||!e.features.includes("ibc-transfer"))&&(s||e.features&&e.features.includes("stargate"))){const t=l.default.create({baseURL:e.rest}),r=yield t.get("/ibc/applications/transfer/v1beta1/params");r.data.params.receive_enabled&&r.data.params.send_enabled&&(a=!0)}}catch(e){}return{explicit:o.version<i.version,slient:s||a}}))}};h=n([c.singleton(),i(0,c.inject(u.TYPES.UpdaterStore)),i(1,c.inject(c.delay(()=>d.ChainsService))),o("design:paramtypes",[Object,d.ChainsService])],h),t.ChainUpdaterService=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="chains"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="chain-updator"},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InteractionService=void 0;const a=r(43),c=r(52),u=r(339);let l=class{constructor(e,t){this.eventMsgRequester=e,this.rng=t,this.waitingMap=new Map,this.resolverMap=new Map}dispatchEvent(e,t,r){return s(this,void 0,void 0,(function*(){if(!t)throw new Error("Type should not be empty");const n=new u.PushEventDataMsg({type:t,data:r});try{yield this.eventMsgRequester.sendMessage(e,n)}catch(t){console.log(`Failed to send the event to ${e}: ${t.message}`)}}))}waitApprove(e,t,r,n,o){return s(this,void 0,void 0,(function*(){if(!r)throw new Error("Type should not be empty");const i=yield this.addDataToMap(r,n),s=new u.PushInteractionDataMsg(i);return yield this.wait(s.data.id,()=>{e.requestInteraction(t,s,o)})}))}wait(e,t){return s(this,void 0,void 0,(function*(){if(this.resolverMap.has(e))throw new Error("Id is aleady in use");return new Promise((r,n)=>{this.resolverMap.set(e,{onApprove:r,onReject:n}),t()})}))}approve(e,t){this.resolverMap.has(e)&&(this.resolverMap.get(e).onApprove(t),this.resolverMap.delete(e))}reject(e){this.resolverMap.has(e)&&(this.resolverMap.get(e).onReject(new Error("Request rejected")),this.resolverMap.delete(e))}addDataToMap(e,t){return s(this,void 0,void 0,(function*(){const r=new Uint8Array(8),n=Array.from(yield this.rng(r)).map(e=>e.toString(16)).join(""),o={id:n,type:e,data:t};if(this.waitingMap.has(n))throw new Error("Id is aleady in use");return this.waitingMap.set(n,o),o}))}removeDataFromMap(e){this.waitingMap.delete(e)}};l=n([a.singleton(),i(0,a.inject(c.TYPES.EventMsgRequester)),i(1,a.inject(c.TYPES.RNG)),o("design:paramtypes",[Object,Function])],l),t.InteractionService=l},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(671),t),o(r(179),t),o(r(672),t),o(r(673),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="interaction-foreground"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="interaction"},function(e,t,r){"use strict";r.r(t);const n=(e,t,r={})=>{if(!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let n,o,i=[];return function(...s){return new Promise(a=>{const c=r.leading&&!o;clearTimeout(o),o=setTimeout(()=>{o=null;const t=r.leading?n:e.apply(this,s);for(a of i)a(t);i=[]},t),c?(n=e.apply(this,s),a(n)):i.push(a)})}};n.promise=e=>{let t;return async function(...r){if(t)return t;try{return t=e.apply(this,r),await t}finally{t=void 0}}},t.default=n},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LedgerService=void 0;const c=r(43),u=r(52),l=r(344),f=a(r(386)),d=r(18),h=r(83),p=r(2);let g=class{constructor(e,t){this.kvStore=e,this.interactionService=t}getPublicKey(e,t){return s(this,void 0,void 0,(function*(){return yield this.useLedger(e,(e,r)=>s(this,void 0,void 0,(function*(){try{return yield e.getPublicKey([44,118,t.account,t.change,t.addressIndex])}finally{r>0&&(yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"get-pubkey",success:!0}))}})))}))}sign(e,t,r,n){return s(this,void 0,void 0,(function*(){return yield this.useLedger(e,(e,o)=>s(this,void 0,void 0,(function*(){try{const i=yield e.getPublicKey([44,118,t.account,t.change,t.addressIndex]);if(p.Buffer.from(r).toString("hex")!==p.Buffer.from(i).toString("hex"))throw new Error("Unmatched public key");const s=yield e.sign([44,118,t.account,t.change,t.addressIndex],n);return o>0&&(yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"sign",success:!0})),s}catch(e){throw o>0&&(yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"sign",success:!1})),e}})))}))}useLedger(e,t){return s(this,void 0,void 0,(function*(){let r;try{return r=yield this.initLedger(e),yield t(r.ledger,r.retryCount)}finally{r&&(yield r.ledger.close())}}))}initLedger(e){return s(this,void 0,void 0,(function*(){this.previousInitAborter&&this.previousInitAborter(new Error("New ledger request occurred before the ledger was initialized"));const t=(()=>{let e;return{wait:()=>new Promise((t,r)=>{e=r}),abort:t=>{e&&e(t)}}})();this.previousInitAborter=t.abort;let r=0;for(;;){try{const e=yield l.Ledger.init(yield this.getWebHIDFlag());return this.previousInitAborter=void 0,{ledger:e,retryCount:r}}catch(r){console.log(r);const n=new AbortController;try{yield Promise.race([this.interactionService.waitApprove(e,"/ledger-grant","ledger-init",{event:"init-failed"},{forceOpenWindow:!0,channel:"ledger"}),(()=>s(this,void 0,void 0,(function*(){let e=!1;try{yield f.default(3e5,{signal:n.signal})}catch(t){if("AbortError"!==t.name)throw t;e=!0}if(!e)throw yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"init-aborted"}),new Error("Ledger init timeout")})))(),t.wait(),this.testLedgerGrantUIOpened()])}finally{n.abort()}}r++}}))}testLedgerGrantUIOpened(){return s(this,void 0,void 0,(function*(){for(yield f.default(1e3);;){const e=browser.extension.getViews();let t=!1;for(const r of e)if(r.location.href.includes(browser.runtime.getURL("popup.html#/ledger-grant"))){t=!0;break}if(!t)throw new Error("Ledger init aborted");yield f.default(1e3)}}))}getWebHIDFlag(){return s(this,void 0,void 0,(function*(){return!!(yield this.kvStore.get("webhid"))}))}setWebHIDFlag(e){return s(this,void 0,void 0,(function*(){yield this.kvStore.set("webhid",e)}))}};g=n([c.singleton(),i(0,c.inject(u.TYPES.LedgerStore)),i(1,c.inject(c.delay(()=>h.InteractionService))),o("design:paramtypes",[Object,h.InteractionService])],g),t.LedgerService=g},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Ledger=t.LedgerInitError=t.LedgerInitErrorOn=void 0;const i=r(679).default,s=o(r(685)),a=o(r(712)),c=r(398);var u;!function(e){e[e.Transport=0]="Transport",e[e.App=1]="App",e[e.Unknown=2]="Unknown"}(u=t.LedgerInitErrorOn||(t.LedgerInitErrorOn={}));class l extends Error{constructor(e,t){super(t),this.errorOn=e,Object.setPrototypeOf(this,l.prototype)}}t.LedgerInitError=l;class f{constructor(e){this.cosmosApp=e}static init(e=!1){return n(this,void 0,void 0,(function*(){let t;try{t=e?yield a.default.create():yield s.default.create()}catch(e){throw new l(u.Transport,e.message)}try{const e=new i(t),r=new f(e);if((yield r.getVersion()).deviceLocked)throw new Error("Device is on screen saver");return r}catch(e){if(t&&(yield t.close()),"Device is on screen saver"===e.message)throw new l(u.Transport,e.message);throw new l(u.App,e.message)}}))}getVersion(){return n(this,void 0,void 0,(function*(){if(!this.cosmosApp)throw new Error("Comsos App not initialized");const e=yield this.cosmosApp.getVersion();if("No errors"!==e.error_message)throw new Error(e.error_message);return{deviceLocked:e.device_locked,major:e.major,minor:e.minor,patch:e.patch,targetId:e.target_id,testMode:e.test_mode}}))}getPublicKey(e){return n(this,void 0,void 0,(function*(){if(!this.cosmosApp)throw new Error("Comsos App not initialized");const t=yield this.cosmosApp.publicKey(e);if("No errors"!==t.error_message)throw new Error(t.error_message);return t.compressed_pk}))}sign(e,t){return n(this,void 0,void 0,(function*(){if(!this.cosmosApp)throw new Error("Comsos App not initialized");const r=yield this.cosmosApp.sign(e,t);if("No errors"!==r.error_message)throw new Error(r.error_message);return c.signatureImport(r.signature)}))}close(){return n(this,void 0,void 0,(function*(){return yield this.cosmosApp.transport.close()}))}static isWebHIDSupported(){return n(this,void 0,void 0,(function*(){return yield a.default.isSupported()}))}}t.Ledger=f},function(e,t,r){"use strict";(function(e){var n=r(115);Object.defineProperty(t,"__esModule",{value:!0}),t.serializePathv1=function(t){if(null==t||t.length<3)throw new Error("Invalid path.");if(t.length>10)throw new Error("Invalid path. Length should be <= 10");var r=e.alloc(1+4*t.length);r.writeUInt8(t.length,0);for(var n=0;n<t.length;n+=1){var o=t[n];n<3&&(o|=2147483648),r.writeInt32LE(o,1+4*n)}return r},t.signSendChunkv1=function(e,t,r,n){return a.apply(this,arguments)},t.publicKeyv1=function(e,t){return u.apply(this,arguments)};var o=n(r(129)),i=n(r(130)),s=r(181);function a(){return(a=(0,i.default)(o.default.mark((function e(t,r,n,i){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.transport.send(s.CLA,s.INS.SIGN_SECP256K1,r,n,i,[s.ERROR_CODE.NoError,27012,27264]).then((function(e){var t=e.slice(-2),r=256*t[0]+t[1],n=(0,s.errorCodeToString)(r);27264!==r&&27012!==r||(n="".concat(n," : ").concat(e.slice(0,e.length-2).toString("ascii")));var o=null;return e.length>2&&(o=e.slice(0,e.length-2)),{signature:o,return_code:r,error_message:n}}),s.processErrorResponse));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(t){if(65!==t.length)throw new Error("decompressed public key length should be 65 bytes");var r=t.slice(33,65),n=e.from([2+(1&r[r.length-1])]);return e.concat([n,t.slice(1,33)])}function u(){return(u=(0,i.default)(o.default.mark((function t(r,n){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.transport.send(s.CLA,s.INS.INS_PUBLIC_KEY_SECP256K1,0,0,n,[s.ERROR_CODE.NoError]).then((function(t){var r=t.slice(-2),n=256*r[0]+r[1],o=e.from(t.slice(0,65));return{pk:o,compressed_pk:c(o),return_code:n,error_message:(0,s.errorCodeToString)(n)}}),s.processErrorResponse));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}).call(this,r(2).Buffer)},function(e,t,r){const n=r(40);e.exports=(e,t,r)=>0!==n(e,t,r)},function(e,t,r){const n=r(183),o=r(346),i=r(134),s=r(186),a=r(185),c=r(187);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return o(e,r,u);case">":return i(e,r,u);case">=":return s(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError("Invalid operator: "+t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="ledger"},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyRingService=void 0;const a=r(43),c=r(52),u=r(190),l=r(11),f=r(58),d=r(350),h=r(18),p=r(83),g=r(102),m=r(114),y=r(719),b=r(11);let v=class{constructor(e,t,r,n,o,i,s){this.interactionService=r,this.chainsService=n,this.permissionService=o,this.rng=s,this.keyRing=new u.KeyRing(t,e,i,s)}restore(){return s(this,void 0,void 0,(function*(){return yield this.keyRing.restore(),{status:this.keyRing.status,type:this.keyRing.type,multiKeyStoreInfo:this.keyRing.getMultiKeyStoreInfo()}}))}enable(e){return s(this,void 0,void 0,(function*(){if(this.keyRing.status===u.KeyRingStatus.EMPTY)throw new Error("key doesn't exist");return this.keyRing.status===u.KeyRingStatus.NOTLOADED&&(yield this.keyRing.restore()),this.keyRing.status===u.KeyRingStatus.LOCKED?(yield this.interactionService.waitApprove(e,"/unlock","unlock",{}),this.keyRing.status):this.keyRing.status}))}get keyRingStatus(){return this.keyRing.status}deleteKeyRing(e,t){return s(this,void 0,void 0,(function*(){return{multiKeyStoreInfo:yield this.keyRing.deleteKeyRing(e,t),status:this.keyRing.status}}))}updateNameKeyRing(e,t){return s(this,void 0,void 0,(function*(){return{multiKeyStoreInfo:yield this.keyRing.updateNameKeyRing(e,t),status:this.keyRing.status}}))}showKeyRing(e,t){return s(this,void 0,void 0,(function*(){return yield this.keyRing.showKeyRing(e,t)}))}createMnemonicKey(e,t,r,n){return s(this,void 0,void 0,(function*(){return yield this.keyRing.createMnemonicKey(e,t,r,n),this.keyRing.status}))}createPrivateKey(e,t,r){return s(this,void 0,void 0,(function*(){return yield this.keyRing.createPrivateKey(e,t,r),this.keyRing.status}))}createLedgerKey(e,t,r,n){return s(this,void 0,void 0,(function*(){return yield this.keyRing.createLedgerKey(e,t,r,n),this.keyRing.status}))}lock(){return this.keyRing.lock(),this.keyRing.status}unlock(e){return s(this,void 0,void 0,(function*(){return yield this.keyRing.unlock(e),this.keyRing.status}))}getKey(e){return s(this,void 0,void 0,(function*(){return this.keyRing.getKey(e,yield this.chainsService.getChainCoinType(e))}))}getKeyStoreMeta(e){return this.keyRing.getKeyStoreMeta(e)}getKeyRingType(){return this.keyRing.type}requestSignAmino(e,t,r,n,o){return s(this,void 0,void 0,(function*(){const i=yield this.chainsService.getChainCoinType(t),s=yield this.keyRing.getKey(t,i),a=new l.Bech32Address(s.address).toBech32((yield this.chainsService.getChainInfo(t)).bech32Config.bech32PrefixAccAddr);if(r!==a)throw new Error("Signer mismatched");const c=yield this.interactionService.waitApprove(e,"/sign","request-sign",{chainId:t,mode:"amino",signDoc:n,signer:r,signOptions:o});try{const r=yield this.keyRing.sign(e,t,i,m.serializeSignDoc(c));return{signed:c,signature:m.encodeSecp256k1Signature(s.pubKey,r)}}finally{yield this.interactionService.dispatchEvent(h.APP_PORT,"request-sign-end",{})}}))}requestSignDirect(e,t,r,n,o){return s(this,void 0,void 0,(function*(){const i=yield this.chainsService.getChainCoinType(t),s=yield this.keyRing.getKey(t,i),a=new l.Bech32Address(s.address).toBech32((yield this.chainsService.getChainInfo(t)).bech32Config.bech32PrefixAccAddr);if(r!==a)throw new Error("Signer mismatched");const c=yield this.interactionService.waitApprove(e,"/sign","request-sign",{chainId:t,mode:"direct",signDocBytes:b.cosmos.tx.v1beta1.SignDoc.encode(n).finish(),signer:r,signOptions:o}),u=b.cosmos.tx.v1beta1.SignDoc.decode(c);try{const r=yield this.keyRing.sign(e,t,i,y.makeSignBytes(u));return{signed:u,signature:m.encodeSecp256k1Signature(s.pubKey,r)}}finally{yield this.interactionService.dispatchEvent(h.APP_PORT,"request-sign-end",{})}}))}sign(e,t,r){return s(this,void 0,void 0,(function*(){return this.keyRing.sign(e,t,yield this.chainsService.getChainCoinType(t),r)}))}addMnemonicKey(e,t,r){return s(this,void 0,void 0,(function*(){return this.keyRing.addMnemonicKey(e,t,r)}))}addPrivateKey(e,t){return s(this,void 0,void 0,(function*(){return this.keyRing.addPrivateKey(e,t)}))}addLedgerKey(e,t,r){return s(this,void 0,void 0,(function*(){return this.keyRing.addLedgerKey(e,t,r)}))}changeKeyStoreFromMultiKeyStore(e){return s(this,void 0,void 0,(function*(){try{return yield this.keyRing.changeKeyStoreFromMultiKeyStore(e)}finally{yield this.interactionService.dispatchEvent(h.WEBPAGE_PORT,"keystore-changed",{})}}))}getMultiKeyStoreInfo(){return this.keyRing.getMultiKeyStoreInfo()}isKeyStoreCoinTypeSet(e){return this.keyRing.isKeyStoreCoinTypeSet(e)}setKeyStoreCoinType(e,t){return s(this,void 0,void 0,(function*(){yield this.keyRing.setKeyStoreCoinType(e,t)}))}getKeyStoreBIP44Selectables(e,t){return s(this,void 0,void 0,(function*(){if(this.isKeyStoreCoinTypeSet(e))return[];const r=[],n=yield this.chainsService.getChainInfo(e);for(const e of t){const t=yield this.keyRing.getKeyFromCoinType(e.coinType),o=new l.Bech32Address(t.address).toBech32(n.bech32Config.bech32PrefixAccAddr);r.push({path:e,bech32Address:o})}return r}))}};v=n([a.singleton(),i(0,a.inject(c.TYPES.KeyRingStore)),i(1,a.inject(c.TYPES.ChainsEmbedChainInfos)),i(2,a.inject(a.delay(()=>p.InteractionService))),i(3,a.inject(a.delay(()=>f.ChainsService))),i(4,a.inject(a.delay(()=>g.PermissionService))),i(5,a.inject(d.LedgerService)),i(6,a.inject(c.TYPES.RNG)),o("design:paramtypes",[Object,Array,p.InteractionService,f.ChainsService,g.PermissionService,d.LedgerService,Function])],v),t.KeyRingService=v},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(343),t),o(r(189),t),o(r(344),t)},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionService=void 0;const a=r(43),c=r(52),u=r(83),l=r(352),f=r(58),d=r(103),h=r(11);let p=class{constructor(e,t,r,n,o){this.kvStore=e,this.interactionService=t,this.chainsService=r,this.keyRingService=n,this.permissionMap={},this.privilegedOrigins=new Map,this.onChainRemoved=e=>{this.removeAllPermissions(e)};for(const e of o)this.privilegedOrigins.set(e,!0);this.restore(),this.chainsService.addChainRemovedHandler(this.onChainRemoved)}checkOrGrantBasicAccessPermission(e,t,r){return s(this,void 0,void 0,(function*(){yield this.keyRingService.enable(e),"string"==typeof t&&(t=[t]);const n=[];for(const e of t)this.hasPermisson(e,l.getBasicAccessPermissionType(),r)||n.push(e);n.length>0&&(yield this.grantBasicAccessPermission(e,n,[r])),yield this.checkBasicAccessPermission(e,t,r)}))}grantPermission(e,t,r,n,o){return s(this,void 0,void 0,(function*(){if(e.isInternalMsg)return;const i={chainIds:r,type:n,origins:o};yield this.interactionService.waitApprove(e,t,l.INTERACTION_TYPE_PERMISSION,i),yield this.addPermission(r,n,o)}))}grantBasicAccessPermission(e,t,r){return s(this,void 0,void 0,(function*(){for(const e of t)yield this.chainsService.getChainInfo(e);yield this.grantPermission(e,"/access",t,l.getBasicAccessPermissionType(),r)}))}checkPermission(e,t,r,n){if(!e.isInternalMsg&&!this.hasPermisson(t,r,n))throw new Error(n+" is not permitted")}checkBasicAccessPermission(e,t,r){return s(this,void 0,void 0,(function*(){for(const n of t)yield this.chainsService.getChainInfo(n),this.checkPermission(e,n,l.getBasicAccessPermissionType(),r)}))}hasPermisson(e,t,r){if(this.privilegedOrigins.get(r))return!0;const n=this.permissionMap[h.ChainIdHelper.parse(e).identifier];if(!n)return!1;const o=n[t];return!(!o||!o[r])}getPermissionOrigins(e,t){const r=[],n=this.permissionMap[h.ChainIdHelper.parse(e).identifier];if(!n)return[];const o=n[t];if(!o)return[];for(const e of Object.keys(o))o[e]&&r.push(e);return r}addPermission(e,t,r){return s(this,void 0,void 0,(function*(){for(const n of e){let e=this.permissionMap[h.ChainIdHelper.parse(n).identifier];e||(e={},this.permissionMap[h.ChainIdHelper.parse(n).identifier]=e);let o=e[t];o||(o={},e[t]=o);for(const e of r)o[e]=!0}yield this.save()}))}removePermission(e,t,r){return s(this,void 0,void 0,(function*(){const n=this.permissionMap[h.ChainIdHelper.parse(e).identifier];if(!n)return;const o=n[t];if(o){for(const e of r)delete o[e];yield this.save()}}))}removeAllPermissions(e){return s(this,void 0,void 0,(function*(){this.permissionMap[h.ChainIdHelper.parse(e).identifier]=void 0,yield this.save()}))}restore(){return s(this,void 0,void 0,(function*(){const e=yield this.kvStore.get("permissionMap");e&&(this.permissionMap=e)}))}save(){return s(this,void 0,void 0,(function*(){yield this.kvStore.set("permissionMap",this.permissionMap)}))}};p=n([a.singleton(),i(0,a.inject(c.TYPES.PermissionStore)),i(1,a.inject(a.delay(()=>u.InteractionService))),i(2,a.inject(f.ChainsService)),i(3,a.inject(a.delay(()=>d.KeyRingService))),i(4,a.inject(c.TYPES.PermissionServicePrivilegedOrigins)),o("design:paramtypes",[Object,u.InteractionService,f.ChainsService,d.KeyRingService,Array])],p),t.PermissionService=p},function(e,t,r){"use strict";function n(){return"basic-access"}Object.defineProperty(t,"__esModule",{value:!0}),t.isBasicAccessPermissionType=t.getBasicAccessPermissionType=t.INTERACTION_TYPE_PERMISSION=void 0,t.INTERACTION_TYPE_PERMISSION="permission",t.getBasicAccessPermissionType=n,t.isBasicAccessPermissionType=function(e){return"basic-access"===e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="keyring"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="permission"},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=t.ModeInfo_Multi=t.ModeInfo_Single=t.ModeInfo=t.SignerInfo=t.AuthInfo=t.TxBody=t.SignDoc=t.TxRaw=t.Tx=t.protobufPackage=void 0;const o=n(r(113)),i=r(138),s=r(356),a=r(357),c=r(137),u=n(r(48));t.protobufPackage="cosmos.tx.v1beta1";const l={};t.Tx={encode(e,r=u.default.Writer.create()){void 0!==e.body&&void 0!==e.body&&t.TxBody.encode(e.body,r.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,r.uint32(18).fork()).ldelim();for(const t of e.signatures)r.uint32(26).bytes(t);return r},decode(e,r){const n=e instanceof Uint8Array?new u.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const i=Object.assign({},l);for(i.signatures=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.body=t.TxBody.decode(n,n.uint32());break;case 2:i.authInfo=t.AuthInfo.decode(n,n.uint32());break;case 3:i.signatures.push(n.bytes());break;default:n.skipType(7&e)}}return i},fromJSON(e){const r=Object.assign({},l);if(r.signatures=[],void 0!==e.body&&null!==e.body?r.body=t.TxBody.fromJSON(e.body):r.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?r.authInfo=t.AuthInfo.fromJSON(e.authInfo):r.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures)for(const t of e.signatures)r.signatures.push(k(t));return r},fromPartial(e){const r=Object.assign({},l);if(r.signatures=[],void 0!==e.body&&null!==e.body?r.body=t.TxBody.fromPartial(e.body):r.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?r.authInfo=t.AuthInfo.fromPartial(e.authInfo):r.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures)for(const t of e.signatures)r.signatures.push(t);return r},toJSON(e){const r={};return void 0!==e.body&&(r.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(r.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?r.signatures=e.signatures.map(e=>O(void 0!==e?e:new Uint8Array)):r.signatures=[],r}};const f={};t.TxRaw={encode(e,t=u.default.Writer.create()){t.uint32(10).bytes(e.bodyBytes),t.uint32(18).bytes(e.authInfoBytes);for(const r of e.signatures)t.uint32(26).bytes(r);return t},decode(e,t){const r=e instanceof Uint8Array?new u.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},f);for(o.signatures=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.bodyBytes=r.bytes();break;case 2:o.authInfoBytes=r.bytes();break;case 3:o.signatures.push(r.bytes());break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},f);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=k(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=k(e.authInfoBytes)),void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)t.signatures.push(k(r));return t},fromPartial(e){const t=Object.assign({},f);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)t.signatures.push(r);return t},toJSON(e){const t={};return void 0!==e.bodyBytes&&(t.bodyBytes=O(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=O(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map(e=>O(void 0!==e?e:new Uint8Array)):t.signatures=[],t}};const d={chainId:"",accountNumber:o.default.UZERO};t.SignDoc={encode:(e,t=u.default.Writer.create())=>(t.uint32(10).bytes(e.bodyBytes),t.uint32(18).bytes(e.authInfoBytes),t.uint32(26).string(e.chainId),t.uint32(32).uint64(e.accountNumber),t),decode(e,t){const r=e instanceof Uint8Array?new u.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},d);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.bodyBytes=r.bytes();break;case 2:o.authInfoBytes=r.bytes();break;case 3:o.chainId=r.string();break;case 4:o.accountNumber=r.uint64();break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},d);return void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=k(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=k(e.authInfoBytes)),void 0!==e.chainId&&null!==e.chainId?t.chainId=String(e.chainId):t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=o.default.fromString(e.accountNumber):t.accountNumber=o.default.UZERO,t},fromPartial(e){const t=Object.assign({},d);return void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=o.default.UZERO,t},toJSON(e){const t={};return void 0!==e.bodyBytes&&(t.bodyBytes=O(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=O(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||o.default.UZERO).toString()),t}};const h={memo:"",timeoutHeight:o.default.UZERO};t.TxBody={encode(e,t=u.default.Writer.create()){for(const r of e.messages)i.Any.encode(r,t.uint32(10).fork()).ldelim();t.uint32(18).string(e.memo),t.uint32(24).uint64(e.timeoutHeight);for(const r of e.extensionOptions)i.Any.encode(r,t.uint32(8186).fork()).ldelim();for(const r of e.nonCriticalExtensionOptions)i.Any.encode(r,t.uint32(16378).fork()).ldelim();return t},decode(e,t){const r=e instanceof Uint8Array?new u.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},h);for(o.messages=[],o.extensionOptions=[],o.nonCriticalExtensionOptions=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.messages.push(i.Any.decode(r,r.uint32()));break;case 2:o.memo=r.string();break;case 3:o.timeoutHeight=r.uint64();break;case 1023:o.extensionOptions.push(i.Any.decode(r,r.uint32()));break;case 2047:o.nonCriticalExtensionOptions.push(i.Any.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},h);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages)for(const r of e.messages)t.messages.push(i.Any.fromJSON(r));if(void 0!==e.memo&&null!==e.memo?t.memo=String(e.memo):t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=o.default.fromString(e.timeoutHeight):t.timeoutHeight=o.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions)for(const r of e.extensionOptions)t.extensionOptions.push(i.Any.fromJSON(r));if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions)for(const r of e.nonCriticalExtensionOptions)t.nonCriticalExtensionOptions.push(i.Any.fromJSON(r));return t},fromPartial(e){const t=Object.assign({},h);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages)for(const r of e.messages)t.messages.push(i.Any.fromPartial(r));if(void 0!==e.memo&&null!==e.memo?t.memo=e.memo:t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:t.timeoutHeight=o.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions)for(const r of e.extensionOptions)t.extensionOptions.push(i.Any.fromPartial(r));if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions)for(const r of e.nonCriticalExtensionOptions)t.nonCriticalExtensionOptions.push(i.Any.fromPartial(r));return t},toJSON(e){const t={};return e.messages?t.messages=e.messages.map(e=>e?i.Any.toJSON(e):void 0):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||o.default.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map(e=>e?i.Any.toJSON(e):void 0):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(e=>e?i.Any.toJSON(e):void 0):t.nonCriticalExtensionOptions=[],t}};const p={};t.AuthInfo={encode(e,r=u.default.Writer.create()){for(const n of e.signerInfos)t.SignerInfo.encode(n,r.uint32(10).fork()).ldelim();return void 0!==e.fee&&void 0!==e.fee&&t.Fee.encode(e.fee,r.uint32(18).fork()).ldelim(),r},decode(e,r){const n=e instanceof Uint8Array?new u.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const i=Object.assign({},p);for(i.signerInfos=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.signerInfos.push(t.SignerInfo.decode(n,n.uint32()));break;case 2:i.fee=t.Fee.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const r=Object.assign({},p);if(r.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos)for(const n of e.signerInfos)r.signerInfos.push(t.SignerInfo.fromJSON(n));return void 0!==e.fee&&null!==e.fee?r.fee=t.Fee.fromJSON(e.fee):r.fee=void 0,r},fromPartial(e){const r=Object.assign({},p);if(r.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos)for(const n of e.signerInfos)r.signerInfos.push(t.SignerInfo.fromPartial(n));return void 0!==e.fee&&null!==e.fee?r.fee=t.Fee.fromPartial(e.fee):r.fee=void 0,r},toJSON(e){const r={};return e.signerInfos?r.signerInfos=e.signerInfos.map(e=>e?t.SignerInfo.toJSON(e):void 0):r.signerInfos=[],void 0!==e.fee&&(r.fee=e.fee?t.Fee.toJSON(e.fee):void 0),r}};const g={sequence:o.default.UZERO};t.SignerInfo={encode:(e,r=u.default.Writer.create())=>(void 0!==e.publicKey&&void 0!==e.publicKey&&i.Any.encode(e.publicKey,r.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,r.uint32(18).fork()).ldelim(),r.uint32(24).uint64(e.sequence),r),decode(e,r){const n=e instanceof Uint8Array?new u.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const s=Object.assign({},g);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.publicKey=i.Any.decode(n,n.uint32());break;case 2:s.modeInfo=t.ModeInfo.decode(n,n.uint32());break;case 3:s.sequence=n.uint64();break;default:n.skipType(7&e)}}return s},fromJSON(e){const r=Object.assign({},g);return void 0!==e.publicKey&&null!==e.publicKey?r.publicKey=i.Any.fromJSON(e.publicKey):r.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?r.modeInfo=t.ModeInfo.fromJSON(e.modeInfo):r.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?r.sequence=o.default.fromString(e.sequence):r.sequence=o.default.UZERO,r},fromPartial(e){const r=Object.assign({},g);return void 0!==e.publicKey&&null!==e.publicKey?r.publicKey=i.Any.fromPartial(e.publicKey):r.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?r.modeInfo=t.ModeInfo.fromPartial(e.modeInfo):r.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?r.sequence=e.sequence:r.sequence=o.default.UZERO,r},toJSON(e){const r={};return void 0!==e.publicKey&&(r.publicKey=e.publicKey?i.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(r.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(r.sequence=(e.sequence||o.default.UZERO).toString()),r}};const m={};t.ModeInfo={encode:(e,r=u.default.Writer.create())=>(void 0!==e.single&&t.ModeInfo_Single.encode(e.single,r.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,r.uint32(18).fork()).ldelim(),r),decode(e,r){const n=e instanceof Uint8Array?new u.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const i=Object.assign({},m);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.single=t.ModeInfo_Single.decode(n,n.uint32());break;case 2:i.multi=t.ModeInfo_Multi.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const r=Object.assign({},m);return void 0!==e.single&&null!==e.single?r.single=t.ModeInfo_Single.fromJSON(e.single):r.single=void 0,void 0!==e.multi&&null!==e.multi?r.multi=t.ModeInfo_Multi.fromJSON(e.multi):r.multi=void 0,r},fromPartial(e){const r=Object.assign({},m);return void 0!==e.single&&null!==e.single?r.single=t.ModeInfo_Single.fromPartial(e.single):r.single=void 0,void 0!==e.multi&&null!==e.multi?r.multi=t.ModeInfo_Multi.fromPartial(e.multi):r.multi=void 0,r},toJSON(e){const r={};return void 0!==e.single&&(r.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(r.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),r}};const y={mode:0};t.ModeInfo_Single={encode:(e,t=u.default.Writer.create())=>(t.uint32(8).int32(e.mode),t),decode(e,t){const r=e instanceof Uint8Array?new u.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},y);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.mode=r.int32();break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},y);return void 0!==e.mode&&null!==e.mode?t.mode=s.signModeFromJSON(e.mode):t.mode=0,t},fromPartial(e){const t=Object.assign({},y);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t},toJSON(e){const t={};return void 0!==e.mode&&(t.mode=s.signModeToJSON(e.mode)),t}};const b={};t.ModeInfo_Multi={encode(e,r=u.default.Writer.create()){void 0!==e.bitarray&&void 0!==e.bitarray&&a.CompactBitArray.encode(e.bitarray,r.uint32(10).fork()).ldelim();for(const n of e.modeInfos)t.ModeInfo.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){const n=e instanceof Uint8Array?new u.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const i=Object.assign({},b);for(i.modeInfos=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.bitarray=a.CompactBitArray.decode(n,n.uint32());break;case 2:i.modeInfos.push(t.ModeInfo.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const r=Object.assign({},b);if(r.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?r.bitarray=a.CompactBitArray.fromJSON(e.bitarray):r.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos)for(const n of e.modeInfos)r.modeInfos.push(t.ModeInfo.fromJSON(n));return r},fromPartial(e){const r=Object.assign({},b);if(r.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?r.bitarray=a.CompactBitArray.fromPartial(e.bitarray):r.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos)for(const n of e.modeInfos)r.modeInfos.push(t.ModeInfo.fromPartial(n));return r},toJSON(e){const r={};return void 0!==e.bitarray&&(r.bitarray=e.bitarray?a.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?r.modeInfos=e.modeInfos.map(e=>e?t.ModeInfo.toJSON(e):void 0):r.modeInfos=[],r}};const v={gasLimit:o.default.UZERO,payer:"",granter:""};t.Fee={encode(e,t=u.default.Writer.create()){for(const r of e.amount)c.Coin.encode(r,t.uint32(10).fork()).ldelim();return t.uint32(16).uint64(e.gasLimit),t.uint32(26).string(e.payer),t.uint32(34).string(e.granter),t},decode(e,t){const r=e instanceof Uint8Array?new u.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},v);for(o.amount=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.amount.push(c.Coin.decode(r,r.uint32()));break;case 2:o.gasLimit=r.uint64();break;case 3:o.payer=r.string();break;case 4:o.granter=r.string();break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount)for(const r of e.amount)t.amount.push(c.Coin.fromJSON(r));return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=o.default.fromString(e.gasLimit):t.gasLimit=o.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=String(e.payer):t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",t},fromPartial(e){const t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount)for(const r of e.amount)t.amount.push(c.Coin.fromPartial(r));return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=e.gasLimit:t.gasLimit=o.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=e.payer:t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",t},toJSON(e){const t={};return e.amount?t.amount=e.amount.map(e=>e?c.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||o.default.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t}};var w=(()=>{if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const _=w.atob||(e=>w.Buffer.from(e,"base64").toString("binary"));function k(e){const t=_(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}const S=w.btoa||(e=>w.Buffer.from(e,"binary").toString("base64"));function O(e){const t=[];for(let r=0;r<e.byteLength;++r)t.push(String.fromCharCode(e[r]));return S(t.join(""))}}).call(this,r(12))},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;const o=r(138),i=n(r(113)),s=r(357),a=n(r(48));var c;function u(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return c.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return c.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return c.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return c.SIGN_MODE_LEGACY_AMINO_JSON;case-1:case"UNRECOGNIZED":default:return c.UNRECOGNIZED}}function l(e){switch(e){case c.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case c.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case c.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case c.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.SignMode||(t.SignMode={})),t.signModeFromJSON=u,t.signModeToJSON=l;const f={};t.SignatureDescriptors={encode(e,r=a.default.Writer.create()){for(const n of e.signatures)t.SignatureDescriptor.encode(n,r.uint32(10).fork()).ldelim();return r},decode(e,r){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const i=Object.assign({},f);for(i.signatures=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.signatures.push(t.SignatureDescriptor.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const r=Object.assign({},f);if(r.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)r.signatures.push(t.SignatureDescriptor.fromJSON(n));return r},fromPartial(e){const r=Object.assign({},f);if(r.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)r.signatures.push(t.SignatureDescriptor.fromPartial(n));return r},toJSON(e){const r={};return e.signatures?r.signatures=e.signatures.map(e=>e?t.SignatureDescriptor.toJSON(e):void 0):r.signatures=[],r}};const d={sequence:i.default.UZERO};t.SignatureDescriptor={encode:(e,r=a.default.Writer.create())=>(void 0!==e.publicKey&&void 0!==e.publicKey&&o.Any.encode(e.publicKey,r.uint32(10).fork()).ldelim(),void 0!==e.data&&void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,r.uint32(18).fork()).ldelim(),r.uint32(24).uint64(e.sequence),r),decode(e,r){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let i=void 0===r?n.len:n.pos+r;const s=Object.assign({},d);for(;n.pos<i;){const e=n.uint32();switch(e>>>3){case 1:s.publicKey=o.Any.decode(n,n.uint32());break;case 2:s.data=t.SignatureDescriptor_Data.decode(n,n.uint32());break;case 3:s.sequence=n.uint64();break;default:n.skipType(7&e)}}return s},fromJSON(e){const r=Object.assign({},d);return void 0!==e.publicKey&&null!==e.publicKey?r.publicKey=o.Any.fromPartial(e.publicKey):r.publicKey=void 0,void 0!==e.data&&null!==e.data?r.data=t.SignatureDescriptor_Data.fromJSON(e.data):r.data=void 0,void 0!==e.sequence&&null!==e.sequence?r.sequence=i.default.fromString(e.sequence):r.sequence=i.default.UZERO,r},fromPartial(e){const r=Object.assign({},d);return void 0!==e.publicKey&&null!==e.publicKey?r.publicKey=o.Any.fromPartial(e.publicKey):r.publicKey=void 0,void 0!==e.data&&null!==e.data?r.data=t.SignatureDescriptor_Data.fromPartial(e.data):r.data=void 0,void 0!==e.sequence&&null!==e.sequence?r.sequence=e.sequence:r.sequence=i.default.UZERO,r},toJSON(e){const r={};return void 0!==e.publicKey&&(r.publicKey=e.publicKey?o.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(r.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(r.sequence=(e.sequence||i.default.UZERO).toString()),r}};const h={};t.SignatureDescriptor_Data={encode:(e,r=a.default.Writer.create())=>(void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,r.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,r.uint32(18).fork()).ldelim(),r),decode(e,r){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const i=Object.assign({},h);for(;n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.single=t.SignatureDescriptor_Data_Single.decode(n,n.uint32());break;case 2:i.multi=t.SignatureDescriptor_Data_Multi.decode(n,n.uint32());break;default:n.skipType(7&e)}}return i},fromJSON(e){const r=Object.assign({},h);return void 0!==e.single&&null!==e.single?r.single=t.SignatureDescriptor_Data_Single.fromJSON(e.single):r.single=void 0,void 0!==e.multi&&null!==e.multi?r.multi=t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):r.multi=void 0,r},fromPartial(e){const r=Object.assign({},h);return void 0!==e.single&&null!==e.single?r.single=t.SignatureDescriptor_Data_Single.fromPartial(e.single):r.single=void 0,void 0!==e.multi&&null!==e.multi?r.multi=t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):r.multi=void 0,r},toJSON(e){const r={};return void 0!==e.single&&(r.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(r.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),r}};const p={mode:0};t.SignatureDescriptor_Data_Single={encode:(e,t=a.default.Writer.create())=>(t.uint32(8).int32(e.mode),t.uint32(18).bytes(e.signature),t),decode(e,t){const r=e instanceof Uint8Array?new a.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},p);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.mode=r.int32();break;case 2:o.signature=r.bytes();break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},p);return void 0!==e.mode&&null!==e.mode?t.mode=u(e.mode):t.mode=0,void 0!==e.signature&&null!==e.signature&&(t.signature=function(e){const t=y(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}(e.signature)),t},fromPartial(e){const t=Object.assign({},p);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,void 0!==e.signature&&null!==e.signature?t.signature=e.signature:t.signature=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.mode&&(t.mode=l(e.mode)),void 0!==e.signature&&(t.signature=function(e){const t=[];for(let r=0;r<e.byteLength;++r)t.push(String.fromCharCode(e[r]));return b(t.join(""))}(void 0!==e.signature?e.signature:new Uint8Array)),t}};const g={};t.SignatureDescriptor_Data_Multi={encode(e,r=a.default.Writer.create()){void 0!==e.bitarray&&void 0!==e.bitarray&&s.CompactBitArray.encode(e.bitarray,r.uint32(10).fork()).ldelim();for(const n of e.signatures)t.SignatureDescriptor_Data.encode(n,r.uint32(18).fork()).ldelim();return r},decode(e,r){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const i=Object.assign({},g);for(i.signatures=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:i.bitarray=s.CompactBitArray.decode(n,n.uint32());break;case 2:i.signatures.push(t.SignatureDescriptor_Data.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const r=Object.assign({},g);if(r.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?r.bitarray=s.CompactBitArray.fromJSON(e.bitarray):r.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)r.signatures.push(t.SignatureDescriptor_Data.fromJSON(n));return r},fromPartial(e){const r=Object.assign({},g);if(r.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?r.bitarray=s.CompactBitArray.fromPartial(e.bitarray):r.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)r.signatures.push(t.SignatureDescriptor_Data.fromPartial(n));return r},toJSON(e){const r={};return void 0!==e.bitarray&&(r.bitarray=e.bitarray?s.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?r.signatures=e.signatures.map(e=>e?t.SignatureDescriptor_Data.toJSON(e):void 0):r.signatures=[],r}};var m=(()=>{if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const y=m.atob||(e=>m.Buffer.from(e,"base64").toString("binary"));const b=m.btoa||(e=>m.Buffer.from(e,"binary").toString("base64"))}).call(this,r(12))},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;const o=n(r(48));t.protobufPackage="cosmos.crypto.multisig.v1beta1";const i={};t.MultiSignature={encode(e,t=o.default.Writer.create()){for(const r of e.signatures)t.uint32(10).bytes(r);return t},decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const s=Object.assign({},i);for(s.signatures=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:s.signatures.push(r.bytes());break;default:r.skipType(7&e)}}return s},fromJSON(e){const t=Object.assign({},i);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)t.signatures.push(u(r));return t},fromPartial(e){const t=Object.assign({},i);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)t.signatures.push(r);return t},toJSON(e){const t={};return e.signatures?t.signatures=e.signatures.map(e=>f(void 0!==e?e:new Uint8Array)):t.signatures=[],t}};const s={extraBitsStored:0};t.CompactBitArray={encode:(e,t=o.default.Writer.create())=>(t.uint32(8).uint32(e.extraBitsStored),t.uint32(18).bytes(e.elems),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const i=Object.assign({},s);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:i.extraBitsStored=r.uint32();break;case 2:i.elems=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},s);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=Number(e.extraBitsStored):t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems&&(t.elems=u(e.elems)),t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=e.extraBitsStored:t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems?t.elems=e.elems:t.elems=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored),void 0!==e.elems&&(t.elems=f(void 0!==e.elems?e.elems:new Uint8Array)),t}};var a=(()=>{if(void 0!==a)return a;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const c=a.atob||(e=>a.Buffer.from(e,"base64").toString("binary"));function u(e){const t=c(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}const l=a.btoa||(e=>a.Buffer.from(e,"binary").toString("base64"));function f(e){const t=[];for(let r=0;r<e.byteLength;++r)t.push(String.fromCharCode(e[r]));return l(t.join(""))}}).call(this,r(12))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;const n=r(50);t.makeCosmoshubPath=function(e){return[n.Slip10RawIndex.hardened(44),n.Slip10RawIndex.hardened(118),n.Slip10RawIndex.hardened(0),n.Slip10RawIndex.normal(0),n.Slip10RawIndex.normal(e)]}},function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SecretWasmService=void 0;const c=r(43),u=r(52),l=r(731),f=r(103),d=r(58),h=r(102),p=r(108),g=r(11),m=a(r(342)),y=r(2);let b=class{constructor(e,t,r,n){this.kvStore=e,this.chainsService=t,this.keyRingService=r,this.permissionService=n,this.debouncerMap=new Map,this.cacheEnigmaUtils=new Map,this.onChainRemoved=()=>{this.cacheEnigmaUtils=new Map},this.chainsService.addChainRemovedHandler(this.onChainRemoved)}getPubkey(e,t){return s(this,void 0,void 0,(function*(){const r=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const n=yield this.getSeed(e,r);return this.getEnigmaUtils(r,n).pubkey}))}getTxEncryptionKey(e,t,r){return s(this,void 0,void 0,(function*(){const n=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const o=yield this.getSeed(e,n);return this.getEnigmaUtils(n,o).getTxEncryptionKey(r)}))}encrypt(e,t,r,n){return s(this,void 0,void 0,(function*(){const o=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const i=yield this.getSeed(e,o),s=this.getEnigmaUtils(o,i);return yield s.encrypt(r,n)}))}decrypt(e,t,r,n){return s(this,void 0,void 0,(function*(){const o=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const i=yield this.getSeed(e,o),s=this.getEnigmaUtils(o,i);return yield s.decrypt(r,n)}))}getEnigmaUtils(e,t){const r=`${e.chainId}-${y.Buffer.from(t).toString("hex")}`;if(this.cacheEnigmaUtils.has(r))return this.cacheEnigmaUtils.get(r);const n=new l.EnigmaUtils(e.rest,t);return this.cacheEnigmaUtils.set(r,n),n}getSeed(e,t){return s(this,void 0,void 0,(function*(){const r=yield this.keyRingService.getKey(t.chainId),n=new g.Bech32Address(r.address).toBech32(t.bech32Config.bech32PrefixAccAddr),o=`${e.isInternalMsg}/${t.chainId}/${n}`;this.debouncerMap.has(o)||this.debouncerMap.set(o,m.default.promise(this.getSeedInner.bind(this)));const i=this.debouncerMap.get(o);return yield i(e,t,n)}))}getSeedInner(e,t,r){return s(this,void 0,void 0,(function*(){const n=`seed-${t.chainId}-${r}`,o=yield this.kvStore.get(n);if(o)return y.Buffer.from(o,"hex");const i=p.Hash.sha256(y.Buffer.from(yield this.keyRingService.sign(e,t.chainId,y.Buffer.from(JSON.stringify({account_number:0,chain_id:t.chainId,fee:[],memo:"Create Keplr Secret encryption key. Only approve requests by Keplr.",msgs:[],sequence:0})))));return yield this.kvStore.set(n,y.Buffer.from(i).toString("hex")),i}))}};b=n([c.singleton(),i(0,c.inject(u.TYPES.SecretWasmStore)),i(1,c.inject(d.ChainsService)),i(2,c.inject(c.delay(()=>f.KeyRingService))),i(3,c.inject(c.delay(()=>h.PermissionService))),o("design:paramtypes",[Object,d.ChainsService,f.KeyRingService,h.PermissionService])],b),t.SecretWasmService=b},function(e,t,r){"use strict";(function(e){var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(117)),i=r(361);class s{static toHex(e){let t="";for(const r of e)t+=("0"+r.toString(16)).slice(-2);return t}static fromHex(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");const t=[];for(let r=0;r<e.length;r+=2){const n=e.substr(r,2);if(!n.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t.push(parseInt(n,16))}return new Uint8Array(t)}static toBase64(e){return o.fromByteArray(e)}static fromBase64(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return o.toByteArray(e)}static toAscii(e){return Uint8Array.from(e.split("").map(e=>{const t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t}))}static fromAscii(e){return(t=Array.from(e),t.map(e=>{if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)})).join("");var t}static toUtf8(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):new Uint8Array(e.from(t,"utf8"))}static fromUtf8(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(t);if(!s.isValidUtf8(t))throw new Error("Invalid UTF8 data");return e.from(t).toString("utf8")}static fromRfc3339(e){const t=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const r=+t[1],n=+t[2],o=+t[3],s=+t[4],a=+t[5],c=+t[6],u=t[7]?Math.floor(1e3*+t[7]):0;let l,f,d;"Z"===t[8]?(l=1,f=0,d=0):(l="-"===t[8].substring(0,1)?-1:1,f=+t[8].substring(1,3),d=+t[8].substring(4,6));const h=l*(60*f+d)*60;return new i.ReadonlyDate(i.ReadonlyDate.UTC(r,n-1,o,s,a,c,u)-1e3*h)}static toRfc3339(e){function t(e,t=2){const r="00000"+e.toString();return r.substring(r.length-t)}return`${e.getUTCFullYear()}-${t(e.getUTCMonth()+1)}-${t(e.getUTCDate())}T${t(e.getUTCHours())}:${t(e.getUTCMinutes())}:${t(e.getUTCSeconds())}.${t(e.getUTCMilliseconds(),3)}Z`}static isValidUtf8(t){const r=e.from(e.from(t).toString("utf8"),"utf8");return 0===e.compare(e.from(t),r)}}t.Encoding=s}).call(this,r(2).Buffer)},function(e,t){e.exports={ReadonlyDate:Date}},function(e,t,r){"use strict";(function(e){function r(e){return"object"==typeof e&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNonNullObject=r,t.isUint8Array=function(t){return!!r(t)&&("[object Uint8Array]"===Object.prototype.toString.call(t)&&(void 0===e||void 0===e.isBuffer||!e.isBuffer(t)))}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(748);Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return n.assert}});var o=r(749);Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return o.sleep}});var i=r(750);Object.defineProperty(t,"isNonNullObject",{enumerable:!0,get:function(){return i.isNonNullObject}}),Object.defineProperty(t,"isUint8Array",{enumerable:!0,get:function(){return i.isUint8Array}})},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(69));class i{constructor(e){if(!i.mnemonicMatcher.test(e))throw new Error("Invalid mnemonic format");const t=e.split(" "),r=[12,15,18,21,24];if(-1===r.indexOf(t.length))throw new Error(`Invalid word count in mnemonic (allowed: ${r} got: ${t.length})`);for(const e of t)if(-1===i.wordlist.indexOf(e))throw new Error("Mnemonic contains invalid word");o.mnemonicToEntropy(e),this.data=e}toString(){return this.data}}t.EnglishMnemonic=i,i.wordlist=o.wordlists.english,i.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Hmac=class{constructor(e,t){const r=(new e).blockSize;this.hash=t=>(new e).update(t).digest();let n=t;if(n.length>r&&(n=this.hash(n)),n.length<r){const e=new Uint8Array(r-n.length);n=new Uint8Array([...n,...e])}this.oKeyPad=n.map(e=>92^e),this.iKeyPad=n.map(e=>54^e),this.messageHasher=new e,this.blockSize=r,this.update(this.iKeyPad)}update(e){return this.messageHasher.update(e),this}digest(){const e=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...e]))}}},function(e,t,r){"use strict";function n(e){let t=0;for(const r of e){if(0!==r)break;t++}return e.slice(t)}Object.defineProperty(t,"__esModule",{value:!0});class o{constructor(e,t){if(e.length>32||0===e.length||0===e[0])throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(t.length>32||0===t.length||0===t[0])throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:e,s:t}}static fromFixedLength(e){if(64!==e.length)throw new Error(`Got invalid data length: ${e.length}. Expected 2x 32 bytes for the pair (r, s)`);return new o(n(e.slice(0,32)),n(e.slice(32,64)))}static fromDer(e){let t=0;if(48!==e[t++])throw new Error("Prefix 0x30 expected");const r=e[t++];if(e.length-t!==r)throw new Error("Data length mismatch detected");if(2!==e[t++])throw new Error("INTEGER tag expected");const i=e[t++];if(i>=128)throw new Error("Decoding length values above 127 not supported");const s=e.slice(t,t+i);t+=i;if(2!==e[t++])throw new Error("INTEGER tag expected");const a=e[t++];if(a>=128)throw new Error("Decoding length values above 127 not supported");const c=e.slice(t,t+a);return t+=a,new o(n(s),n(c))}r(e){if(void 0===e)return this.data.r;{const t=e-this.data.r.length;if(t<0)throw new Error("Length too small to hold parameter r");const r=new Uint8Array(t);return new Uint8Array([...r,...this.data.r])}}s(e){if(void 0===e)return this.data.s;{const t=e-this.data.s.length;if(t<0)throw new Error("Length too small to hold parameter s");const r=new Uint8Array(t);return new Uint8Array([...r,...this.data.s])}}toDer(){const e=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,t=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,r=e.length,n=t.length,o=new Uint8Array([2,r,...e,2,n,...t]);return new Uint8Array([48,o.length,...o])}}t.Secp256k1Signature=o;class i extends o{constructor(e,t,r){if(super(e,t),!Number.isInteger(r))throw new Error("The recovery parameter must be an integer.");if(r<0||r>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=r}static fromFixedLength(e){if(65!==e.length)throw new Error(`Got invalid data length ${e.length}. Expected 32 + 32 + 1`);return new i(n(e.slice(0,32)),n(e.slice(32,64)),e[64])}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}t.ExtendedSecp256k1Signature=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(76));t.Sha1=class{constructor(e){this.blockSize=64,this.impl=o.default("sha1"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}};t.Sha256=class{constructor(e){this.blockSize=64,this.impl=o.default("sha256"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}};t.Sha512=class{constructor(e){this.blockSize=128,this.impl=o.default("sha512"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(761),i=r(769),s=r(42),a=r(770),c=n(r(68)),u=r(772),l=new o.PolyfillCryptoProvider,f=Uint8Array.from([0,0,0,0,0,0,0,0,0,2,75,234,216,223,105,153,8,82,194,2,219,14,0,151,193,161,46,166,55,215,233,109]);class d{constructor(e,t){this.consensusIoPubKey=new Uint8Array,this.apiUrl=e,this.seed=t||d.GenerateNewSeed();const{privkey:r,pubkey:n}=d.GenerateNewKeyPairFromSeed(this.seed);this.privkey=r,this.pubkey=n}static GenerateNewKeyPair(){return d.GenerateNewKeyPairFromSeed(d.GenerateNewSeed())}static GenerateNewSeed(){return a(32,{type:"Uint8Array"})}static GenerateNewKeyPairFromSeed(e){const{private:t,public:r}=i.generateKeyPair(e);return{privkey:t,pubkey:r}}async getConsensusIoPubKey(){if(32===this.consensusIoPubKey.length)return this.consensusIoPubKey;const{data:{result:{ioExchPubkey:e}}}=await c.default.get(this.apiUrl+"/reg/consensus-io-exch-pubkey",{headers:{"Content-Type":"application/json"}});return this.consensusIoPubKey=s.Encoding.fromBase64(e),this.consensusIoPubKey}async getTxEncryptionKey(e){const t=await this.getConsensusIoPubKey(),r=i.sharedKey(this.privkey,t),{key:n}=await u.compute(Uint8Array.from([...r,...e]),"SHA-256",32,"",f);return n}async encrypt(e,t){const r=a(32,{type:"Uint8Array"}),n=await this.getTxEncryptionKey(r),i=await o.SIV.importKey(n,"AES-SIV",l),c=s.Encoding.toUtf8(e+JSON.stringify(t)),u=await i.seal(c,[new Uint8Array]);return Uint8Array.from([...r,...this.pubkey,...u])}async decrypt(e,t){if(0===e.length)return new Uint8Array;const r=await this.getTxEncryptionKey(t),n=await o.SIV.importKey(r,"AES-SIV",l);return await n.open(e,[new Uint8Array])}getPubkey(){return Promise.resolve(this.pubkey)}}t.default=d,e.exports=d},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(140),i=r(370);class s{static importKey(e,t,r=new o.WebCryptoProvider){return n(this,void 0,void 0,(function*(){return new s(yield i.SIV.importKey(e,t,r))}))}constructor(e){this._siv=e}seal(e,t,r=new Uint8Array(0)){return n(this,void 0,void 0,(function*(){return this._siv.seal(e,[r,t])}))}open(e,t,r=new Uint8Array(0)){return n(this,void 0,void 0,(function*(){return this._siv.open(e,[r,t])}))}clear(){return this._siv.clear(),this}}t.AEAD=s},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(199),i=r(200),s=r(201),a=r(198),c=r(106),u=r(371),l=r(372),f=r(140);t.MAX_ASSOCIATED_DATA=126;class d{static importKey(e,t,r=new f.WebCryptoProvider){return n(this,void 0,void 0,(function*(){if(32!==e.length&&64!==e.length)throw new Error("AES-SIV: key must be 32 or 64-bytes (got "+e.length);const n=e.subarray(0,e.length/2|0),o=e.subarray(e.length/2|0);let i;switch(t){case"AES-SIV":case"AES-CMAC-SIV":i=yield u.CMAC.importKey(r,n);break;case"AES-PMAC-SIV":i=yield l.PMAC.importKey(r,n);break;default:throw new a.NotImplementedError("Miscreant: algorithm not supported: "+t)}const s=yield r.importCTRKey(o);return new d(i,s)}))}constructor(e,t){this._mac=e,this._ctr=t,this._tmp1=new c.default,this._tmp2=new c.default}seal(e,r){return n(this,void 0,void 0,(function*(){if(r.length>t.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");const n=c.default.SIZE+e.length,o=new Uint8Array(n),i=yield this._s2v(r,e);return o.set(i),h(i),o.set(yield this._ctr.encryptCtr(i,e),i.length),o}))}open(e,r){return n(this,void 0,void 0,(function*(){if(r.length>t.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");if(e.length<c.default.SIZE)throw new a.IntegrityError("AES-SIV: ciphertext is truncated");const n=e.subarray(0,c.default.SIZE),s=this._tmp1.data;s.set(n),h(s);const u=yield this._ctr.encryptCtr(s,e.subarray(c.default.SIZE)),l=yield this._s2v(r,u);if(!o.equal(l,n))throw i.wipe(u),new a.IntegrityError("AES-SIV: ciphertext verification failure!");return u}))}clear(){return this._tmp1.clear(),this._tmp2.clear(),this._ctr.clear(),this._mac.clear(),this}_s2v(e,t){return n(this,void 0,void 0,(function*(){this._mac.reset(),this._tmp1.clear(),yield this._mac.update(this._tmp1.data),this._tmp2.clear(),this._tmp2.data.set(yield this._mac.finish()),this._mac.reset();for(const t of e)yield this._mac.update(t),this._tmp1.clear(),this._tmp1.data.set(yield this._mac.finish()),this._mac.reset(),this._tmp2.dbl(),s.xor(this._tmp2.data,this._tmp1.data);if(this._tmp1.clear(),t.length>=c.default.SIZE){const e=t.length-c.default.SIZE;this._tmp1.data.set(t.subarray(e)),yield this._mac.update(t.subarray(0,e))}else this._tmp1.data.set(t),this._tmp1.data[t.length]=128,this._tmp2.dbl();return s.xor(this._tmp1.data,this._tmp2.data),yield this._mac.update(this._tmp1.data),this._mac.finish()}))}}function h(e){e[e.length-8]&=127,e[e.length-4]&=127}t.SIV=d},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(106),i=r(201);class s{constructor(e,t,r){this._cipher=e,this._subkey1=t,this._subkey2=r,this._bufferPos=0,this._finished=!1,this._buffer=new o.default}static importKey(e,t){return n(this,void 0,void 0,(function*(){const r=yield e.importBlockCipherKey(t),n=new o.default;yield r.encryptBlock(n),n.dbl();const i=n.clone();return i.dbl(),new s(r,n,i)}))}reset(){return this._buffer.clear(),this._bufferPos=0,this._finished=!1,this}clear(){this.reset(),this._subkey1.clear(),this._subkey2.clear()}update(e){return n(this,void 0,void 0,(function*(){const t=o.default.SIZE-this._bufferPos;let r=0,n=e.length;if(n>t){for(let r=0;r<t;r++)this._buffer.data[this._bufferPos+r]^=e[r];n-=t,r+=t,yield this._cipher.encryptBlock(this._buffer),this._bufferPos=0}for(;n>o.default.SIZE;){for(let t=0;t<o.default.SIZE;t++)this._buffer.data[t]^=e[r+t];n-=o.default.SIZE,r+=o.default.SIZE,yield this._cipher.encryptBlock(this._buffer)}for(let t=0;t<n;t++)this._buffer.data[this._bufferPos++]^=e[r+t];return this}))}finish(){return n(this,void 0,void 0,(function*(){if(!this._finished){const e=this._bufferPos<o.default.SIZE?this._subkey2:this._subkey1;i.xor(this._buffer.data,e.data),this._bufferPos<o.default.SIZE&&(this._buffer.data[this._bufferPos]^=128),yield this._cipher.encryptBlock(this._buffer),this._finished=!0}return this._buffer.clone().data}))}}t.CMAC=s},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(106),i=r(199),s=r(764),a=r(201);class c{constructor(e,t,r){this._finished=!1,this._cipher=e,this._L=t,this._LInv=r,this._buffer=new o.default,this._bufferPos=0,this._counter=0,this._offset=new o.default,this._tag=new o.default}static importKey(e,t){return n(this,void 0,void 0,(function*(){const r=yield e.importBlockCipherKey(t),n=new o.default;yield r.encryptBlock(n);const s=new Array(31);for(let e=0;e<31;e++)s[e]=n.clone(),n.dbl();const a=s[0].clone(),u=1&a.data[o.default.SIZE-1];for(let e=o.default.SIZE-1;e>0;e--){const t=i.select(1&a.data[e-1],128,0);a.data[e]=a.data[e]>>>1|t}return a.data[0]>>>=1,a.data[0]^=i.select(u,128,0),a.data[o.default.SIZE-1]^=i.select(u,o.default.R>>>1,0),new c(r,s,a)}))}reset(){return this._buffer.clear(),this._bufferPos=0,this._counter=0,this._offset.clear(),this._tag.clear(),this._finished=!1,this}clear(){this.reset(),this._cipher.clear()}update(e){return n(this,void 0,void 0,(function*(){if(this._finished)throw new Error("pmac: already finished");const t=o.default.SIZE-this._bufferPos;let r=0,n=e.length;for(n>t&&(this._buffer.data.set(e.slice(0,t),this._bufferPos),r+=t,n-=t,yield this._processBuffer());n>o.default.SIZE;)this._buffer.data.set(e.slice(r,r+o.default.SIZE)),r+=o.default.SIZE,n-=o.default.SIZE,yield this._processBuffer();return n>0&&(this._buffer.data.set(e.slice(r,r+n),this._bufferPos),this._bufferPos+=n),this}))}finish(){return n(this,void 0,void 0,(function*(){if(this._finished)throw new Error("pmac: already finished");return this._bufferPos===o.default.SIZE?(a.xor(this._tag.data,this._buffer.data),a.xor(this._tag.data,this._LInv.data)):(a.xor(this._tag.data,this._buffer.data.slice(0,this._bufferPos)),this._tag.data[this._bufferPos]^=128),yield this._cipher.encryptBlock(this._tag),this._finished=!0,this._tag.clone().data}))}_processBuffer(){return n(this,void 0,void 0,(function*(){a.xor(this._offset.data,this._L[s.ctz(this._counter+1)].data),a.xor(this._buffer.data,this._offset.data),this._counter++,yield this._cipher.encryptBlock(this._buffer),a.xor(this._tag.data,this._buffer.data),this._bufferPos=0}))}}t.PMAC=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64},"SHA3-384":{nodeName:"sha3-384",hashSize:48},"SHA3-256":{nodeName:"sha3-256",hashSize:32},"SHA3-224":{nodeName:"sha3-224",hashSize:28},"SHA-256":{nodeName:"sha256",hashSize:32},"SHA-384":{nodeName:"sha384",hashSize:48},"SHA-512":{nodeName:"sha512",hashSize:64},"SHA-1":{nodeName:"sha1",hashSize:20},MD5:{nodeName:"md5",hashSize:16}}}},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(779));t.compute=o.compute,t.default={compute:t.compute}},function(e,t){var r={utf8:{stringToBytes:function(e){return r.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(r.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=r},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(795));t.encodeBase64=function(e){var r="";return r="string"==typeof e?e:t.arrayBufferToString(e),o.getEnvBtoa()(r)},t.decodeBase64=function(e){var r=o.getEnvAtob()(e),n=t.stringToArrayBuffer(r);return s(n)};var i=function(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)&&void 0!==e.buffer?new Uint8Array(e.buffer):new Uint8Array(e)},s=function(e){for(var t=!0,r=0;r<e.length;r++)if(e[r]>126||e[r]<32&&13!==e[r]&&10!==e[r]){t=!1;break}var n=null;if(t){n="";for(r=0;r<e.length;r++)n+=String.fromCharCode(e[r])}else n=e;return n};t.encodeBase64Url=function(e){return t.encodeBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.decodeBase64Url=function(e){return e=e.replace(/-/g,"+").replace(/_/g,"/"),t.decodeBase64(e)},t.arrayBufferToHexString=function(e){for(var t=i(e),r="",n=0;n<t.length;n++){var o=(255&t[n]).toString(16);r+=o=1===o.length?"0"+o:o}return r},t.hexStringToArrayBuffer=function(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t.push(parseInt(e.substr(n,2),16));return new Uint8Array(t)},t.arrayBufferToString=function(e){var t=i(e),r=new Array(t.length);return t.forEach((function(e,t){r[t]=e})),String.fromCharCode.apply(null,r)},t.stringToArrayBuffer=function(e){return new Uint8Array(e.length).map((function(t,r){return e.charCodeAt(r)}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(105),o=r(42),i=r(194),s=r(203),a=r(197);t.CosmWasmClient=class{constructor(e,t,r=a.BroadcastMode.Block){this.codesCache=new Map,this.restClient=new a.RestClient(e,r,t)}async getChainId(){if(!this.chainId){const e=(await this.restClient.nodeInfo()).node_info.network;if(!e)throw new Error("Chain ID must not be empty");this.chainId=e}return this.chainId}async getHeight(){if(this.anyValidAddress){const{height:e}=await this.restClient.authAccounts(this.anyValidAddress);return parseInt(e,10)}{const e=await this.restClient.blocksLatest();return parseInt(e.block.header.height,10)}}async getIdentifier(e){const t=await this.restClient.encodeTx(e),r=new n.Sha256(t).digest();return o.Encoding.toHex(r).toUpperCase()}async getNonce(e){const t=await this.getAccount(e);if(!t)throw new Error("Account does not exist on chain. Send some tokens there before trying to query nonces.");return{accountNumber:t.accountNumber,sequence:t.sequence}}async getAccount(e){const t=(await this.restClient.authAccounts(e)).result.value;return""===t.address?void 0:(this.anyValidAddress=t.address,{address:t.address,balance:t.coins,pubkey:t.public_key?s.decodeBech32Pubkey(t.public_key):void 0,accountNumber:t.account_number,sequence:t.sequence})}async getBlock(e){const t=void 0!==e?await this.restClient.blocks(e):await this.restClient.blocksLatest();return{id:t.block_id.hash,header:{version:t.block.header.version,time:t.block.header.time,height:parseInt(t.block.header.height,10),chainId:t.block.header.chain_id},txs:(t.block.data.txs||[]).map(e=>o.Encoding.fromBase64(e))}}async searchTx(e,t={}){const r=t.minHeight||0,n=t.maxHeight||Number.MAX_SAFE_INTEGER;if(n<r)return[];function o(e){return`${e}&tx.minheight=${r}&tx.maxheight=${n}`}let i;if(function(e){return void 0!==e.id}(e))i=await this.txsQuery("tx.hash="+e.id);else if(function(e){return void 0!==e.height}(e))i=e.height<r||e.height>n?[]:await this.txsQuery("tx.height="+e.height);else if(function(e){return void 0!==e.sentFromOrTo}(e)){const t=o("message.module=bank&message.sender="+e.sentFromOrTo),r=o("message.module=bank&transfer.recipient="+e.sentFromOrTo),n=await this.txsQuery(t),s=await this.txsQuery(r),a=n.map(e=>e.hash);i=[...n,...s.filter(e=>!a.includes(e.hash))]}else{if(!function(e){return void 0!==e.tags}(e))throw new Error("Unknown query type");{const t=o(e.tags.map(e=>`${e.key}=${e.value}`).join("&"));i=await this.txsQuery(t)}}return i.filter(e=>e.height>=r&&e.height<=n)}async postTx(e){const t=await this.restClient.postTx(e);if(!t.txhash.match(/^([0-9A-F][0-9A-F])+$/))throw new Error("Received ill-formatted txhash. Must be non-empty upper-case hex");if(t.code)throw new Error(`Error when posting tx ${t.txhash}. Code: ${t.code}; Raw log: ${t.raw_log}`);return{logs:t.logs?i.parseLogs(t.logs):[],rawLog:t.raw_log||"",transactionHash:t.txhash,data:t.data||""}}async getCodes(){return(await this.restClient.listCodeInfo()).map(e=>(this.anyValidAddress=e.creator,{id:e.id,creator:e.creator,checksum:o.Encoding.toHex(o.Encoding.fromHex(e.data_hash)),source:e.source||void 0,builder:e.builder||void 0}))}async getCodeDetails(e){const t=this.codesCache.get(e);if(t)return t;const r=await this.restClient.getCode(e),n={id:r.id,creator:r.creator,checksum:o.Encoding.toHex(o.Encoding.fromHex(r.data_hash)),source:r.source||void 0,builder:r.builder||void 0,data:o.Encoding.fromBase64(r.data)};return this.codesCache.set(e,n),n}async getContracts(e){return(await this.restClient.listContractsByCodeId(e)).map(e=>({address:e.address,codeId:e.code_id,creator:e.creator,label:e.label}))}async getContract(e){const t=await this.restClient.getContractInfo(e);if(!t)throw new Error(`No contract found at address "${e}"`);return{address:t.address,codeId:t.code_id,creator:t.creator,label:t.label,initMsg:t.init_msg}}async queryContractSmart(e,t,r){try{return await this.restClient.queryContractSmart(e,t,r)}catch(t){throw t instanceof Error&&t.message.startsWith("not found: contract")?new Error(`No contract found at address "${e}"`):t}}async txsQuery(e){const t=await this.restClient.txsQuery(e+"&limit=100");if(parseInt(t.page_total,10)>1)throw new Error(`Found more results on the backend than we can process currently. Results: ${t.total_count}, supported: 100`);return t.txs.map(e=>({height:parseInt(e.height,10),hash:e.txhash,code:e.code||0,rawLog:e.raw_log,logs:i.parseLogs(e.logs||[]),tx:e.tx,timestamp:e.timestamp}))}getCodeHashByCodeId(e){return this.restClient.getCodeHashByCodeId(e)}getCodeHashByContractAddr(e){return this.restClient.getCodeHashByContractAddr(e)}async getNonceByTxId(e){const t=(await this.restClient.txById(e,!1)).tx.value.msg,r=[];for(const e of t){let t;t="wasm/MsgExecuteContract"===e.type?o.Encoding.fromBase64(e.value.msg).slice(0,32):"wasm/MsgInstantiateContract"===e.type?o.Encoding.fromBase64(e.value.init_msg).slice(0,32):null,r.push(t)}return r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="secret-wasm"},function(e,t,r){"use strict";var n,o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundTxService=void 0;const u=r(43),l=c(r(68)),f=r(58),d=r(102),h=r(236),p=r(2);let g=n=class{constructor(e,t){this.chainsService=e,this.permissionService=t}sendTx(e,t,r){return a(this,void 0,void 0,(function*(){const o=yield this.chainsService.getChainInfo(e),i=l.default.create(Object.assign({baseURL:o.rest},o.restConfig));browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/temp-icon.svg"),title:"Tx is pending...",message:"Wait a second"});const s={tx:t,mode:r};try{const e=yield i.post("/txs",s);if(null!=e.data.code&&0!==e.data.code)throw new Error(e.data.raw_log);const t=p.Buffer.from(e.data.txhash,"hex"),r=new h.TendermintTxTracer(o.rpc,"/websocket");return r.traceTx(t).then(e=>{r.close(),n.processTxResultNotification(e)}),t}catch(e){throw console.log(e),n.processTxErrorNotification(e),e}}))}static processTxResultNotification(e){var t;try{if("commit"===e.mode){if(void 0!==e.checkTx.code&&0!==e.checkTx.code)throw new Error(e.checkTx.log);if(void 0!==e.deliverTx.code&&0!==e.deliverTx.code)throw new Error(e.deliverTx.log)}else if(null!=e.code&&0!==e.code){const r=null!==(t=e.log)&&void 0!==t?t:e.raw_log;throw new Error(r)}browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/temp-icon.svg"),title:"Tx succeeds",message:"Congratulations!"})}catch(e){n.processTxErrorNotification(e)}}static processTxErrorNotification(e){console.log(e);let t=e.message;const r=/code:\s*(-?\d+),\s*message:\s*(.+),\sdata:\s(.+)/g.exec(e.message);r&&4===r.length&&(t=r[3]);try{const r=JSON.parse(e.message);(null==r?void 0:r.message)&&(t=r.message)}catch(e){}try{const r=JSON.parse(e.message);if(r&&r.length>0)for(const e of r)if(!e.success){const r=JSON.parse(e.log);if(null==r?void 0:r.message){t=r.message;break}}}catch(e){}browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/temp-icon.svg"),title:"Tx failed",message:t})}};g=n=o([u.singleton(),s(0,u.inject(u.delay(()=>f.ChainsService))),s(1,u.inject(u.delay(()=>d.PermissionService))),i("design:paramtypes",[f.ChainsService,d.PermissionService])],g),t.BackgroundTxService=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="background-tx"},function(e,t,r){"use strict";var n,o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}},a=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TokensService=void 0;const c=r(43),u=r(52),l=r(58),f=r(11),d=r(58),h=r(103),p=r(103),g=r(83),m=r(102),y=r(2),b=r(142),v=r(383);let w=n=class{constructor(e,t,r,n,o){this.kvStore=e,this.interactionService=t,this.permissionService=r,this.chainsService=n,this.keyRingService=o,this.onChainRemoved=e=>{this.clearTokens(e)},this.chainsService.addChainRemovedHandler(this.onChainRemoved)}suggestToken(e,t,r,n){return a(this,void 0,void 0,(function*(){const o=yield this.chainsService.getChainInfo(t);if((yield this.getTokens(t)).find(e=>"contractAddress"in e&&e.contractAddress===r))return;f.Bech32Address.validate(r,o.bech32Config.bech32PrefixAccAddr);const i={chainId:t,contractAddress:r,viewingKey:n},s=yield this.interactionService.waitApprove(e,"/setting/token/add",b.SuggestTokenMsg.type(),i);yield this.addToken(t,s)}))}addToken(e,t){return a(this,void 0,void 0,(function*(){const r=yield this.chainsService.getChainInfo(e);t=yield n.validateCurrency(r,t);const o=yield this.getTokens(e),i="type"in t&&"secret20"===t.type;let s=!1;for(const e of o)if(t.coinMinimalDenom===e.coinMinimalDenom){if(!i)return;s=!0}if(i){const r=yield this.getTokensFromChainAndAccount(e);if(s){const n=r.findIndex(e=>e.coinMinimalDenom===t.coinMinimalDenom);n>=0&&(r[n]=t,yield this.saveTokensToChainAndAccount(e,r))}else r.push(t),yield this.saveTokensToChainAndAccount(e,r)}else{const r=yield this.getTokensFromChain(e);r.push(t),yield this.saveTokensToChain(e,r)}}))}removeToken(e,t){return a(this,void 0,void 0,(function*(){const r=yield this.chainsService.getChainInfo(e);t=yield n.validateCurrency(r,t);const o=yield this.getTokens(e),i="type"in t&&"secret20"===t.type;let s=!1;for(const e of o)if(t.coinMinimalDenom===e.coinMinimalDenom){s=!0;break}if(s)if(i){const r=(yield this.getTokensFromChainAndAccount(e)).filter(e=>e.coinMinimalDenom!==t.coinMinimalDenom);yield this.saveTokensToChainAndAccount(e,r)}else{const r=(yield this.getTokensFromChain(e)).filter(e=>e.coinMinimalDenom!==t.coinMinimalDenom);yield this.saveTokensToChain(e,r)}}))}getTokens(e){var t,r;return a(this,void 0,void 0,(function*(){const n=f.ChainIdHelper.parse(e),o=null!==(t=yield this.kvStore.get(n.identifier))&&void 0!==t?t:[];let i=[];if(this.keyRingService.keyRingStatus===p.KeyRingStatus.UNLOCKED){const t=yield this.keyRingService.getKey(e);i=null!==(r=yield this.kvStore.get(`${n.identifier}-${y.Buffer.from(t.address).toString("hex")}`))&&void 0!==r?r:[]}return o.concat(i)}))}clearTokens(e){return a(this,void 0,void 0,(function*(){const t=f.ChainIdHelper.parse(e);yield this.kvStore.set(t.identifier,null);const r=yield this.getTokensToAccountReverse(e);for(const e of r)yield this.kvStore.set(`${t.identifier}-${e}`,null);yield this.setTokensToAccountReverse(e,[])}))}getTokensFromChain(e){var t;return a(this,void 0,void 0,(function*(){const r=f.ChainIdHelper.parse(e);return null!==(t=yield this.kvStore.get(r.identifier))&&void 0!==t?t:[]}))}saveTokensToChain(e,t){return a(this,void 0,void 0,(function*(){const r=f.ChainIdHelper.parse(e);yield this.kvStore.set(r.identifier,t)}))}getTokensFromChainAndAccount(e){var t;return a(this,void 0,void 0,(function*(){const r=f.ChainIdHelper.parse(e),n=yield this.keyRingService.getKey(e);return null!==(t=yield this.kvStore.get(`${r.identifier}-${y.Buffer.from(n.address).toString("hex")}`))&&void 0!==t?t:[]}))}saveTokensToChainAndAccount(e,t){return a(this,void 0,void 0,(function*(){const r=f.ChainIdHelper.parse(e),n=yield this.keyRingService.getKey(e),o=y.Buffer.from(n.address).toString("hex");yield this.kvStore.set(`${r.identifier}-${o}`,t),yield this.insertTokensToAccountReverse(e,o)}))}getTokensToAccountReverse(e){var t;return a(this,void 0,void 0,(function*(){const r=f.ChainIdHelper.parse(e);return null!==(t=yield this.kvStore.get(r.identifier+"-addresses"))&&void 0!==t?t:[]}))}setTokensToAccountReverse(e,t){return a(this,void 0,void 0,(function*(){const r=f.ChainIdHelper.parse(e);yield this.kvStore.set(r.identifier+"-addresses",t)}))}insertTokensToAccountReverse(e,t){return a(this,void 0,void 0,(function*(){const r=yield this.getTokensToAccountReverse(e);r.indexOf(t)<0&&(r.push(t),yield this.setTokensToAccountReverse(e,r))}))}getSecret20ViewingKey(e,t){return a(this,void 0,void 0,(function*(){const r=yield this.getTokens(e);for(const e of r)if("type"in e&&"secret20"===e.type&&e.contractAddress===t)return e.viewingKey;throw new Error("There is no matched secret20")}))}checkOrGrantSecret20ViewingKeyPermission(e,t,r,n){return a(this,void 0,void 0,(function*(){yield this.getSecret20ViewingKey(t,r);const o=v.getSecret20ViewingKeyPermissionType(r);this.permissionService.hasPermisson(t,o,n)||(yield this.permissionService.grantPermission(e,"/access/viewing-key",[t],o,[n])),this.permissionService.checkPermission(e,t,o,n)}))}static validateCurrency(e,t){return a(this,void 0,void 0,(function*(){if("type"in t)switch(t.type){case"cw20":t=yield n.validateCW20Currency(e,t);break;case"secret20":t=yield n.validateSecret20Currency(e,t);break;default:throw new Error("Unknown type of currency")}else t=yield l.CurrencySchema.validateAsync(t);return t}))}static validateCW20Currency(e,t){return a(this,void 0,void 0,(function*(){return t=yield l.CW20CurrencyShema.validateAsync(t),f.Bech32Address.validate(t.contractAddress,e.bech32Config.bech32PrefixAccAddr),t}))}static validateSecret20Currency(e,t){return a(this,void 0,void 0,(function*(){return t=yield l.Secret20CurrencyShema.validateAsync(t),f.Bech32Address.validate(t.contractAddress,e.bech32Config.bech32PrefixAccAddr),t}))}};w=n=o([c.singleton(),s(0,c.inject(u.TYPES.TokensStore)),s(1,c.inject(c.delay(()=>g.InteractionService))),s(2,c.inject(c.delay(()=>m.PermissionService))),s(3,c.inject(d.ChainsService)),s(4,c.inject(c.delay(()=>h.KeyRingService))),i("design:paramtypes",[Object,g.InteractionService,m.PermissionService,d.ChainsService,h.KeyRingService])],w),t.TokensService=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="tokens"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitSecret20ViewingKeyPermissionType=t.isSecret20ViewingKeyPermissionType=t.getSecret20ViewingKeyPermissionType=void 0,t.getSecret20ViewingKeyPermissionType=function(e){return"viewing-key/"+e},t.isSecret20ViewingKeyPermissionType=function(e){return e.startsWith("viewing-key/")},t.splitSecret20ViewingKeyPermissionType=function(e){return e.replace("viewing-key/","")}},,,function(e,t,r){"use strict";const n=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},o=({clearTimeout:e,setTimeout:t,willResolve:r})=>(o,{value:i,signal:s}={})=>{if(s&&s.aborted)return Promise.reject(n());let a,c,u;const l=e||clearTimeout,f=()=>{l(a),u(n())},d=new Promise((e,n)=>{c=()=>{s&&s.removeEventListener("abort",f),r?e(i):n(i)},u=n,a=(t||setTimeout)(c,o)});return s&&s.addEventListener("abort",f,{once:!0}),d.clear=()=>{l(a),a=null,c()},d},i=o({willResolve:!0});i.reject=o({willResolve:!1}),i.range=(e,t,r)=>i(((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(e,t),r),i.createWithTimers=({clearTimeout:e,setTimeout:t})=>{const r=o({clearTimeout:e,setTimeout:t,willResolve:!0});return r.reject=o({clearTimeout:e,setTimeout:t,willResolve:!1}),r},e.exports=i,e.exports.default=i},,,,,,,,,,function(e,t,r){"use strict";var n=r(7).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(255!==t[s])throw new TypeError(i+" is ambiguous");t[s]=o}var a=e.length,c=e.charAt(0),u=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function f(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.alloc(0);var r=0;if(" "!==e[r]){for(var o=0,i=0;e[r]===c;)o++,r++;for(var s=(e.length-r)*u+1>>>0,l=new Uint8Array(s);e[r];){var f=t[e.charCodeAt(r)];if(255===f)return;for(var d=0,h=s-1;(0!==f||d<i)&&-1!==h;h--,d++)f+=a*l[h]>>>0,l[h]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");i=d,r++}if(" "!==e[r]){for(var p=s-i;p!==s&&0===l[p];)p++;var g=n.allocUnsafe(o+(s-p));g.fill(0,0,o);for(var m=o;p!==s;)g[m++]=l[p++];return g}}}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,o=0,i=0,s=t.length;i!==s&&0===t[i];)i++,r++;for(var u=(s-i)*l+1>>>0,f=new Uint8Array(u);i!==s;){for(var d=t[i],h=0,p=u-1;(0!==d||h<o)&&-1!==p;p--,h++)d+=256*f[p]>>>0,f[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");o=h,i++}for(var g=u-o;g!==u&&0===f[g];)g++;for(var m=c.repeat(r);g<u;++g)m+=e.charAt(f[g]);return m},decodeUnsafe:f,decode:function(e){var t=f(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}},function(e,t,r){e.exports=o;var n=r(51).EventEmitter;function o(){n.call(this)}r(4)(o,n),o.Readable=r(148),o.Writable=r(470),o.Duplex=r(471),o.Transform=r(472),o.PassThrough=r(473),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",c));var s=!1;function a(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},function(e,t,r){e.exports=r(536)(r(537))},,,,,,,,,function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.enableScroll=t.disableScroll=t.fitPopupWindow=t.closePopupWindow=t.openPopupWindow=void 0;const o=360,i=580,s={};t.openPopupWindow=function(e,t="default"){var r;return n(this,void 0,void 0,(function*(){const n={width:o,height:i,url:e,type:"popup"};if(void 0!==s[t])try{const n=yield browser.windows.get(s[t],{populate:!0});if(!(null===(r=null==n?void 0:n.tabs)||void 0===r?void 0:r.length))throw new Error("Null window or tabs");{const t=n.tabs[0];if(!(null==t?void 0:t.id))throw new Error("Null window or tabs");yield browser.tabs.update(t.id,{active:!0,url:e})}}catch(e){s[t]=(yield browser.windows.create(n)).id}else s[t]=(yield browser.windows.create(n)).id;if(s[t])try{yield browser.windows.update(s[t],{focused:!0})}catch(e){console.log("Failed to update window focus: "+e.message)}return s[t]}))},t.closePopupWindow=function(e){(()=>{n(this,void 0,void 0,(function*(){const t=s[e];t&&(yield browser.windows.remove(t))}))})()},t.fitPopupWindow=function(){const e=window.outerWidth-window.innerWidth,t=window.outerHeight-window.innerHeight;browser.windows?browser.windows.getCurrent().then(r=>{null!=(null==r?void 0:r.id)&&browser.windows.update(r.id,{width:o+e,height:i+t})}):window.resizeTo(o+e,i+t)},t.disableScroll=function(){document.getElementsByTagName("html")[0].style.overflow="hidden"},t.enableScroll=function(){document.getElementsByTagName("html")[0].style.overflow=""}},function(e,t){(function(t){e.exports=t}).call(this,{})},,function(e,t,r){"use strict";(function(t){!function(r){function n(e){const t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);let r=1779033703,n=3144134277,o=1013904242,i=2773480762,s=1359893119,a=2600822924,c=528734635,u=1541459225;const l=new Uint32Array(64);function f(e){let f=0,d=e.length;for(;d>=64;){let h,p,g,m,y,b=r,v=n,w=o,_=i,k=s,S=a,O=c,j=u;for(p=0;p<16;p++)g=f+4*p,l[p]=(255&e[g])<<24|(255&e[g+1])<<16|(255&e[g+2])<<8|255&e[g+3];for(p=16;p<64;p++)h=l[p-2],m=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=l[p-15],y=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,l[p]=(m+l[p-7]|0)+(y+l[p-16]|0)|0;for(p=0;p<64;p++)m=(((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&S^~k&O)|0)+(j+(t[p]+l[p]|0)|0)|0,y=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&v^b&w^v&w)|0,j=O,O=S,S=k,k=_+m|0,_=w,w=v,v=b,b=m+y|0;r=r+b|0,n=n+v|0,o=o+w|0,i=i+_|0,s=s+k|0,a=a+S|0,c=c+O|0,u=u+j|0,f+=64,d-=64}}f(e);let d,h=e.length%64,p=e.length/536870912|0,g=e.length<<3,m=h<56?56:120,y=e.slice(e.length-h,e.length);for(y.push(128),d=h+1;d<m;d++)y.push(0);return y.push(p>>>24&255),y.push(p>>>16&255),y.push(p>>>8&255),y.push(p>>>0&255),y.push(g>>>24&255),y.push(g>>>16&255),y.push(g>>>8&255),y.push(g>>>0&255),f(y),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function o(e,t,r){e=e.length<=64?e:n(e);const o=64+t.length+4,i=new Array(o),s=new Array(64);let a,c=[];for(a=0;a<64;a++)i[a]=54;for(a=0;a<e.length;a++)i[a]^=e[a];for(a=0;a<t.length;a++)i[64+a]=t[a];for(a=o-4;a<o;a++)i[a]=0;for(a=0;a<64;a++)s[a]=92;for(a=0;a<e.length;a++)s[a]^=e[a];function u(){for(let e=o-1;e>=o-4;e--){if(i[e]++,i[e]<=255)return;i[e]=0}}for(;r>=32;)u(),c=c.concat(n(s.concat(n(i)))),r-=32;return r>0&&(u(),c=c.concat(n(s.concat(n(i))).slice(0,r))),c}function i(e,t,r,n,o){let i;for(u(e,16*(2*r-1),o,0,16),i=0;i<2*r;i++)c(e,16*i,o,16),a(o,n),u(o,0,e,t+16*i,16);for(i=0;i<r;i++)u(e,t+2*i*16,e,16*i,16);for(i=0;i<r;i++)u(e,t+16*(2*i+1),e,16*(i+r),16)}function s(e,t){return e<<t|e>>>32-t}function a(e,t){u(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=s(t[0]+t[12],7),t[8]^=s(t[4]+t[0],9),t[12]^=s(t[8]+t[4],13),t[0]^=s(t[12]+t[8],18),t[9]^=s(t[5]+t[1],7),t[13]^=s(t[9]+t[5],9),t[1]^=s(t[13]+t[9],13),t[5]^=s(t[1]+t[13],18),t[14]^=s(t[10]+t[6],7),t[2]^=s(t[14]+t[10],9),t[6]^=s(t[2]+t[14],13),t[10]^=s(t[6]+t[2],18),t[3]^=s(t[15]+t[11],7),t[7]^=s(t[3]+t[15],9),t[11]^=s(t[7]+t[3],13),t[15]^=s(t[11]+t[7],18),t[1]^=s(t[0]+t[3],7),t[2]^=s(t[1]+t[0],9),t[3]^=s(t[2]+t[1],13),t[0]^=s(t[3]+t[2],18),t[6]^=s(t[5]+t[4],7),t[7]^=s(t[6]+t[5],9),t[4]^=s(t[7]+t[6],13),t[5]^=s(t[4]+t[7],18),t[11]^=s(t[10]+t[9],7),t[8]^=s(t[11]+t[10],9),t[9]^=s(t[8]+t[11],13),t[10]^=s(t[9]+t[8],18),t[12]^=s(t[15]+t[14],7),t[13]^=s(t[12]+t[15],9),t[14]^=s(t[13]+t[12],13),t[15]^=s(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}function c(e,t,r,n){for(let o=0;o<n;o++)r[o]^=e[t+o]}function u(e,t,r,n,o){for(;o--;)r[n++]=e[t++]}function l(e){if(!e||"number"!=typeof e.length)return!1;for(let t=0;t<e.length;t++){const r=e[t];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function f(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,r,n,s,a,d,h){if(n=f(n,"N"),s=f(s,"r"),a=f(a,"p"),d=f(d,"dkLen"),0===n||0!=(n&n-1))throw new Error("N must be power of 2");if(n>2147483647/128/s)throw new Error("N too large");if(s>2147483647/128/a)throw new Error("r too large");if(!l(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!l(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);let p=o(e,r,128*a*s);const g=new Uint32Array(32*a*s);for(let e=0;e<g.length;e++){const t=4*e;g[e]=(255&p[t+3])<<24|(255&p[t+2])<<16|(255&p[t+1])<<8|(255&p[t+0])<<0}const m=new Uint32Array(64*s),y=new Uint32Array(32*s*n),b=32*s,v=new Uint32Array(16),w=new Uint32Array(16),_=a*n*2;let k,S,O=0,j=null,E=!1,P=0,x=0;const A=h?parseInt(1e3/s):4294967295,M=void 0!==t?t:setTimeout,I=function(){if(E)return h(new Error("cancelled"),O/_);let t;switch(P){case 0:S=32*x*s,u(g,S,m,0,b),P=1,k=0;case 1:t=n-k,t>A&&(t=A);for(let e=0;e<t;e++)u(m,0,y,(k+e)*b,b),i(m,b,s,v,w);if(k+=t,O+=t,h){const e=parseInt(1e3*O/_);if(e!==j){if(E=h(null,O/_),E)break;j=e}}if(k<n)break;k=0,P=2;case 2:t=n-k,t>A&&(t=A);for(let e=0;e<t;e++){const e=m[16*(2*s-1)]&n-1;c(y,e*b,m,b),i(m,b,s,v,w)}if(k+=t,O+=t,h){const e=parseInt(1e3*O/_);if(e!==j){if(E=h(null,O/_),E)break;j=e}}if(k<n)break;if(u(m,0,g,S,b),x++,x<a){P=0;break}p=[];for(let e=0;e<g.length;e++)p.push(g[e]>>0&255),p.push(g[e]>>8&255),p.push(g[e]>>16&255),p.push(g[e]>>24&255);const r=o(e,p,d);return h&&h(null,1,r),r}h&&M(I)};if(!h)for(;;){const e=I();if(null!=e)return e}I()}const h={scrypt:function(e,t,r,n,o,i,s){return new Promise((function(a,c){let u=0;s&&s(0),d(e,t,r,n,o,i,(function(e,t,r){if(e)c(e);else if(r)s&&1!==u&&s(1),a(new Uint8Array(r));else if(s&&t!==u)return u=t,s(t)}))}))},syncScrypt:function(e,t,r,n,o,i){return new Uint8Array(d(e,t,r,n,o,i))}};e.exports=h}()}).call(this,r(223).setImmediate)},function(e,t,r){"use strict";var n={};(0,r(57).assign)(n,r(538),r(541),r(296)),e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(645),o=r(646),i=r(648),s=()=>{},a=new o.TimeoutError;t.default=class extends n{constructor(e){var t,r,n,o;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=s,this._resolveIdle=s,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:i.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(r=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==r?r:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(o=null===(n=e.interval)||void 0===n?void 0:n.toString())&&void 0!==o?o:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=s,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=s,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const e=Date.now();if(void 0===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise((r,n)=>{this._queue.enqueue(async()=>{this._pendingCount++,this._intervalCount++;try{const i=void 0===this._timeout&&void 0===t.timeout?e():o.default(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&n(a)});r(await i)}catch(e){n(e)}this._next()},t),this._tryToStartAnother(),this.emit("add")})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise(e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}})}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise(e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}},,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinPretty=void 0;const n=r(221);class o{constructor(e,t){this._currency=e,this.amount=t,this._options={separator:" ",upperCase:!1,lowerCase:!1,hideDenom:!1},t instanceof n.IntPretty?this.intPretty=t:this.intPretty=new n.IntPretty(t),this.intPretty=this.intPretty.maxDecimals(e.coinDecimals).precision(e.coinDecimals)}get options(){return Object.assign(Object.assign({},this._options),this.intPretty.options)}get denom(){return this.currency.coinDenom}get currency(){return this._currency}setCurrency(e){const t=new o(e,this.amount);return t._options=Object.assign({},this._options),t.intPretty=this.intPretty.clone(),t}separator(e){const t=this.clone();return t._options.separator=e,t}upperCase(e){const t=this.clone();return t._options.upperCase=e,t._options.lowerCase=!e,t}lowerCase(e){const t=this.clone();return t._options.lowerCase=e,t._options.upperCase=!e,t}hideDenom(e){const t=this.clone();return t._options.hideDenom=e,t}precision(e){const t=this.clone();return t.intPretty=t.intPretty.precision(e),t}maxDecimals(e){const t=this.clone();return t.intPretty=t.intPretty.maxDecimals(e),t}trim(e){const t=this.clone();return t.intPretty=t.intPretty.trim(e),t}shrink(e){const t=this.clone();return t.intPretty=t.intPretty.shrink(e),t}locale(e){const t=this.clone();return t.intPretty=t.intPretty.locale(e),t}ready(e){const t=this.clone();return t.intPretty=t.intPretty.ready(e),t}get isReady(){return this.intPretty.isReady}add(e){const t=this.clone();return t.intPretty=t.intPretty.add(e.intPretty),t}toDec(){return this.intPretty.toDec()}toString(){let e=this.denom;this._options.upperCase&&(e=e.toUpperCase()),this._options.lowerCase&&(e=e.toLowerCase());let t=this._options.separator;return this._options.hideDenom&&(e="",t=""),`${this.intPretty.toString()}${t}${e}`}clone(){const e=new o(this._currency,this.amount);return e._options=Object.assign({},this._options),e.intPretty=this.intPretty.clone(),e}}t.CoinPretty=o},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseAccount=void 0;const o=r(23);class i{constructor(e,t,r,n){this.type=e,this.address=t,this.accountNumber=r,this.sequence=n}static fetchFromRest(e,t,r=!1){return n(this,void 0,void 0,(function*(){const n=yield e.get("auth/accounts/"+t);return i.fromAminoJSON(n.data,r?t:"")}))}static fromAminoJSON(e,t=""){"height"in e&&(e=e.result);const r=e.type;if(!r)throw new Error("Account's type is unknown: "+JSON.stringify(e));let n=e.value;const s=n.BaseVestingAccount||n.baseVestingAccount||n.base_vesting_account;s&&(n=s.BaseAccount||s.baseAccount||s.base_account);let a=n.address;if(!a){if(!t)throw new Error("Account's address is unknown: "+JSON.stringify(e));a=t}const c=n.account_number;if(null==c)throw new Error("Account's account number is unknown: "+JSON.stringify(e));const u=n.sequence;return new i(r,a,new o.Int(c),new o.Int(null!=u?u:"0"))}getType(){return this.type}getAddress(){return this.address}getAccountNumber(){return this.accountNumber}getSequence(){return this.sequence}}t.BaseAccount=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Bech32Address=void 0;const o=n(r(94));t.Bech32Address=class{constructor(e){this.address=e}static shortenAddress(e,t){if(t>=e.length)return e;const r=e.indexOf("1"),n=e.slice(0,r),o=e.slice(r+1);if(t-=n.length,t-=3,(t-=1)<=0)return"";const i=Math.floor(o.length/2);let s=o.slice(0,i),a=o.slice(i);for(;t<s.length+a.length;)(s.length+a.length)%2==1&&s.length>0?s=s.slice(0,s.length-1):a=a.slice(1);return n+"1"+s+"..."+a}static validate(e,t){const{prefix:r}=o.default.decode(e);if(t&&t!==r)throw new Error(`Unexpected prefix (expected: ${t}, actual: ${r})`)}static defaultBech32Config(e,t="val",r="cons",n="pub",o="oper"){return{bech32PrefixAccAddr:e,bech32PrefixAccPub:e+n,bech32PrefixValAddr:e+t+o,bech32PrefixValPub:e+t+o+n,bech32PrefixConsAddr:e+t+r,bech32PrefixConsPub:e+t+r+n}}toBech32(e){const t=o.default.toWords(this.address);return o.default.encode(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainIdHelper=void 0;class n{static parse(e){const t=e.split(n.VersionFormatRegExp).filter(Boolean);return 2!==t.length?{identifier:e,version:0}:{identifier:t[0],version:parseInt(t[1])}}static hasChainVersion(e){return n.parse(e).identifier!==e}}t.ChainIdHelper=n,n.VersionFormatRegExp=/(.+)-([\d]+)/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WsReadyState=void 0,function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED",e[e.NONE=4]="NONE"}(t.WsReadyState||(t.WsReadyState={}))},function(e,t){
34 /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
35 t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?o-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=255&a,h+=p,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+h]=255&s,h+=p,s/=256,u-=8);e[r+h-p]|=128*g}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(238),t),o(r(118),t),o(r(242),t),o(r(443),t)},function(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(239),n.BufferWriter=r(437),n.Reader=r(240),n.BufferReader=r(438),n.util=r(64),n.rpc=r(439),n.roots=r(441),n.configure=o,o()},function(e,t,r){"use strict";e.exports=function(e,t){var r=new Array(arguments.length-1),n=0,o=2,i=!0;for(;o<arguments.length;)r[n++]=arguments[o++];return new Promise((function(o,s){r[n]=function(e){if(i)if(i=!1,e)s(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,s(e))}}))}},function(e,t,r){"use strict";var n=t;n.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var o=new Array(64),i=new Array(123),s=0;s<64;)i[o[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;n.encode=function(e,t,r){for(var n,i=null,s=[],a=0,c=0;t<r;){var u=e[t++];switch(c){case 0:s[a++]=o[u>>2],n=(3&u)<<4,c=1;break;case 1:s[a++]=o[n|u>>4],n=(15&u)<<2,c=2;break;case 2:s[a++]=o[n|u>>6],s[a++]=o[63&u],c=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return c&&(s[a++]=o[n],s[a++]=61,1===c&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};n.decode=function(e,t,r){for(var n,o=r,s=0,a=0;a<e.length;){var c=e.charCodeAt(a++);if(61===c&&s>1)break;if(void 0===(c=i[c]))throw Error("invalid encoding");switch(s){case 0:n=c,s=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,s=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,s=3;break;case 3:t[r++]=(3&n)<<6|c,s=0}}if(1===s)throw Error("invalid encoding");return r-o},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},function(e,t,r){"use strict";function n(){this._listeners={}}e.exports=n,n.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},n.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n<r.length;)r[n].fn===t?r.splice(n,1):++n;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,r)}return this}},function(e,t,r){"use strict";function n(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3]}function i(e,n,o){t[0]=e,n[o]=r[3],n[o+1]=r[2],n[o+2]=r[1],n[o+3]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function a(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?o:i,e.writeFloatBE=n?i:o,e.readFloatLE=n?s:a,e.readFloatBE=n?a:s}():function(){function t(e,t,r,n){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function r(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,o),e.writeFloatBE=t.bind(null,i),e.readFloatLE=r.bind(null,s),e.readFloatBE=r.bind(null,a)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var c=Math.floor(Math.log(n)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(a=n*Math.pow(2,-c))>>>0,o,i+t),e((s<<31|c+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function r(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,c=s>>>20&2047,u=4294967296*(1048575&s)+i;return 2047===c?u?NaN:a*(1/0):0===c?5e-324*a*u:a*Math.pow(2,c-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,o,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=r.bind(null,s,0,4),e.readDoubleBE=r.bind(null,a,4,0)}(),e}function o(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=n(n)},function(module,exports,__webpack_require__){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},function(e,t,r){"use strict";var n=t;n.length=function(e){for(var t=0,r=0,n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},n.read=function(e,t,r){if(r-t<1)return"";for(var n,o=null,i=[],s=0;t<r;)(n=e[t++])<128?i[s++]=n:n>191&&n<224?i[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(n>>10),i[s++]=56320+(1023&n)):i[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))},n.write=function(e,t,r){for(var n,o,i=r,s=0;s<e.length;++s)(n=e.charCodeAt(s))<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},function(e,t,r){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},function(e,t,r){"use strict";e.exports=o;var n=r(64);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},function(e,t,r){"use strict";e.exports=i;var n=r(239);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(64);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n<e.length;)t[r++]=e[n++]}},i.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},function(e,t,r){"use strict";e.exports=i;var n=r(240);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(64);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},function(e,t,r){"use strict";t.Service=r(440)},function(e,t,r){"use strict";e.exports=o;var n=r(64);function o(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,r,o,i,s){if(!i)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,r,o,i);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,r){if(e)return a.emit("error",e,t),s(e);if(null!==r){if(!(r instanceof o))try{r=o[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)}a.end(!0)}))}catch(e){return a.emit("error",e,t),void setTimeout((function(){s(e)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tendermint=t.ibc=t.google=t.cosmos=void 0;var n=r(48);const o=n.Reader,i=n.Writer,s=n.util,a={};t.cosmos=a.cosmos=(()=>{const e={};return e.auth=function(){const e={};return e.v1beta1=function(){const e={};return e.BaseAccount=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.address="",e.prototype.pubKey=null,e.prototype.accountNumber=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.pubKey&&Object.hasOwnProperty.call(e,"pubKey")&&a.google.protobuf.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),null!=e.accountNumber&&Object.hasOwnProperty.call(e,"accountNumber")&&t.uint32(24).uint64(e.accountNumber),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(32).uint64(e.sequence),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.auth.v1beta1.BaseAccount;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.address=e.string();break;case 2:n.pubKey=a.google.protobuf.Any.decode(e,e.uint32());break;case 3:n.accountNumber=e.uint64();break;case 4:n.sequence=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.auth.v1beta1.BaseAccount)return e;var t=new a.cosmos.auth.v1beta1.BaseAccount;if(null!=e.address&&(t.address=String(e.address)),null!=e.pubKey){if("object"!=typeof e.pubKey)throw TypeError(".cosmos.auth.v1beta1.BaseAccount.pubKey: object expected");t.pubKey=a.google.protobuf.Any.fromObject(e.pubKey)}return null!=e.accountNumber&&(s.Long?(t.accountNumber=s.Long.fromValue(e.accountNumber)).unsigned=!0:"string"==typeof e.accountNumber?t.accountNumber=parseInt(e.accountNumber,10):"number"==typeof e.accountNumber?t.accountNumber=e.accountNumber:"object"==typeof e.accountNumber&&(t.accountNumber=new s.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0))),null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.address="",r.pubKey=null,s.Long){var n=new s.Long(0,0,!0);r.accountNumber=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.accountNumber=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0}return null!=e.address&&e.hasOwnProperty("address")&&(r.address=e.address),null!=e.pubKey&&e.hasOwnProperty("pubKey")&&(r.pubKey=a.google.protobuf.Any.toObject(e.pubKey,t)),null!=e.accountNumber&&e.hasOwnProperty("accountNumber")&&("number"==typeof e.accountNumber?r.accountNumber=t.longs===String?String(e.accountNumber):e.accountNumber:r.accountNumber=t.longs===String?s.Long.prototype.toString.call(e.accountNumber):t.longs===Number?new s.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0):e.accountNumber),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ModuleAccount=function(){function e(e){if(this.permissions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.baseAccount=null,e.prototype.name="",e.prototype.permissions=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.baseAccount&&Object.hasOwnProperty.call(e,"baseAccount")&&a.cosmos.auth.v1beta1.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.permissions&&e.permissions.length)for(var r=0;r<e.permissions.length;++r)t.uint32(26).string(e.permissions[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.auth.v1beta1.ModuleAccount;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.baseAccount=a.cosmos.auth.v1beta1.BaseAccount.decode(e,e.uint32());break;case 2:n.name=e.string();break;case 3:n.permissions&&n.permissions.length||(n.permissions=[]),n.permissions.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.auth.v1beta1.ModuleAccount)return e;var t=new a.cosmos.auth.v1beta1.ModuleAccount;if(null!=e.baseAccount){if("object"!=typeof e.baseAccount)throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.baseAccount: object expected");t.baseAccount=a.cosmos.auth.v1beta1.BaseAccount.fromObject(e.baseAccount)}if(null!=e.name&&(t.name=String(e.name)),e.permissions){if(!Array.isArray(e.permissions))throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.permissions: array expected");t.permissions=[];for(var r=0;r<e.permissions.length;++r)t.permissions[r]=String(e.permissions[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.permissions=[]),t.defaults&&(r.baseAccount=null,r.name=""),null!=e.baseAccount&&e.hasOwnProperty("baseAccount")&&(r.baseAccount=a.cosmos.auth.v1beta1.BaseAccount.toObject(e.baseAccount,t)),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.permissions&&e.permissions.length){r.permissions=[];for(var n=0;n<e.permissions.length;++n)r.permissions[n]=e.permissions[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Params=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.maxMemoCharacters=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.txSigLimit=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.txSizeCostPerByte=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.sigVerifyCostEd25519=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.sigVerifyCostSecp256k1=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.maxMemoCharacters&&Object.hasOwnProperty.call(e,"maxMemoCharacters")&&t.uint32(8).uint64(e.maxMemoCharacters),null!=e.txSigLimit&&Object.hasOwnProperty.call(e,"txSigLimit")&&t.uint32(16).uint64(e.txSigLimit),null!=e.txSizeCostPerByte&&Object.hasOwnProperty.call(e,"txSizeCostPerByte")&&t.uint32(24).uint64(e.txSizeCostPerByte),null!=e.sigVerifyCostEd25519&&Object.hasOwnProperty.call(e,"sigVerifyCostEd25519")&&t.uint32(32).uint64(e.sigVerifyCostEd25519),null!=e.sigVerifyCostSecp256k1&&Object.hasOwnProperty.call(e,"sigVerifyCostSecp256k1")&&t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.auth.v1beta1.Params;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.maxMemoCharacters=e.uint64();break;case 2:n.txSigLimit=e.uint64();break;case 3:n.txSizeCostPerByte=e.uint64();break;case 4:n.sigVerifyCostEd25519=e.uint64();break;case 5:n.sigVerifyCostSecp256k1=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.auth.v1beta1.Params)return e;var t=new a.cosmos.auth.v1beta1.Params;return null!=e.maxMemoCharacters&&(s.Long?(t.maxMemoCharacters=s.Long.fromValue(e.maxMemoCharacters)).unsigned=!0:"string"==typeof e.maxMemoCharacters?t.maxMemoCharacters=parseInt(e.maxMemoCharacters,10):"number"==typeof e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:"object"==typeof e.maxMemoCharacters&&(t.maxMemoCharacters=new s.LongBits(e.maxMemoCharacters.low>>>0,e.maxMemoCharacters.high>>>0).toNumber(!0))),null!=e.txSigLimit&&(s.Long?(t.txSigLimit=s.Long.fromValue(e.txSigLimit)).unsigned=!0:"string"==typeof e.txSigLimit?t.txSigLimit=parseInt(e.txSigLimit,10):"number"==typeof e.txSigLimit?t.txSigLimit=e.txSigLimit:"object"==typeof e.txSigLimit&&(t.txSigLimit=new s.LongBits(e.txSigLimit.low>>>0,e.txSigLimit.high>>>0).toNumber(!0))),null!=e.txSizeCostPerByte&&(s.Long?(t.txSizeCostPerByte=s.Long.fromValue(e.txSizeCostPerByte)).unsigned=!0:"string"==typeof e.txSizeCostPerByte?t.txSizeCostPerByte=parseInt(e.txSizeCostPerByte,10):"number"==typeof e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:"object"==typeof e.txSizeCostPerByte&&(t.txSizeCostPerByte=new s.LongBits(e.txSizeCostPerByte.low>>>0,e.txSizeCostPerByte.high>>>0).toNumber(!0))),null!=e.sigVerifyCostEd25519&&(s.Long?(t.sigVerifyCostEd25519=s.Long.fromValue(e.sigVerifyCostEd25519)).unsigned=!0:"string"==typeof e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=parseInt(e.sigVerifyCostEd25519,10):"number"==typeof e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:"object"==typeof e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=new s.LongBits(e.sigVerifyCostEd25519.low>>>0,e.sigVerifyCostEd25519.high>>>0).toNumber(!0))),null!=e.sigVerifyCostSecp256k1&&(s.Long?(t.sigVerifyCostSecp256k1=s.Long.fromValue(e.sigVerifyCostSecp256k1)).unsigned=!0:"string"==typeof e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=parseInt(e.sigVerifyCostSecp256k1,10):"number"==typeof e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:"object"==typeof e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=new s.LongBits(e.sigVerifyCostSecp256k1.low>>>0,e.sigVerifyCostSecp256k1.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!0);r.maxMemoCharacters=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.maxMemoCharacters=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.txSigLimit=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.txSigLimit=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.txSizeCostPerByte=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.txSizeCostPerByte=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.sigVerifyCostEd25519=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sigVerifyCostEd25519=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.sigVerifyCostSecp256k1=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sigVerifyCostSecp256k1=t.longs===String?"0":0}return null!=e.maxMemoCharacters&&e.hasOwnProperty("maxMemoCharacters")&&("number"==typeof e.maxMemoCharacters?r.maxMemoCharacters=t.longs===String?String(e.maxMemoCharacters):e.maxMemoCharacters:r.maxMemoCharacters=t.longs===String?s.Long.prototype.toString.call(e.maxMemoCharacters):t.longs===Number?new s.LongBits(e.maxMemoCharacters.low>>>0,e.maxMemoCharacters.high>>>0).toNumber(!0):e.maxMemoCharacters),null!=e.txSigLimit&&e.hasOwnProperty("txSigLimit")&&("number"==typeof e.txSigLimit?r.txSigLimit=t.longs===String?String(e.txSigLimit):e.txSigLimit:r.txSigLimit=t.longs===String?s.Long.prototype.toString.call(e.txSigLimit):t.longs===Number?new s.LongBits(e.txSigLimit.low>>>0,e.txSigLimit.high>>>0).toNumber(!0):e.txSigLimit),null!=e.txSizeCostPerByte&&e.hasOwnProperty("txSizeCostPerByte")&&("number"==typeof e.txSizeCostPerByte?r.txSizeCostPerByte=t.longs===String?String(e.txSizeCostPerByte):e.txSizeCostPerByte:r.txSizeCostPerByte=t.longs===String?s.Long.prototype.toString.call(e.txSizeCostPerByte):t.longs===Number?new s.LongBits(e.txSizeCostPerByte.low>>>0,e.txSizeCostPerByte.high>>>0).toNumber(!0):e.txSizeCostPerByte),null!=e.sigVerifyCostEd25519&&e.hasOwnProperty("sigVerifyCostEd25519")&&("number"==typeof e.sigVerifyCostEd25519?r.sigVerifyCostEd25519=t.longs===String?String(e.sigVerifyCostEd25519):e.sigVerifyCostEd25519:r.sigVerifyCostEd25519=t.longs===String?s.Long.prototype.toString.call(e.sigVerifyCostEd25519):t.longs===Number?new s.LongBits(e.sigVerifyCostEd25519.low>>>0,e.sigVerifyCostEd25519.high>>>0).toNumber(!0):e.sigVerifyCostEd25519),null!=e.sigVerifyCostSecp256k1&&e.hasOwnProperty("sigVerifyCostSecp256k1")&&("number"==typeof e.sigVerifyCostSecp256k1?r.sigVerifyCostSecp256k1=t.longs===String?String(e.sigVerifyCostSecp256k1):e.sigVerifyCostSecp256k1:r.sigVerifyCostSecp256k1=t.longs===String?s.Long.prototype.toString.call(e.sigVerifyCostSecp256k1):t.longs===Number?new s.LongBits(e.sigVerifyCostSecp256k1.low>>>0,e.sigVerifyCostSecp256k1.high>>>0).toNumber(!0):e.sigVerifyCostSecp256k1),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.account=function e(t,r){return this.rpcCall(e,a.cosmos.auth.v1beta1.QueryAccountRequest,a.cosmos.auth.v1beta1.QueryAccountResponse,t,r)},"name",{value:"Account"}),Object.defineProperty(e.prototype.params=function e(t,r){return this.rpcCall(e,a.cosmos.auth.v1beta1.QueryParamsRequest,a.cosmos.auth.v1beta1.QueryParamsResponse,t,r)},"name",{value:"Params"}),e}(),e.QueryAccountRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.address="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.auth.v1beta1.QueryAccountRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.address=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.auth.v1beta1.QueryAccountRequest)return e;var t=new a.cosmos.auth.v1beta1.QueryAccountRequest;return null!=e.address&&(t.address=String(e.address)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.address=""),null!=e.address&&e.hasOwnProperty("address")&&(r.address=e.address),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryAccountResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&a.google.protobuf.Any.encode(e.account,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.auth.v1beta1.QueryAccountResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.account=a.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.auth.v1beta1.QueryAccountResponse)return e;var t=new a.cosmos.auth.v1beta1.QueryAccountResponse;if(null!=e.account){if("object"!=typeof e.account)throw TypeError(".cosmos.auth.v1beta1.QueryAccountResponse.account: object expected");t.account=a.google.protobuf.Any.fromObject(e.account)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.account=null),null!=e.account&&e.hasOwnProperty("account")&&(r.account=a.google.protobuf.Any.toObject(e.account,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryParamsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.auth.v1beta1.QueryParamsRequest;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.auth.v1beta1.QueryParamsRequest?e:new a.cosmos.auth.v1beta1.QueryParamsRequest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryParamsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.params=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.params&&Object.hasOwnProperty.call(e,"params")&&a.cosmos.auth.v1beta1.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.auth.v1beta1.QueryParamsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.params=a.cosmos.auth.v1beta1.Params.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.auth.v1beta1.QueryParamsResponse)return e;var t=new a.cosmos.auth.v1beta1.QueryParamsResponse;if(null!=e.params){if("object"!=typeof e.params)throw TypeError(".cosmos.auth.v1beta1.QueryParamsResponse.params: object expected");t.params=a.cosmos.auth.v1beta1.Params.fromObject(e.params)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.params=null),null!=e.params&&e.hasOwnProperty("params")&&(r.params=a.cosmos.auth.v1beta1.Params.toObject(e.params,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.bank=function(){const e={};return e.v1beta1=function(){const e={};return e.Params=function(){function e(e){if(this.sendEnabled=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sendEnabled=s.emptyArray,e.prototype.defaultSendEnabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.sendEnabled&&e.sendEnabled.length)for(var r=0;r<e.sendEnabled.length;++r)a.cosmos.bank.v1beta1.SendEnabled.encode(e.sendEnabled[r],t.uint32(10).fork()).ldelim();return null!=e.defaultSendEnabled&&Object.hasOwnProperty.call(e,"defaultSendEnabled")&&t.uint32(16).bool(e.defaultSendEnabled),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.Params;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.sendEnabled&&n.sendEnabled.length||(n.sendEnabled=[]),n.sendEnabled.push(a.cosmos.bank.v1beta1.SendEnabled.decode(e,e.uint32()));break;case 2:n.defaultSendEnabled=e.bool();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.Params)return e;var t=new a.cosmos.bank.v1beta1.Params;if(e.sendEnabled){if(!Array.isArray(e.sendEnabled))throw TypeError(".cosmos.bank.v1beta1.Params.sendEnabled: array expected");t.sendEnabled=[];for(var r=0;r<e.sendEnabled.length;++r){if("object"!=typeof e.sendEnabled[r])throw TypeError(".cosmos.bank.v1beta1.Params.sendEnabled: object expected");t.sendEnabled[r]=a.cosmos.bank.v1beta1.SendEnabled.fromObject(e.sendEnabled[r])}}return null!=e.defaultSendEnabled&&(t.defaultSendEnabled=Boolean(e.defaultSendEnabled)),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.sendEnabled=[]),t.defaults&&(r.defaultSendEnabled=!1),e.sendEnabled&&e.sendEnabled.length){r.sendEnabled=[];for(var n=0;n<e.sendEnabled.length;++n)r.sendEnabled[n]=a.cosmos.bank.v1beta1.SendEnabled.toObject(e.sendEnabled[n],t)}return null!=e.defaultSendEnabled&&e.hasOwnProperty("defaultSendEnabled")&&(r.defaultSendEnabled=e.defaultSendEnabled),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.SendEnabled=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.denom="",e.prototype.enabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&t.uint32(16).bool(e.enabled),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.SendEnabled;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.denom=e.string();break;case 2:n.enabled=e.bool();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.SendEnabled)return e;var t=new a.cosmos.bank.v1beta1.SendEnabled;return null!=e.denom&&(t.denom=String(e.denom)),null!=e.enabled&&(t.enabled=Boolean(e.enabled)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.denom="",r.enabled=!1),null!=e.denom&&e.hasOwnProperty("denom")&&(r.denom=e.denom),null!=e.enabled&&e.hasOwnProperty("enabled")&&(r.enabled=e.enabled),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Input=function(){function e(e){if(this.coins=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.address="",e.prototype.coins=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.coins&&e.coins.length)for(var r=0;r<e.coins.length;++r)a.cosmos.base.v1beta1.Coin.encode(e.coins[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.Input;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.address=e.string();break;case 2:n.coins&&n.coins.length||(n.coins=[]),n.coins.push(a.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.Input)return e;var t=new a.cosmos.bank.v1beta1.Input;if(null!=e.address&&(t.address=String(e.address)),e.coins){if(!Array.isArray(e.coins))throw TypeError(".cosmos.bank.v1beta1.Input.coins: array expected");t.coins=[];for(var r=0;r<e.coins.length;++r){if("object"!=typeof e.coins[r])throw TypeError(".cosmos.bank.v1beta1.Input.coins: object expected");t.coins[r]=a.cosmos.base.v1beta1.Coin.fromObject(e.coins[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.coins=[]),t.defaults&&(r.address=""),null!=e.address&&e.hasOwnProperty("address")&&(r.address=e.address),e.coins&&e.coins.length){r.coins=[];for(var n=0;n<e.coins.length;++n)r.coins[n]=a.cosmos.base.v1beta1.Coin.toObject(e.coins[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Output=function(){function e(e){if(this.coins=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.address="",e.prototype.coins=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.coins&&e.coins.length)for(var r=0;r<e.coins.length;++r)a.cosmos.base.v1beta1.Coin.encode(e.coins[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.Output;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.address=e.string();break;case 2:n.coins&&n.coins.length||(n.coins=[]),n.coins.push(a.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.Output)return e;var t=new a.cosmos.bank.v1beta1.Output;if(null!=e.address&&(t.address=String(e.address)),e.coins){if(!Array.isArray(e.coins))throw TypeError(".cosmos.bank.v1beta1.Output.coins: array expected");t.coins=[];for(var r=0;r<e.coins.length;++r){if("object"!=typeof e.coins[r])throw TypeError(".cosmos.bank.v1beta1.Output.coins: object expected");t.coins[r]=a.cosmos.base.v1beta1.Coin.fromObject(e.coins[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.coins=[]),t.defaults&&(r.address=""),null!=e.address&&e.hasOwnProperty("address")&&(r.address=e.address),e.coins&&e.coins.length){r.coins=[];for(var n=0;n<e.coins.length;++n)r.coins[n]=a.cosmos.base.v1beta1.Coin.toObject(e.coins[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Supply=function(){function e(e){if(this.total=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.total=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.total&&e.total.length)for(var r=0;r<e.total.length;++r)a.cosmos.base.v1beta1.Coin.encode(e.total[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.Supply;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.total&&n.total.length||(n.total=[]),n.total.push(a.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.Supply)return e;var t=new a.cosmos.bank.v1beta1.Supply;if(e.total){if(!Array.isArray(e.total))throw TypeError(".cosmos.bank.v1beta1.Supply.total: array expected");t.total=[];for(var r=0;r<e.total.length;++r){if("object"!=typeof e.total[r])throw TypeError(".cosmos.bank.v1beta1.Supply.total: object expected");t.total[r]=a.cosmos.base.v1beta1.Coin.fromObject(e.total[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.total=[]),e.total&&e.total.length){r.total=[];for(var n=0;n<e.total.length;++n)r.total[n]=a.cosmos.base.v1beta1.Coin.toObject(e.total[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DenomUnit=function(){function e(e){if(this.aliases=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.denom="",e.prototype.exponent=0,e.prototype.aliases=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.exponent&&Object.hasOwnProperty.call(e,"exponent")&&t.uint32(16).uint32(e.exponent),null!=e.aliases&&e.aliases.length)for(var r=0;r<e.aliases.length;++r)t.uint32(26).string(e.aliases[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.DenomUnit;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.denom=e.string();break;case 2:n.exponent=e.uint32();break;case 3:n.aliases&&n.aliases.length||(n.aliases=[]),n.aliases.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.DenomUnit)return e;var t=new a.cosmos.bank.v1beta1.DenomUnit;if(null!=e.denom&&(t.denom=String(e.denom)),null!=e.exponent&&(t.exponent=e.exponent>>>0),e.aliases){if(!Array.isArray(e.aliases))throw TypeError(".cosmos.bank.v1beta1.DenomUnit.aliases: array expected");t.aliases=[];for(var r=0;r<e.aliases.length;++r)t.aliases[r]=String(e.aliases[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.aliases=[]),t.defaults&&(r.denom="",r.exponent=0),null!=e.denom&&e.hasOwnProperty("denom")&&(r.denom=e.denom),null!=e.exponent&&e.hasOwnProperty("exponent")&&(r.exponent=e.exponent),e.aliases&&e.aliases.length){r.aliases=[];for(var n=0;n<e.aliases.length;++n)r.aliases[n]=e.aliases[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Metadata=function(){function e(e){if(this.denomUnits=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.description="",e.prototype.denomUnits=s.emptyArray,e.prototype.base="",e.prototype.display="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(10).string(e.description),null!=e.denomUnits&&e.denomUnits.length)for(var r=0;r<e.denomUnits.length;++r)a.cosmos.bank.v1beta1.DenomUnit.encode(e.denomUnits[r],t.uint32(18).fork()).ldelim();return null!=e.base&&Object.hasOwnProperty.call(e,"base")&&t.uint32(26).string(e.base),null!=e.display&&Object.hasOwnProperty.call(e,"display")&&t.uint32(34).string(e.display),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.Metadata;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.description=e.string();break;case 2:n.denomUnits&&n.denomUnits.length||(n.denomUnits=[]),n.denomUnits.push(a.cosmos.bank.v1beta1.DenomUnit.decode(e,e.uint32()));break;case 3:n.base=e.string();break;case 4:n.display=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.Metadata)return e;var t=new a.cosmos.bank.v1beta1.Metadata;if(null!=e.description&&(t.description=String(e.description)),e.denomUnits){if(!Array.isArray(e.denomUnits))throw TypeError(".cosmos.bank.v1beta1.Metadata.denomUnits: array expected");t.denomUnits=[];for(var r=0;r<e.denomUnits.length;++r){if("object"!=typeof e.denomUnits[r])throw TypeError(".cosmos.bank.v1beta1.Metadata.denomUnits: object expected");t.denomUnits[r]=a.cosmos.bank.v1beta1.DenomUnit.fromObject(e.denomUnits[r])}}return null!=e.base&&(t.base=String(e.base)),null!=e.display&&(t.display=String(e.display)),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.denomUnits=[]),t.defaults&&(r.description="",r.base="",r.display=""),null!=e.description&&e.hasOwnProperty("description")&&(r.description=e.description),e.denomUnits&&e.denomUnits.length){r.denomUnits=[];for(var n=0;n<e.denomUnits.length;++n)r.denomUnits[n]=a.cosmos.bank.v1beta1.DenomUnit.toObject(e.denomUnits[n],t)}return null!=e.base&&e.hasOwnProperty("base")&&(r.base=e.base),null!=e.display&&e.hasOwnProperty("display")&&(r.display=e.display),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.balance=function e(t,r){return this.rpcCall(e,a.cosmos.bank.v1beta1.QueryBalanceRequest,a.cosmos.bank.v1beta1.QueryBalanceResponse,t,r)},"name",{value:"Balance"}),Object.defineProperty(e.prototype.allBalances=function e(t,r){return this.rpcCall(e,a.cosmos.bank.v1beta1.QueryAllBalancesRequest,a.cosmos.bank.v1beta1.QueryAllBalancesResponse,t,r)},"name",{value:"AllBalances"}),Object.defineProperty(e.prototype.totalSupply=function e(t,r){return this.rpcCall(e,a.cosmos.bank.v1beta1.QueryTotalSupplyRequest,a.cosmos.bank.v1beta1.QueryTotalSupplyResponse,t,r)},"name",{value:"TotalSupply"}),Object.defineProperty(e.prototype.supplyOf=function e(t,r){return this.rpcCall(e,a.cosmos.bank.v1beta1.QuerySupplyOfRequest,a.cosmos.bank.v1beta1.QuerySupplyOfResponse,t,r)},"name",{value:"SupplyOf"}),Object.defineProperty(e.prototype.params=function e(t,r){return this.rpcCall(e,a.cosmos.bank.v1beta1.QueryParamsRequest,a.cosmos.bank.v1beta1.QueryParamsResponse,t,r)},"name",{value:"Params"}),e}(),e.QueryBalanceRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.address="",e.prototype.denom="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(18).string(e.denom),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryBalanceRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.address=e.string();break;case 2:n.denom=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QueryBalanceRequest)return e;var t=new a.cosmos.bank.v1beta1.QueryBalanceRequest;return null!=e.address&&(t.address=String(e.address)),null!=e.denom&&(t.denom=String(e.denom)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.address="",r.denom=""),null!=e.address&&e.hasOwnProperty("address")&&(r.address=e.address),null!=e.denom&&e.hasOwnProperty("denom")&&(r.denom=e.denom),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryBalanceResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.balance=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&a.cosmos.base.v1beta1.Coin.encode(e.balance,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryBalanceResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.balance=a.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QueryBalanceResponse)return e;var t=new a.cosmos.bank.v1beta1.QueryBalanceResponse;if(null!=e.balance){if("object"!=typeof e.balance)throw TypeError(".cosmos.bank.v1beta1.QueryBalanceResponse.balance: object expected");t.balance=a.cosmos.base.v1beta1.Coin.fromObject(e.balance)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.balance=null),null!=e.balance&&e.hasOwnProperty("balance")&&(r.balance=a.cosmos.base.v1beta1.Coin.toObject(e.balance,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryAllBalancesRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.address="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryAllBalancesRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.address=e.string();break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QueryAllBalancesRequest)return e;var t=new a.cosmos.bank.v1beta1.QueryAllBalancesRequest;if(null!=e.address&&(t.address=String(e.address)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesRequest.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.address="",r.pagination=null),null!=e.address&&e.hasOwnProperty("address")&&(r.address=e.address),null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryAllBalancesResponse=function(){function e(e){if(this.balances=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.balances=s.emptyArray,e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.balances&&e.balances.length)for(var r=0;r<e.balances.length;++r)a.cosmos.base.v1beta1.Coin.encode(e.balances[r],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryAllBalancesResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.balances&&n.balances.length||(n.balances=[]),n.balances.push(a.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QueryAllBalancesResponse)return e;var t=new a.cosmos.bank.v1beta1.QueryAllBalancesResponse;if(e.balances){if(!Array.isArray(e.balances))throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesResponse.balances: array expected");t.balances=[];for(var r=0;r<e.balances.length;++r){if("object"!=typeof e.balances[r])throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesResponse.balances: object expected");t.balances[r]=a.cosmos.base.v1beta1.Coin.fromObject(e.balances[r])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesResponse.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.balances=[]),t.defaults&&(r.pagination=null),e.balances&&e.balances.length){r.balances=[];for(var n=0;n<e.balances.length;++n)r.balances[n]=a.cosmos.base.v1beta1.Coin.toObject(e.balances[n],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryTotalSupplyRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryTotalSupplyRequest;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.bank.v1beta1.QueryTotalSupplyRequest?e:new a.cosmos.bank.v1beta1.QueryTotalSupplyRequest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryTotalSupplyResponse=function(){function e(e){if(this.supply=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.supply=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.supply&&e.supply.length)for(var r=0;r<e.supply.length;++r)a.cosmos.base.v1beta1.Coin.encode(e.supply[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryTotalSupplyResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.supply&&n.supply.length||(n.supply=[]),n.supply.push(a.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QueryTotalSupplyResponse)return e;var t=new a.cosmos.bank.v1beta1.QueryTotalSupplyResponse;if(e.supply){if(!Array.isArray(e.supply))throw TypeError(".cosmos.bank.v1beta1.QueryTotalSupplyResponse.supply: array expected");t.supply=[];for(var r=0;r<e.supply.length;++r){if("object"!=typeof e.supply[r])throw TypeError(".cosmos.bank.v1beta1.QueryTotalSupplyResponse.supply: object expected");t.supply[r]=a.cosmos.base.v1beta1.Coin.fromObject(e.supply[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.supply=[]),e.supply&&e.supply.length){r.supply=[];for(var n=0;n<e.supply.length;++n)r.supply[n]=a.cosmos.base.v1beta1.Coin.toObject(e.supply[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QuerySupplyOfRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.denom="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QuerySupplyOfRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.denom=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QuerySupplyOfRequest)return e;var t=new a.cosmos.bank.v1beta1.QuerySupplyOfRequest;return null!=e.denom&&(t.denom=String(e.denom)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.denom=""),null!=e.denom&&e.hasOwnProperty("denom")&&(r.denom=e.denom),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QuerySupplyOfResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&a.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QuerySupplyOfResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.amount=a.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QuerySupplyOfResponse)return e;var t=new a.cosmos.bank.v1beta1.QuerySupplyOfResponse;if(null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.bank.v1beta1.QuerySupplyOfResponse.amount: object expected");t.amount=a.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.amount=null),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=a.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryParamsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryParamsRequest;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.bank.v1beta1.QueryParamsRequest?e:new a.cosmos.bank.v1beta1.QueryParamsRequest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryParamsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.params=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.params&&Object.hasOwnProperty.call(e,"params")&&a.cosmos.bank.v1beta1.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.QueryParamsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.params=a.cosmos.bank.v1beta1.Params.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.QueryParamsResponse)return e;var t=new a.cosmos.bank.v1beta1.QueryParamsResponse;if(null!=e.params){if("object"!=typeof e.params)throw TypeError(".cosmos.bank.v1beta1.QueryParamsResponse.params: object expected");t.params=a.cosmos.bank.v1beta1.Params.fromObject(e.params)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.params=null),null!=e.params&&e.hasOwnProperty("params")&&(r.params=a.cosmos.bank.v1beta1.Params.toObject(e.params,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Msg=function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.send=function e(t,r){return this.rpcCall(e,a.cosmos.bank.v1beta1.MsgSend,a.cosmos.bank.v1beta1.MsgSendResponse,t,r)},"name",{value:"Send"}),Object.defineProperty(e.prototype.multiSend=function e(t,r){return this.rpcCall(e,a.cosmos.bank.v1beta1.MsgMultiSend,a.cosmos.bank.v1beta1.MsgMultiSendResponse,t,r)},"name",{value:"MultiSend"}),e}(),e.MsgSend=function(){function e(e){if(this.amount=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.fromAddress="",e.prototype.toAddress="",e.prototype.amount=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.fromAddress&&Object.hasOwnProperty.call(e,"fromAddress")&&t.uint32(10).string(e.fromAddress),null!=e.toAddress&&Object.hasOwnProperty.call(e,"toAddress")&&t.uint32(18).string(e.toAddress),null!=e.amount&&e.amount.length)for(var r=0;r<e.amount.length;++r)a.cosmos.base.v1beta1.Coin.encode(e.amount[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.MsgSend;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.fromAddress=e.string();break;case 2:n.toAddress=e.string();break;case 3:n.amount&&n.amount.length||(n.amount=[]),n.amount.push(a.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.MsgSend)return e;var t=new a.cosmos.bank.v1beta1.MsgSend;if(null!=e.fromAddress&&(t.fromAddress=String(e.fromAddress)),null!=e.toAddress&&(t.toAddress=String(e.toAddress)),e.amount){if(!Array.isArray(e.amount))throw TypeError(".cosmos.bank.v1beta1.MsgSend.amount: array expected");t.amount=[];for(var r=0;r<e.amount.length;++r){if("object"!=typeof e.amount[r])throw TypeError(".cosmos.bank.v1beta1.MsgSend.amount: object expected");t.amount[r]=a.cosmos.base.v1beta1.Coin.fromObject(e.amount[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.amount=[]),t.defaults&&(r.fromAddress="",r.toAddress=""),null!=e.fromAddress&&e.hasOwnProperty("fromAddress")&&(r.fromAddress=e.fromAddress),null!=e.toAddress&&e.hasOwnProperty("toAddress")&&(r.toAddress=e.toAddress),e.amount&&e.amount.length){r.amount=[];for(var n=0;n<e.amount.length;++n)r.amount[n]=a.cosmos.base.v1beta1.Coin.toObject(e.amount[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgSendResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.MsgSendResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.bank.v1beta1.MsgSendResponse?e:new a.cosmos.bank.v1beta1.MsgSendResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgMultiSend=function(){function e(e){if(this.inputs=[],this.outputs=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.inputs=s.emptyArray,e.prototype.outputs=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.inputs&&e.inputs.length)for(var r=0;r<e.inputs.length;++r)a.cosmos.bank.v1beta1.Input.encode(e.inputs[r],t.uint32(10).fork()).ldelim();if(null!=e.outputs&&e.outputs.length)for(r=0;r<e.outputs.length;++r)a.cosmos.bank.v1beta1.Output.encode(e.outputs[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.MsgMultiSend;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.inputs&&n.inputs.length||(n.inputs=[]),n.inputs.push(a.cosmos.bank.v1beta1.Input.decode(e,e.uint32()));break;case 2:n.outputs&&n.outputs.length||(n.outputs=[]),n.outputs.push(a.cosmos.bank.v1beta1.Output.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.bank.v1beta1.MsgMultiSend)return e;var t=new a.cosmos.bank.v1beta1.MsgMultiSend;if(e.inputs){if(!Array.isArray(e.inputs))throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.inputs: array expected");t.inputs=[];for(var r=0;r<e.inputs.length;++r){if("object"!=typeof e.inputs[r])throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.inputs: object expected");t.inputs[r]=a.cosmos.bank.v1beta1.Input.fromObject(e.inputs[r])}}if(e.outputs){if(!Array.isArray(e.outputs))throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.outputs: array expected");t.outputs=[];for(r=0;r<e.outputs.length;++r){if("object"!=typeof e.outputs[r])throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.outputs: object expected");t.outputs[r]=a.cosmos.bank.v1beta1.Output.fromObject(e.outputs[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.inputs=[],r.outputs=[]),e.inputs&&e.inputs.length){r.inputs=[];for(var n=0;n<e.inputs.length;++n)r.inputs[n]=a.cosmos.bank.v1beta1.Input.toObject(e.inputs[n],t)}if(e.outputs&&e.outputs.length){r.outputs=[];for(n=0;n<e.outputs.length;++n)r.outputs[n]=a.cosmos.bank.v1beta1.Output.toObject(e.outputs[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgMultiSendResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.bank.v1beta1.MsgMultiSendResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.bank.v1beta1.MsgMultiSendResponse?e:new a.cosmos.bank.v1beta1.MsgMultiSendResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.base=function(){const e={};return e.query=function(){const e={};return e.v1beta1=function(){const e={};return e.PageRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.key=s.newBuffer([]),e.prototype.offset=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.limit=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.countTotal=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(16).uint64(e.offset),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(24).uint64(e.limit),null!=e.countTotal&&Object.hasOwnProperty.call(e,"countTotal")&&t.uint32(32).bool(e.countTotal),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.base.query.v1beta1.PageRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.key=e.bytes();break;case 2:n.offset=e.uint64();break;case 3:n.limit=e.uint64();break;case 4:n.countTotal=e.bool();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.base.query.v1beta1.PageRequest)return e;var t=new a.cosmos.base.query.v1beta1.PageRequest;return null!=e.key&&("string"==typeof e.key?s.base64.decode(e.key,t.key=s.newBuffer(s.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),null!=e.offset&&(s.Long?(t.offset=s.Long.fromValue(e.offset)).unsigned=!0:"string"==typeof e.offset?t.offset=parseInt(e.offset,10):"number"==typeof e.offset?t.offset=e.offset:"object"==typeof e.offset&&(t.offset=new s.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber(!0))),null!=e.limit&&(s.Long?(t.limit=s.Long.fromValue(e.limit)).unsigned=!0:"string"==typeof e.limit?t.limit=parseInt(e.limit,10):"number"==typeof e.limit?t.limit=e.limit:"object"==typeof e.limit&&(t.limit=new s.LongBits(e.limit.low>>>0,e.limit.high>>>0).toNumber(!0))),null!=e.countTotal&&(t.countTotal=Boolean(e.countTotal)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(t.bytes===String?r.key="":(r.key=[],t.bytes!==Array&&(r.key=s.newBuffer(r.key))),s.Long){var n=new s.Long(0,0,!0);r.offset=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.offset=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.limit=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.limit=t.longs===String?"0":0;r.countTotal=!1}return null!=e.key&&e.hasOwnProperty("key")&&(r.key=t.bytes===String?s.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),null!=e.offset&&e.hasOwnProperty("offset")&&("number"==typeof e.offset?r.offset=t.longs===String?String(e.offset):e.offset:r.offset=t.longs===String?s.Long.prototype.toString.call(e.offset):t.longs===Number?new s.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber(!0):e.offset),null!=e.limit&&e.hasOwnProperty("limit")&&("number"==typeof e.limit?r.limit=t.longs===String?String(e.limit):e.limit:r.limit=t.longs===String?s.Long.prototype.toString.call(e.limit):t.longs===Number?new s.LongBits(e.limit.low>>>0,e.limit.high>>>0).toNumber(!0):e.limit),null!=e.countTotal&&e.hasOwnProperty("countTotal")&&(r.countTotal=e.countTotal),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.PageResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nextKey=s.newBuffer([]),e.prototype.total=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.nextKey&&Object.hasOwnProperty.call(e,"nextKey")&&t.uint32(10).bytes(e.nextKey),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(16).uint64(e.total),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.base.query.v1beta1.PageResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.nextKey=e.bytes();break;case 2:n.total=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.base.query.v1beta1.PageResponse)return e;var t=new a.cosmos.base.query.v1beta1.PageResponse;return null!=e.nextKey&&("string"==typeof e.nextKey?s.base64.decode(e.nextKey,t.nextKey=s.newBuffer(s.base64.length(e.nextKey)),0):e.nextKey.length&&(t.nextKey=e.nextKey)),null!=e.total&&(s.Long?(t.total=s.Long.fromValue(e.total)).unsigned=!0:"string"==typeof e.total?t.total=parseInt(e.total,10):"number"==typeof e.total?t.total=e.total:"object"==typeof e.total&&(t.total=new s.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(t.bytes===String?r.nextKey="":(r.nextKey=[],t.bytes!==Array&&(r.nextKey=s.newBuffer(r.nextKey))),s.Long){var n=new s.Long(0,0,!0);r.total=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.total=t.longs===String?"0":0;return null!=e.nextKey&&e.hasOwnProperty("nextKey")&&(r.nextKey=t.bytes===String?s.base64.encode(e.nextKey,0,e.nextKey.length):t.bytes===Array?Array.prototype.slice.call(e.nextKey):e.nextKey),null!=e.total&&e.hasOwnProperty("total")&&("number"==typeof e.total?r.total=t.longs===String?String(e.total):e.total:r.total=t.longs===String?s.Long.prototype.toString.call(e.total):t.longs===Number?new s.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber(!0):e.total),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.v1beta1=function(){const e={};return e.Coin=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.denom="",e.prototype.amount="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(18).string(e.amount),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.base.v1beta1.Coin;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.denom=e.string();break;case 2:n.amount=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.base.v1beta1.Coin)return e;var t=new a.cosmos.base.v1beta1.Coin;return null!=e.denom&&(t.denom=String(e.denom)),null!=e.amount&&(t.amount=String(e.amount)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.denom="",r.amount=""),null!=e.denom&&e.hasOwnProperty("denom")&&(r.denom=e.denom),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=e.amount),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DecCoin=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.denom="",e.prototype.amount="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(18).string(e.amount),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.base.v1beta1.DecCoin;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.denom=e.string();break;case 2:n.amount=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.base.v1beta1.DecCoin)return e;var t=new a.cosmos.base.v1beta1.DecCoin;return null!=e.denom&&(t.denom=String(e.denom)),null!=e.amount&&(t.amount=String(e.amount)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.denom="",r.amount=""),null!=e.denom&&e.hasOwnProperty("denom")&&(r.denom=e.denom),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=e.amount),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.IntProto=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.int="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.int&&Object.hasOwnProperty.call(e,"int")&&t.uint32(10).string(e.int),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.base.v1beta1.IntProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.int=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.base.v1beta1.IntProto)return e;var t=new a.cosmos.base.v1beta1.IntProto;return null!=e.int&&(t.int=String(e.int)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.int=""),null!=e.int&&e.hasOwnProperty("int")&&(r.int=e.int),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DecProto=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.dec="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.dec&&Object.hasOwnProperty.call(e,"dec")&&t.uint32(10).string(e.dec),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.base.v1beta1.DecProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.dec=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.base.v1beta1.DecProto)return e;var t=new a.cosmos.base.v1beta1.DecProto;return null!=e.dec&&(t.dec=String(e.dec)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.dec=""),null!=e.dec&&e.hasOwnProperty("dec")&&(r.dec=e.dec),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.crypto=function(){const e={};return e.multisig=function(){const e={};return e.v1beta1=function(){const e={};return e.MultiSignature=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.signatures=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.signatures&&e.signatures.length)for(var r=0;r<e.signatures.length;++r)t.uint32(10).bytes(e.signatures[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.crypto.multisig.v1beta1.MultiSignature;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.signatures&&n.signatures.length||(n.signatures=[]),n.signatures.push(e.bytes());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.crypto.multisig.v1beta1.MultiSignature)return e;var t=new a.cosmos.crypto.multisig.v1beta1.MultiSignature;if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.crypto.multisig.v1beta1.MultiSignature.signatures: array expected");t.signatures=[];for(var r=0;r<e.signatures.length;++r)"string"==typeof e.signatures[r]?s.base64.decode(e.signatures[r],t.signatures[r]=s.newBuffer(s.base64.length(e.signatures[r])),0):e.signatures[r].length&&(t.signatures[r]=e.signatures[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.signatures=[]),e.signatures&&e.signatures.length){r.signatures=[];for(var n=0;n<e.signatures.length;++n)r.signatures[n]=t.bytes===String?s.base64.encode(e.signatures[n],0,e.signatures[n].length):t.bytes===Array?Array.prototype.slice.call(e.signatures[n]):e.signatures[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.CompactBitArray=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.extraBitsStored=0,e.prototype.elems=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.extraBitsStored&&Object.hasOwnProperty.call(e,"extraBitsStored")&&t.uint32(8).uint32(e.extraBitsStored),null!=e.elems&&Object.hasOwnProperty.call(e,"elems")&&t.uint32(18).bytes(e.elems),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.crypto.multisig.v1beta1.CompactBitArray;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.extraBitsStored=e.uint32();break;case 2:n.elems=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.crypto.multisig.v1beta1.CompactBitArray)return e;var t=new a.cosmos.crypto.multisig.v1beta1.CompactBitArray;return null!=e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored>>>0),null!=e.elems&&("string"==typeof e.elems?s.base64.decode(e.elems,t.elems=s.newBuffer(s.base64.length(e.elems)),0):e.elems.length&&(t.elems=e.elems)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.extraBitsStored=0,t.bytes===String?r.elems="":(r.elems=[],t.bytes!==Array&&(r.elems=s.newBuffer(r.elems)))),null!=e.extraBitsStored&&e.hasOwnProperty("extraBitsStored")&&(r.extraBitsStored=e.extraBitsStored),null!=e.elems&&e.hasOwnProperty("elems")&&(r.elems=t.bytes===String?s.base64.encode(e.elems,0,e.elems.length):t.bytes===Array?Array.prototype.slice.call(e.elems):e.elems),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.secp256k1=function(){const e={};return e.PubKey=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.key=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.crypto.secp256k1.PubKey;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.key=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.crypto.secp256k1.PubKey)return e;var t=new a.cosmos.crypto.secp256k1.PubKey;return null!=e.key&&("string"==typeof e.key?s.base64.decode(e.key,t.key=s.newBuffer(s.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.key="":(r.key=[],t.bytes!==Array&&(r.key=s.newBuffer(r.key)))),null!=e.key&&e.hasOwnProperty("key")&&(r.key=t.bytes===String?s.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.PrivKey=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.key=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.crypto.secp256k1.PrivKey;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.key=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.crypto.secp256k1.PrivKey)return e;var t=new a.cosmos.crypto.secp256k1.PrivKey;return null!=e.key&&("string"==typeof e.key?s.base64.decode(e.key,t.key=s.newBuffer(s.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.key="":(r.key=[],t.bytes!==Array&&(r.key=s.newBuffer(r.key)))),null!=e.key&&e.hasOwnProperty("key")&&(r.key=t.bytes===String?s.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.staking=function(){const e={};return e.v1beta1=function(){const e={};return e.HistoricalInfo=function(){function e(e){if(this.valset=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.valset=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&a.tendermint.types.Header.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.valset&&e.valset.length)for(var r=0;r<e.valset.length;++r)a.cosmos.staking.v1beta1.Validator.encode(e.valset[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.HistoricalInfo;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.header=a.tendermint.types.Header.decode(e,e.uint32());break;case 2:n.valset&&n.valset.length||(n.valset=[]),n.valset.push(a.cosmos.staking.v1beta1.Validator.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.HistoricalInfo)return e;var t=new a.cosmos.staking.v1beta1.HistoricalInfo;if(null!=e.header){if("object"!=typeof e.header)throw TypeError(".cosmos.staking.v1beta1.HistoricalInfo.header: object expected");t.header=a.tendermint.types.Header.fromObject(e.header)}if(e.valset){if(!Array.isArray(e.valset))throw TypeError(".cosmos.staking.v1beta1.HistoricalInfo.valset: array expected");t.valset=[];for(var r=0;r<e.valset.length;++r){if("object"!=typeof e.valset[r])throw TypeError(".cosmos.staking.v1beta1.HistoricalInfo.valset: object expected");t.valset[r]=a.cosmos.staking.v1beta1.Validator.fromObject(e.valset[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.valset=[]),t.defaults&&(r.header=null),null!=e.header&&e.hasOwnProperty("header")&&(r.header=a.tendermint.types.Header.toObject(e.header,t)),e.valset&&e.valset.length){r.valset=[];for(var n=0;n<e.valset.length;++n)r.valset[n]=a.cosmos.staking.v1beta1.Validator.toObject(e.valset[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.CommissionRates=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.rate="",e.prototype.maxRate="",e.prototype.maxChangeRate="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.rate&&Object.hasOwnProperty.call(e,"rate")&&t.uint32(10).string(e.rate),null!=e.maxRate&&Object.hasOwnProperty.call(e,"maxRate")&&t.uint32(18).string(e.maxRate),null!=e.maxChangeRate&&Object.hasOwnProperty.call(e,"maxChangeRate")&&t.uint32(26).string(e.maxChangeRate),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.CommissionRates;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.rate=e.string();break;case 2:n.maxRate=e.string();break;case 3:n.maxChangeRate=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.CommissionRates)return e;var t=new a.cosmos.staking.v1beta1.CommissionRates;return null!=e.rate&&(t.rate=String(e.rate)),null!=e.maxRate&&(t.maxRate=String(e.maxRate)),null!=e.maxChangeRate&&(t.maxChangeRate=String(e.maxChangeRate)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.rate="",r.maxRate="",r.maxChangeRate=""),null!=e.rate&&e.hasOwnProperty("rate")&&(r.rate=e.rate),null!=e.maxRate&&e.hasOwnProperty("maxRate")&&(r.maxRate=e.maxRate),null!=e.maxChangeRate&&e.hasOwnProperty("maxChangeRate")&&(r.maxChangeRate=e.maxChangeRate),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Commission=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.commissionRates=null,e.prototype.updateTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.commissionRates&&Object.hasOwnProperty.call(e,"commissionRates")&&a.cosmos.staking.v1beta1.CommissionRates.encode(e.commissionRates,t.uint32(10).fork()).ldelim(),null!=e.updateTime&&Object.hasOwnProperty.call(e,"updateTime")&&a.google.protobuf.Timestamp.encode(e.updateTime,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.Commission;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.commissionRates=a.cosmos.staking.v1beta1.CommissionRates.decode(e,e.uint32());break;case 2:n.updateTime=a.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.Commission)return e;var t=new a.cosmos.staking.v1beta1.Commission;if(null!=e.commissionRates){if("object"!=typeof e.commissionRates)throw TypeError(".cosmos.staking.v1beta1.Commission.commissionRates: object expected");t.commissionRates=a.cosmos.staking.v1beta1.CommissionRates.fromObject(e.commissionRates)}if(null!=e.updateTime){if("object"!=typeof e.updateTime)throw TypeError(".cosmos.staking.v1beta1.Commission.updateTime: object expected");t.updateTime=a.google.protobuf.Timestamp.fromObject(e.updateTime)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.commissionRates=null,r.updateTime=null),null!=e.commissionRates&&e.hasOwnProperty("commissionRates")&&(r.commissionRates=a.cosmos.staking.v1beta1.CommissionRates.toObject(e.commissionRates,t)),null!=e.updateTime&&e.hasOwnProperty("updateTime")&&(r.updateTime=a.google.protobuf.Timestamp.toObject(e.updateTime,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Description=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.moniker="",e.prototype.identity="",e.prototype.website="",e.prototype.securityContact="",e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.moniker&&Object.hasOwnProperty.call(e,"moniker")&&t.uint32(10).string(e.moniker),null!=e.identity&&Object.hasOwnProperty.call(e,"identity")&&t.uint32(18).string(e.identity),null!=e.website&&Object.hasOwnProperty.call(e,"website")&&t.uint32(26).string(e.website),null!=e.securityContact&&Object.hasOwnProperty.call(e,"securityContact")&&t.uint32(34).string(e.securityContact),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(42).string(e.details),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.Description;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.moniker=e.string();break;case 2:n.identity=e.string();break;case 3:n.website=e.string();break;case 4:n.securityContact=e.string();break;case 5:n.details=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.Description)return e;var t=new a.cosmos.staking.v1beta1.Description;return null!=e.moniker&&(t.moniker=String(e.moniker)),null!=e.identity&&(t.identity=String(e.identity)),null!=e.website&&(t.website=String(e.website)),null!=e.securityContact&&(t.securityContact=String(e.securityContact)),null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.moniker="",r.identity="",r.website="",r.securityContact="",r.details=""),null!=e.moniker&&e.hasOwnProperty("moniker")&&(r.moniker=e.moniker),null!=e.identity&&e.hasOwnProperty("identity")&&(r.identity=e.identity),null!=e.website&&e.hasOwnProperty("website")&&(r.website=e.website),null!=e.securityContact&&e.hasOwnProperty("securityContact")&&(r.securityContact=e.securityContact),null!=e.details&&e.hasOwnProperty("details")&&(r.details=e.details),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Validator=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.operatorAddress="",e.prototype.consensusPubkey=null,e.prototype.jailed=!1,e.prototype.status=0,e.prototype.tokens="",e.prototype.delegatorShares="",e.prototype.description=null,e.prototype.unbondingHeight=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.unbondingTime=null,e.prototype.commission=null,e.prototype.minSelfDelegation="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.operatorAddress&&Object.hasOwnProperty.call(e,"operatorAddress")&&t.uint32(10).string(e.operatorAddress),null!=e.consensusPubkey&&Object.hasOwnProperty.call(e,"consensusPubkey")&&a.google.protobuf.Any.encode(e.consensusPubkey,t.uint32(18).fork()).ldelim(),null!=e.jailed&&Object.hasOwnProperty.call(e,"jailed")&&t.uint32(24).bool(e.jailed),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(32).int32(e.status),null!=e.tokens&&Object.hasOwnProperty.call(e,"tokens")&&t.uint32(42).string(e.tokens),null!=e.delegatorShares&&Object.hasOwnProperty.call(e,"delegatorShares")&&t.uint32(50).string(e.delegatorShares),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&a.cosmos.staking.v1beta1.Description.encode(e.description,t.uint32(58).fork()).ldelim(),null!=e.unbondingHeight&&Object.hasOwnProperty.call(e,"unbondingHeight")&&t.uint32(64).int64(e.unbondingHeight),null!=e.unbondingTime&&Object.hasOwnProperty.call(e,"unbondingTime")&&a.google.protobuf.Timestamp.encode(e.unbondingTime,t.uint32(74).fork()).ldelim(),null!=e.commission&&Object.hasOwnProperty.call(e,"commission")&&a.cosmos.staking.v1beta1.Commission.encode(e.commission,t.uint32(82).fork()).ldelim(),null!=e.minSelfDelegation&&Object.hasOwnProperty.call(e,"minSelfDelegation")&&t.uint32(90).string(e.minSelfDelegation),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.Validator;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.operatorAddress=e.string();break;case 2:n.consensusPubkey=a.google.protobuf.Any.decode(e,e.uint32());break;case 3:n.jailed=e.bool();break;case 4:n.status=e.int32();break;case 5:n.tokens=e.string();break;case 6:n.delegatorShares=e.string();break;case 7:n.description=a.cosmos.staking.v1beta1.Description.decode(e,e.uint32());break;case 8:n.unbondingHeight=e.int64();break;case 9:n.unbondingTime=a.google.protobuf.Timestamp.decode(e,e.uint32());break;case 10:n.commission=a.cosmos.staking.v1beta1.Commission.decode(e,e.uint32());break;case 11:n.minSelfDelegation=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.Validator)return e;var t=new a.cosmos.staking.v1beta1.Validator;if(null!=e.operatorAddress&&(t.operatorAddress=String(e.operatorAddress)),null!=e.consensusPubkey){if("object"!=typeof e.consensusPubkey)throw TypeError(".cosmos.staking.v1beta1.Validator.consensusPubkey: object expected");t.consensusPubkey=a.google.protobuf.Any.fromObject(e.consensusPubkey)}switch(null!=e.jailed&&(t.jailed=Boolean(e.jailed)),e.status){case"BOND_STATUS_UNSPECIFIED":case 0:t.status=0;break;case"BOND_STATUS_UNBONDED":case 1:t.status=1;break;case"BOND_STATUS_UNBONDING":case 2:t.status=2;break;case"BOND_STATUS_BONDED":case 3:t.status=3}if(null!=e.tokens&&(t.tokens=String(e.tokens)),null!=e.delegatorShares&&(t.delegatorShares=String(e.delegatorShares)),null!=e.description){if("object"!=typeof e.description)throw TypeError(".cosmos.staking.v1beta1.Validator.description: object expected");t.description=a.cosmos.staking.v1beta1.Description.fromObject(e.description)}if(null!=e.unbondingHeight&&(s.Long?(t.unbondingHeight=s.Long.fromValue(e.unbondingHeight)).unsigned=!1:"string"==typeof e.unbondingHeight?t.unbondingHeight=parseInt(e.unbondingHeight,10):"number"==typeof e.unbondingHeight?t.unbondingHeight=e.unbondingHeight:"object"==typeof e.unbondingHeight&&(t.unbondingHeight=new s.LongBits(e.unbondingHeight.low>>>0,e.unbondingHeight.high>>>0).toNumber())),null!=e.unbondingTime){if("object"!=typeof e.unbondingTime)throw TypeError(".cosmos.staking.v1beta1.Validator.unbondingTime: object expected");t.unbondingTime=a.google.protobuf.Timestamp.fromObject(e.unbondingTime)}if(null!=e.commission){if("object"!=typeof e.commission)throw TypeError(".cosmos.staking.v1beta1.Validator.commission: object expected");t.commission=a.cosmos.staking.v1beta1.Commission.fromObject(e.commission)}return null!=e.minSelfDelegation&&(t.minSelfDelegation=String(e.minSelfDelegation)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.operatorAddress="",r.consensusPubkey=null,r.jailed=!1,r.status=t.enums===String?"BOND_STATUS_UNSPECIFIED":0,r.tokens="",r.delegatorShares="",r.description=null,s.Long){var n=new s.Long(0,0,!1);r.unbondingHeight=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.unbondingHeight=t.longs===String?"0":0;r.unbondingTime=null,r.commission=null,r.minSelfDelegation=""}return null!=e.operatorAddress&&e.hasOwnProperty("operatorAddress")&&(r.operatorAddress=e.operatorAddress),null!=e.consensusPubkey&&e.hasOwnProperty("consensusPubkey")&&(r.consensusPubkey=a.google.protobuf.Any.toObject(e.consensusPubkey,t)),null!=e.jailed&&e.hasOwnProperty("jailed")&&(r.jailed=e.jailed),null!=e.status&&e.hasOwnProperty("status")&&(r.status=t.enums===String?a.cosmos.staking.v1beta1.BondStatus[e.status]:e.status),null!=e.tokens&&e.hasOwnProperty("tokens")&&(r.tokens=e.tokens),null!=e.delegatorShares&&e.hasOwnProperty("delegatorShares")&&(r.delegatorShares=e.delegatorShares),null!=e.description&&e.hasOwnProperty("description")&&(r.description=a.cosmos.staking.v1beta1.Description.toObject(e.description,t)),null!=e.unbondingHeight&&e.hasOwnProperty("unbondingHeight")&&("number"==typeof e.unbondingHeight?r.unbondingHeight=t.longs===String?String(e.unbondingHeight):e.unbondingHeight:r.unbondingHeight=t.longs===String?s.Long.prototype.toString.call(e.unbondingHeight):t.longs===Number?new s.LongBits(e.unbondingHeight.low>>>0,e.unbondingHeight.high>>>0).toNumber():e.unbondingHeight),null!=e.unbondingTime&&e.hasOwnProperty("unbondingTime")&&(r.unbondingTime=a.google.protobuf.Timestamp.toObject(e.unbondingTime,t)),null!=e.commission&&e.hasOwnProperty("commission")&&(r.commission=a.cosmos.staking.v1beta1.Commission.toObject(e.commission,t)),null!=e.minSelfDelegation&&e.hasOwnProperty("minSelfDelegation")&&(r.minSelfDelegation=e.minSelfDelegation),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.BondStatus=function(){const e={},t=Object.create(e);return t[e[0]="BOND_STATUS_UNSPECIFIED"]=0,t[e[1]="BOND_STATUS_UNBONDED"]=1,t[e[2]="BOND_STATUS_UNBONDING"]=2,t[e[3]="BOND_STATUS_BONDED"]=3,t}(),e.ValAddresses=function(){function e(e){if(this.addresses=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.addresses=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.addresses&&e.addresses.length)for(var r=0;r<e.addresses.length;++r)t.uint32(10).string(e.addresses[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.ValAddresses;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.addresses&&n.addresses.length||(n.addresses=[]),n.addresses.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.ValAddresses)return e;var t=new a.cosmos.staking.v1beta1.ValAddresses;if(e.addresses){if(!Array.isArray(e.addresses))throw TypeError(".cosmos.staking.v1beta1.ValAddresses.addresses: array expected");t.addresses=[];for(var r=0;r<e.addresses.length;++r)t.addresses[r]=String(e.addresses[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.addresses=[]),e.addresses&&e.addresses.length){r.addresses=[];for(var n=0;n<e.addresses.length;++n)r.addresses[n]=e.addresses[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DVPair=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.DVPair;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorAddress=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.DVPair)return e;var t=new a.cosmos.staking.v1beta1.DVPair;return null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.delegatorAddress="",r.validatorAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=e.validatorAddress),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DVPairs=function(){function e(e){if(this.pairs=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pairs=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.pairs&&e.pairs.length)for(var r=0;r<e.pairs.length;++r)a.cosmos.staking.v1beta1.DVPair.encode(e.pairs[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.DVPairs;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.pairs&&n.pairs.length||(n.pairs=[]),n.pairs.push(a.cosmos.staking.v1beta1.DVPair.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.DVPairs)return e;var t=new a.cosmos.staking.v1beta1.DVPairs;if(e.pairs){if(!Array.isArray(e.pairs))throw TypeError(".cosmos.staking.v1beta1.DVPairs.pairs: array expected");t.pairs=[];for(var r=0;r<e.pairs.length;++r){if("object"!=typeof e.pairs[r])throw TypeError(".cosmos.staking.v1beta1.DVPairs.pairs: object expected");t.pairs[r]=a.cosmos.staking.v1beta1.DVPair.fromObject(e.pairs[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.pairs=[]),e.pairs&&e.pairs.length){r.pairs=[];for(var n=0;n<e.pairs.length;++n)r.pairs[n]=a.cosmos.staking.v1beta1.DVPair.toObject(e.pairs[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DVVTriplet=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorSrcAddress="",e.prototype.validatorDstAddress="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorSrcAddress&&Object.hasOwnProperty.call(e,"validatorSrcAddress")&&t.uint32(18).string(e.validatorSrcAddress),null!=e.validatorDstAddress&&Object.hasOwnProperty.call(e,"validatorDstAddress")&&t.uint32(26).string(e.validatorDstAddress),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.DVVTriplet;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorSrcAddress=e.string();break;case 3:n.validatorDstAddress=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.DVVTriplet)return e;var t=new a.cosmos.staking.v1beta1.DVVTriplet;return null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorSrcAddress&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),null!=e.validatorDstAddress&&(t.validatorDstAddress=String(e.validatorDstAddress)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.delegatorAddress="",r.validatorSrcAddress="",r.validatorDstAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorSrcAddress&&e.hasOwnProperty("validatorSrcAddress")&&(r.validatorSrcAddress=e.validatorSrcAddress),null!=e.validatorDstAddress&&e.hasOwnProperty("validatorDstAddress")&&(r.validatorDstAddress=e.validatorDstAddress),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DVVTriplets=function(){function e(e){if(this.triplets=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.triplets=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.triplets&&e.triplets.length)for(var r=0;r<e.triplets.length;++r)a.cosmos.staking.v1beta1.DVVTriplet.encode(e.triplets[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.DVVTriplets;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.triplets&&n.triplets.length||(n.triplets=[]),n.triplets.push(a.cosmos.staking.v1beta1.DVVTriplet.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.DVVTriplets)return e;var t=new a.cosmos.staking.v1beta1.DVVTriplets;if(e.triplets){if(!Array.isArray(e.triplets))throw TypeError(".cosmos.staking.v1beta1.DVVTriplets.triplets: array expected");t.triplets=[];for(var r=0;r<e.triplets.length;++r){if("object"!=typeof e.triplets[r])throw TypeError(".cosmos.staking.v1beta1.DVVTriplets.triplets: object expected");t.triplets[r]=a.cosmos.staking.v1beta1.DVVTriplet.fromObject(e.triplets[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.triplets=[]),e.triplets&&e.triplets.length){r.triplets=[];for(var n=0;n<e.triplets.length;++n)r.triplets[n]=a.cosmos.staking.v1beta1.DVVTriplet.toObject(e.triplets[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Delegation=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.shares="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.shares&&Object.hasOwnProperty.call(e,"shares")&&t.uint32(26).string(e.shares),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.Delegation;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorAddress=e.string();break;case 3:n.shares=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.Delegation)return e;var t=new a.cosmos.staking.v1beta1.Delegation;return null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.shares&&(t.shares=String(e.shares)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.delegatorAddress="",r.validatorAddress="",r.shares=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=e.validatorAddress),null!=e.shares&&e.hasOwnProperty("shares")&&(r.shares=e.shares),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.UnbondingDelegation=function(){function e(e){if(this.entries=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.entries=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.entries&&e.entries.length)for(var r=0;r<e.entries.length;++r)a.cosmos.staking.v1beta1.UnbondingDelegationEntry.encode(e.entries[r],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.UnbondingDelegation;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorAddress=e.string();break;case 3:n.entries&&n.entries.length||(n.entries=[]),n.entries.push(a.cosmos.staking.v1beta1.UnbondingDelegationEntry.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.UnbondingDelegation)return e;var t=new a.cosmos.staking.v1beta1.UnbondingDelegation;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),e.entries){if(!Array.isArray(e.entries))throw TypeError(".cosmos.staking.v1beta1.UnbondingDelegation.entries: array expected");t.entries=[];for(var r=0;r<e.entries.length;++r){if("object"!=typeof e.entries[r])throw TypeError(".cosmos.staking.v1beta1.UnbondingDelegation.entries: object expected");t.entries[r]=a.cosmos.staking.v1beta1.UnbondingDelegationEntry.fromObject(e.entries[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.entries=[]),t.defaults&&(r.delegatorAddress="",r.validatorAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=e.validatorAddress),e.entries&&e.entries.length){r.entries=[];for(var n=0;n<e.entries.length;++n)r.entries[n]=a.cosmos.staking.v1beta1.UnbondingDelegationEntry.toObject(e.entries[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.UnbondingDelegationEntry=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.creationHeight=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.completionTime=null,e.prototype.initialBalance="",e.prototype.balance="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.creationHeight&&Object.hasOwnProperty.call(e,"creationHeight")&&t.uint32(8).int64(e.creationHeight),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&a.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(26).string(e.initialBalance),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(34).string(e.balance),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.UnbondingDelegationEntry;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.creationHeight=e.int64();break;case 2:n.completionTime=a.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:n.initialBalance=e.string();break;case 4:n.balance=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.UnbondingDelegationEntry)return e;var t=new a.cosmos.staking.v1beta1.UnbondingDelegationEntry;if(null!=e.creationHeight&&(s.Long?(t.creationHeight=s.Long.fromValue(e.creationHeight)).unsigned=!1:"string"==typeof e.creationHeight?t.creationHeight=parseInt(e.creationHeight,10):"number"==typeof e.creationHeight?t.creationHeight=e.creationHeight:"object"==typeof e.creationHeight&&(t.creationHeight=new s.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber())),null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.UnbondingDelegationEntry.completionTime: object expected");t.completionTime=a.google.protobuf.Timestamp.fromObject(e.completionTime)}return null!=e.initialBalance&&(t.initialBalance=String(e.initialBalance)),null!=e.balance&&(t.balance=String(e.balance)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!1);r.creationHeight=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.creationHeight=t.longs===String?"0":0;r.completionTime=null,r.initialBalance="",r.balance=""}return null!=e.creationHeight&&e.hasOwnProperty("creationHeight")&&("number"==typeof e.creationHeight?r.creationHeight=t.longs===String?String(e.creationHeight):e.creationHeight:r.creationHeight=t.longs===String?s.Long.prototype.toString.call(e.creationHeight):t.longs===Number?new s.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber():e.creationHeight),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(r.completionTime=a.google.protobuf.Timestamp.toObject(e.completionTime,t)),null!=e.initialBalance&&e.hasOwnProperty("initialBalance")&&(r.initialBalance=e.initialBalance),null!=e.balance&&e.hasOwnProperty("balance")&&(r.balance=e.balance),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.RedelegationEntry=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.creationHeight=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.completionTime=null,e.prototype.initialBalance="",e.prototype.sharesDst="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.creationHeight&&Object.hasOwnProperty.call(e,"creationHeight")&&t.uint32(8).int64(e.creationHeight),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&a.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(26).string(e.initialBalance),null!=e.sharesDst&&Object.hasOwnProperty.call(e,"sharesDst")&&t.uint32(34).string(e.sharesDst),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.RedelegationEntry;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.creationHeight=e.int64();break;case 2:n.completionTime=a.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:n.initialBalance=e.string();break;case 4:n.sharesDst=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.RedelegationEntry)return e;var t=new a.cosmos.staking.v1beta1.RedelegationEntry;if(null!=e.creationHeight&&(s.Long?(t.creationHeight=s.Long.fromValue(e.creationHeight)).unsigned=!1:"string"==typeof e.creationHeight?t.creationHeight=parseInt(e.creationHeight,10):"number"==typeof e.creationHeight?t.creationHeight=e.creationHeight:"object"==typeof e.creationHeight&&(t.creationHeight=new s.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber())),null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.RedelegationEntry.completionTime: object expected");t.completionTime=a.google.protobuf.Timestamp.fromObject(e.completionTime)}return null!=e.initialBalance&&(t.initialBalance=String(e.initialBalance)),null!=e.sharesDst&&(t.sharesDst=String(e.sharesDst)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!1);r.creationHeight=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.creationHeight=t.longs===String?"0":0;r.completionTime=null,r.initialBalance="",r.sharesDst=""}return null!=e.creationHeight&&e.hasOwnProperty("creationHeight")&&("number"==typeof e.creationHeight?r.creationHeight=t.longs===String?String(e.creationHeight):e.creationHeight:r.creationHeight=t.longs===String?s.Long.prototype.toString.call(e.creationHeight):t.longs===Number?new s.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber():e.creationHeight),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(r.completionTime=a.google.protobuf.Timestamp.toObject(e.completionTime,t)),null!=e.initialBalance&&e.hasOwnProperty("initialBalance")&&(r.initialBalance=e.initialBalance),null!=e.sharesDst&&e.hasOwnProperty("sharesDst")&&(r.sharesDst=e.sharesDst),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Redelegation=function(){function e(e){if(this.entries=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorSrcAddress="",e.prototype.validatorDstAddress="",e.prototype.entries=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorSrcAddress&&Object.hasOwnProperty.call(e,"validatorSrcAddress")&&t.uint32(18).string(e.validatorSrcAddress),null!=e.validatorDstAddress&&Object.hasOwnProperty.call(e,"validatorDstAddress")&&t.uint32(26).string(e.validatorDstAddress),null!=e.entries&&e.entries.length)for(var r=0;r<e.entries.length;++r)a.cosmos.staking.v1beta1.RedelegationEntry.encode(e.entries[r],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.Redelegation;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorSrcAddress=e.string();break;case 3:n.validatorDstAddress=e.string();break;case 4:n.entries&&n.entries.length||(n.entries=[]),n.entries.push(a.cosmos.staking.v1beta1.RedelegationEntry.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.Redelegation)return e;var t=new a.cosmos.staking.v1beta1.Redelegation;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorSrcAddress&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),null!=e.validatorDstAddress&&(t.validatorDstAddress=String(e.validatorDstAddress)),e.entries){if(!Array.isArray(e.entries))throw TypeError(".cosmos.staking.v1beta1.Redelegation.entries: array expected");t.entries=[];for(var r=0;r<e.entries.length;++r){if("object"!=typeof e.entries[r])throw TypeError(".cosmos.staking.v1beta1.Redelegation.entries: object expected");t.entries[r]=a.cosmos.staking.v1beta1.RedelegationEntry.fromObject(e.entries[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.entries=[]),t.defaults&&(r.delegatorAddress="",r.validatorSrcAddress="",r.validatorDstAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorSrcAddress&&e.hasOwnProperty("validatorSrcAddress")&&(r.validatorSrcAddress=e.validatorSrcAddress),null!=e.validatorDstAddress&&e.hasOwnProperty("validatorDstAddress")&&(r.validatorDstAddress=e.validatorDstAddress),e.entries&&e.entries.length){r.entries=[];for(var n=0;n<e.entries.length;++n)r.entries[n]=a.cosmos.staking.v1beta1.RedelegationEntry.toObject(e.entries[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Params=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.unbondingTime=null,e.prototype.maxValidators=0,e.prototype.maxEntries=0,e.prototype.historicalEntries=0,e.prototype.bondDenom="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.unbondingTime&&Object.hasOwnProperty.call(e,"unbondingTime")&&a.google.protobuf.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),null!=e.maxValidators&&Object.hasOwnProperty.call(e,"maxValidators")&&t.uint32(16).uint32(e.maxValidators),null!=e.maxEntries&&Object.hasOwnProperty.call(e,"maxEntries")&&t.uint32(24).uint32(e.maxEntries),null!=e.historicalEntries&&Object.hasOwnProperty.call(e,"historicalEntries")&&t.uint32(32).uint32(e.historicalEntries),null!=e.bondDenom&&Object.hasOwnProperty.call(e,"bondDenom")&&t.uint32(42).string(e.bondDenom),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.Params;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.unbondingTime=a.google.protobuf.Duration.decode(e,e.uint32());break;case 2:n.maxValidators=e.uint32();break;case 3:n.maxEntries=e.uint32();break;case 4:n.historicalEntries=e.uint32();break;case 5:n.bondDenom=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.Params)return e;var t=new a.cosmos.staking.v1beta1.Params;if(null!=e.unbondingTime){if("object"!=typeof e.unbondingTime)throw TypeError(".cosmos.staking.v1beta1.Params.unbondingTime: object expected");t.unbondingTime=a.google.protobuf.Duration.fromObject(e.unbondingTime)}return null!=e.maxValidators&&(t.maxValidators=e.maxValidators>>>0),null!=e.maxEntries&&(t.maxEntries=e.maxEntries>>>0),null!=e.historicalEntries&&(t.historicalEntries=e.historicalEntries>>>0),null!=e.bondDenom&&(t.bondDenom=String(e.bondDenom)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.unbondingTime=null,r.maxValidators=0,r.maxEntries=0,r.historicalEntries=0,r.bondDenom=""),null!=e.unbondingTime&&e.hasOwnProperty("unbondingTime")&&(r.unbondingTime=a.google.protobuf.Duration.toObject(e.unbondingTime,t)),null!=e.maxValidators&&e.hasOwnProperty("maxValidators")&&(r.maxValidators=e.maxValidators),null!=e.maxEntries&&e.hasOwnProperty("maxEntries")&&(r.maxEntries=e.maxEntries),null!=e.historicalEntries&&e.hasOwnProperty("historicalEntries")&&(r.historicalEntries=e.historicalEntries),null!=e.bondDenom&&e.hasOwnProperty("bondDenom")&&(r.bondDenom=e.bondDenom),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DelegationResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegation=null,e.prototype.balance=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.delegation&&Object.hasOwnProperty.call(e,"delegation")&&a.cosmos.staking.v1beta1.Delegation.encode(e.delegation,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&a.cosmos.base.v1beta1.Coin.encode(e.balance,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.DelegationResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegation=a.cosmos.staking.v1beta1.Delegation.decode(e,e.uint32());break;case 2:n.balance=a.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.DelegationResponse)return e;var t=new a.cosmos.staking.v1beta1.DelegationResponse;if(null!=e.delegation){if("object"!=typeof e.delegation)throw TypeError(".cosmos.staking.v1beta1.DelegationResponse.delegation: object expected");t.delegation=a.cosmos.staking.v1beta1.Delegation.fromObject(e.delegation)}if(null!=e.balance){if("object"!=typeof e.balance)throw TypeError(".cosmos.staking.v1beta1.DelegationResponse.balance: object expected");t.balance=a.cosmos.base.v1beta1.Coin.fromObject(e.balance)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.delegation=null,r.balance=null),null!=e.delegation&&e.hasOwnProperty("delegation")&&(r.delegation=a.cosmos.staking.v1beta1.Delegation.toObject(e.delegation,t)),null!=e.balance&&e.hasOwnProperty("balance")&&(r.balance=a.cosmos.base.v1beta1.Coin.toObject(e.balance,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.RedelegationEntryResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.redelegationEntry=null,e.prototype.balance="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.redelegationEntry&&Object.hasOwnProperty.call(e,"redelegationEntry")&&a.cosmos.staking.v1beta1.RedelegationEntry.encode(e.redelegationEntry,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(34).string(e.balance),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.RedelegationEntryResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.redelegationEntry=a.cosmos.staking.v1beta1.RedelegationEntry.decode(e,e.uint32());break;case 4:n.balance=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.RedelegationEntryResponse)return e;var t=new a.cosmos.staking.v1beta1.RedelegationEntryResponse;if(null!=e.redelegationEntry){if("object"!=typeof e.redelegationEntry)throw TypeError(".cosmos.staking.v1beta1.RedelegationEntryResponse.redelegationEntry: object expected");t.redelegationEntry=a.cosmos.staking.v1beta1.RedelegationEntry.fromObject(e.redelegationEntry)}return null!=e.balance&&(t.balance=String(e.balance)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.redelegationEntry=null,r.balance=""),null!=e.redelegationEntry&&e.hasOwnProperty("redelegationEntry")&&(r.redelegationEntry=a.cosmos.staking.v1beta1.RedelegationEntry.toObject(e.redelegationEntry,t)),null!=e.balance&&e.hasOwnProperty("balance")&&(r.balance=e.balance),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.RedelegationResponse=function(){function e(e){if(this.entries=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.redelegation=null,e.prototype.entries=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.redelegation&&Object.hasOwnProperty.call(e,"redelegation")&&a.cosmos.staking.v1beta1.Redelegation.encode(e.redelegation,t.uint32(10).fork()).ldelim(),null!=e.entries&&e.entries.length)for(var r=0;r<e.entries.length;++r)a.cosmos.staking.v1beta1.RedelegationEntryResponse.encode(e.entries[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.RedelegationResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.redelegation=a.cosmos.staking.v1beta1.Redelegation.decode(e,e.uint32());break;case 2:n.entries&&n.entries.length||(n.entries=[]),n.entries.push(a.cosmos.staking.v1beta1.RedelegationEntryResponse.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.RedelegationResponse)return e;var t=new a.cosmos.staking.v1beta1.RedelegationResponse;if(null!=e.redelegation){if("object"!=typeof e.redelegation)throw TypeError(".cosmos.staking.v1beta1.RedelegationResponse.redelegation: object expected");t.redelegation=a.cosmos.staking.v1beta1.Redelegation.fromObject(e.redelegation)}if(e.entries){if(!Array.isArray(e.entries))throw TypeError(".cosmos.staking.v1beta1.RedelegationResponse.entries: array expected");t.entries=[];for(var r=0;r<e.entries.length;++r){if("object"!=typeof e.entries[r])throw TypeError(".cosmos.staking.v1beta1.RedelegationResponse.entries: object expected");t.entries[r]=a.cosmos.staking.v1beta1.RedelegationEntryResponse.fromObject(e.entries[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.entries=[]),t.defaults&&(r.redelegation=null),null!=e.redelegation&&e.hasOwnProperty("redelegation")&&(r.redelegation=a.cosmos.staking.v1beta1.Redelegation.toObject(e.redelegation,t)),e.entries&&e.entries.length){r.entries=[];for(var n=0;n<e.entries.length;++n)r.entries[n]=a.cosmos.staking.v1beta1.RedelegationEntryResponse.toObject(e.entries[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Pool=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.notBondedTokens="",e.prototype.bondedTokens="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.notBondedTokens&&Object.hasOwnProperty.call(e,"notBondedTokens")&&t.uint32(10).string(e.notBondedTokens),null!=e.bondedTokens&&Object.hasOwnProperty.call(e,"bondedTokens")&&t.uint32(18).string(e.bondedTokens),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.Pool;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.notBondedTokens=e.string();break;case 2:n.bondedTokens=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.Pool)return e;var t=new a.cosmos.staking.v1beta1.Pool;return null!=e.notBondedTokens&&(t.notBondedTokens=String(e.notBondedTokens)),null!=e.bondedTokens&&(t.bondedTokens=String(e.bondedTokens)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.notBondedTokens="",r.bondedTokens=""),null!=e.notBondedTokens&&e.hasOwnProperty("notBondedTokens")&&(r.notBondedTokens=e.notBondedTokens),null!=e.bondedTokens&&e.hasOwnProperty("bondedTokens")&&(r.bondedTokens=e.bondedTokens),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Msg=function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createValidator=function e(t,r){return this.rpcCall(e,a.cosmos.staking.v1beta1.MsgCreateValidator,a.cosmos.staking.v1beta1.MsgCreateValidatorResponse,t,r)},"name",{value:"CreateValidator"}),Object.defineProperty(e.prototype.editValidator=function e(t,r){return this.rpcCall(e,a.cosmos.staking.v1beta1.MsgEditValidator,a.cosmos.staking.v1beta1.MsgEditValidatorResponse,t,r)},"name",{value:"EditValidator"}),Object.defineProperty(e.prototype.delegate=function e(t,r){return this.rpcCall(e,a.cosmos.staking.v1beta1.MsgDelegate,a.cosmos.staking.v1beta1.MsgDelegateResponse,t,r)},"name",{value:"Delegate"}),Object.defineProperty(e.prototype.beginRedelegate=function e(t,r){return this.rpcCall(e,a.cosmos.staking.v1beta1.MsgBeginRedelegate,a.cosmos.staking.v1beta1.MsgBeginRedelegateResponse,t,r)},"name",{value:"BeginRedelegate"}),Object.defineProperty(e.prototype.undelegate=function e(t,r){return this.rpcCall(e,a.cosmos.staking.v1beta1.MsgUndelegate,a.cosmos.staking.v1beta1.MsgUndelegateResponse,t,r)},"name",{value:"Undelegate"}),e}(),e.MsgCreateValidator=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.description=null,e.prototype.commission=null,e.prototype.minSelfDelegation="",e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.pubkey=null,e.prototype.value=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&a.cosmos.staking.v1beta1.Description.encode(e.description,t.uint32(10).fork()).ldelim(),null!=e.commission&&Object.hasOwnProperty.call(e,"commission")&&a.cosmos.staking.v1beta1.CommissionRates.encode(e.commission,t.uint32(18).fork()).ldelim(),null!=e.minSelfDelegation&&Object.hasOwnProperty.call(e,"minSelfDelegation")&&t.uint32(26).string(e.minSelfDelegation),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(34).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(42).string(e.validatorAddress),null!=e.pubkey&&Object.hasOwnProperty.call(e,"pubkey")&&a.google.protobuf.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&a.cosmos.base.v1beta1.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgCreateValidator;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.description=a.cosmos.staking.v1beta1.Description.decode(e,e.uint32());break;case 2:n.commission=a.cosmos.staking.v1beta1.CommissionRates.decode(e,e.uint32());break;case 3:n.minSelfDelegation=e.string();break;case 4:n.delegatorAddress=e.string();break;case 5:n.validatorAddress=e.string();break;case 6:n.pubkey=a.google.protobuf.Any.decode(e,e.uint32());break;case 7:n.value=a.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.MsgCreateValidator)return e;var t=new a.cosmos.staking.v1beta1.MsgCreateValidator;if(null!=e.description){if("object"!=typeof e.description)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.description: object expected");t.description=a.cosmos.staking.v1beta1.Description.fromObject(e.description)}if(null!=e.commission){if("object"!=typeof e.commission)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.commission: object expected");t.commission=a.cosmos.staking.v1beta1.CommissionRates.fromObject(e.commission)}if(null!=e.minSelfDelegation&&(t.minSelfDelegation=String(e.minSelfDelegation)),null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.pubkey){if("object"!=typeof e.pubkey)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.pubkey: object expected");t.pubkey=a.google.protobuf.Any.fromObject(e.pubkey)}if(null!=e.value){if("object"!=typeof e.value)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.value: object expected");t.value=a.cosmos.base.v1beta1.Coin.fromObject(e.value)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.description=null,r.commission=null,r.minSelfDelegation="",r.delegatorAddress="",r.validatorAddress="",r.pubkey=null,r.value=null),null!=e.description&&e.hasOwnProperty("description")&&(r.description=a.cosmos.staking.v1beta1.Description.toObject(e.description,t)),null!=e.commission&&e.hasOwnProperty("commission")&&(r.commission=a.cosmos.staking.v1beta1.CommissionRates.toObject(e.commission,t)),null!=e.minSelfDelegation&&e.hasOwnProperty("minSelfDelegation")&&(r.minSelfDelegation=e.minSelfDelegation),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=e.validatorAddress),null!=e.pubkey&&e.hasOwnProperty("pubkey")&&(r.pubkey=a.google.protobuf.Any.toObject(e.pubkey,t)),null!=e.value&&e.hasOwnProperty("value")&&(r.value=a.cosmos.base.v1beta1.Coin.toObject(e.value,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgCreateValidatorResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgCreateValidatorResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.staking.v1beta1.MsgCreateValidatorResponse?e:new a.cosmos.staking.v1beta1.MsgCreateValidatorResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgEditValidator=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.description=null,e.prototype.validatorAddress="",e.prototype.commissionRate="",e.prototype.minSelfDelegation="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&a.cosmos.staking.v1beta1.Description.encode(e.description,t.uint32(10).fork()).ldelim(),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.commissionRate&&Object.hasOwnProperty.call(e,"commissionRate")&&t.uint32(26).string(e.commissionRate),null!=e.minSelfDelegation&&Object.hasOwnProperty.call(e,"minSelfDelegation")&&t.uint32(34).string(e.minSelfDelegation),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgEditValidator;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.description=a.cosmos.staking.v1beta1.Description.decode(e,e.uint32());break;case 2:n.validatorAddress=e.string();break;case 3:n.commissionRate=e.string();break;case 4:n.minSelfDelegation=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.MsgEditValidator)return e;var t=new a.cosmos.staking.v1beta1.MsgEditValidator;if(null!=e.description){if("object"!=typeof e.description)throw TypeError(".cosmos.staking.v1beta1.MsgEditValidator.description: object expected");t.description=a.cosmos.staking.v1beta1.Description.fromObject(e.description)}return null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.commissionRate&&(t.commissionRate=String(e.commissionRate)),null!=e.minSelfDelegation&&(t.minSelfDelegation=String(e.minSelfDelegation)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.description=null,r.validatorAddress="",r.commissionRate="",r.minSelfDelegation=""),null!=e.description&&e.hasOwnProperty("description")&&(r.description=a.cosmos.staking.v1beta1.Description.toObject(e.description,t)),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=e.validatorAddress),null!=e.commissionRate&&e.hasOwnProperty("commissionRate")&&(r.commissionRate=e.commissionRate),null!=e.minSelfDelegation&&e.hasOwnProperty("minSelfDelegation")&&(r.minSelfDelegation=e.minSelfDelegation),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgEditValidatorResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgEditValidatorResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.staking.v1beta1.MsgEditValidatorResponse?e:new a.cosmos.staking.v1beta1.MsgEditValidatorResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgDelegate=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&a.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgDelegate;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorAddress=e.string();break;case 3:n.amount=a.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.MsgDelegate)return e;var t=new a.cosmos.staking.v1beta1.MsgDelegate;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.staking.v1beta1.MsgDelegate.amount: object expected");t.amount=a.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.delegatorAddress="",r.validatorAddress="",r.amount=null),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=e.validatorAddress),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=a.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgDelegateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgDelegateResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.cosmos.staking.v1beta1.MsgDelegateResponse?e:new a.cosmos.staking.v1beta1.MsgDelegateResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgBeginRedelegate=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorSrcAddress="",e.prototype.validatorDstAddress="",e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorSrcAddress&&Object.hasOwnProperty.call(e,"validatorSrcAddress")&&t.uint32(18).string(e.validatorSrcAddress),null!=e.validatorDstAddress&&Object.hasOwnProperty.call(e,"validatorDstAddress")&&t.uint32(26).string(e.validatorDstAddress),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&a.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgBeginRedelegate;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorSrcAddress=e.string();break;case 3:n.validatorDstAddress=e.string();break;case 4:n.amount=a.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.MsgBeginRedelegate)return e;var t=new a.cosmos.staking.v1beta1.MsgBeginRedelegate;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorSrcAddress&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),null!=e.validatorDstAddress&&(t.validatorDstAddress=String(e.validatorDstAddress)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.staking.v1beta1.MsgBeginRedelegate.amount: object expected");t.amount=a.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.delegatorAddress="",r.validatorSrcAddress="",r.validatorDstAddress="",r.amount=null),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorSrcAddress&&e.hasOwnProperty("validatorSrcAddress")&&(r.validatorSrcAddress=e.validatorSrcAddress),null!=e.validatorDstAddress&&e.hasOwnProperty("validatorDstAddress")&&(r.validatorDstAddress=e.validatorDstAddress),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=a.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgBeginRedelegateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.completionTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&a.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgBeginRedelegateResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.completionTime=a.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.MsgBeginRedelegateResponse)return e;var t=new a.cosmos.staking.v1beta1.MsgBeginRedelegateResponse;if(null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.MsgBeginRedelegateResponse.completionTime: object expected");t.completionTime=a.google.protobuf.Timestamp.fromObject(e.completionTime)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.completionTime=null),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(r.completionTime=a.google.protobuf.Timestamp.toObject(e.completionTime,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgUndelegate=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&a.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgUndelegate;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.delegatorAddress=e.string();break;case 2:n.validatorAddress=e.string();break;case 3:n.amount=a.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.MsgUndelegate)return e;var t=new a.cosmos.staking.v1beta1.MsgUndelegate;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.staking.v1beta1.MsgUndelegate.amount: object expected");t.amount=a.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.delegatorAddress="",r.validatorAddress="",r.amount=null),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(r.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=e.validatorAddress),null!=e.amount&&e.hasOwnProperty("amount")&&(r.amount=a.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgUndelegateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.completionTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&a.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.staking.v1beta1.MsgUndelegateResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.completionTime=a.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.staking.v1beta1.MsgUndelegateResponse)return e;var t=new a.cosmos.staking.v1beta1.MsgUndelegateResponse;if(null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.MsgUndelegateResponse.completionTime: object expected");t.completionTime=a.google.protobuf.Timestamp.fromObject(e.completionTime)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.completionTime=null),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(r.completionTime=a.google.protobuf.Timestamp.toObject(e.completionTime,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.tx=function(){const e={};return e.signing=function(){const e={};return e.v1beta1=function(){const e={};return e.SignMode=function(){const e={},t=Object.create(e);return t[e[0]="SIGN_MODE_UNSPECIFIED"]=0,t[e[1]="SIGN_MODE_DIRECT"]=1,t[e[2]="SIGN_MODE_TEXTUAL"]=2,t[e[127]="SIGN_MODE_LEGACY_AMINO_JSON"]=127,t}(),e.SignatureDescriptors=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.signatures=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.signatures&&e.signatures.length)for(var r=0;r<e.signatures.length;++r)a.cosmos.tx.signing.v1beta1.SignatureDescriptor.encode(e.signatures[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.signing.v1beta1.SignatureDescriptors;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.signatures&&n.signatures.length||(n.signatures=[]),n.signatures.push(a.cosmos.tx.signing.v1beta1.SignatureDescriptor.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.signing.v1beta1.SignatureDescriptors)return e;var t=new a.cosmos.tx.signing.v1beta1.SignatureDescriptors;if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptors.signatures: array expected");t.signatures=[];for(var r=0;r<e.signatures.length;++r){if("object"!=typeof e.signatures[r])throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptors.signatures: object expected");t.signatures[r]=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.fromObject(e.signatures[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.signatures=[]),e.signatures&&e.signatures.length){r.signatures=[];for(var n=0;n<e.signatures.length;++n)r.signatures[n]=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.toObject(e.signatures[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.SignatureDescriptor=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.publicKey=null,e.prototype.data=null,e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.publicKey&&Object.hasOwnProperty.call(e,"publicKey")&&a.google.protobuf.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.publicKey=a.google.protobuf.Any.decode(e,e.uint32());break;case 2:n.data=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.decode(e,e.uint32());break;case 3:n.sequence=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.signing.v1beta1.SignatureDescriptor)return e;var t=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor;if(null!=e.publicKey){if("object"!=typeof e.publicKey)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.publicKey: object expected");t.publicKey=a.google.protobuf.Any.fromObject(e.publicKey)}if(null!=e.data){if("object"!=typeof e.data)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.data: object expected");t.data=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.fromObject(e.data)}return null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.publicKey=null,r.data=null,s.Long){var n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0;return null!=e.publicKey&&e.hasOwnProperty("publicKey")&&(r.publicKey=a.google.protobuf.Any.toObject(e.publicKey,t)),null!=e.data&&e.hasOwnProperty("data")&&(r.data=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.toObject(e.data,t)),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.Data=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.single=null,e.prototype.multi=null,Object.defineProperty(e.prototype,"sum",{get:s.oneOfGetter(t=["single","multi"]),set:s.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.single&&Object.hasOwnProperty.call(e,"single")&&a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.encode(e.single,t.uint32(10).fork()).ldelim(),null!=e.multi&&Object.hasOwnProperty.call(e,"multi")&&a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.single=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.decode(e,e.uint32());break;case 2:n.multi=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data)return e;var t=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data;if(null!=e.single){if("object"!=typeof e.single)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.single: object expected");t.single=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.fromObject(e.single)}if(null!=e.multi){if("object"!=typeof e.multi)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.multi: object expected");t.multi=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.fromObject(e.multi)}return t},e.toObject=function(e,t){t||(t={});var r={};return null!=e.single&&e.hasOwnProperty("single")&&(r.single=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.toObject(e.single,t),t.oneofs&&(r.sum="single")),null!=e.multi&&e.hasOwnProperty("multi")&&(r.multi=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.toObject(e.multi,t),t.oneofs&&(r.sum="multi")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.Single=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.mode=0,e.prototype.signature=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&t.uint32(8).int32(e.mode),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.mode=e.int32();break;case 2:n.signature=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single)return e;var t=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single;switch(e.mode){case"SIGN_MODE_UNSPECIFIED":case 0:t.mode=0;break;case"SIGN_MODE_DIRECT":case 1:t.mode=1;break;case"SIGN_MODE_TEXTUAL":case 2:t.mode=2;break;case"SIGN_MODE_LEGACY_AMINO_JSON":case 127:t.mode=127}return null!=e.signature&&("string"==typeof e.signature?s.base64.decode(e.signature,t.signature=s.newBuffer(s.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.mode=t.enums===String?"SIGN_MODE_UNSPECIFIED":0,t.bytes===String?r.signature="":(r.signature=[],t.bytes!==Array&&(r.signature=s.newBuffer(r.signature)))),null!=e.mode&&e.hasOwnProperty("mode")&&(r.mode=t.enums===String?a.cosmos.tx.signing.v1beta1.SignMode[e.mode]:e.mode),null!=e.signature&&e.hasOwnProperty("signature")&&(r.signature=t.bytes===String?s.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Multi=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.bitarray=null,e.prototype.signatures=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.bitarray&&Object.hasOwnProperty.call(e,"bitarray")&&a.cosmos.crypto.multisig.v1beta1.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim(),null!=e.signatures&&e.signatures.length)for(var r=0;r<e.signatures.length;++r)a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.encode(e.signatures[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.bitarray=a.cosmos.crypto.multisig.v1beta1.CompactBitArray.decode(e,e.uint32());break;case 2:n.signatures&&n.signatures.length||(n.signatures=[]),n.signatures.push(a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi)return e;var t=new a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi;if(null!=e.bitarray){if("object"!=typeof e.bitarray)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.bitarray: object expected");t.bitarray=a.cosmos.crypto.multisig.v1beta1.CompactBitArray.fromObject(e.bitarray)}if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.signatures: array expected");t.signatures=[];for(var r=0;r<e.signatures.length;++r){if("object"!=typeof e.signatures[r])throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.signatures: object expected");t.signatures[r]=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.fromObject(e.signatures[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.signatures=[]),t.defaults&&(r.bitarray=null),null!=e.bitarray&&e.hasOwnProperty("bitarray")&&(r.bitarray=a.cosmos.crypto.multisig.v1beta1.CompactBitArray.toObject(e.bitarray,t)),e.signatures&&e.signatures.length){r.signatures=[];for(var n=0;n<e.signatures.length;++n)r.signatures[n]=a.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.toObject(e.signatures[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e}(),e}(),e.v1beta1=function(){const e={};return e.Tx=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.body=null,e.prototype.authInfo=null,e.prototype.signatures=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&a.cosmos.tx.v1beta1.TxBody.encode(e.body,t.uint32(10).fork()).ldelim(),null!=e.authInfo&&Object.hasOwnProperty.call(e,"authInfo")&&a.cosmos.tx.v1beta1.AuthInfo.encode(e.authInfo,t.uint32(18).fork()).ldelim(),null!=e.signatures&&e.signatures.length)for(var r=0;r<e.signatures.length;++r)t.uint32(26).bytes(e.signatures[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.Tx;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.body=a.cosmos.tx.v1beta1.TxBody.decode(e,e.uint32());break;case 2:n.authInfo=a.cosmos.tx.v1beta1.AuthInfo.decode(e,e.uint32());break;case 3:n.signatures&&n.signatures.length||(n.signatures=[]),n.signatures.push(e.bytes());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.Tx)return e;var t=new a.cosmos.tx.v1beta1.Tx;if(null!=e.body){if("object"!=typeof e.body)throw TypeError(".cosmos.tx.v1beta1.Tx.body: object expected");t.body=a.cosmos.tx.v1beta1.TxBody.fromObject(e.body)}if(null!=e.authInfo){if("object"!=typeof e.authInfo)throw TypeError(".cosmos.tx.v1beta1.Tx.authInfo: object expected");t.authInfo=a.cosmos.tx.v1beta1.AuthInfo.fromObject(e.authInfo)}if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.v1beta1.Tx.signatures: array expected");t.signatures=[];for(var r=0;r<e.signatures.length;++r)"string"==typeof e.signatures[r]?s.base64.decode(e.signatures[r],t.signatures[r]=s.newBuffer(s.base64.length(e.signatures[r])),0):e.signatures[r].length&&(t.signatures[r]=e.signatures[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.signatures=[]),t.defaults&&(r.body=null,r.authInfo=null),null!=e.body&&e.hasOwnProperty("body")&&(r.body=a.cosmos.tx.v1beta1.TxBody.toObject(e.body,t)),null!=e.authInfo&&e.hasOwnProperty("authInfo")&&(r.authInfo=a.cosmos.tx.v1beta1.AuthInfo.toObject(e.authInfo,t)),e.signatures&&e.signatures.length){r.signatures=[];for(var n=0;n<e.signatures.length;++n)r.signatures[n]=t.bytes===String?s.base64.encode(e.signatures[n],0,e.signatures[n].length):t.bytes===Array?Array.prototype.slice.call(e.signatures[n]):e.signatures[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.TxRaw=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.bodyBytes=s.newBuffer([]),e.prototype.authInfoBytes=s.newBuffer([]),e.prototype.signatures=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(10).bytes(e.bodyBytes),null!=e.authInfoBytes&&Object.hasOwnProperty.call(e,"authInfoBytes")&&t.uint32(18).bytes(e.authInfoBytes),null!=e.signatures&&e.signatures.length)for(var r=0;r<e.signatures.length;++r)t.uint32(26).bytes(e.signatures[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.TxRaw;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.bodyBytes=e.bytes();break;case 2:n.authInfoBytes=e.bytes();break;case 3:n.signatures&&n.signatures.length||(n.signatures=[]),n.signatures.push(e.bytes());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.TxRaw)return e;var t=new a.cosmos.tx.v1beta1.TxRaw;if(null!=e.bodyBytes&&("string"==typeof e.bodyBytes?s.base64.decode(e.bodyBytes,t.bodyBytes=s.newBuffer(s.base64.length(e.bodyBytes)),0):e.bodyBytes.length&&(t.bodyBytes=e.bodyBytes)),null!=e.authInfoBytes&&("string"==typeof e.authInfoBytes?s.base64.decode(e.authInfoBytes,t.authInfoBytes=s.newBuffer(s.base64.length(e.authInfoBytes)),0):e.authInfoBytes.length&&(t.authInfoBytes=e.authInfoBytes)),e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.v1beta1.TxRaw.signatures: array expected");t.signatures=[];for(var r=0;r<e.signatures.length;++r)"string"==typeof e.signatures[r]?s.base64.decode(e.signatures[r],t.signatures[r]=s.newBuffer(s.base64.length(e.signatures[r])),0):e.signatures[r].length&&(t.signatures[r]=e.signatures[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.signatures=[]),t.defaults&&(t.bytes===String?r.bodyBytes="":(r.bodyBytes=[],t.bytes!==Array&&(r.bodyBytes=s.newBuffer(r.bodyBytes))),t.bytes===String?r.authInfoBytes="":(r.authInfoBytes=[],t.bytes!==Array&&(r.authInfoBytes=s.newBuffer(r.authInfoBytes)))),null!=e.bodyBytes&&e.hasOwnProperty("bodyBytes")&&(r.bodyBytes=t.bytes===String?s.base64.encode(e.bodyBytes,0,e.bodyBytes.length):t.bytes===Array?Array.prototype.slice.call(e.bodyBytes):e.bodyBytes),null!=e.authInfoBytes&&e.hasOwnProperty("authInfoBytes")&&(r.authInfoBytes=t.bytes===String?s.base64.encode(e.authInfoBytes,0,e.authInfoBytes.length):t.bytes===Array?Array.prototype.slice.call(e.authInfoBytes):e.authInfoBytes),e.signatures&&e.signatures.length){r.signatures=[];for(var n=0;n<e.signatures.length;++n)r.signatures[n]=t.bytes===String?s.base64.encode(e.signatures[n],0,e.signatures[n].length):t.bytes===Array?Array.prototype.slice.call(e.signatures[n]):e.signatures[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.SignDoc=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.bodyBytes=s.newBuffer([]),e.prototype.authInfoBytes=s.newBuffer([]),e.prototype.chainId="",e.prototype.accountNumber=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(10).bytes(e.bodyBytes),null!=e.authInfoBytes&&Object.hasOwnProperty.call(e,"authInfoBytes")&&t.uint32(18).bytes(e.authInfoBytes),null!=e.chainId&&Object.hasOwnProperty.call(e,"chainId")&&t.uint32(26).string(e.chainId),null!=e.accountNumber&&Object.hasOwnProperty.call(e,"accountNumber")&&t.uint32(32).uint64(e.accountNumber),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.SignDoc;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.bodyBytes=e.bytes();break;case 2:n.authInfoBytes=e.bytes();break;case 3:n.chainId=e.string();break;case 4:n.accountNumber=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.SignDoc)return e;var t=new a.cosmos.tx.v1beta1.SignDoc;return null!=e.bodyBytes&&("string"==typeof e.bodyBytes?s.base64.decode(e.bodyBytes,t.bodyBytes=s.newBuffer(s.base64.length(e.bodyBytes)),0):e.bodyBytes.length&&(t.bodyBytes=e.bodyBytes)),null!=e.authInfoBytes&&("string"==typeof e.authInfoBytes?s.base64.decode(e.authInfoBytes,t.authInfoBytes=s.newBuffer(s.base64.length(e.authInfoBytes)),0):e.authInfoBytes.length&&(t.authInfoBytes=e.authInfoBytes)),null!=e.chainId&&(t.chainId=String(e.chainId)),null!=e.accountNumber&&(s.Long?(t.accountNumber=s.Long.fromValue(e.accountNumber)).unsigned=!0:"string"==typeof e.accountNumber?t.accountNumber=parseInt(e.accountNumber,10):"number"==typeof e.accountNumber?t.accountNumber=e.accountNumber:"object"==typeof e.accountNumber&&(t.accountNumber=new s.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(t.bytes===String?r.bodyBytes="":(r.bodyBytes=[],t.bytes!==Array&&(r.bodyBytes=s.newBuffer(r.bodyBytes))),t.bytes===String?r.authInfoBytes="":(r.authInfoBytes=[],t.bytes!==Array&&(r.authInfoBytes=s.newBuffer(r.authInfoBytes))),r.chainId="",s.Long){var n=new s.Long(0,0,!0);r.accountNumber=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.accountNumber=t.longs===String?"0":0;return null!=e.bodyBytes&&e.hasOwnProperty("bodyBytes")&&(r.bodyBytes=t.bytes===String?s.base64.encode(e.bodyBytes,0,e.bodyBytes.length):t.bytes===Array?Array.prototype.slice.call(e.bodyBytes):e.bodyBytes),null!=e.authInfoBytes&&e.hasOwnProperty("authInfoBytes")&&(r.authInfoBytes=t.bytes===String?s.base64.encode(e.authInfoBytes,0,e.authInfoBytes.length):t.bytes===Array?Array.prototype.slice.call(e.authInfoBytes):e.authInfoBytes),null!=e.chainId&&e.hasOwnProperty("chainId")&&(r.chainId=e.chainId),null!=e.accountNumber&&e.hasOwnProperty("accountNumber")&&("number"==typeof e.accountNumber?r.accountNumber=t.longs===String?String(e.accountNumber):e.accountNumber:r.accountNumber=t.longs===String?s.Long.prototype.toString.call(e.accountNumber):t.longs===Number?new s.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0):e.accountNumber),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.TxBody=function(){function e(e){if(this.messages=[],this.extensionOptions=[],this.nonCriticalExtensionOptions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.messages=s.emptyArray,e.prototype.memo="",e.prototype.timeoutHeight=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.extensionOptions=s.emptyArray,e.prototype.nonCriticalExtensionOptions=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.messages&&e.messages.length)for(var r=0;r<e.messages.length;++r)a.google.protobuf.Any.encode(e.messages[r],t.uint32(10).fork()).ldelim();if(null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(18).string(e.memo),null!=e.timeoutHeight&&Object.hasOwnProperty.call(e,"timeoutHeight")&&t.uint32(24).uint64(e.timeoutHeight),null!=e.extensionOptions&&e.extensionOptions.length)for(r=0;r<e.extensionOptions.length;++r)a.google.protobuf.Any.encode(e.extensionOptions[r],t.uint32(8186).fork()).ldelim();if(null!=e.nonCriticalExtensionOptions&&e.nonCriticalExtensionOptions.length)for(r=0;r<e.nonCriticalExtensionOptions.length;++r)a.google.protobuf.Any.encode(e.nonCriticalExtensionOptions[r],t.uint32(16378).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.TxBody;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.messages&&n.messages.length||(n.messages=[]),n.messages.push(a.google.protobuf.Any.decode(e,e.uint32()));break;case 2:n.memo=e.string();break;case 3:n.timeoutHeight=e.uint64();break;case 1023:n.extensionOptions&&n.extensionOptions.length||(n.extensionOptions=[]),n.extensionOptions.push(a.google.protobuf.Any.decode(e,e.uint32()));break;case 2047:n.nonCriticalExtensionOptions&&n.nonCriticalExtensionOptions.length||(n.nonCriticalExtensionOptions=[]),n.nonCriticalExtensionOptions.push(a.google.protobuf.Any.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.TxBody)return e;var t=new a.cosmos.tx.v1beta1.TxBody;if(e.messages){if(!Array.isArray(e.messages))throw TypeError(".cosmos.tx.v1beta1.TxBody.messages: array expected");t.messages=[];for(var r=0;r<e.messages.length;++r){if("object"!=typeof e.messages[r])throw TypeError(".cosmos.tx.v1beta1.TxBody.messages: object expected");t.messages[r]=a.google.protobuf.Any.fromObject(e.messages[r])}}if(null!=e.memo&&(t.memo=String(e.memo)),null!=e.timeoutHeight&&(s.Long?(t.timeoutHeight=s.Long.fromValue(e.timeoutHeight)).unsigned=!0:"string"==typeof e.timeoutHeight?t.timeoutHeight=parseInt(e.timeoutHeight,10):"number"==typeof e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:"object"==typeof e.timeoutHeight&&(t.timeoutHeight=new s.LongBits(e.timeoutHeight.low>>>0,e.timeoutHeight.high>>>0).toNumber(!0))),e.extensionOptions){if(!Array.isArray(e.extensionOptions))throw TypeError(".cosmos.tx.v1beta1.TxBody.extensionOptions: array expected");t.extensionOptions=[];for(r=0;r<e.extensionOptions.length;++r){if("object"!=typeof e.extensionOptions[r])throw TypeError(".cosmos.tx.v1beta1.TxBody.extensionOptions: object expected");t.extensionOptions[r]=a.google.protobuf.Any.fromObject(e.extensionOptions[r])}}if(e.nonCriticalExtensionOptions){if(!Array.isArray(e.nonCriticalExtensionOptions))throw TypeError(".cosmos.tx.v1beta1.TxBody.nonCriticalExtensionOptions: array expected");t.nonCriticalExtensionOptions=[];for(r=0;r<e.nonCriticalExtensionOptions.length;++r){if("object"!=typeof e.nonCriticalExtensionOptions[r])throw TypeError(".cosmos.tx.v1beta1.TxBody.nonCriticalExtensionOptions: object expected");t.nonCriticalExtensionOptions[r]=a.google.protobuf.Any.fromObject(e.nonCriticalExtensionOptions[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.messages=[],r.extensionOptions=[],r.nonCriticalExtensionOptions=[]),t.defaults)if(r.memo="",s.Long){var n=new s.Long(0,0,!0);r.timeoutHeight=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timeoutHeight=t.longs===String?"0":0;if(e.messages&&e.messages.length){r.messages=[];for(var o=0;o<e.messages.length;++o)r.messages[o]=a.google.protobuf.Any.toObject(e.messages[o],t)}if(null!=e.memo&&e.hasOwnProperty("memo")&&(r.memo=e.memo),null!=e.timeoutHeight&&e.hasOwnProperty("timeoutHeight")&&("number"==typeof e.timeoutHeight?r.timeoutHeight=t.longs===String?String(e.timeoutHeight):e.timeoutHeight:r.timeoutHeight=t.longs===String?s.Long.prototype.toString.call(e.timeoutHeight):t.longs===Number?new s.LongBits(e.timeoutHeight.low>>>0,e.timeoutHeight.high>>>0).toNumber(!0):e.timeoutHeight),e.extensionOptions&&e.extensionOptions.length){r.extensionOptions=[];for(o=0;o<e.extensionOptions.length;++o)r.extensionOptions[o]=a.google.protobuf.Any.toObject(e.extensionOptions[o],t)}if(e.nonCriticalExtensionOptions&&e.nonCriticalExtensionOptions.length){r.nonCriticalExtensionOptions=[];for(o=0;o<e.nonCriticalExtensionOptions.length;++o)r.nonCriticalExtensionOptions[o]=a.google.protobuf.Any.toObject(e.nonCriticalExtensionOptions[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.AuthInfo=function(){function e(e){if(this.signerInfos=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.signerInfos=s.emptyArray,e.prototype.fee=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.signerInfos&&e.signerInfos.length)for(var r=0;r<e.signerInfos.length;++r)a.cosmos.tx.v1beta1.SignerInfo.encode(e.signerInfos[r],t.uint32(10).fork()).ldelim();return null!=e.fee&&Object.hasOwnProperty.call(e,"fee")&&a.cosmos.tx.v1beta1.Fee.encode(e.fee,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.AuthInfo;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.signerInfos&&n.signerInfos.length||(n.signerInfos=[]),n.signerInfos.push(a.cosmos.tx.v1beta1.SignerInfo.decode(e,e.uint32()));break;case 2:n.fee=a.cosmos.tx.v1beta1.Fee.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.AuthInfo)return e;var t=new a.cosmos.tx.v1beta1.AuthInfo;if(e.signerInfos){if(!Array.isArray(e.signerInfos))throw TypeError(".cosmos.tx.v1beta1.AuthInfo.signerInfos: array expected");t.signerInfos=[];for(var r=0;r<e.signerInfos.length;++r){if("object"!=typeof e.signerInfos[r])throw TypeError(".cosmos.tx.v1beta1.AuthInfo.signerInfos: object expected");t.signerInfos[r]=a.cosmos.tx.v1beta1.SignerInfo.fromObject(e.signerInfos[r])}}if(null!=e.fee){if("object"!=typeof e.fee)throw TypeError(".cosmos.tx.v1beta1.AuthInfo.fee: object expected");t.fee=a.cosmos.tx.v1beta1.Fee.fromObject(e.fee)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.signerInfos=[]),t.defaults&&(r.fee=null),e.signerInfos&&e.signerInfos.length){r.signerInfos=[];for(var n=0;n<e.signerInfos.length;++n)r.signerInfos[n]=a.cosmos.tx.v1beta1.SignerInfo.toObject(e.signerInfos[n],t)}return null!=e.fee&&e.hasOwnProperty("fee")&&(r.fee=a.cosmos.tx.v1beta1.Fee.toObject(e.fee,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.SignerInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.publicKey=null,e.prototype.modeInfo=null,e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.publicKey&&Object.hasOwnProperty.call(e,"publicKey")&&a.google.protobuf.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),null!=e.modeInfo&&Object.hasOwnProperty.call(e,"modeInfo")&&a.cosmos.tx.v1beta1.ModeInfo.encode(e.modeInfo,t.uint32(18).fork()).ldelim(),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.SignerInfo;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.publicKey=a.google.protobuf.Any.decode(e,e.uint32());break;case 2:n.modeInfo=a.cosmos.tx.v1beta1.ModeInfo.decode(e,e.uint32());break;case 3:n.sequence=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.SignerInfo)return e;var t=new a.cosmos.tx.v1beta1.SignerInfo;if(null!=e.publicKey){if("object"!=typeof e.publicKey)throw TypeError(".cosmos.tx.v1beta1.SignerInfo.publicKey: object expected");t.publicKey=a.google.protobuf.Any.fromObject(e.publicKey)}if(null!=e.modeInfo){if("object"!=typeof e.modeInfo)throw TypeError(".cosmos.tx.v1beta1.SignerInfo.modeInfo: object expected");t.modeInfo=a.cosmos.tx.v1beta1.ModeInfo.fromObject(e.modeInfo)}return null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.publicKey=null,r.modeInfo=null,s.Long){var n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0;return null!=e.publicKey&&e.hasOwnProperty("publicKey")&&(r.publicKey=a.google.protobuf.Any.toObject(e.publicKey,t)),null!=e.modeInfo&&e.hasOwnProperty("modeInfo")&&(r.modeInfo=a.cosmos.tx.v1beta1.ModeInfo.toObject(e.modeInfo,t)),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ModeInfo=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.single=null,e.prototype.multi=null,Object.defineProperty(e.prototype,"sum",{get:s.oneOfGetter(t=["single","multi"]),set:s.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.single&&Object.hasOwnProperty.call(e,"single")&&a.cosmos.tx.v1beta1.ModeInfo.Single.encode(e.single,t.uint32(10).fork()).ldelim(),null!=e.multi&&Object.hasOwnProperty.call(e,"multi")&&a.cosmos.tx.v1beta1.ModeInfo.Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.ModeInfo;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.single=a.cosmos.tx.v1beta1.ModeInfo.Single.decode(e,e.uint32());break;case 2:n.multi=a.cosmos.tx.v1beta1.ModeInfo.Multi.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.ModeInfo)return e;var t=new a.cosmos.tx.v1beta1.ModeInfo;if(null!=e.single){if("object"!=typeof e.single)throw TypeError(".cosmos.tx.v1beta1.ModeInfo.single: object expected");t.single=a.cosmos.tx.v1beta1.ModeInfo.Single.fromObject(e.single)}if(null!=e.multi){if("object"!=typeof e.multi)throw TypeError(".cosmos.tx.v1beta1.ModeInfo.multi: object expected");t.multi=a.cosmos.tx.v1beta1.ModeInfo.Multi.fromObject(e.multi)}return t},e.toObject=function(e,t){t||(t={});var r={};return null!=e.single&&e.hasOwnProperty("single")&&(r.single=a.cosmos.tx.v1beta1.ModeInfo.Single.toObject(e.single,t),t.oneofs&&(r.sum="single")),null!=e.multi&&e.hasOwnProperty("multi")&&(r.multi=a.cosmos.tx.v1beta1.ModeInfo.Multi.toObject(e.multi,t),t.oneofs&&(r.sum="multi")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.Single=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.mode=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&t.uint32(8).int32(e.mode),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.ModeInfo.Single;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.mode=e.int32();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.ModeInfo.Single)return e;var t=new a.cosmos.tx.v1beta1.ModeInfo.Single;switch(e.mode){case"SIGN_MODE_UNSPECIFIED":case 0:t.mode=0;break;case"SIGN_MODE_DIRECT":case 1:t.mode=1;break;case"SIGN_MODE_TEXTUAL":case 2:t.mode=2;break;case"SIGN_MODE_LEGACY_AMINO_JSON":case 127:t.mode=127}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.mode=t.enums===String?"SIGN_MODE_UNSPECIFIED":0),null!=e.mode&&e.hasOwnProperty("mode")&&(r.mode=t.enums===String?a.cosmos.tx.signing.v1beta1.SignMode[e.mode]:e.mode),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Multi=function(){function e(e){if(this.modeInfos=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.bitarray=null,e.prototype.modeInfos=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.bitarray&&Object.hasOwnProperty.call(e,"bitarray")&&a.cosmos.crypto.multisig.v1beta1.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim(),null!=e.modeInfos&&e.modeInfos.length)for(var r=0;r<e.modeInfos.length;++r)a.cosmos.tx.v1beta1.ModeInfo.encode(e.modeInfos[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.ModeInfo.Multi;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.bitarray=a.cosmos.crypto.multisig.v1beta1.CompactBitArray.decode(e,e.uint32());break;case 2:n.modeInfos&&n.modeInfos.length||(n.modeInfos=[]),n.modeInfos.push(a.cosmos.tx.v1beta1.ModeInfo.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.ModeInfo.Multi)return e;var t=new a.cosmos.tx.v1beta1.ModeInfo.Multi;if(null!=e.bitarray){if("object"!=typeof e.bitarray)throw TypeError(".cosmos.tx.v1beta1.ModeInfo.Multi.bitarray: object expected");t.bitarray=a.cosmos.crypto.multisig.v1beta1.CompactBitArray.fromObject(e.bitarray)}if(e.modeInfos){if(!Array.isArray(e.modeInfos))throw TypeError(".cosmos.tx.v1beta1.ModeInfo.Multi.modeInfos: array expected");t.modeInfos=[];for(var r=0;r<e.modeInfos.length;++r){if("object"!=typeof e.modeInfos[r])throw TypeError(".cosmos.tx.v1beta1.ModeInfo.Multi.modeInfos: object expected");t.modeInfos[r]=a.cosmos.tx.v1beta1.ModeInfo.fromObject(e.modeInfos[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.modeInfos=[]),t.defaults&&(r.bitarray=null),null!=e.bitarray&&e.hasOwnProperty("bitarray")&&(r.bitarray=a.cosmos.crypto.multisig.v1beta1.CompactBitArray.toObject(e.bitarray,t)),e.modeInfos&&e.modeInfos.length){r.modeInfos=[];for(var n=0;n<e.modeInfos.length;++n)r.modeInfos[n]=a.cosmos.tx.v1beta1.ModeInfo.toObject(e.modeInfos[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.Fee=function(){function e(e){if(this.amount=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.amount=s.emptyArray,e.prototype.gasLimit=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.payer="",e.prototype.granter="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.amount&&e.amount.length)for(var r=0;r<e.amount.length;++r)a.cosmos.base.v1beta1.Coin.encode(e.amount[r],t.uint32(10).fork()).ldelim();return null!=e.gasLimit&&Object.hasOwnProperty.call(e,"gasLimit")&&t.uint32(16).uint64(e.gasLimit),null!=e.payer&&Object.hasOwnProperty.call(e,"payer")&&t.uint32(26).string(e.payer),null!=e.granter&&Object.hasOwnProperty.call(e,"granter")&&t.uint32(34).string(e.granter),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.cosmos.tx.v1beta1.Fee;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.amount&&n.amount.length||(n.amount=[]),n.amount.push(a.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;case 2:n.gasLimit=e.uint64();break;case 3:n.payer=e.string();break;case 4:n.granter=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.cosmos.tx.v1beta1.Fee)return e;var t=new a.cosmos.tx.v1beta1.Fee;if(e.amount){if(!Array.isArray(e.amount))throw TypeError(".cosmos.tx.v1beta1.Fee.amount: array expected");t.amount=[];for(var r=0;r<e.amount.length;++r){if("object"!=typeof e.amount[r])throw TypeError(".cosmos.tx.v1beta1.Fee.amount: object expected");t.amount[r]=a.cosmos.base.v1beta1.Coin.fromObject(e.amount[r])}}return null!=e.gasLimit&&(s.Long?(t.gasLimit=s.Long.fromValue(e.gasLimit)).unsigned=!0:"string"==typeof e.gasLimit?t.gasLimit=parseInt(e.gasLimit,10):"number"==typeof e.gasLimit?t.gasLimit=e.gasLimit:"object"==typeof e.gasLimit&&(t.gasLimit=new s.LongBits(e.gasLimit.low>>>0,e.gasLimit.high>>>0).toNumber(!0))),null!=e.payer&&(t.payer=String(e.payer)),null!=e.granter&&(t.granter=String(e.granter)),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.amount=[]),t.defaults){if(s.Long){var n=new s.Long(0,0,!0);r.gasLimit=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.gasLimit=t.longs===String?"0":0;r.payer="",r.granter=""}if(e.amount&&e.amount.length){r.amount=[];for(var o=0;o<e.amount.length;++o)r.amount[o]=a.cosmos.base.v1beta1.Coin.toObject(e.amount[o],t)}return null!=e.gasLimit&&e.hasOwnProperty("gasLimit")&&("number"==typeof e.gasLimit?r.gasLimit=t.longs===String?String(e.gasLimit):e.gasLimit:r.gasLimit=t.longs===String?s.Long.prototype.toString.call(e.gasLimit):t.longs===Number?new s.LongBits(e.gasLimit.low>>>0,e.gasLimit.high>>>0).toNumber(!0):e.gasLimit),null!=e.payer&&e.hasOwnProperty("payer")&&(r.payer=e.payer),null!=e.granter&&e.hasOwnProperty("granter")&&(r.granter=e.granter),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e})(),t.google=a.google=(()=>{const e={};return e.protobuf=function(){const e={};return e.Any=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type_url="",e.prototype.value=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&t.uint32(10).string(e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).bytes(e.value),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.Any;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.type_url=e.string();break;case 2:n.value=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.Any)return e;var t=new a.google.protobuf.Any;return null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?s.base64.decode(e.value,t.value=s.newBuffer(s.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.type_url="",t.bytes===String?r.value="":(r.value=[],t.bytes!==Array&&(r.value=s.newBuffer(r.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(r.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.bytes===String?s.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.FileDescriptorSet=function(){function e(e){if(this.file=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.file=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.file&&e.file.length)for(var r=0;r<e.file.length;++r)a.google.protobuf.FileDescriptorProto.encode(e.file[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.FileDescriptorSet;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.file&&n.file.length||(n.file=[]),n.file.push(a.google.protobuf.FileDescriptorProto.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.FileDescriptorSet)return e;var t=new a.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");t.file=[];for(var r=0;r<e.file.length;++r){if("object"!=typeof e.file[r])throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");t.file[r]=a.google.protobuf.FileDescriptorProto.fromObject(e.file[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.file=[]),e.file&&e.file.length){r.file=[];for(var n=0;n<e.file.length;++n)r.file[n]=a.google.protobuf.FileDescriptorProto.toObject(e.file[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.FileDescriptorProto=function(){function e(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.package="",e.prototype.dependency=s.emptyArray,e.prototype.publicDependency=s.emptyArray,e.prototype.weakDependency=s.emptyArray,e.prototype.messageType=s.emptyArray,e.prototype.enumType=s.emptyArray,e.prototype.service=s.emptyArray,e.prototype.extension=s.emptyArray,e.prototype.options=null,e.prototype.sourceCodeInfo=null,e.prototype.syntax="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&t.uint32(18).string(e.package),null!=e.dependency&&e.dependency.length)for(var r=0;r<e.dependency.length;++r)t.uint32(26).string(e.dependency[r]);if(null!=e.messageType&&e.messageType.length)for(r=0;r<e.messageType.length;++r)a.google.protobuf.DescriptorProto.encode(e.messageType[r],t.uint32(34).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)a.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(42).fork()).ldelim();if(null!=e.service&&e.service.length)for(r=0;r<e.service.length;++r)a.google.protobuf.ServiceDescriptorProto.encode(e.service[r],t.uint32(50).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)a.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(58).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.FileOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&a.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo,t.uint32(74).fork()).ldelim(),null!=e.publicDependency&&e.publicDependency.length)for(r=0;r<e.publicDependency.length;++r)t.uint32(80).int32(e.publicDependency[r]);if(null!=e.weakDependency&&e.weakDependency.length)for(r=0;r<e.weakDependency.length;++r)t.uint32(88).int32(e.weakDependency[r]);return null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&t.uint32(98).string(e.syntax),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.FileDescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 2:n.package=e.string();break;case 3:n.dependency&&n.dependency.length||(n.dependency=[]),n.dependency.push(e.string());break;case 10:if(n.publicDependency&&n.publicDependency.length||(n.publicDependency=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.publicDependency.push(e.int32());else n.publicDependency.push(e.int32());break;case 11:if(n.weakDependency&&n.weakDependency.length||(n.weakDependency=[]),2==(7&i))for(s=e.uint32()+e.pos;e.pos<s;)n.weakDependency.push(e.int32());else n.weakDependency.push(e.int32());break;case 4:n.messageType&&n.messageType.length||(n.messageType=[]),n.messageType.push(a.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 5:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(a.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 6:n.service&&n.service.length||(n.service=[]),n.service.push(a.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32()));break;case 7:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(a.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 8:n.options=a.google.protobuf.FileOptions.decode(e,e.uint32());break;case 9:n.sourceCodeInfo=a.google.protobuf.SourceCodeInfo.decode(e,e.uint32());break;case 12:n.syntax=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.FileDescriptorProto)return e;var t=new a.google.protobuf.FileDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.package&&(t.package=String(e.package)),e.dependency){if(!Array.isArray(e.dependency))throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");t.dependency=[];for(var r=0;r<e.dependency.length;++r)t.dependency[r]=String(e.dependency[r])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");t.publicDependency=[];for(r=0;r<e.publicDependency.length;++r)t.publicDependency[r]=0|e.publicDependency[r]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");t.weakDependency=[];for(r=0;r<e.weakDependency.length;++r)t.weakDependency[r]=0|e.weakDependency[r]}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");t.messageType=[];for(r=0;r<e.messageType.length;++r){if("object"!=typeof e.messageType[r])throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");t.messageType[r]=a.google.protobuf.DescriptorProto.fromObject(e.messageType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");t.enumType=[];for(r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");t.enumType[r]=a.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");t.service=[];for(r=0;r<e.service.length;++r){if("object"!=typeof e.service[r])throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");t.service[r]=a.google.protobuf.ServiceDescriptorProto.fromObject(e.service[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");t.extension=[];for(r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");t.extension[r]=a.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");t.options=a.google.protobuf.FileOptions.fromObject(e.options)}if(null!=e.sourceCodeInfo){if("object"!=typeof e.sourceCodeInfo)throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");t.sourceCodeInfo=a.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo)}return null!=e.syntax&&(t.syntax=String(e.syntax)),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.dependency=[],r.messageType=[],r.enumType=[],r.service=[],r.extension=[],r.publicDependency=[],r.weakDependency=[]),t.defaults&&(r.name="",r.package="",r.options=null,r.sourceCodeInfo=null,r.syntax=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.package&&e.hasOwnProperty("package")&&(r.package=e.package),e.dependency&&e.dependency.length){r.dependency=[];for(var n=0;n<e.dependency.length;++n)r.dependency[n]=e.dependency[n]}if(e.messageType&&e.messageType.length){r.messageType=[];for(n=0;n<e.messageType.length;++n)r.messageType[n]=a.google.protobuf.DescriptorProto.toObject(e.messageType[n],t)}if(e.enumType&&e.enumType.length){r.enumType=[];for(n=0;n<e.enumType.length;++n)r.enumType[n]=a.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t)}if(e.service&&e.service.length){r.service=[];for(n=0;n<e.service.length;++n)r.service[n]=a.google.protobuf.ServiceDescriptorProto.toObject(e.service[n],t)}if(e.extension&&e.extension.length){r.extension=[];for(n=0;n<e.extension.length;++n)r.extension[n]=a.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t)}if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.FileOptions.toObject(e.options,t)),null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(r.sourceCodeInfo=a.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t)),e.publicDependency&&e.publicDependency.length){r.publicDependency=[];for(n=0;n<e.publicDependency.length;++n)r.publicDependency[n]=e.publicDependency[n]}if(e.weakDependency&&e.weakDependency.length){r.weakDependency=[];for(n=0;n<e.weakDependency.length;++n)r.weakDependency[n]=e.weakDependency[n]}return null!=e.syntax&&e.hasOwnProperty("syntax")&&(r.syntax=e.syntax),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DescriptorProto=function(){function e(e){if(this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.field=s.emptyArray,e.prototype.extension=s.emptyArray,e.prototype.nestedType=s.emptyArray,e.prototype.enumType=s.emptyArray,e.prototype.extensionRange=s.emptyArray,e.prototype.oneofDecl=s.emptyArray,e.prototype.options=null,e.prototype.reservedRange=s.emptyArray,e.prototype.reservedName=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.field&&e.field.length)for(var r=0;r<e.field.length;++r)a.google.protobuf.FieldDescriptorProto.encode(e.field[r],t.uint32(18).fork()).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(r=0;r<e.nestedType.length;++r)a.google.protobuf.DescriptorProto.encode(e.nestedType[r],t.uint32(26).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)a.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(34).fork()).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(r=0;r<e.extensionRange.length;++r)a.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[r],t.uint32(42).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)a.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(50).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.MessageOptions.encode(e.options,t.uint32(58).fork()).ldelim(),null!=e.oneofDecl&&e.oneofDecl.length)for(r=0;r<e.oneofDecl.length;++r)a.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[r],t.uint32(66).fork()).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)a.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[r],t.uint32(74).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(82).string(e.reservedName[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.DescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 2:n.field&&n.field.length||(n.field=[]),n.field.push(a.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(a.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:n.nestedType&&n.nestedType.length||(n.nestedType=[]),n.nestedType.push(a.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(a.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:n.extensionRange&&n.extensionRange.length||(n.extensionRange=[]),n.extensionRange.push(a.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:n.oneofDecl&&n.oneofDecl.length||(n.oneofDecl=[]),n.oneofDecl.push(a.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:n.options=a.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:n.reservedRange&&n.reservedRange.length||(n.reservedRange=[]),n.reservedRange.push(a.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:n.reservedName&&n.reservedName.length||(n.reservedName=[]),n.reservedName.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.DescriptorProto)return e;var t=new a.google.protobuf.DescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");t.field=[];for(var r=0;r<e.field.length;++r){if("object"!=typeof e.field[r])throw TypeError(".google.protobuf.DescriptorProto.field: object expected");t.field[r]=a.google.protobuf.FieldDescriptorProto.fromObject(e.field[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");t.extension=[];for(r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");t.extension[r]=a.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");t.nestedType=[];for(r=0;r<e.nestedType.length;++r){if("object"!=typeof e.nestedType[r])throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");t.nestedType[r]=a.google.protobuf.DescriptorProto.fromObject(e.nestedType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");t.enumType=[];for(r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");t.enumType[r]=a.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");t.extensionRange=[];for(r=0;r<e.extensionRange.length;++r){if("object"!=typeof e.extensionRange[r])throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");t.extensionRange[r]=a.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[r])}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");t.oneofDecl=[];for(r=0;r<e.oneofDecl.length;++r){if("object"!=typeof e.oneofDecl[r])throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");t.oneofDecl[r]=a.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.options: object expected");t.options=a.google.protobuf.MessageOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");t.reservedRange=[];for(r=0;r<e.reservedRange.length;++r){if("object"!=typeof e.reservedRange[r])throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");t.reservedRange[r]=a.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[r])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");t.reservedName=[];for(r=0;r<e.reservedName.length;++r)t.reservedName[r]=String(e.reservedName[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.field=[],r.nestedType=[],r.enumType=[],r.extensionRange=[],r.extension=[],r.oneofDecl=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.field&&e.field.length){r.field=[];for(var n=0;n<e.field.length;++n)r.field[n]=a.google.protobuf.FieldDescriptorProto.toObject(e.field[n],t)}if(e.nestedType&&e.nestedType.length){r.nestedType=[];for(n=0;n<e.nestedType.length;++n)r.nestedType[n]=a.google.protobuf.DescriptorProto.toObject(e.nestedType[n],t)}if(e.enumType&&e.enumType.length){r.enumType=[];for(n=0;n<e.enumType.length;++n)r.enumType[n]=a.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t)}if(e.extensionRange&&e.extensionRange.length){r.extensionRange=[];for(n=0;n<e.extensionRange.length;++n)r.extensionRange[n]=a.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[n],t)}if(e.extension&&e.extension.length){r.extension=[];for(n=0;n<e.extension.length;++n)r.extension[n]=a.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t)}if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.MessageOptions.toObject(e.options,t)),e.oneofDecl&&e.oneofDecl.length){r.oneofDecl=[];for(n=0;n<e.oneofDecl.length;++n)r.oneofDecl[n]=a.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[n],t)}if(e.reservedRange&&e.reservedRange.length){r.reservedRange=[];for(n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=a.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[n],t)}if(e.reservedName&&e.reservedName.length){r.reservedName=[];for(n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.ExtensionRange=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.start=0,e.prototype.end=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.DescriptorProto.ExtensionRange;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new a.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ReservedRange=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.start=0,e.prototype.end=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.DescriptorProto.ReservedRange;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.DescriptorProto.ReservedRange)return e;var t=new a.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.FieldDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.number=0,e.prototype.label=1,e.prototype.type=1,e.prototype.typeName="",e.prototype.extendee="",e.prototype.defaultValue="",e.prototype.oneofIndex=0,e.prototype.jsonName="",e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&t.uint32(18).string(e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(32).int32(e.label),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&t.uint32(50).string(e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&t.uint32(58).string(e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.FieldOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&t.uint32(72).int32(e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&t.uint32(82).string(e.jsonName),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.FieldDescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 3:n.number=e.int32();break;case 4:n.label=e.int32();break;case 5:n.type=e.int32();break;case 6:n.typeName=e.string();break;case 2:n.extendee=e.string();break;case 7:n.defaultValue=e.string();break;case 9:n.oneofIndex=e.int32();break;case 10:n.jsonName=e.string();break;case 8:n.options=a.google.protobuf.FieldOptions.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.FieldDescriptorProto)return e;var t=new a.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=a.google.protobuf.FieldOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.name="",r.extendee="",r.number=0,r.label=t.enums===String?"LABEL_OPTIONAL":1,r.type=t.enums===String?"TYPE_DOUBLE":1,r.typeName="",r.defaultValue="",r.options=null,r.oneofIndex=0,r.jsonName=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(r.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(r.label=t.enums===String?a.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?a.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(r.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(r.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(r.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(r.jsonName=e.jsonName),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.Type=function(){const e={},t=Object.create(e);return t[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t}(),e.Label=function(){const e={},t=Object.create(e);return t[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t}(),e}(),e.OneofDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.OneofDescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 2:n.options=a.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.OneofDescriptorProto)return e;var t=new a.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=a.google.protobuf.OneofOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.OneofOptions.toObject(e.options,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.EnumDescriptorProto=function(){function e(e){if(this.value=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.value=s.emptyArray,e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var r=0;r<e.value.length;++r)a.google.protobuf.EnumValueDescriptorProto.encode(e.value[r],t.uint32(18).fork()).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.EnumOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.EnumDescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 2:n.value&&n.value.length||(n.value=[]),n.value.push(a.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=a.google.protobuf.EnumOptions.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.EnumDescriptorProto)return e;var t=new a.google.protobuf.EnumDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");t.value=[];for(var r=0;r<e.value.length;++r){if("object"!=typeof e.value[r])throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");t.value[r]=a.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");t.options=a.google.protobuf.EnumOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.value=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.value&&e.value.length){r.value=[];for(var n=0;n<e.value.length;++n)r.value[n]=a.google.protobuf.EnumValueDescriptorProto.toObject(e.value[n],t)}return null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.EnumOptions.toObject(e.options,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.EnumValueDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.number=0,e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.EnumValueDescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 2:n.number=e.int32();break;case 3:n.options=a.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.EnumValueDescriptorProto)return e;var t=new a.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=a.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.name="",r.number=0,r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.EnumValueOptions.toObject(e.options,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ServiceDescriptorProto=function(){function e(e){if(this.method=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.method=s.emptyArray,e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var r=0;r<e.method.length;++r)a.google.protobuf.MethodDescriptorProto.encode(e.method[r],t.uint32(18).fork()).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.ServiceOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.ServiceDescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 2:n.method&&n.method.length||(n.method=[]),n.method.push(a.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=a.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.ServiceDescriptorProto)return e;var t=new a.google.protobuf.ServiceDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");t.method=[];for(var r=0;r<e.method.length;++r){if("object"!=typeof e.method[r])throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");t.method[r]=a.google.protobuf.MethodDescriptorProto.fromObject(e.method[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");t.options=a.google.protobuf.ServiceOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.method=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.method&&e.method.length){r.method=[];for(var n=0;n<e.method.length;++n)r.method[n]=a.google.protobuf.MethodDescriptorProto.toObject(e.method[n],t)}return null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.ServiceOptions.toObject(e.options,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MethodDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name="",e.prototype.inputType="",e.prototype.outputType="",e.prototype.options=null,e.prototype.clientStreaming=!1,e.prototype.serverStreaming=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&t.uint32(18).string(e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&t.uint32(26).string(e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&a.google.protobuf.MethodOptions.encode(e.options,t.uint32(34).fork()).ldelim(),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&t.uint32(40).bool(e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&t.uint32(48).bool(e.serverStreaming),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.MethodDescriptorProto;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.string();break;case 2:n.inputType=e.string();break;case 3:n.outputType=e.string();break;case 4:n.options=a.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:n.clientStreaming=e.bool();break;case 6:n.serverStreaming=e.bool();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.MethodDescriptorProto)return e;var t=new a.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=a.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.name="",r.inputType="",r.outputType="",r.options=null,r.clientStreaming=!1,r.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(r.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(r.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(r.options=a.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(r.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(r.serverStreaming=e.serverStreaming),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.FileOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.javaPackage="",e.prototype.javaOuterClassname="",e.prototype.javaMultipleFiles=!1,e.prototype.javaGenerateEqualsAndHash=!1,e.prototype.javaStringCheckUtf8=!1,e.prototype.optimizeFor=1,e.prototype.goPackage="",e.prototype.ccGenericServices=!1,e.prototype.javaGenericServices=!1,e.prototype.pyGenericServices=!1,e.prototype.deprecated=!1,e.prototype.ccEnableArenas=!1,e.prototype.objcClassPrefix="",e.prototype.csharpNamespace="",e.prototype.uninterpretedOption=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.FileOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.javaPackage=e.string();break;case 8:n.javaOuterClassname=e.string();break;case 10:n.javaMultipleFiles=e.bool();break;case 20:n.javaGenerateEqualsAndHash=e.bool();break;case 27:n.javaStringCheckUtf8=e.bool();break;case 9:n.optimizeFor=e.int32();break;case 11:n.goPackage=e.string();break;case 16:n.ccGenericServices=e.bool();break;case 17:n.javaGenericServices=e.bool();break;case 18:n.pyGenericServices=e.bool();break;case 23:n.deprecated=e.bool();break;case 31:n.ccEnableArenas=e.bool();break;case 36:n.objcClassPrefix=e.string();break;case 37:n.csharpNamespace=e.string();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.FileOptions)return e;var t=new a.google.protobuf.FileOptions;switch(null!=e.javaPackage&&(t.javaPackage=String(e.javaPackage)),null!=e.javaOuterClassname&&(t.javaOuterClassname=String(e.javaOuterClassname)),null!=e.javaMultipleFiles&&(t.javaMultipleFiles=Boolean(e.javaMultipleFiles)),null!=e.javaGenerateEqualsAndHash&&(t.javaGenerateEqualsAndHash=Boolean(e.javaGenerateEqualsAndHash)),null!=e.javaStringCheckUtf8&&(t.javaStringCheckUtf8=Boolean(e.javaStringCheckUtf8)),e.optimizeFor){case"SPEED":case 1:t.optimizeFor=1;break;case"CODE_SIZE":case 2:t.optimizeFor=2;break;case"LITE_RUNTIME":case 3:t.optimizeFor=3}if(null!=e.goPackage&&(t.goPackage=String(e.goPackage)),null!=e.ccGenericServices&&(t.ccGenericServices=Boolean(e.ccGenericServices)),null!=e.javaGenericServices&&(t.javaGenericServices=Boolean(e.javaGenericServices)),null!=e.pyGenericServices&&(t.pyGenericServices=Boolean(e.pyGenericServices)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.ccEnableArenas&&(t.ccEnableArenas=Boolean(e.ccEnableArenas)),null!=e.objcClassPrefix&&(t.objcClassPrefix=String(e.objcClassPrefix)),null!=e.csharpNamespace&&(t.csharpNamespace=String(e.csharpNamespace)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.javaPackage="",r.javaOuterClassname="",r.optimizeFor=t.enums===String?"SPEED":1,r.javaMultipleFiles=!1,r.goPackage="",r.ccGenericServices=!1,r.javaGenericServices=!1,r.pyGenericServices=!1,r.javaGenerateEqualsAndHash=!1,r.deprecated=!1,r.javaStringCheckUtf8=!1,r.ccEnableArenas=!1,r.objcClassPrefix="",r.csharpNamespace=""),null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&(r.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&(r.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor")&&(r.optimizeFor=t.enums===String?a.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:e.optimizeFor),null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&(r.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&e.hasOwnProperty("goPackage")&&(r.goPackage=e.goPackage),null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&(r.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&(r.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&(r.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&(r.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&(r.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&(r.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&(r.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&(r.csharpNamespace=e.csharpNamespace),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.OptimizeMode=function(){const e={},t=Object.create(e);return t[e[1]="SPEED"]=1,t[e[2]="CODE_SIZE"]=2,t[e[3]="LITE_RUNTIME"]=3,t}(),e}(),e.MessageOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.messageSetWireFormat=!1,e.prototype.noStandardDescriptorAccessor=!1,e.prototype.deprecated=!1,e.prototype.mapEntry=!1,e.prototype.uninterpretedOption=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&t.uint32(8).bool(e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&t.uint32(16).bool(e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&t.uint32(56).bool(e.mapEntry),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.MessageOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.messageSetWireFormat=e.bool();break;case 2:n.noStandardDescriptorAccessor=e.bool();break;case 3:n.deprecated=e.bool();break;case 7:n.mapEntry=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.MessageOptions)return e;var t=new a.google.protobuf.MessageOptions;if(null!=e.messageSetWireFormat&&(t.messageSetWireFormat=Boolean(e.messageSetWireFormat)),null!=e.noStandardDescriptorAccessor&&(t.noStandardDescriptorAccessor=Boolean(e.noStandardDescriptorAccessor)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.mapEntry&&(t.mapEntry=Boolean(e.mapEntry)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.messageSetWireFormat=!1,r.noStandardDescriptorAccessor=!1,r.deprecated=!1,r.mapEntry=!1),null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&(r.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&(r.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&(r.mapEntry=e.mapEntry),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.FieldOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ctype=0,e.prototype.packed=!1,e.prototype.jstype=0,e.prototype.lazy=!1,e.prototype.deprecated=!1,e.prototype.weak=!1,e.prototype.uninterpretedOption=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&t.uint32(8).int32(e.ctype),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&t.uint32(16).bool(e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&t.uint32(40).bool(e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&t.uint32(48).int32(e.jstype),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&t.uint32(80).bool(e.weak),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.FieldOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.ctype=e.int32();break;case 2:n.packed=e.bool();break;case 6:n.jstype=e.int32();break;case 5:n.lazy=e.bool();break;case 3:n.deprecated=e.bool();break;case 10:n.weak=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.FieldOptions)return e;var t=new a.google.protobuf.FieldOptions;switch(e.ctype){case"STRING":case 0:t.ctype=0;break;case"CORD":case 1:t.ctype=1;break;case"STRING_PIECE":case 2:t.ctype=2}switch(null!=e.packed&&(t.packed=Boolean(e.packed)),e.jstype){case"JS_NORMAL":case 0:t.jstype=0;break;case"JS_STRING":case 1:t.jstype=1;break;case"JS_NUMBER":case 2:t.jstype=2}if(null!=e.lazy&&(t.lazy=Boolean(e.lazy)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.weak&&(t.weak=Boolean(e.weak)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.ctype=t.enums===String?"STRING":0,r.packed=!1,r.deprecated=!1,r.lazy=!1,r.jstype=t.enums===String?"JS_NORMAL":0,r.weak=!1),null!=e.ctype&&e.hasOwnProperty("ctype")&&(r.ctype=t.enums===String?a.google.protobuf.FieldOptions.CType[e.ctype]:e.ctype),null!=e.packed&&e.hasOwnProperty("packed")&&(r.packed=e.packed),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.lazy&&e.hasOwnProperty("lazy")&&(r.lazy=e.lazy),null!=e.jstype&&e.hasOwnProperty("jstype")&&(r.jstype=t.enums===String?a.google.protobuf.FieldOptions.JSType[e.jstype]:e.jstype),null!=e.weak&&e.hasOwnProperty("weak")&&(r.weak=e.weak),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.CType=function(){const e={},t=Object.create(e);return t[e[0]="STRING"]=0,t[e[1]="CORD"]=1,t[e[2]="STRING_PIECE"]=2,t}(),e.JSType=function(){const e={},t=Object.create(e);return t[e[0]="JS_NORMAL"]=0,t[e[1]="JS_STRING"]=1,t[e[2]="JS_NUMBER"]=2,t}(),e}(),e.OneofOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.uninterpretedOption=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.OneofOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.OneofOptions)return e;var t=new a.google.protobuf.OneofOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.EnumOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.allowAlias=!1,e.prototype.deprecated=!1,e.prototype.uninterpretedOption=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&t.uint32(16).bool(e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.EnumOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 2:n.allowAlias=e.bool();break;case 3:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.EnumOptions)return e;var t=new a.google.protobuf.EnumOptions;if(null!=e.allowAlias&&(t.allowAlias=Boolean(e.allowAlias)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.allowAlias=!1,r.deprecated=!1),null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&(r.allowAlias=e.allowAlias),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.EnumValueOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.deprecated=!1,e.prototype.uninterpretedOption=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(8).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.EnumValueOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.EnumValueOptions)return e;var t=new a.google.protobuf.EnumValueOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ServiceOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.deprecated=!1,e.prototype.uninterpretedOption=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.ServiceOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 33:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.ServiceOptions)return e;var t=new a.google.protobuf.ServiceOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MethodOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.deprecated=!1,e.prototype.uninterpretedOption=s.emptyArray,e.prototype[".google.api.http"]=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)a.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&a.google.api.HttpRule.encode(e[".google.api.http"],t.uint32(578365826).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.MethodOptions;e.pos<r;){var i=e.uint32();switch(i>>>3){case 33:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(a.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:n[".google.api.http"]=a.google.api.HttpRule.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.MethodOptions)return e;var t=new a.google.protobuf.MethodOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=a.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}if(null!=e[".google.api.http"]){if("object"!=typeof e[".google.api.http"])throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");t[".google.api.http"]=a.google.api.HttpRule.fromObject(e[".google.api.http"])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r[".google.api.http"]=null),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=a.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(r[".google.api.http"]=a.google.api.HttpRule.toObject(e[".google.api.http"],t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.UninterpretedOption=function(){function e(e){if(this.name=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name=s.emptyArray,e.prototype.identifierValue="",e.prototype.positiveIntValue=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.negativeIntValue=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.doubleValue=0,e.prototype.stringValue=s.newBuffer([]),e.prototype.aggregateValue="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&e.name.length)for(var r=0;r<e.name.length;++r)a.google.protobuf.UninterpretedOption.NamePart.encode(e.name[r],t.uint32(18).fork()).ldelim();return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&t.uint32(26).string(e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&t.uint32(32).uint64(e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&t.uint32(40).int64(e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(49).double(e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(58).bytes(e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&t.uint32(66).string(e.aggregateValue),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.UninterpretedOption;e.pos<r;){var i=e.uint32();switch(i>>>3){case 2:n.name&&n.name.length||(n.name=[]),n.name.push(a.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:n.identifierValue=e.string();break;case 4:n.positiveIntValue=e.uint64();break;case 5:n.negativeIntValue=e.int64();break;case 6:n.doubleValue=e.double();break;case 7:n.stringValue=e.bytes();break;case 8:n.aggregateValue=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.UninterpretedOption)return e;var t=new a.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");t.name=[];for(var r=0;r<e.name.length;++r){if("object"!=typeof e.name[r])throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");t.name[r]=a.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[r])}}return null!=e.identifierValue&&(t.identifierValue=String(e.identifierValue)),null!=e.positiveIntValue&&(s.Long?(t.positiveIntValue=s.Long.fromValue(e.positiveIntValue)).unsigned=!0:"string"==typeof e.positiveIntValue?t.positiveIntValue=parseInt(e.positiveIntValue,10):"number"==typeof e.positiveIntValue?t.positiveIntValue=e.positiveIntValue:"object"==typeof e.positiveIntValue&&(t.positiveIntValue=new s.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(s.Long?(t.negativeIntValue=s.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new s.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?s.base64.decode(e.stringValue,t.stringValue=s.newBuffer(s.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.name=[]),t.defaults){if(r.identifierValue="",s.Long){var n=new s.Long(0,0,!0);r.positiveIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.positiveIntValue=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!1);r.negativeIntValue=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.negativeIntValue=t.longs===String?"0":0;r.doubleValue=0,t.bytes===String?r.stringValue="":(r.stringValue=[],t.bytes!==Array&&(r.stringValue=s.newBuffer(r.stringValue))),r.aggregateValue=""}if(e.name&&e.name.length){r.name=[];for(var o=0;o<e.name.length;++o)r.name[o]=a.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[o],t)}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&(r.identifierValue=e.identifierValue),null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&("number"==typeof e.positiveIntValue?r.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:r.positiveIntValue=t.longs===String?s.Long.prototype.toString.call(e.positiveIntValue):t.longs===Number?new s.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?r.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:r.negativeIntValue=t.longs===String?s.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new s.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(r.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(r.stringValue=t.bytes===String?s.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(r.aggregateValue=e.aggregateValue),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.NamePart=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.namePart="",e.prototype.isExtension=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t.uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.UninterpretedOption.NamePart;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.namePart=e.string();break;case 2:n.isExtension=e.bool();break;default:e.skipType(7&i)}}if(!n.hasOwnProperty("namePart"))throw s.ProtocolError("missing required 'namePart'",{instance:n});if(!n.hasOwnProperty("isExtension"))throw s.ProtocolError("missing required 'isExtension'",{instance:n});return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.UninterpretedOption.NamePart)return e;var t=new a.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.namePart="",r.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(r.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(r.isExtension=e.isExtension),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.SourceCodeInfo=function(){function e(e){if(this.location=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.location=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.location&&e.location.length)for(var r=0;r<e.location.length;++r)a.google.protobuf.SourceCodeInfo.Location.encode(e.location[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.SourceCodeInfo;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.location&&n.location.length||(n.location=[]),n.location.push(a.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.SourceCodeInfo)return e;var t=new a.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");t.location=[];for(var r=0;r<e.location.length;++r){if("object"!=typeof e.location[r])throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");t.location[r]=a.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.location=[]),e.location&&e.location.length){r.location=[];for(var n=0;n<e.location.length;++n)r.location[n]=a.google.protobuf.SourceCodeInfo.Location.toObject(e.location[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.Location=function(){function e(e){if(this.path=[],this.span=[],this.leadingDetachedComments=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.path=s.emptyArray,e.prototype.span=s.emptyArray,e.prototype.leadingComments="",e.prototype.trailingComments="",e.prototype.leadingDetachedComments=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}if(null!=e.span&&e.span.length){t.uint32(18).fork();for(r=0;r<e.span.length;++r)t.int32(e.span[r]);t.ldelim()}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&t.uint32(26).string(e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&t.uint32(34).string(e.trailingComments),null!=e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r=0;r<e.leadingDetachedComments.length;++r)t.uint32(50).string(e.leadingDetachedComments[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.SourceCodeInfo.Location;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:if(n.span&&n.span.length||(n.span=[]),2==(7&i))for(s=e.uint32()+e.pos;e.pos<s;)n.span.push(e.int32());else n.span.push(e.int32());break;case 3:n.leadingComments=e.string();break;case 4:n.trailingComments=e.string();break;case 6:n.leadingDetachedComments&&n.leadingDetachedComments.length||(n.leadingDetachedComments=[]),n.leadingDetachedComments.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.SourceCodeInfo.Location)return e;var t=new a.google.protobuf.SourceCodeInfo.Location;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");t.span=[];for(r=0;r<e.span.length;++r)t.span[r]=0|e.span[r]}if(null!=e.leadingComments&&(t.leadingComments=String(e.leadingComments)),null!=e.trailingComments&&(t.trailingComments=String(e.trailingComments)),e.leadingDetachedComments){if(!Array.isArray(e.leadingDetachedComments))throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected");t.leadingDetachedComments=[];for(r=0;r<e.leadingDetachedComments.length;++r)t.leadingDetachedComments[r]=String(e.leadingDetachedComments[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.path=[],r.span=[],r.leadingDetachedComments=[]),t.defaults&&(r.leadingComments="",r.trailingComments=""),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}if(e.span&&e.span.length){r.span=[];for(n=0;n<e.span.length;++n)r.span[n]=e.span[n]}if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&(r.leadingComments=e.leadingComments),null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&(r.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length){r.leadingDetachedComments=[];for(n=0;n<e.leadingDetachedComments.length;++n)r.leadingDetachedComments[n]=e.leadingDetachedComments[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.GeneratedCodeInfo=function(){function e(e){if(this.annotation=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.annotation=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.annotation&&e.annotation.length)for(var r=0;r<e.annotation.length;++r)a.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.GeneratedCodeInfo;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.annotation&&n.annotation.length||(n.annotation=[]),n.annotation.push(a.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.GeneratedCodeInfo)return e;var t=new a.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");t.annotation=[];for(var r=0;r<e.annotation.length;++r){if("object"!=typeof e.annotation[r])throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");t.annotation[r]=a.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.annotation=[]),e.annotation&&e.annotation.length){r.annotation=[];for(var n=0;n<e.annotation.length;++n)r.annotation[n]=a.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e.Annotation=function(){function e(e){if(this.path=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.path=s.emptyArray,e.prototype.sourceFile="",e.prototype.begin=0,e.prototype.end=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&t.uint32(18).string(e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&t.uint32(24).int32(e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int32(e.end),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:n.sourceFile=e.string();break;case 3:n.begin=e.int32();break;case 4:n.end=e.int32();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.GeneratedCodeInfo.Annotation)return e;var t=new a.google.protobuf.GeneratedCodeInfo.Annotation;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}return null!=e.sourceFile&&(t.sourceFile=String(e.sourceFile)),null!=e.begin&&(t.begin=0|e.begin),null!=e.end&&(t.end=0|e.end),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.path=[]),t.defaults&&(r.sourceFile="",r.begin=0,r.end=0),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&(r.sourceFile=e.sourceFile),null!=e.begin&&e.hasOwnProperty("begin")&&(r.begin=e.begin),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.Duration=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.Duration;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.seconds=e.int64();break;case 2:n.nanos=e.int32();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.Duration)return e;var t=new a.google.protobuf.Duration;return null!=e.seconds&&(s.Long?(t.seconds=s.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new s.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!1);r.seconds=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.seconds=t.longs===String?"0":0;r.nanos=0}return null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?r.seconds=t.longs===String?String(e.seconds):e.seconds:r.seconds=t.longs===String?s.Long.prototype.toString.call(e.seconds):t.longs===Number?new s.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(r.nanos=e.nanos),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Timestamp=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.seconds=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.protobuf.Timestamp;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.seconds=e.int64();break;case 2:n.nanos=e.int32();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.protobuf.Timestamp)return e;var t=new a.google.protobuf.Timestamp;return null!=e.seconds&&(s.Long?(t.seconds=s.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new s.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!1);r.seconds=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.seconds=t.longs===String?"0":0;r.nanos=0}return null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?r.seconds=t.longs===String?String(e.seconds):e.seconds:r.seconds=t.longs===String?s.Long.prototype.toString.call(e.seconds):t.longs===Number?new s.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(r.nanos=e.nanos),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.api=function(){const e={};return e.Http=function(){function e(e){if(this.rules=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.rules=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.rules&&e.rules.length)for(var r=0;r<e.rules.length;++r)a.google.api.HttpRule.encode(e.rules[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.api.Http;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.rules&&n.rules.length||(n.rules=[]),n.rules.push(a.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.api.Http)return e;var t=new a.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");t.rules=[];for(var r=0;r<e.rules.length;++r){if("object"!=typeof e.rules[r])throw TypeError(".google.api.Http.rules: object expected");t.rules[r]=a.google.api.HttpRule.fromObject(e.rules[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.rules=[]),e.rules&&e.rules.length){r.rules=[];for(var n=0;n<e.rules.length;++n)r.rules[n]=a.google.api.HttpRule.toObject(e.rules[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.HttpRule=function(){function e(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.get="",e.prototype.put="",e.prototype.post="",e.prototype.delete="",e.prototype.patch="",e.prototype.custom=null,e.prototype.selector="",e.prototype.body="",e.prototype.additionalBindings=s.emptyArray,Object.defineProperty(e.prototype,"pattern",{get:s.oneOfGetter(t=["get","put","post","delete","patch","custom"]),set:s.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&a.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork()).ldelim(),null!=e.additionalBindings&&e.additionalBindings.length)for(var r=0;r<e.additionalBindings.length;++r)a.google.api.HttpRule.encode(e.additionalBindings[r],t.uint32(90).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.api.HttpRule;e.pos<r;){var i=e.uint32();switch(i>>>3){case 2:n.get=e.string();break;case 3:n.put=e.string();break;case 4:n.post=e.string();break;case 5:n.delete=e.string();break;case 6:n.patch=e.string();break;case 8:n.custom=a.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 1:n.selector=e.string();break;case 7:n.body=e.string();break;case 11:n.additionalBindings&&n.additionalBindings.length||(n.additionalBindings=[]),n.additionalBindings.push(a.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.api.HttpRule)return e;var t=new a.google.api.HttpRule;if(null!=e.get&&(t.get=String(e.get)),null!=e.put&&(t.put=String(e.put)),null!=e.post&&(t.post=String(e.post)),null!=e.delete&&(t.delete=String(e.delete)),null!=e.patch&&(t.patch=String(e.patch)),null!=e.custom){if("object"!=typeof e.custom)throw TypeError(".google.api.HttpRule.custom: object expected");t.custom=a.google.api.CustomHttpPattern.fromObject(e.custom)}if(null!=e.selector&&(t.selector=String(e.selector)),null!=e.body&&(t.body=String(e.body)),e.additionalBindings){if(!Array.isArray(e.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");t.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r){if("object"!=typeof e.additionalBindings[r])throw TypeError(".google.api.HttpRule.additionalBindings: object expected");t.additionalBindings[r]=a.google.api.HttpRule.fromObject(e.additionalBindings[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.additionalBindings=[]),t.defaults&&(r.selector="",r.body=""),null!=e.selector&&e.hasOwnProperty("selector")&&(r.selector=e.selector),null!=e.get&&e.hasOwnProperty("get")&&(r.get=e.get,t.oneofs&&(r.pattern="get")),null!=e.put&&e.hasOwnProperty("put")&&(r.put=e.put,t.oneofs&&(r.pattern="put")),null!=e.post&&e.hasOwnProperty("post")&&(r.post=e.post,t.oneofs&&(r.pattern="post")),null!=e.delete&&e.hasOwnProperty("delete")&&(r.delete=e.delete,t.oneofs&&(r.pattern="delete")),null!=e.patch&&e.hasOwnProperty("patch")&&(r.patch=e.patch,t.oneofs&&(r.pattern="patch")),null!=e.body&&e.hasOwnProperty("body")&&(r.body=e.body),null!=e.custom&&e.hasOwnProperty("custom")&&(r.custom=a.google.api.CustomHttpPattern.toObject(e.custom,t),t.oneofs&&(r.pattern="custom")),e.additionalBindings&&e.additionalBindings.length){r.additionalBindings=[];for(var n=0;n<e.additionalBindings.length;++n)r.additionalBindings[n]=a.google.api.HttpRule.toObject(e.additionalBindings[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.CustomHttpPattern=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.kind="",e.prototype.path="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.google.api.CustomHttpPattern;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.kind=e.string();break;case 2:n.path=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.google.api.CustomHttpPattern)return e;var t=new a.google.api.CustomHttpPattern;return null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.kind="",r.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(r.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(r.path=e.path),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e})(),t.ibc=a.ibc=(()=>{const e={};return e.core=function(){const e={};return e.channel=function(){const e={};return e.v1=function(){const e={};return e.Channel=function(){function e(e){if(this.connectionHops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.state=0,e.prototype.ordering=0,e.prototype.counterparty=null,e.prototype.connectionHops=s.emptyArray,e.prototype.version="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.ordering&&Object.hasOwnProperty.call(e,"ordering")&&t.uint32(16).int32(e.ordering),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&a.ibc.core.channel.v1.Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim(),null!=e.connectionHops&&e.connectionHops.length)for(var r=0;r<e.connectionHops.length;++r)t.uint32(34).string(e.connectionHops[r]);return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(42).string(e.version),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.Channel;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.state=e.int32();break;case 2:n.ordering=e.int32();break;case 3:n.counterparty=a.ibc.core.channel.v1.Counterparty.decode(e,e.uint32());break;case 4:n.connectionHops&&n.connectionHops.length||(n.connectionHops=[]),n.connectionHops.push(e.string());break;case 5:n.version=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.Channel)return e;var t=new a.ibc.core.channel.v1.Channel;switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3;break;case"STATE_CLOSED":case 4:t.state=4}switch(e.ordering){case"ORDER_NONE_UNSPECIFIED":case 0:t.ordering=0;break;case"ORDER_UNORDERED":case 1:t.ordering=1;break;case"ORDER_ORDERED":case 2:t.ordering=2}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.channel.v1.Channel.counterparty: object expected");t.counterparty=a.ibc.core.channel.v1.Counterparty.fromObject(e.counterparty)}if(e.connectionHops){if(!Array.isArray(e.connectionHops))throw TypeError(".ibc.core.channel.v1.Channel.connectionHops: array expected");t.connectionHops=[];for(var r=0;r<e.connectionHops.length;++r)t.connectionHops[r]=String(e.connectionHops[r])}return null!=e.version&&(t.version=String(e.version)),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.connectionHops=[]),t.defaults&&(r.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,r.ordering=t.enums===String?"ORDER_NONE_UNSPECIFIED":0,r.counterparty=null,r.version=""),null!=e.state&&e.hasOwnProperty("state")&&(r.state=t.enums===String?a.ibc.core.channel.v1.State[e.state]:e.state),null!=e.ordering&&e.hasOwnProperty("ordering")&&(r.ordering=t.enums===String?a.ibc.core.channel.v1.Order[e.ordering]:e.ordering),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(r.counterparty=a.ibc.core.channel.v1.Counterparty.toObject(e.counterparty,t)),e.connectionHops&&e.connectionHops.length){r.connectionHops=[];for(var n=0;n<e.connectionHops.length;++n)r.connectionHops[n]=e.connectionHops[n]}return null!=e.version&&e.hasOwnProperty("version")&&(r.version=e.version),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.IdentifiedChannel=function(){function e(e){if(this.connectionHops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.state=0,e.prototype.ordering=0,e.prototype.counterparty=null,e.prototype.connectionHops=s.emptyArray,e.prototype.version="",e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.ordering&&Object.hasOwnProperty.call(e,"ordering")&&t.uint32(16).int32(e.ordering),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&a.ibc.core.channel.v1.Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim(),null!=e.connectionHops&&e.connectionHops.length)for(var r=0;r<e.connectionHops.length;++r)t.uint32(34).string(e.connectionHops[r]);return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(42).string(e.version),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(50).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(58).string(e.channelId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.IdentifiedChannel;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.state=e.int32();break;case 2:n.ordering=e.int32();break;case 3:n.counterparty=a.ibc.core.channel.v1.Counterparty.decode(e,e.uint32());break;case 4:n.connectionHops&&n.connectionHops.length||(n.connectionHops=[]),n.connectionHops.push(e.string());break;case 5:n.version=e.string();break;case 6:n.portId=e.string();break;case 7:n.channelId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.IdentifiedChannel)return e;var t=new a.ibc.core.channel.v1.IdentifiedChannel;switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3;break;case"STATE_CLOSED":case 4:t.state=4}switch(e.ordering){case"ORDER_NONE_UNSPECIFIED":case 0:t.ordering=0;break;case"ORDER_UNORDERED":case 1:t.ordering=1;break;case"ORDER_ORDERED":case 2:t.ordering=2}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.counterparty: object expected");t.counterparty=a.ibc.core.channel.v1.Counterparty.fromObject(e.counterparty)}if(e.connectionHops){if(!Array.isArray(e.connectionHops))throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.connectionHops: array expected");t.connectionHops=[];for(var r=0;r<e.connectionHops.length;++r)t.connectionHops[r]=String(e.connectionHops[r])}return null!=e.version&&(t.version=String(e.version)),null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.connectionHops=[]),t.defaults&&(r.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,r.ordering=t.enums===String?"ORDER_NONE_UNSPECIFIED":0,r.counterparty=null,r.version="",r.portId="",r.channelId=""),null!=e.state&&e.hasOwnProperty("state")&&(r.state=t.enums===String?a.ibc.core.channel.v1.State[e.state]:e.state),null!=e.ordering&&e.hasOwnProperty("ordering")&&(r.ordering=t.enums===String?a.ibc.core.channel.v1.Order[e.ordering]:e.ordering),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(r.counterparty=a.ibc.core.channel.v1.Counterparty.toObject(e.counterparty,t)),e.connectionHops&&e.connectionHops.length){r.connectionHops=[];for(var n=0;n<e.connectionHops.length;++n)r.connectionHops[n]=e.connectionHops[n]}return null!=e.version&&e.hasOwnProperty("version")&&(r.version=e.version),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.State=function(){const e={},t=Object.create(e);return t[e[0]="STATE_UNINITIALIZED_UNSPECIFIED"]=0,t[e[1]="STATE_INIT"]=1,t[e[2]="STATE_TRYOPEN"]=2,t[e[3]="STATE_OPEN"]=3,t[e[4]="STATE_CLOSED"]=4,t}(),e.Order=function(){const e={},t=Object.create(e);return t[e[0]="ORDER_NONE_UNSPECIFIED"]=0,t[e[1]="ORDER_UNORDERED"]=1,t[e[2]="ORDER_ORDERED"]=2,t}(),e.Counterparty=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.Counterparty;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.Counterparty)return e;var t=new a.ibc.core.channel.v1.Counterparty;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.portId="",r.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Packet=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.sourcePort="",e.prototype.sourceChannel="",e.prototype.destinationPort="",e.prototype.destinationChannel="",e.prototype.data=s.newBuffer([]),e.prototype.timeoutHeight=null,e.prototype.timeoutTimestamp=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(8).uint64(e.sequence),null!=e.sourcePort&&Object.hasOwnProperty.call(e,"sourcePort")&&t.uint32(18).string(e.sourcePort),null!=e.sourceChannel&&Object.hasOwnProperty.call(e,"sourceChannel")&&t.uint32(26).string(e.sourceChannel),null!=e.destinationPort&&Object.hasOwnProperty.call(e,"destinationPort")&&t.uint32(34).string(e.destinationPort),null!=e.destinationChannel&&Object.hasOwnProperty.call(e,"destinationChannel")&&t.uint32(42).string(e.destinationChannel),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(50).bytes(e.data),null!=e.timeoutHeight&&Object.hasOwnProperty.call(e,"timeoutHeight")&&a.ibc.core.client.v1.Height.encode(e.timeoutHeight,t.uint32(58).fork()).ldelim(),null!=e.timeoutTimestamp&&Object.hasOwnProperty.call(e,"timeoutTimestamp")&&t.uint32(64).uint64(e.timeoutTimestamp),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.Packet;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.sequence=e.uint64();break;case 2:n.sourcePort=e.string();break;case 3:n.sourceChannel=e.string();break;case 4:n.destinationPort=e.string();break;case 5:n.destinationChannel=e.string();break;case 6:n.data=e.bytes();break;case 7:n.timeoutHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;case 8:n.timeoutTimestamp=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.Packet)return e;var t=new a.ibc.core.channel.v1.Packet;if(null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),null!=e.sourcePort&&(t.sourcePort=String(e.sourcePort)),null!=e.sourceChannel&&(t.sourceChannel=String(e.sourceChannel)),null!=e.destinationPort&&(t.destinationPort=String(e.destinationPort)),null!=e.destinationChannel&&(t.destinationChannel=String(e.destinationChannel)),null!=e.data&&("string"==typeof e.data?s.base64.decode(e.data,t.data=s.newBuffer(s.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.timeoutHeight){if("object"!=typeof e.timeoutHeight)throw TypeError(".ibc.core.channel.v1.Packet.timeoutHeight: object expected");t.timeoutHeight=a.ibc.core.client.v1.Height.fromObject(e.timeoutHeight)}return null!=e.timeoutTimestamp&&(s.Long?(t.timeoutTimestamp=s.Long.fromValue(e.timeoutTimestamp)).unsigned=!0:"string"==typeof e.timeoutTimestamp?t.timeoutTimestamp=parseInt(e.timeoutTimestamp,10):"number"==typeof e.timeoutTimestamp?t.timeoutTimestamp=e.timeoutTimestamp:"object"==typeof e.timeoutTimestamp&&(t.timeoutTimestamp=new s.LongBits(e.timeoutTimestamp.low>>>0,e.timeoutTimestamp.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0;if(r.sourcePort="",r.sourceChannel="",r.destinationPort="",r.destinationChannel="",t.bytes===String?r.data="":(r.data=[],t.bytes!==Array&&(r.data=s.newBuffer(r.data))),r.timeoutHeight=null,s.Long){n=new s.Long(0,0,!0);r.timeoutTimestamp=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.timeoutTimestamp=t.longs===String?"0":0}return null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),null!=e.sourcePort&&e.hasOwnProperty("sourcePort")&&(r.sourcePort=e.sourcePort),null!=e.sourceChannel&&e.hasOwnProperty("sourceChannel")&&(r.sourceChannel=e.sourceChannel),null!=e.destinationPort&&e.hasOwnProperty("destinationPort")&&(r.destinationPort=e.destinationPort),null!=e.destinationChannel&&e.hasOwnProperty("destinationChannel")&&(r.destinationChannel=e.destinationChannel),null!=e.data&&e.hasOwnProperty("data")&&(r.data=t.bytes===String?s.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.timeoutHeight&&e.hasOwnProperty("timeoutHeight")&&(r.timeoutHeight=a.ibc.core.client.v1.Height.toObject(e.timeoutHeight,t)),null!=e.timeoutTimestamp&&e.hasOwnProperty("timeoutTimestamp")&&("number"==typeof e.timeoutTimestamp?r.timeoutTimestamp=t.longs===String?String(e.timeoutTimestamp):e.timeoutTimestamp:r.timeoutTimestamp=t.longs===String?s.Long.prototype.toString.call(e.timeoutTimestamp):t.longs===Number?new s.LongBits(e.timeoutTimestamp.low>>>0,e.timeoutTimestamp.high>>>0).toNumber(!0):e.timeoutTimestamp),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.PacketState=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.data=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(34).bytes(e.data),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.PacketState;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:n.sequence=e.uint64();break;case 4:n.data=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.PacketState)return e;var t=new a.ibc.core.channel.v1.PacketState;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),null!=e.data&&("string"==typeof e.data?s.base64.decode(e.data,t.data=s.newBuffer(s.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.portId="",r.channelId="",s.Long){var n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0;t.bytes===String?r.data="":(r.data=[],t.bytes!==Array&&(r.data=s.newBuffer(r.data)))}return null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),null!=e.data&&e.hasOwnProperty("data")&&(r.data=t.bytes===String?s.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Acknowledgement=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.result=s.newBuffer([]),e.prototype.error="",Object.defineProperty(e.prototype,"response",{get:s.oneOfGetter(t=["result","error"]),set:s.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.result&&Object.hasOwnProperty.call(e,"result")&&t.uint32(170).bytes(e.result),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&t.uint32(178).string(e.error),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.Acknowledgement;e.pos<r;){var i=e.uint32();switch(i>>>3){case 21:n.result=e.bytes();break;case 22:n.error=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.Acknowledgement)return e;var t=new a.ibc.core.channel.v1.Acknowledgement;return null!=e.result&&("string"==typeof e.result?s.base64.decode(e.result,t.result=s.newBuffer(s.base64.length(e.result)),0):e.result.length&&(t.result=e.result)),null!=e.error&&(t.error=String(e.error)),t},e.toObject=function(e,t){t||(t={});var r={};return null!=e.result&&e.hasOwnProperty("result")&&(r.result=t.bytes===String?s.base64.encode(e.result,0,e.result.length):t.bytes===Array?Array.prototype.slice.call(e.result):e.result,t.oneofs&&(r.response="result")),null!=e.error&&e.hasOwnProperty("error")&&(r.error=e.error,t.oneofs&&(r.response="error")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.channel=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryChannelRequest,a.ibc.core.channel.v1.QueryChannelResponse,t,r)},"name",{value:"Channel"}),Object.defineProperty(e.prototype.channels=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryChannelsRequest,a.ibc.core.channel.v1.QueryChannelsResponse,t,r)},"name",{value:"Channels"}),Object.defineProperty(e.prototype.connectionChannels=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryConnectionChannelsRequest,a.ibc.core.channel.v1.QueryConnectionChannelsResponse,t,r)},"name",{value:"ConnectionChannels"}),Object.defineProperty(e.prototype.channelClientState=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryChannelClientStateRequest,a.ibc.core.channel.v1.QueryChannelClientStateResponse,t,r)},"name",{value:"ChannelClientState"}),Object.defineProperty(e.prototype.channelConsensusState=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryChannelConsensusStateRequest,a.ibc.core.channel.v1.QueryChannelConsensusStateResponse,t,r)},"name",{value:"ChannelConsensusState"}),Object.defineProperty(e.prototype.packetCommitment=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryPacketCommitmentRequest,a.ibc.core.channel.v1.QueryPacketCommitmentResponse,t,r)},"name",{value:"PacketCommitment"}),Object.defineProperty(e.prototype.packetCommitments=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryPacketCommitmentsRequest,a.ibc.core.channel.v1.QueryPacketCommitmentsResponse,t,r)},"name",{value:"PacketCommitments"}),Object.defineProperty(e.prototype.packetReceipt=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryPacketReceiptRequest,a.ibc.core.channel.v1.QueryPacketReceiptResponse,t,r)},"name",{value:"PacketReceipt"}),Object.defineProperty(e.prototype.packetAcknowledgement=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryPacketAcknowledgementRequest,a.ibc.core.channel.v1.QueryPacketAcknowledgementResponse,t,r)},"name",{value:"PacketAcknowledgement"}),Object.defineProperty(e.prototype.packetAcknowledgements=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest,a.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse,t,r)},"name",{value:"PacketAcknowledgements"}),Object.defineProperty(e.prototype.unreceivedPackets=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryUnreceivedPacketsRequest,a.ibc.core.channel.v1.QueryUnreceivedPacketsResponse,t,r)},"name",{value:"UnreceivedPackets"}),Object.defineProperty(e.prototype.unreceivedAcks=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryUnreceivedAcksRequest,a.ibc.core.channel.v1.QueryUnreceivedAcksResponse,t,r)},"name",{value:"UnreceivedAcks"}),Object.defineProperty(e.prototype.nextSequenceReceive=function e(t,r){return this.rpcCall(e,a.ibc.core.channel.v1.QueryNextSequenceReceiveRequest,a.ibc.core.channel.v1.QueryNextSequenceReceiveResponse,t,r)},"name",{value:"NextSequenceReceive"}),e}(),e.QueryChannelRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelRequest)return e;var t=new a.ibc.core.channel.v1.QueryChannelRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.portId="",r.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryChannelResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.channel=null,e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.channel&&Object.hasOwnProperty.call(e,"channel")&&a.ibc.core.channel.v1.Channel.encode(e.channel,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.channel=a.ibc.core.channel.v1.Channel.decode(e,e.uint32());break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelResponse)return e;var t=new a.ibc.core.channel.v1.QueryChannelResponse;if(null!=e.channel){if("object"!=typeof e.channel)throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.channel: object expected");t.channel=a.ibc.core.channel.v1.Channel.fromObject(e.channel)}if(null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.channel=null,t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.channel&&e.hasOwnProperty("channel")&&(r.channel=a.ibc.core.channel.v1.Channel.toObject(e.channel,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryChannelsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelsRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.pagination=a.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelsRequest)return e;var t=new a.ibc.core.channel.v1.QueryChannelsRequest;if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryChannelsRequest.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.pagination=null),null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryChannelsResponse=function(){function e(e){if(this.channels=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.channels=s.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.channels&&e.channels.length)for(var r=0;r<e.channels.length;++r)a.ibc.core.channel.v1.IdentifiedChannel.encode(e.channels[r],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.channels&&n.channels.length||(n.channels=[]),n.channels.push(a.ibc.core.channel.v1.IdentifiedChannel.decode(e,e.uint32()));break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelsResponse)return e;var t=new a.ibc.core.channel.v1.QueryChannelsResponse;if(e.channels){if(!Array.isArray(e.channels))throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: array expected");t.channels=[];for(var r=0;r<e.channels.length;++r){if("object"!=typeof e.channels[r])throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: object expected");t.channels[r]=a.ibc.core.channel.v1.IdentifiedChannel.fromObject(e.channels[r])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.channels=[]),t.defaults&&(r.pagination=null,r.height=null),e.channels&&e.channels.length){r.channels=[];for(var n=0;n<e.channels.length;++n)r.channels[n]=a.ibc.core.channel.v1.IdentifiedChannel.toObject(e.channels[n],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionChannelsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.connection="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.connection&&Object.hasOwnProperty.call(e,"connection")&&t.uint32(10).string(e.connection),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryConnectionChannelsRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.connection=e.string();break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryConnectionChannelsRequest)return e;var t=new a.ibc.core.channel.v1.QueryConnectionChannelsRequest;if(null!=e.connection&&(t.connection=String(e.connection)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsRequest.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.connection="",r.pagination=null),null!=e.connection&&e.hasOwnProperty("connection")&&(r.connection=e.connection),null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionChannelsResponse=function(){function e(e){if(this.channels=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.channels=s.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.channels&&e.channels.length)for(var r=0;r<e.channels.length;++r)a.ibc.core.channel.v1.IdentifiedChannel.encode(e.channels[r],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryConnectionChannelsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.channels&&n.channels.length||(n.channels=[]),n.channels.push(a.ibc.core.channel.v1.IdentifiedChannel.decode(e,e.uint32()));break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryConnectionChannelsResponse)return e;var t=new a.ibc.core.channel.v1.QueryConnectionChannelsResponse;if(e.channels){if(!Array.isArray(e.channels))throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: array expected");t.channels=[];for(var r=0;r<e.channels.length;++r){if("object"!=typeof e.channels[r])throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: object expected");t.channels[r]=a.ibc.core.channel.v1.IdentifiedChannel.fromObject(e.channels[r])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.channels=[]),t.defaults&&(r.pagination=null,r.height=null),e.channels&&e.channels.length){r.channels=[];for(var n=0;n<e.channels.length;++n)r.channels[n]=a.ibc.core.channel.v1.IdentifiedChannel.toObject(e.channels[n],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryChannelClientStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelClientStateRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelClientStateRequest)return e;var t=new a.ibc.core.channel.v1.QueryChannelClientStateRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.portId="",r.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryChannelClientStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.identifiedClientState=null,e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.identifiedClientState&&Object.hasOwnProperty.call(e,"identifiedClientState")&&a.ibc.core.client.v1.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelClientStateResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.identifiedClientState=a.ibc.core.client.v1.IdentifiedClientState.decode(e,e.uint32());break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelClientStateResponse)return e;var t=new a.ibc.core.channel.v1.QueryChannelClientStateResponse;if(null!=e.identifiedClientState){if("object"!=typeof e.identifiedClientState)throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.identifiedClientState: object expected");t.identifiedClientState=a.ibc.core.client.v1.IdentifiedClientState.fromObject(e.identifiedClientState)}if(null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.identifiedClientState=null,t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.identifiedClientState&&e.hasOwnProperty("identifiedClientState")&&(r.identifiedClientState=a.ibc.core.client.v1.IdentifiedClientState.toObject(e.identifiedClientState,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryChannelConsensusStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.versionNumber=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.versionHeight=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.versionNumber&&Object.hasOwnProperty.call(e,"versionNumber")&&t.uint32(24).uint64(e.versionNumber),null!=e.versionHeight&&Object.hasOwnProperty.call(e,"versionHeight")&&t.uint32(32).uint64(e.versionHeight),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelConsensusStateRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:n.versionNumber=e.uint64();break;case 4:n.versionHeight=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelConsensusStateRequest)return e;var t=new a.ibc.core.channel.v1.QueryChannelConsensusStateRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.versionNumber&&(s.Long?(t.versionNumber=s.Long.fromValue(e.versionNumber)).unsigned=!0:"string"==typeof e.versionNumber?t.versionNumber=parseInt(e.versionNumber,10):"number"==typeof e.versionNumber?t.versionNumber=e.versionNumber:"object"==typeof e.versionNumber&&(t.versionNumber=new s.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0))),null!=e.versionHeight&&(s.Long?(t.versionHeight=s.Long.fromValue(e.versionHeight)).unsigned=!0:"string"==typeof e.versionHeight?t.versionHeight=parseInt(e.versionHeight,10):"number"==typeof e.versionHeight?t.versionHeight=e.versionHeight:"object"==typeof e.versionHeight&&(t.versionHeight=new s.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.portId="",r.channelId="",s.Long){var n=new s.Long(0,0,!0);r.versionNumber=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.versionNumber=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.versionHeight=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.versionHeight=t.longs===String?"0":0}return null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),null!=e.versionNumber&&e.hasOwnProperty("versionNumber")&&("number"==typeof e.versionNumber?r.versionNumber=t.longs===String?String(e.versionNumber):e.versionNumber:r.versionNumber=t.longs===String?s.Long.prototype.toString.call(e.versionNumber):t.longs===Number?new s.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0):e.versionNumber),null!=e.versionHeight&&e.hasOwnProperty("versionHeight")&&("number"==typeof e.versionHeight?r.versionHeight=t.longs===String?String(e.versionHeight):e.versionHeight:r.versionHeight=t.longs===String?s.Long.prototype.toString.call(e.versionHeight):t.longs===Number?new s.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0):e.versionHeight),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryChannelConsensusStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusState=null,e.prototype.clientId="",e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&a.google.protobuf.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(18).string(e.clientId),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(26).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryChannelConsensusStateResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.consensusState=a.google.protobuf.Any.decode(e,e.uint32());break;case 2:n.clientId=e.string();break;case 3:n.proof=e.bytes();break;case 4:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryChannelConsensusStateResponse)return e;var t=new a.ibc.core.channel.v1.QueryChannelConsensusStateResponse;if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.consensusState: object expected");t.consensusState=a.google.protobuf.Any.fromObject(e.consensusState)}if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.consensusState=null,r.clientId="",t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(r.consensusState=a.google.protobuf.Any.toObject(e.consensusState,t)),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketCommitmentRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketCommitmentRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:n.sequence=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketCommitmentRequest)return e;var t=new a.ibc.core.channel.v1.QueryPacketCommitmentRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.portId="",r.channelId="",s.Long){var n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0;return null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketCommitmentResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.commitment=s.newBuffer([]),e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.commitment&&Object.hasOwnProperty.call(e,"commitment")&&t.uint32(10).bytes(e.commitment),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketCommitmentResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.commitment=e.bytes();break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketCommitmentResponse)return e;var t=new a.ibc.core.channel.v1.QueryPacketCommitmentResponse;if(null!=e.commitment&&("string"==typeof e.commitment?s.base64.decode(e.commitment,t.commitment=s.newBuffer(s.base64.length(e.commitment)),0):e.commitment.length&&(t.commitment=e.commitment)),null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.commitment="":(r.commitment=[],t.bytes!==Array&&(r.commitment=s.newBuffer(r.commitment))),t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.commitment&&e.hasOwnProperty("commitment")&&(r.commitment=t.bytes===String?s.base64.encode(e.commitment,0,e.commitment.length):t.bytes===Array?Array.prototype.slice.call(e.commitment):e.commitment),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketCommitmentsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketCommitmentsRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:n.pagination=a.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketCommitmentsRequest)return e;var t=new a.ibc.core.channel.v1.QueryPacketCommitmentsRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsRequest.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.portId="",r.channelId="",r.pagination=null),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketCommitmentsResponse=function(){function e(e){if(this.commitments=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.commitments=s.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.commitments&&e.commitments.length)for(var r=0;r<e.commitments.length;++r)a.ibc.core.channel.v1.PacketState.encode(e.commitments[r],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketCommitmentsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.commitments&&n.commitments.length||(n.commitments=[]),n.commitments.push(a.ibc.core.channel.v1.PacketState.decode(e,e.uint32()));break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketCommitmentsResponse)return e;var t=new a.ibc.core.channel.v1.QueryPacketCommitmentsResponse;if(e.commitments){if(!Array.isArray(e.commitments))throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: array expected");t.commitments=[];for(var r=0;r<e.commitments.length;++r){if("object"!=typeof e.commitments[r])throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: object expected");t.commitments[r]=a.ibc.core.channel.v1.PacketState.fromObject(e.commitments[r])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.commitments=[]),t.defaults&&(r.pagination=null,r.height=null),e.commitments&&e.commitments.length){r.commitments=[];for(var n=0;n<e.commitments.length;++n)r.commitments[n]=a.ibc.core.channel.v1.PacketState.toObject(e.commitments[n],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketReceiptRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketReceiptRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:n.sequence=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketReceiptRequest)return e;var t=new a.ibc.core.channel.v1.QueryPacketReceiptRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.portId="",r.channelId="",s.Long){var n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0;return null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketReceiptResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.received=!1,e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.received&&Object.hasOwnProperty.call(e,"received")&&t.uint32(16).bool(e.received),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(26).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketReceiptResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 2:n.received=e.bool();break;case 3:n.proof=e.bytes();break;case 4:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketReceiptResponse)return e;var t=new a.ibc.core.channel.v1.QueryPacketReceiptResponse;if(null!=e.received&&(t.received=Boolean(e.received)),null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryPacketReceiptResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.received=!1,t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.received&&e.hasOwnProperty("received")&&(r.received=e.received),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketAcknowledgementRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:n.sequence=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketAcknowledgementRequest)return e;var t=new a.ibc.core.channel.v1.QueryPacketAcknowledgementRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(s.Long?(t.sequence=s.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.portId="",r.channelId="",s.Long){var n=new s.Long(0,0,!0);r.sequence=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.sequence=t.longs===String?"0":0;return null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?r.sequence=t.longs===String?String(e.sequence):e.sequence:r.sequence=t.longs===String?s.Long.prototype.toString.call(e.sequence):t.longs===Number?new s.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.acknowledgement=s.newBuffer([]),e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.acknowledgement&&Object.hasOwnProperty.call(e,"acknowledgement")&&t.uint32(10).bytes(e.acknowledgement),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketAcknowledgementResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.acknowledgement=e.bytes();break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketAcknowledgementResponse)return e;var t=new a.ibc.core.channel.v1.QueryPacketAcknowledgementResponse;if(null!=e.acknowledgement&&("string"==typeof e.acknowledgement?s.base64.decode(e.acknowledgement,t.acknowledgement=s.newBuffer(s.base64.length(e.acknowledgement)),0):e.acknowledgement.length&&(t.acknowledgement=e.acknowledgement)),null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.acknowledgement="":(r.acknowledgement=[],t.bytes!==Array&&(r.acknowledgement=s.newBuffer(r.acknowledgement))),t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.acknowledgement&&e.hasOwnProperty("acknowledgement")&&(r.acknowledgement=t.bytes===String?s.base64.encode(e.acknowledgement,0,e.acknowledgement.length):t.bytes===Array?Array.prototype.slice.call(e.acknowledgement):e.acknowledgement),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:n.pagination=a.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest)return e;var t=new a.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.portId="",r.channelId="",r.pagination=null),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementsResponse=function(){function e(e){if(this.acknowledgements=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.acknowledgements=s.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.acknowledgements&&e.acknowledgements.length)for(var r=0;r<e.acknowledgements.length;++r)a.ibc.core.channel.v1.PacketState.encode(e.acknowledgements[r],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.acknowledgements&&n.acknowledgements.length||(n.acknowledgements=[]),n.acknowledgements.push(a.ibc.core.channel.v1.PacketState.decode(e,e.uint32()));break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse)return e;var t=new a.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse;if(e.acknowledgements){if(!Array.isArray(e.acknowledgements))throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: array expected");t.acknowledgements=[];for(var r=0;r<e.acknowledgements.length;++r){if("object"!=typeof e.acknowledgements[r])throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: object expected");t.acknowledgements[r]=a.ibc.core.channel.v1.PacketState.fromObject(e.acknowledgements[r])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.acknowledgements=[]),t.defaults&&(r.pagination=null,r.height=null),e.acknowledgements&&e.acknowledgements.length){r.acknowledgements=[];for(var n=0;n<e.acknowledgements.length;++n)r.acknowledgements[n]=a.ibc.core.channel.v1.PacketState.toObject(e.acknowledgements[n],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryUnreceivedPacketsRequest=function(){function e(e){if(this.packetCommitmentSequences=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.packetCommitmentSequences=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.packetCommitmentSequences&&e.packetCommitmentSequences.length){t.uint32(26).fork();for(var r=0;r<e.packetCommitmentSequences.length;++r)t.uint64(e.packetCommitmentSequences[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryUnreceivedPacketsRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:if(n.packetCommitmentSequences&&n.packetCommitmentSequences.length||(n.packetCommitmentSequences=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.packetCommitmentSequences.push(e.uint64());else n.packetCommitmentSequences.push(e.uint64());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryUnreceivedPacketsRequest)return e;var t=new a.ibc.core.channel.v1.QueryUnreceivedPacketsRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),e.packetCommitmentSequences){if(!Array.isArray(e.packetCommitmentSequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsRequest.packetCommitmentSequences: array expected");t.packetCommitmentSequences=[];for(var r=0;r<e.packetCommitmentSequences.length;++r)s.Long?(t.packetCommitmentSequences[r]=s.Long.fromValue(e.packetCommitmentSequences[r])).unsigned=!0:"string"==typeof e.packetCommitmentSequences[r]?t.packetCommitmentSequences[r]=parseInt(e.packetCommitmentSequences[r],10):"number"==typeof e.packetCommitmentSequences[r]?t.packetCommitmentSequences[r]=e.packetCommitmentSequences[r]:"object"==typeof e.packetCommitmentSequences[r]&&(t.packetCommitmentSequences[r]=new s.LongBits(e.packetCommitmentSequences[r].low>>>0,e.packetCommitmentSequences[r].high>>>0).toNumber(!0))}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.packetCommitmentSequences=[]),t.defaults&&(r.portId="",r.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),e.packetCommitmentSequences&&e.packetCommitmentSequences.length){r.packetCommitmentSequences=[];for(var n=0;n<e.packetCommitmentSequences.length;++n)"number"==typeof e.packetCommitmentSequences[n]?r.packetCommitmentSequences[n]=t.longs===String?String(e.packetCommitmentSequences[n]):e.packetCommitmentSequences[n]:r.packetCommitmentSequences[n]=t.longs===String?s.Long.prototype.toString.call(e.packetCommitmentSequences[n]):t.longs===Number?new s.LongBits(e.packetCommitmentSequences[n].low>>>0,e.packetCommitmentSequences[n].high>>>0).toNumber(!0):e.packetCommitmentSequences[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryUnreceivedPacketsResponse=function(){function e(e){if(this.sequences=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sequences=s.emptyArray,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.sequences&&e.sequences.length){t.uint32(10).fork();for(var r=0;r<e.sequences.length;++r)t.uint64(e.sequences[r]);t.ldelim()}return null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryUnreceivedPacketsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:if(n.sequences&&n.sequences.length||(n.sequences=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.sequences.push(e.uint64());else n.sequences.push(e.uint64());break;case 2:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryUnreceivedPacketsResponse)return e;var t=new a.ibc.core.channel.v1.QueryUnreceivedPacketsResponse;if(e.sequences){if(!Array.isArray(e.sequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.sequences: array expected");t.sequences=[];for(var r=0;r<e.sequences.length;++r)s.Long?(t.sequences[r]=s.Long.fromValue(e.sequences[r])).unsigned=!0:"string"==typeof e.sequences[r]?t.sequences[r]=parseInt(e.sequences[r],10):"number"==typeof e.sequences[r]?t.sequences[r]=e.sequences[r]:"object"==typeof e.sequences[r]&&(t.sequences[r]=new s.LongBits(e.sequences[r].low>>>0,e.sequences[r].high>>>0).toNumber(!0))}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.sequences=[]),t.defaults&&(r.height=null),e.sequences&&e.sequences.length){r.sequences=[];for(var n=0;n<e.sequences.length;++n)"number"==typeof e.sequences[n]?r.sequences[n]=t.longs===String?String(e.sequences[n]):e.sequences[n]:r.sequences[n]=t.longs===String?s.Long.prototype.toString.call(e.sequences[n]):t.longs===Number?new s.LongBits(e.sequences[n].low>>>0,e.sequences[n].high>>>0).toNumber(!0):e.sequences[n]}return null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryUnreceivedAcksRequest=function(){function e(e){if(this.packetAckSequences=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.packetAckSequences=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.packetAckSequences&&e.packetAckSequences.length){t.uint32(26).fork();for(var r=0;r<e.packetAckSequences.length;++r)t.uint64(e.packetAckSequences[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryUnreceivedAcksRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;case 3:if(n.packetAckSequences&&n.packetAckSequences.length||(n.packetAckSequences=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.packetAckSequences.push(e.uint64());else n.packetAckSequences.push(e.uint64());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryUnreceivedAcksRequest)return e;var t=new a.ibc.core.channel.v1.QueryUnreceivedAcksRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),e.packetAckSequences){if(!Array.isArray(e.packetAckSequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksRequest.packetAckSequences: array expected");t.packetAckSequences=[];for(var r=0;r<e.packetAckSequences.length;++r)s.Long?(t.packetAckSequences[r]=s.Long.fromValue(e.packetAckSequences[r])).unsigned=!0:"string"==typeof e.packetAckSequences[r]?t.packetAckSequences[r]=parseInt(e.packetAckSequences[r],10):"number"==typeof e.packetAckSequences[r]?t.packetAckSequences[r]=e.packetAckSequences[r]:"object"==typeof e.packetAckSequences[r]&&(t.packetAckSequences[r]=new s.LongBits(e.packetAckSequences[r].low>>>0,e.packetAckSequences[r].high>>>0).toNumber(!0))}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.packetAckSequences=[]),t.defaults&&(r.portId="",r.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),e.packetAckSequences&&e.packetAckSequences.length){r.packetAckSequences=[];for(var n=0;n<e.packetAckSequences.length;++n)"number"==typeof e.packetAckSequences[n]?r.packetAckSequences[n]=t.longs===String?String(e.packetAckSequences[n]):e.packetAckSequences[n]:r.packetAckSequences[n]=t.longs===String?s.Long.prototype.toString.call(e.packetAckSequences[n]):t.longs===Number?new s.LongBits(e.packetAckSequences[n].low>>>0,e.packetAckSequences[n].high>>>0).toNumber(!0):e.packetAckSequences[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryUnreceivedAcksResponse=function(){function e(e){if(this.sequences=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.sequences=s.emptyArray,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.sequences&&e.sequences.length){t.uint32(10).fork();for(var r=0;r<e.sequences.length;++r)t.uint64(e.sequences[r]);t.ldelim()}return null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryUnreceivedAcksResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:if(n.sequences&&n.sequences.length||(n.sequences=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.sequences.push(e.uint64());else n.sequences.push(e.uint64());break;case 2:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryUnreceivedAcksResponse)return e;var t=new a.ibc.core.channel.v1.QueryUnreceivedAcksResponse;if(e.sequences){if(!Array.isArray(e.sequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.sequences: array expected");t.sequences=[];for(var r=0;r<e.sequences.length;++r)s.Long?(t.sequences[r]=s.Long.fromValue(e.sequences[r])).unsigned=!0:"string"==typeof e.sequences[r]?t.sequences[r]=parseInt(e.sequences[r],10):"number"==typeof e.sequences[r]?t.sequences[r]=e.sequences[r]:"object"==typeof e.sequences[r]&&(t.sequences[r]=new s.LongBits(e.sequences[r].low>>>0,e.sequences[r].high>>>0).toNumber(!0))}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.sequences=[]),t.defaults&&(r.height=null),e.sequences&&e.sequences.length){r.sequences=[];for(var n=0;n<e.sequences.length;++n)"number"==typeof e.sequences[n]?r.sequences[n]=t.longs===String?String(e.sequences[n]):e.sequences[n]:r.sequences[n]=t.longs===String?s.Long.prototype.toString.call(e.sequences[n]):t.longs===Number?new s.LongBits(e.sequences[n].low>>>0,e.sequences[n].high>>>0).toNumber(!0):e.sequences[n]}return null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryNextSequenceReceiveRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryNextSequenceReceiveRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.portId=e.string();break;case 2:n.channelId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryNextSequenceReceiveRequest)return e;var t=new a.ibc.core.channel.v1.QueryNextSequenceReceiveRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.portId="",r.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(r.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(r.channelId=e.channelId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryNextSequenceReceiveResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.nextSequenceReceive=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.nextSequenceReceive&&Object.hasOwnProperty.call(e,"nextSequenceReceive")&&t.uint32(8).uint64(e.nextSequenceReceive),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.channel.v1.QueryNextSequenceReceiveResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.nextSequenceReceive=e.uint64();break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.channel.v1.QueryNextSequenceReceiveResponse)return e;var t=new a.ibc.core.channel.v1.QueryNextSequenceReceiveResponse;if(null!=e.nextSequenceReceive&&(s.Long?(t.nextSequenceReceive=s.Long.fromValue(e.nextSequenceReceive)).unsigned=!0:"string"==typeof e.nextSequenceReceive?t.nextSequenceReceive=parseInt(e.nextSequenceReceive,10):"number"==typeof e.nextSequenceReceive?t.nextSequenceReceive=e.nextSequenceReceive:"object"==typeof e.nextSequenceReceive&&(t.nextSequenceReceive=new s.LongBits(e.nextSequenceReceive.low>>>0,e.nextSequenceReceive.high>>>0).toNumber(!0))),null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryNextSequenceReceiveResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!0);r.nextSequenceReceive=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.nextSequenceReceive=t.longs===String?"0":0;t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null}return null!=e.nextSequenceReceive&&e.hasOwnProperty("nextSequenceReceive")&&("number"==typeof e.nextSequenceReceive?r.nextSequenceReceive=t.longs===String?String(e.nextSequenceReceive):e.nextSequenceReceive:r.nextSequenceReceive=t.longs===String?s.Long.prototype.toString.call(e.nextSequenceReceive):t.longs===Number?new s.LongBits(e.nextSequenceReceive.low>>>0,e.nextSequenceReceive.high>>>0).toNumber(!0):e.nextSequenceReceive),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.client=function(){const e={};return e.v1=function(){const e={};return e.Msg=function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.createClient=function e(t,r){return this.rpcCall(e,a.ibc.core.client.v1.MsgCreateClient,a.ibc.core.client.v1.MsgCreateClientResponse,t,r)},"name",{value:"CreateClient"}),Object.defineProperty(e.prototype.updateClient=function e(t,r){return this.rpcCall(e,a.ibc.core.client.v1.MsgUpdateClient,a.ibc.core.client.v1.MsgUpdateClientResponse,t,r)},"name",{value:"UpdateClient"}),Object.defineProperty(e.prototype.upgradeClient=function e(t,r){return this.rpcCall(e,a.ibc.core.client.v1.MsgUpgradeClient,a.ibc.core.client.v1.MsgUpgradeClientResponse,t,r)},"name",{value:"UpgradeClient"}),Object.defineProperty(e.prototype.submitMisbehaviour=function e(t,r){return this.rpcCall(e,a.ibc.core.client.v1.MsgSubmitMisbehaviour,a.ibc.core.client.v1.MsgSubmitMisbehaviourResponse,t,r)},"name",{value:"SubmitMisbehaviour"}),e}(),e.MsgCreateClient=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.clientState=null,e.prototype.consensusState=null,e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.clientState&&Object.hasOwnProperty.call(e,"clientState")&&a.google.protobuf.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&a.google.protobuf.Any.encode(e.consensusState,t.uint32(26).fork()).ldelim(),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(34).string(e.signer),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgCreateClient;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.clientState=a.google.protobuf.Any.decode(e,e.uint32());break;case 3:n.consensusState=a.google.protobuf.Any.decode(e,e.uint32());break;case 4:n.signer=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.MsgCreateClient)return e;var t=new a.ibc.core.client.v1.MsgCreateClient;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.clientState){if("object"!=typeof e.clientState)throw TypeError(".ibc.core.client.v1.MsgCreateClient.clientState: object expected");t.clientState=a.google.protobuf.Any.fromObject(e.clientState)}if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.client.v1.MsgCreateClient.consensusState: object expected");t.consensusState=a.google.protobuf.Any.fromObject(e.consensusState)}return null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientId="",r.clientState=null,r.consensusState=null,r.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.clientState&&e.hasOwnProperty("clientState")&&(r.clientState=a.google.protobuf.Any.toObject(e.clientState,t)),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(r.consensusState=a.google.protobuf.Any.toObject(e.consensusState,t)),null!=e.signer&&e.hasOwnProperty("signer")&&(r.signer=e.signer),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgCreateClientResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgCreateClientResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.ibc.core.client.v1.MsgCreateClientResponse?e:new a.ibc.core.client.v1.MsgCreateClientResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgUpdateClient=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.header=null,e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&a.google.protobuf.Any.encode(e.header,t.uint32(18).fork()).ldelim(),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(26).string(e.signer),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgUpdateClient;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.header=a.google.protobuf.Any.decode(e,e.uint32());break;case 3:n.signer=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.MsgUpdateClient)return e;var t=new a.ibc.core.client.v1.MsgUpdateClient;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.header){if("object"!=typeof e.header)throw TypeError(".ibc.core.client.v1.MsgUpdateClient.header: object expected");t.header=a.google.protobuf.Any.fromObject(e.header)}return null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientId="",r.header=null,r.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.header&&e.hasOwnProperty("header")&&(r.header=a.google.protobuf.Any.toObject(e.header,t)),null!=e.signer&&e.hasOwnProperty("signer")&&(r.signer=e.signer),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgUpdateClientResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgUpdateClientResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.ibc.core.client.v1.MsgUpdateClientResponse?e:new a.ibc.core.client.v1.MsgUpdateClientResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgUpgradeClient=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.clientState=null,e.prototype.upgradeHeight=null,e.prototype.proofUpgrade=s.newBuffer([]),e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.clientState&&Object.hasOwnProperty.call(e,"clientState")&&a.google.protobuf.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),null!=e.upgradeHeight&&Object.hasOwnProperty.call(e,"upgradeHeight")&&a.ibc.core.client.v1.Height.encode(e.upgradeHeight,t.uint32(26).fork()).ldelim(),null!=e.proofUpgrade&&Object.hasOwnProperty.call(e,"proofUpgrade")&&t.uint32(34).bytes(e.proofUpgrade),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(42).string(e.signer),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgUpgradeClient;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.clientState=a.google.protobuf.Any.decode(e,e.uint32());break;case 3:n.upgradeHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;case 4:n.proofUpgrade=e.bytes();break;case 5:n.signer=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.MsgUpgradeClient)return e;var t=new a.ibc.core.client.v1.MsgUpgradeClient;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.clientState){if("object"!=typeof e.clientState)throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.clientState: object expected");t.clientState=a.google.protobuf.Any.fromObject(e.clientState)}if(null!=e.upgradeHeight){if("object"!=typeof e.upgradeHeight)throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.upgradeHeight: object expected");t.upgradeHeight=a.ibc.core.client.v1.Height.fromObject(e.upgradeHeight)}return null!=e.proofUpgrade&&("string"==typeof e.proofUpgrade?s.base64.decode(e.proofUpgrade,t.proofUpgrade=s.newBuffer(s.base64.length(e.proofUpgrade)),0):e.proofUpgrade.length&&(t.proofUpgrade=e.proofUpgrade)),null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientId="",r.clientState=null,r.upgradeHeight=null,t.bytes===String?r.proofUpgrade="":(r.proofUpgrade=[],t.bytes!==Array&&(r.proofUpgrade=s.newBuffer(r.proofUpgrade))),r.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.clientState&&e.hasOwnProperty("clientState")&&(r.clientState=a.google.protobuf.Any.toObject(e.clientState,t)),null!=e.upgradeHeight&&e.hasOwnProperty("upgradeHeight")&&(r.upgradeHeight=a.ibc.core.client.v1.Height.toObject(e.upgradeHeight,t)),null!=e.proofUpgrade&&e.hasOwnProperty("proofUpgrade")&&(r.proofUpgrade=t.bytes===String?s.base64.encode(e.proofUpgrade,0,e.proofUpgrade.length):t.bytes===Array?Array.prototype.slice.call(e.proofUpgrade):e.proofUpgrade),null!=e.signer&&e.hasOwnProperty("signer")&&(r.signer=e.signer),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgUpgradeClientResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgUpgradeClientResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.ibc.core.client.v1.MsgUpgradeClientResponse?e:new a.ibc.core.client.v1.MsgUpgradeClientResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgSubmitMisbehaviour=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.misbehaviour=null,e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.misbehaviour&&Object.hasOwnProperty.call(e,"misbehaviour")&&a.google.protobuf.Any.encode(e.misbehaviour,t.uint32(18).fork()).ldelim(),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(26).string(e.signer),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgSubmitMisbehaviour;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.misbehaviour=a.google.protobuf.Any.decode(e,e.uint32());break;case 3:n.signer=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.MsgSubmitMisbehaviour)return e;var t=new a.ibc.core.client.v1.MsgSubmitMisbehaviour;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.misbehaviour){if("object"!=typeof e.misbehaviour)throw TypeError(".ibc.core.client.v1.MsgSubmitMisbehaviour.misbehaviour: object expected");t.misbehaviour=a.google.protobuf.Any.fromObject(e.misbehaviour)}return null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientId="",r.misbehaviour=null,r.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.misbehaviour&&e.hasOwnProperty("misbehaviour")&&(r.misbehaviour=a.google.protobuf.Any.toObject(e.misbehaviour,t)),null!=e.signer&&e.hasOwnProperty("signer")&&(r.signer=e.signer),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MsgSubmitMisbehaviourResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.MsgSubmitMisbehaviourResponse;e.pos<r;){var i=e.uint32();e.skipType(7&i)}return n},e.fromObject=function(e){return e instanceof a.ibc.core.client.v1.MsgSubmitMisbehaviourResponse?e:new a.ibc.core.client.v1.MsgSubmitMisbehaviourResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.IdentifiedClientState=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.clientState=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.clientState&&Object.hasOwnProperty.call(e,"clientState")&&a.google.protobuf.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.IdentifiedClientState;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.clientState=a.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.IdentifiedClientState)return e;var t=new a.ibc.core.client.v1.IdentifiedClientState;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.clientState){if("object"!=typeof e.clientState)throw TypeError(".ibc.core.client.v1.IdentifiedClientState.clientState: object expected");t.clientState=a.google.protobuf.Any.fromObject(e.clientState)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientId="",r.clientState=null),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.clientState&&e.hasOwnProperty("clientState")&&(r.clientState=a.google.protobuf.Any.toObject(e.clientState,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ConsensusStateWithHeight=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.height=null,e.prototype.consensusState=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(10).fork()).ldelim(),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&a.google.protobuf.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.ConsensusStateWithHeight;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;case 2:n.consensusState=a.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.ConsensusStateWithHeight)return e;var t=new a.ibc.core.client.v1.ConsensusStateWithHeight;if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.consensusState: object expected");t.consensusState=a.google.protobuf.Any.fromObject(e.consensusState)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.height=null,r.consensusState=null),null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(r.consensusState=a.google.protobuf.Any.toObject(e.consensusState,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ClientConsensusStates=function(){function e(e){if(this.consensusStates=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.consensusStates=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.consensusStates&&e.consensusStates.length)for(var r=0;r<e.consensusStates.length;++r)a.ibc.core.client.v1.ConsensusStateWithHeight.encode(e.consensusStates[r],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.ClientConsensusStates;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.consensusStates&&n.consensusStates.length||(n.consensusStates=[]),n.consensusStates.push(a.ibc.core.client.v1.ConsensusStateWithHeight.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.ClientConsensusStates)return e;var t=new a.ibc.core.client.v1.ClientConsensusStates;if(null!=e.clientId&&(t.clientId=String(e.clientId)),e.consensusStates){if(!Array.isArray(e.consensusStates))throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensusStates: array expected");t.consensusStates=[];for(var r=0;r<e.consensusStates.length;++r){if("object"!=typeof e.consensusStates[r])throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensusStates: object expected");t.consensusStates[r]=a.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(e.consensusStates[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.consensusStates=[]),t.defaults&&(r.clientId=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),e.consensusStates&&e.consensusStates.length){r.consensusStates=[];for(var n=0;n<e.consensusStates.length;++n)r.consensusStates[n]=a.ibc.core.client.v1.ConsensusStateWithHeight.toObject(e.consensusStates[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ClientUpdateProposal=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.title="",e.prototype.description="",e.prototype.clientId="",e.prototype.header=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(18).string(e.description),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(26).string(e.clientId),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&a.google.protobuf.Any.encode(e.header,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.ClientUpdateProposal;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.title=e.string();break;case 2:n.description=e.string();break;case 3:n.clientId=e.string();break;case 4:n.header=a.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.ClientUpdateProposal)return e;var t=new a.ibc.core.client.v1.ClientUpdateProposal;if(null!=e.title&&(t.title=String(e.title)),null!=e.description&&(t.description=String(e.description)),null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.header){if("object"!=typeof e.header)throw TypeError(".ibc.core.client.v1.ClientUpdateProposal.header: object expected");t.header=a.google.protobuf.Any.fromObject(e.header)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.title="",r.description="",r.clientId="",r.header=null),null!=e.title&&e.hasOwnProperty("title")&&(r.title=e.title),null!=e.description&&e.hasOwnProperty("description")&&(r.description=e.description),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.header&&e.hasOwnProperty("header")&&(r.header=a.google.protobuf.Any.toObject(e.header,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Height=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.versionNumber=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.versionHeight=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.versionNumber&&Object.hasOwnProperty.call(e,"versionNumber")&&t.uint32(8).uint64(e.versionNumber),null!=e.versionHeight&&Object.hasOwnProperty.call(e,"versionHeight")&&t.uint32(16).uint64(e.versionHeight),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.client.v1.Height;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.versionNumber=e.uint64();break;case 2:n.versionHeight=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.client.v1.Height)return e;var t=new a.ibc.core.client.v1.Height;return null!=e.versionNumber&&(s.Long?(t.versionNumber=s.Long.fromValue(e.versionNumber)).unsigned=!0:"string"==typeof e.versionNumber?t.versionNumber=parseInt(e.versionNumber,10):"number"==typeof e.versionNumber?t.versionNumber=e.versionNumber:"object"==typeof e.versionNumber&&(t.versionNumber=new s.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0))),null!=e.versionHeight&&(s.Long?(t.versionHeight=s.Long.fromValue(e.versionHeight)).unsigned=!0:"string"==typeof e.versionHeight?t.versionHeight=parseInt(e.versionHeight,10):"number"==typeof e.versionHeight?t.versionHeight=e.versionHeight:"object"==typeof e.versionHeight&&(t.versionHeight=new s.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!0);r.versionNumber=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.versionNumber=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.versionHeight=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.versionHeight=t.longs===String?"0":0}return null!=e.versionNumber&&e.hasOwnProperty("versionNumber")&&("number"==typeof e.versionNumber?r.versionNumber=t.longs===String?String(e.versionNumber):e.versionNumber:r.versionNumber=t.longs===String?s.Long.prototype.toString.call(e.versionNumber):t.longs===Number?new s.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0):e.versionNumber),null!=e.versionHeight&&e.hasOwnProperty("versionHeight")&&("number"==typeof e.versionHeight?r.versionHeight=t.longs===String?String(e.versionHeight):e.versionHeight:r.versionHeight=t.longs===String?s.Long.prototype.toString.call(e.versionHeight):t.longs===Number?new s.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0):e.versionHeight),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.commitment=function(){const e={};return e.v1=function(){const e={};return e.MerkleRoot=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hash=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).bytes(e.hash),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.commitment.v1.MerkleRoot;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.hash=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.commitment.v1.MerkleRoot)return e;var t=new a.ibc.core.commitment.v1.MerkleRoot;return null!=e.hash&&("string"==typeof e.hash?s.base64.decode(e.hash,t.hash=s.newBuffer(s.base64.length(e.hash)),0):e.hash.length&&(t.hash=e.hash)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.hash="":(r.hash=[],t.bytes!==Array&&(r.hash=s.newBuffer(r.hash)))),null!=e.hash&&e.hasOwnProperty("hash")&&(r.hash=t.bytes===String?s.base64.encode(e.hash,0,e.hash.length):t.bytes===Array?Array.prototype.slice.call(e.hash):e.hash),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MerklePrefix=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.keyPrefix=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.keyPrefix&&Object.hasOwnProperty.call(e,"keyPrefix")&&t.uint32(10).bytes(e.keyPrefix),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.commitment.v1.MerklePrefix;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.keyPrefix=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.commitment.v1.MerklePrefix)return e;var t=new a.ibc.core.commitment.v1.MerklePrefix;return null!=e.keyPrefix&&("string"==typeof e.keyPrefix?s.base64.decode(e.keyPrefix,t.keyPrefix=s.newBuffer(s.base64.length(e.keyPrefix)),0):e.keyPrefix.length&&(t.keyPrefix=e.keyPrefix)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.keyPrefix="":(r.keyPrefix=[],t.bytes!==Array&&(r.keyPrefix=s.newBuffer(r.keyPrefix)))),null!=e.keyPrefix&&e.hasOwnProperty("keyPrefix")&&(r.keyPrefix=t.bytes===String?s.base64.encode(e.keyPrefix,0,e.keyPrefix.length):t.bytes===Array?Array.prototype.slice.call(e.keyPrefix):e.keyPrefix),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MerklePath=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.keyPath=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.keyPath&&Object.hasOwnProperty.call(e,"keyPath")&&a.ibc.core.commitment.v1.KeyPath.encode(e.keyPath,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.commitment.v1.MerklePath;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.keyPath=a.ibc.core.commitment.v1.KeyPath.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.commitment.v1.MerklePath)return e;var t=new a.ibc.core.commitment.v1.MerklePath;if(null!=e.keyPath){if("object"!=typeof e.keyPath)throw TypeError(".ibc.core.commitment.v1.MerklePath.keyPath: object expected");t.keyPath=a.ibc.core.commitment.v1.KeyPath.fromObject(e.keyPath)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.keyPath=null),null!=e.keyPath&&e.hasOwnProperty("keyPath")&&(r.keyPath=a.ibc.core.commitment.v1.KeyPath.toObject(e.keyPath,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.MerkleProof=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&a.tendermint.crypto.ProofOps.encode(e.proof,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.commitment.v1.MerkleProof;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.proof=a.tendermint.crypto.ProofOps.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.commitment.v1.MerkleProof)return e;var t=new a.ibc.core.commitment.v1.MerkleProof;if(null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".ibc.core.commitment.v1.MerkleProof.proof: object expected");t.proof=a.tendermint.crypto.ProofOps.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.proof=null),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=a.tendermint.crypto.ProofOps.toObject(e.proof,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.KeyPath=function(){function e(e){if(this.keys=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.keys=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.keys&&e.keys.length)for(var r=0;r<e.keys.length;++r)a.ibc.core.commitment.v1.Key.encode(e.keys[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.commitment.v1.KeyPath;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.keys&&n.keys.length||(n.keys=[]),n.keys.push(a.ibc.core.commitment.v1.Key.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.commitment.v1.KeyPath)return e;var t=new a.ibc.core.commitment.v1.KeyPath;if(e.keys){if(!Array.isArray(e.keys))throw TypeError(".ibc.core.commitment.v1.KeyPath.keys: array expected");t.keys=[];for(var r=0;r<e.keys.length;++r){if("object"!=typeof e.keys[r])throw TypeError(".ibc.core.commitment.v1.KeyPath.keys: object expected");t.keys[r]=a.ibc.core.commitment.v1.Key.fromObject(e.keys[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.keys=[]),e.keys&&e.keys.length){r.keys=[];for(var n=0;n<e.keys.length;++n)r.keys[n]=a.ibc.core.commitment.v1.Key.toObject(e.keys[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Key=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.name=s.newBuffer([]),e.prototype.enc=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).bytes(e.name),null!=e.enc&&Object.hasOwnProperty.call(e,"enc")&&t.uint32(16).int32(e.enc),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.commitment.v1.Key;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.name=e.bytes();break;case 2:n.enc=e.int32();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.commitment.v1.Key)return e;var t=new a.ibc.core.commitment.v1.Key;switch(null!=e.name&&("string"==typeof e.name?s.base64.decode(e.name,t.name=s.newBuffer(s.base64.length(e.name)),0):e.name.length&&(t.name=e.name)),e.enc){case"KEY_ENCODING_URL_UNSPECIFIED":case 0:t.enc=0;break;case"KEY_ENCODING_HEX":case 1:t.enc=1}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.name="":(r.name=[],t.bytes!==Array&&(r.name=s.newBuffer(r.name))),r.enc=t.enums===String?"KEY_ENCODING_URL_UNSPECIFIED":0),null!=e.name&&e.hasOwnProperty("name")&&(r.name=t.bytes===String?s.base64.encode(e.name,0,e.name.length):t.bytes===Array?Array.prototype.slice.call(e.name):e.name),null!=e.enc&&e.hasOwnProperty("enc")&&(r.enc=t.enums===String?a.ibc.core.commitment.v1.KeyEncoding[e.enc]:e.enc),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.KeyEncoding=function(){const e={},t=Object.create(e);return t[e[0]="KEY_ENCODING_URL_UNSPECIFIED"]=0,t[e[1]="KEY_ENCODING_HEX"]=1,t}(),e}(),e}(),e.connection=function(){const e={};return e.v1=function(){const e={};return e.ConnectionEnd=function(){function e(e){if(this.versions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.versions=s.emptyArray,e.prototype.state=0,e.prototype.counterparty=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.versions&&e.versions.length)for(var r=0;r<e.versions.length;++r)a.ibc.core.connection.v1.Version.encode(e.versions[r],t.uint32(18).fork()).ldelim();return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(24).int32(e.state),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&a.ibc.core.connection.v1.Counterparty.encode(e.counterparty,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.ConnectionEnd;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.versions&&n.versions.length||(n.versions=[]),n.versions.push(a.ibc.core.connection.v1.Version.decode(e,e.uint32()));break;case 3:n.state=e.int32();break;case 4:n.counterparty=a.ibc.core.connection.v1.Counterparty.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.ConnectionEnd)return e;var t=new a.ibc.core.connection.v1.ConnectionEnd;if(null!=e.clientId&&(t.clientId=String(e.clientId)),e.versions){if(!Array.isArray(e.versions))throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: array expected");t.versions=[];for(var r=0;r<e.versions.length;++r){if("object"!=typeof e.versions[r])throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: object expected");t.versions[r]=a.ibc.core.connection.v1.Version.fromObject(e.versions[r])}}switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.connection.v1.ConnectionEnd.counterparty: object expected");t.counterparty=a.ibc.core.connection.v1.Counterparty.fromObject(e.counterparty)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.versions=[]),t.defaults&&(r.clientId="",r.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,r.counterparty=null),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),e.versions&&e.versions.length){r.versions=[];for(var n=0;n<e.versions.length;++n)r.versions[n]=a.ibc.core.connection.v1.Version.toObject(e.versions[n],t)}return null!=e.state&&e.hasOwnProperty("state")&&(r.state=t.enums===String?a.ibc.core.connection.v1.State[e.state]:e.state),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(r.counterparty=a.ibc.core.connection.v1.Counterparty.toObject(e.counterparty,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.IdentifiedConnection=function(){function e(e){if(this.versions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.id="",e.prototype.clientId="",e.prototype.versions=s.emptyArray,e.prototype.state=0,e.prototype.counterparty=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(18).string(e.clientId),null!=e.versions&&e.versions.length)for(var r=0;r<e.versions.length;++r)a.ibc.core.connection.v1.Version.encode(e.versions[r],t.uint32(26).fork()).ldelim();return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(32).int32(e.state),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&a.ibc.core.connection.v1.Counterparty.encode(e.counterparty,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.IdentifiedConnection;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.id=e.string();break;case 2:n.clientId=e.string();break;case 3:n.versions&&n.versions.length||(n.versions=[]),n.versions.push(a.ibc.core.connection.v1.Version.decode(e,e.uint32()));break;case 4:n.state=e.int32();break;case 5:n.counterparty=a.ibc.core.connection.v1.Counterparty.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.IdentifiedConnection)return e;var t=new a.ibc.core.connection.v1.IdentifiedConnection;if(null!=e.id&&(t.id=String(e.id)),null!=e.clientId&&(t.clientId=String(e.clientId)),e.versions){if(!Array.isArray(e.versions))throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: array expected");t.versions=[];for(var r=0;r<e.versions.length;++r){if("object"!=typeof e.versions[r])throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: object expected");t.versions[r]=a.ibc.core.connection.v1.Version.fromObject(e.versions[r])}}switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.counterparty: object expected");t.counterparty=a.ibc.core.connection.v1.Counterparty.fromObject(e.counterparty)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.versions=[]),t.defaults&&(r.id="",r.clientId="",r.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,r.counterparty=null),null!=e.id&&e.hasOwnProperty("id")&&(r.id=e.id),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),e.versions&&e.versions.length){r.versions=[];for(var n=0;n<e.versions.length;++n)r.versions[n]=a.ibc.core.connection.v1.Version.toObject(e.versions[n],t)}return null!=e.state&&e.hasOwnProperty("state")&&(r.state=t.enums===String?a.ibc.core.connection.v1.State[e.state]:e.state),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(r.counterparty=a.ibc.core.connection.v1.Counterparty.toObject(e.counterparty,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.State=function(){const e={},t=Object.create(e);return t[e[0]="STATE_UNINITIALIZED_UNSPECIFIED"]=0,t[e[1]="STATE_INIT"]=1,t[e[2]="STATE_TRYOPEN"]=2,t[e[3]="STATE_OPEN"]=3,t}(),e.Counterparty=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.connectionId="",e.prototype.prefix=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(18).string(e.connectionId),null!=e.prefix&&Object.hasOwnProperty.call(e,"prefix")&&a.ibc.core.commitment.v1.MerklePrefix.encode(e.prefix,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.Counterparty;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.connectionId=e.string();break;case 3:n.prefix=a.ibc.core.commitment.v1.MerklePrefix.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.Counterparty)return e;var t=new a.ibc.core.connection.v1.Counterparty;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.connectionId&&(t.connectionId=String(e.connectionId)),null!=e.prefix){if("object"!=typeof e.prefix)throw TypeError(".ibc.core.connection.v1.Counterparty.prefix: object expected");t.prefix=a.ibc.core.commitment.v1.MerklePrefix.fromObject(e.prefix)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientId="",r.connectionId="",r.prefix=null),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(r.connectionId=e.connectionId),null!=e.prefix&&e.hasOwnProperty("prefix")&&(r.prefix=a.ibc.core.commitment.v1.MerklePrefix.toObject(e.prefix,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ClientPaths=function(){function e(e){if(this.paths=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.paths=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.paths&&e.paths.length)for(var r=0;r<e.paths.length;++r)t.uint32(10).string(e.paths[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.ClientPaths;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.paths&&n.paths.length||(n.paths=[]),n.paths.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.ClientPaths)return e;var t=new a.ibc.core.connection.v1.ClientPaths;if(e.paths){if(!Array.isArray(e.paths))throw TypeError(".ibc.core.connection.v1.ClientPaths.paths: array expected");t.paths=[];for(var r=0;r<e.paths.length;++r)t.paths[r]=String(e.paths[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.paths=[]),e.paths&&e.paths.length){r.paths=[];for(var n=0;n<e.paths.length;++n)r.paths[n]=e.paths[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ConnectionPaths=function(){function e(e){if(this.paths=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.prototype.paths=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.paths&&e.paths.length)for(var r=0;r<e.paths.length;++r)t.uint32(18).string(e.paths[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.ConnectionPaths;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;case 2:n.paths&&n.paths.length||(n.paths=[]),n.paths.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.ConnectionPaths)return e;var t=new a.ibc.core.connection.v1.ConnectionPaths;if(null!=e.clientId&&(t.clientId=String(e.clientId)),e.paths){if(!Array.isArray(e.paths))throw TypeError(".ibc.core.connection.v1.ConnectionPaths.paths: array expected");t.paths=[];for(var r=0;r<e.paths.length;++r)t.paths[r]=String(e.paths[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.paths=[]),t.defaults&&(r.clientId=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),e.paths&&e.paths.length){r.paths=[];for(var n=0;n<e.paths.length;++n)r.paths[n]=e.paths[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Version=function(){function e(e){if(this.features=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.identifier="",e.prototype.features=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.identifier&&Object.hasOwnProperty.call(e,"identifier")&&t.uint32(10).string(e.identifier),null!=e.features&&e.features.length)for(var r=0;r<e.features.length;++r)t.uint32(18).string(e.features[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.Version;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.identifier=e.string();break;case 2:n.features&&n.features.length||(n.features=[]),n.features.push(e.string());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.Version)return e;var t=new a.ibc.core.connection.v1.Version;if(null!=e.identifier&&(t.identifier=String(e.identifier)),e.features){if(!Array.isArray(e.features))throw TypeError(".ibc.core.connection.v1.Version.features: array expected");t.features=[];for(var r=0;r<e.features.length;++r)t.features[r]=String(e.features[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.features=[]),t.defaults&&(r.identifier=""),null!=e.identifier&&e.hasOwnProperty("identifier")&&(r.identifier=e.identifier),e.features&&e.features.length){r.features=[];for(var n=0;n<e.features.length;++n)r.features[n]=e.features[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,r){n.rpc.Service.call(this,e,t,r)}return(e.prototype=Object.create(n.rpc.Service.prototype)).constructor=e,e.create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(e.prototype.connection=function e(t,r){return this.rpcCall(e,a.ibc.core.connection.v1.QueryConnectionRequest,a.ibc.core.connection.v1.QueryConnectionResponse,t,r)},"name",{value:"Connection"}),Object.defineProperty(e.prototype.connections=function e(t,r){return this.rpcCall(e,a.ibc.core.connection.v1.QueryConnectionsRequest,a.ibc.core.connection.v1.QueryConnectionsResponse,t,r)},"name",{value:"Connections"}),Object.defineProperty(e.prototype.clientConnections=function e(t,r){return this.rpcCall(e,a.ibc.core.connection.v1.QueryClientConnectionsRequest,a.ibc.core.connection.v1.QueryClientConnectionsResponse,t,r)},"name",{value:"ClientConnections"}),Object.defineProperty(e.prototype.connectionClientState=function e(t,r){return this.rpcCall(e,a.ibc.core.connection.v1.QueryConnectionClientStateRequest,a.ibc.core.connection.v1.QueryConnectionClientStateResponse,t,r)},"name",{value:"ConnectionClientState"}),Object.defineProperty(e.prototype.connectionConsensusState=function e(t,r){return this.rpcCall(e,a.ibc.core.connection.v1.QueryConnectionConsensusStateRequest,a.ibc.core.connection.v1.QueryConnectionConsensusStateResponse,t,r)},"name",{value:"ConnectionConsensusState"}),e}(),e.QueryConnectionRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.connectionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(10).string(e.connectionId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.connectionId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionRequest)return e;var t=new a.ibc.core.connection.v1.QueryConnectionRequest;return null!=e.connectionId&&(t.connectionId=String(e.connectionId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.connectionId=""),null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(r.connectionId=e.connectionId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.connection=null,e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.connection&&Object.hasOwnProperty.call(e,"connection")&&a.ibc.core.connection.v1.ConnectionEnd.encode(e.connection,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.connection=a.ibc.core.connection.v1.ConnectionEnd.decode(e,e.uint32());break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionResponse)return e;var t=new a.ibc.core.connection.v1.QueryConnectionResponse;if(null!=e.connection){if("object"!=typeof e.connection)throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.connection: object expected");t.connection=a.ibc.core.connection.v1.ConnectionEnd.fromObject(e.connection)}if(null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.connection=null,t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.connection&&e.hasOwnProperty("connection")&&(r.connection=a.ibc.core.connection.v1.ConnectionEnd.toObject(e.connection,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionsRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.pagination=a.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionsRequest)return e;var t=new a.ibc.core.connection.v1.QueryConnectionsRequest;if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.connection.v1.QueryConnectionsRequest.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.pagination=null),null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionsResponse=function(){function e(e){if(this.connections=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.connections=s.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.connections&&e.connections.length)for(var r=0;r<e.connections.length;++r)a.ibc.core.connection.v1.IdentifiedConnection.encode(e.connections[r],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&a.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&a.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.connections&&n.connections.length||(n.connections=[]),n.connections.push(a.ibc.core.connection.v1.IdentifiedConnection.decode(e,e.uint32()));break;case 2:n.pagination=a.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:n.height=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionsResponse)return e;var t=new a.ibc.core.connection.v1.QueryConnectionsResponse;if(e.connections){if(!Array.isArray(e.connections))throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: array expected");t.connections=[];for(var r=0;r<e.connections.length;++r){if("object"!=typeof e.connections[r])throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: object expected");t.connections[r]=a.ibc.core.connection.v1.IdentifiedConnection.fromObject(e.connections[r])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.pagination: object expected");t.pagination=a.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.height: object expected");t.height=a.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.connections=[]),t.defaults&&(r.pagination=null,r.height=null),e.connections&&e.connections.length){r.connections=[];for(var n=0;n<e.connections.length;++n)r.connections[n]=a.ibc.core.connection.v1.IdentifiedConnection.toObject(e.connections[n],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(r.pagination=a.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(r.height=a.ibc.core.client.v1.Height.toObject(e.height,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryClientConnectionsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.clientId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryClientConnectionsRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.clientId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryClientConnectionsRequest)return e;var t=new a.ibc.core.connection.v1.QueryClientConnectionsRequest;return null!=e.clientId&&(t.clientId=String(e.clientId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.clientId=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryClientConnectionsResponse=function(){function e(e){if(this.connectionPaths=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.connectionPaths=s.emptyArray,e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.connectionPaths&&e.connectionPaths.length)for(var r=0;r<e.connectionPaths.length;++r)t.uint32(10).string(e.connectionPaths[r]);return null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryClientConnectionsResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.connectionPaths&&n.connectionPaths.length||(n.connectionPaths=[]),n.connectionPaths.push(e.string());break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryClientConnectionsResponse)return e;var t=new a.ibc.core.connection.v1.QueryClientConnectionsResponse;if(e.connectionPaths){if(!Array.isArray(e.connectionPaths))throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.connectionPaths: array expected");t.connectionPaths=[];for(var r=0;r<e.connectionPaths.length;++r)t.connectionPaths[r]=String(e.connectionPaths[r])}if(null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.connectionPaths=[]),t.defaults&&(t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),e.connectionPaths&&e.connectionPaths.length){r.connectionPaths=[];for(var n=0;n<e.connectionPaths.length;++n)r.connectionPaths[n]=e.connectionPaths[n]}return null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionClientStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.connectionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(10).string(e.connectionId),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionClientStateRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.connectionId=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionClientStateRequest)return e;var t=new a.ibc.core.connection.v1.QueryConnectionClientStateRequest;return null!=e.connectionId&&(t.connectionId=String(e.connectionId)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.connectionId=""),null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(r.connectionId=e.connectionId),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionClientStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.identifiedClientState=null,e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.identifiedClientState&&Object.hasOwnProperty.call(e,"identifiedClientState")&&a.ibc.core.client.v1.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionClientStateResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.identifiedClientState=a.ibc.core.client.v1.IdentifiedClientState.decode(e,e.uint32());break;case 2:n.proof=e.bytes();break;case 3:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionClientStateResponse)return e;var t=new a.ibc.core.connection.v1.QueryConnectionClientStateResponse;if(null!=e.identifiedClientState){if("object"!=typeof e.identifiedClientState)throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.identifiedClientState: object expected");t.identifiedClientState=a.ibc.core.client.v1.IdentifiedClientState.fromObject(e.identifiedClientState)}if(null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.identifiedClientState=null,t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.identifiedClientState&&e.hasOwnProperty("identifiedClientState")&&(r.identifiedClientState=a.ibc.core.client.v1.IdentifiedClientState.toObject(e.identifiedClientState,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionConsensusStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.connectionId="",e.prototype.versionNumber=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.versionHeight=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(10).string(e.connectionId),null!=e.versionNumber&&Object.hasOwnProperty.call(e,"versionNumber")&&t.uint32(16).uint64(e.versionNumber),null!=e.versionHeight&&Object.hasOwnProperty.call(e,"versionHeight")&&t.uint32(24).uint64(e.versionHeight),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionConsensusStateRequest;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.connectionId=e.string();break;case 2:n.versionNumber=e.uint64();break;case 3:n.versionHeight=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionConsensusStateRequest)return e;var t=new a.ibc.core.connection.v1.QueryConnectionConsensusStateRequest;return null!=e.connectionId&&(t.connectionId=String(e.connectionId)),null!=e.versionNumber&&(s.Long?(t.versionNumber=s.Long.fromValue(e.versionNumber)).unsigned=!0:"string"==typeof e.versionNumber?t.versionNumber=parseInt(e.versionNumber,10):"number"==typeof e.versionNumber?t.versionNumber=e.versionNumber:"object"==typeof e.versionNumber&&(t.versionNumber=new s.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0))),null!=e.versionHeight&&(s.Long?(t.versionHeight=s.Long.fromValue(e.versionHeight)).unsigned=!0:"string"==typeof e.versionHeight?t.versionHeight=parseInt(e.versionHeight,10):"number"==typeof e.versionHeight?t.versionHeight=e.versionHeight:"object"==typeof e.versionHeight&&(t.versionHeight=new s.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.connectionId="",s.Long){var n=new s.Long(0,0,!0);r.versionNumber=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.versionNumber=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.versionHeight=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.versionHeight=t.longs===String?"0":0}return null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(r.connectionId=e.connectionId),null!=e.versionNumber&&e.hasOwnProperty("versionNumber")&&("number"==typeof e.versionNumber?r.versionNumber=t.longs===String?String(e.versionNumber):e.versionNumber:r.versionNumber=t.longs===String?s.Long.prototype.toString.call(e.versionNumber):t.longs===Number?new s.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0):e.versionNumber),null!=e.versionHeight&&e.hasOwnProperty("versionHeight")&&("number"==typeof e.versionHeight?r.versionHeight=t.longs===String?String(e.versionHeight):e.versionHeight:r.versionHeight=t.longs===String?s.Long.prototype.toString.call(e.versionHeight):t.longs===Number?new s.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0):e.versionHeight),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.QueryConnectionConsensusStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.consensusState=null,e.prototype.clientId="",e.prototype.proof=s.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&a.google.protobuf.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(18).string(e.clientId),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(26).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&a.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.ibc.core.connection.v1.QueryConnectionConsensusStateResponse;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.consensusState=a.google.protobuf.Any.decode(e,e.uint32());break;case 2:n.clientId=e.string();break;case 3:n.proof=e.bytes();break;case 4:n.proofHeight=a.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.ibc.core.connection.v1.QueryConnectionConsensusStateResponse)return e;var t=new a.ibc.core.connection.v1.QueryConnectionConsensusStateResponse;if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.consensusState: object expected");t.consensusState=a.google.protobuf.Any.fromObject(e.consensusState)}if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.proof&&("string"==typeof e.proof?s.base64.decode(e.proof,t.proof=s.newBuffer(s.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.proofHeight: object expected");t.proofHeight=a.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.consensusState=null,r.clientId="",t.bytes===String?r.proof="":(r.proof=[],t.bytes!==Array&&(r.proof=s.newBuffer(r.proof))),r.proofHeight=null),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(r.consensusState=a.google.protobuf.Any.toObject(e.consensusState,t)),null!=e.clientId&&e.hasOwnProperty("clientId")&&(r.clientId=e.clientId),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=t.bytes===String?s.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(r.proofHeight=a.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e}(),e})(),t.tendermint=a.tendermint=(()=>{const e={};return e.crypto=function(){const e={};return e.PublicKey=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}let t;return e.prototype.ed25519=s.newBuffer([]),e.prototype.secp256k1=s.newBuffer([]),Object.defineProperty(e.prototype,"sum",{get:s.oneOfGetter(t=["ed25519","secp256k1"]),set:s.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(10).bytes(e.ed25519),null!=e.secp256k1&&Object.hasOwnProperty.call(e,"secp256k1")&&t.uint32(18).bytes(e.secp256k1),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.crypto.PublicKey;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.ed25519=e.bytes();break;case 2:n.secp256k1=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.crypto.PublicKey)return e;var t=new a.tendermint.crypto.PublicKey;return null!=e.ed25519&&("string"==typeof e.ed25519?s.base64.decode(e.ed25519,t.ed25519=s.newBuffer(s.base64.length(e.ed25519)),0):e.ed25519.length&&(t.ed25519=e.ed25519)),null!=e.secp256k1&&("string"==typeof e.secp256k1?s.base64.decode(e.secp256k1,t.secp256k1=s.newBuffer(s.base64.length(e.secp256k1)),0):e.secp256k1.length&&(t.secp256k1=e.secp256k1)),t},e.toObject=function(e,t){t||(t={});var r={};return null!=e.ed25519&&e.hasOwnProperty("ed25519")&&(r.ed25519=t.bytes===String?s.base64.encode(e.ed25519,0,e.ed25519.length):t.bytes===Array?Array.prototype.slice.call(e.ed25519):e.ed25519,t.oneofs&&(r.sum="ed25519")),null!=e.secp256k1&&e.hasOwnProperty("secp256k1")&&(r.secp256k1=t.bytes===String?s.base64.encode(e.secp256k1,0,e.secp256k1.length):t.bytes===Array?Array.prototype.slice.call(e.secp256k1):e.secp256k1,t.oneofs&&(r.sum="secp256k1")),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Proof=function(){function e(e){if(this.aunts=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.total=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.index=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.leafHash=s.newBuffer([]),e.prototype.aunts=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(8).int64(e.total),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(16).int64(e.index),null!=e.leafHash&&Object.hasOwnProperty.call(e,"leafHash")&&t.uint32(26).bytes(e.leafHash),null!=e.aunts&&e.aunts.length)for(var r=0;r<e.aunts.length;++r)t.uint32(34).bytes(e.aunts[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.crypto.Proof;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.total=e.int64();break;case 2:n.index=e.int64();break;case 3:n.leafHash=e.bytes();break;case 4:n.aunts&&n.aunts.length||(n.aunts=[]),n.aunts.push(e.bytes());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.crypto.Proof)return e;var t=new a.tendermint.crypto.Proof;if(null!=e.total&&(s.Long?(t.total=s.Long.fromValue(e.total)).unsigned=!1:"string"==typeof e.total?t.total=parseInt(e.total,10):"number"==typeof e.total?t.total=e.total:"object"==typeof e.total&&(t.total=new s.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber())),null!=e.index&&(s.Long?(t.index=s.Long.fromValue(e.index)).unsigned=!1:"string"==typeof e.index?t.index=parseInt(e.index,10):"number"==typeof e.index?t.index=e.index:"object"==typeof e.index&&(t.index=new s.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber())),null!=e.leafHash&&("string"==typeof e.leafHash?s.base64.decode(e.leafHash,t.leafHash=s.newBuffer(s.base64.length(e.leafHash)),0):e.leafHash.length&&(t.leafHash=e.leafHash)),e.aunts){if(!Array.isArray(e.aunts))throw TypeError(".tendermint.crypto.Proof.aunts: array expected");t.aunts=[];for(var r=0;r<e.aunts.length;++r)"string"==typeof e.aunts[r]?s.base64.decode(e.aunts[r],t.aunts[r]=s.newBuffer(s.base64.length(e.aunts[r])),0):e.aunts[r].length&&(t.aunts[r]=e.aunts[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.aunts=[]),t.defaults){if(s.Long){var n=new s.Long(0,0,!1);r.total=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.total=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!1);r.index=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.index=t.longs===String?"0":0;t.bytes===String?r.leafHash="":(r.leafHash=[],t.bytes!==Array&&(r.leafHash=s.newBuffer(r.leafHash)))}if(null!=e.total&&e.hasOwnProperty("total")&&("number"==typeof e.total?r.total=t.longs===String?String(e.total):e.total:r.total=t.longs===String?s.Long.prototype.toString.call(e.total):t.longs===Number?new s.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber():e.total),null!=e.index&&e.hasOwnProperty("index")&&("number"==typeof e.index?r.index=t.longs===String?String(e.index):e.index:r.index=t.longs===String?s.Long.prototype.toString.call(e.index):t.longs===Number?new s.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber():e.index),null!=e.leafHash&&e.hasOwnProperty("leafHash")&&(r.leafHash=t.bytes===String?s.base64.encode(e.leafHash,0,e.leafHash.length):t.bytes===Array?Array.prototype.slice.call(e.leafHash):e.leafHash),e.aunts&&e.aunts.length){r.aunts=[];for(var o=0;o<e.aunts.length;++o)r.aunts[o]=t.bytes===String?s.base64.encode(e.aunts[o],0,e.aunts[o].length):t.bytes===Array?Array.prototype.slice.call(e.aunts[o]):e.aunts[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ValueOp=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.key=s.newBuffer([]),e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&a.tendermint.crypto.Proof.encode(e.proof,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.crypto.ValueOp;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.key=e.bytes();break;case 2:n.proof=a.tendermint.crypto.Proof.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.crypto.ValueOp)return e;var t=new a.tendermint.crypto.ValueOp;if(null!=e.key&&("string"==typeof e.key?s.base64.decode(e.key,t.key=s.newBuffer(s.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".tendermint.crypto.ValueOp.proof: object expected");t.proof=a.tendermint.crypto.Proof.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.key="":(r.key=[],t.bytes!==Array&&(r.key=s.newBuffer(r.key))),r.proof=null),null!=e.key&&e.hasOwnProperty("key")&&(r.key=t.bytes===String?s.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=a.tendermint.crypto.Proof.toObject(e.proof,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.DominoOp=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.key="",e.prototype.input="",e.prototype.output="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.input&&Object.hasOwnProperty.call(e,"input")&&t.uint32(18).string(e.input),null!=e.output&&Object.hasOwnProperty.call(e,"output")&&t.uint32(26).string(e.output),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.crypto.DominoOp;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.key=e.string();break;case 2:n.input=e.string();break;case 3:n.output=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.crypto.DominoOp)return e;var t=new a.tendermint.crypto.DominoOp;return null!=e.key&&(t.key=String(e.key)),null!=e.input&&(t.input=String(e.input)),null!=e.output&&(t.output=String(e.output)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.key="",r.input="",r.output=""),null!=e.key&&e.hasOwnProperty("key")&&(r.key=e.key),null!=e.input&&e.hasOwnProperty("input")&&(r.input=e.input),null!=e.output&&e.hasOwnProperty("output")&&(r.output=e.output),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ProofOp=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type="",e.prototype.key=s.newBuffer([]),e.prototype.data=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(18).bytes(e.key),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(26).bytes(e.data),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.crypto.ProofOp;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.type=e.string();break;case 2:n.key=e.bytes();break;case 3:n.data=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.crypto.ProofOp)return e;var t=new a.tendermint.crypto.ProofOp;return null!=e.type&&(t.type=String(e.type)),null!=e.key&&("string"==typeof e.key?s.base64.decode(e.key,t.key=s.newBuffer(s.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),null!=e.data&&("string"==typeof e.data?s.base64.decode(e.data,t.data=s.newBuffer(s.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.type="",t.bytes===String?r.key="":(r.key=[],t.bytes!==Array&&(r.key=s.newBuffer(r.key))),t.bytes===String?r.data="":(r.data=[],t.bytes!==Array&&(r.data=s.newBuffer(r.data)))),null!=e.type&&e.hasOwnProperty("type")&&(r.type=e.type),null!=e.key&&e.hasOwnProperty("key")&&(r.key=t.bytes===String?s.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),null!=e.data&&e.hasOwnProperty("data")&&(r.data=t.bytes===String?s.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ProofOps=function(){function e(e){if(this.ops=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.ops=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.ops&&e.ops.length)for(var r=0;r<e.ops.length;++r)a.tendermint.crypto.ProofOp.encode(e.ops[r],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.crypto.ProofOps;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.ops&&n.ops.length||(n.ops=[]),n.ops.push(a.tendermint.crypto.ProofOp.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.crypto.ProofOps)return e;var t=new a.tendermint.crypto.ProofOps;if(e.ops){if(!Array.isArray(e.ops))throw TypeError(".tendermint.crypto.ProofOps.ops: array expected");t.ops=[];for(var r=0;r<e.ops.length;++r){if("object"!=typeof e.ops[r])throw TypeError(".tendermint.crypto.ProofOps.ops: object expected");t.ops[r]=a.tendermint.crypto.ProofOp.fromObject(e.ops[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.ops=[]),e.ops&&e.ops.length){r.ops=[];for(var n=0;n<e.ops.length;++n)r.ops[n]=a.tendermint.crypto.ProofOp.toObject(e.ops[n],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.libs=function(){const e={};return e.bits=function(){const e={};return e.BitArray=function(){function e(e){if(this.elems=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.bits=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.elems=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.bits&&Object.hasOwnProperty.call(e,"bits")&&t.uint32(8).int64(e.bits),null!=e.elems&&e.elems.length){t.uint32(18).fork();for(var r=0;r<e.elems.length;++r)t.uint64(e.elems[r]);t.ldelim()}return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.libs.bits.BitArray;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.bits=e.int64();break;case 2:if(n.elems&&n.elems.length||(n.elems=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)n.elems.push(e.uint64());else n.elems.push(e.uint64());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.libs.bits.BitArray)return e;var t=new a.tendermint.libs.bits.BitArray;if(null!=e.bits&&(s.Long?(t.bits=s.Long.fromValue(e.bits)).unsigned=!1:"string"==typeof e.bits?t.bits=parseInt(e.bits,10):"number"==typeof e.bits?t.bits=e.bits:"object"==typeof e.bits&&(t.bits=new s.LongBits(e.bits.low>>>0,e.bits.high>>>0).toNumber())),e.elems){if(!Array.isArray(e.elems))throw TypeError(".tendermint.libs.bits.BitArray.elems: array expected");t.elems=[];for(var r=0;r<e.elems.length;++r)s.Long?(t.elems[r]=s.Long.fromValue(e.elems[r])).unsigned=!0:"string"==typeof e.elems[r]?t.elems[r]=parseInt(e.elems[r],10):"number"==typeof e.elems[r]?t.elems[r]=e.elems[r]:"object"==typeof e.elems[r]&&(t.elems[r]=new s.LongBits(e.elems[r].low>>>0,e.elems[r].high>>>0).toNumber(!0))}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.elems=[]),t.defaults)if(s.Long){var n=new s.Long(0,0,!1);r.bits=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.bits=t.longs===String?"0":0;if(null!=e.bits&&e.hasOwnProperty("bits")&&("number"==typeof e.bits?r.bits=t.longs===String?String(e.bits):e.bits:r.bits=t.longs===String?s.Long.prototype.toString.call(e.bits):t.longs===Number?new s.LongBits(e.bits.low>>>0,e.bits.high>>>0).toNumber():e.bits),e.elems&&e.elems.length){r.elems=[];for(var o=0;o<e.elems.length;++o)"number"==typeof e.elems[o]?r.elems[o]=t.longs===String?String(e.elems[o]):e.elems[o]:r.elems[o]=t.longs===String?s.Long.prototype.toString.call(e.elems[o]):t.longs===Number?new s.LongBits(e.elems[o].low>>>0,e.elems[o].high>>>0).toNumber(!0):e.elems[o]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e}(),e.types=function(){const e={};return e.BlockIDFlag=function(){const e={},t=Object.create(e);return t[e[0]="BLOCK_ID_FLAG_UNKNOWN"]=0,t[e[1]="BLOCK_ID_FLAG_ABSENT"]=1,t[e[2]="BLOCK_ID_FLAG_COMMIT"]=2,t[e[3]="BLOCK_ID_FLAG_NIL"]=3,t}(),e.SignedMsgType=function(){const e={},t=Object.create(e);return t[e[0]="SIGNED_MSG_TYPE_UNKNOWN"]=0,t[e[1]="SIGNED_MSG_TYPE_PREVOTE"]=1,t[e[2]="SIGNED_MSG_TYPE_PRECOMMIT"]=2,t[e[32]="SIGNED_MSG_TYPE_PROPOSAL"]=32,t}(),e.PartSetHeader=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.total=0,e.prototype.hash=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(8).uint32(e.total),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(18).bytes(e.hash),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.PartSetHeader;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.total=e.uint32();break;case 2:n.hash=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.PartSetHeader)return e;var t=new a.tendermint.types.PartSetHeader;return null!=e.total&&(t.total=e.total>>>0),null!=e.hash&&("string"==typeof e.hash?s.base64.decode(e.hash,t.hash=s.newBuffer(s.base64.length(e.hash)),0):e.hash.length&&(t.hash=e.hash)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.total=0,t.bytes===String?r.hash="":(r.hash=[],t.bytes!==Array&&(r.hash=s.newBuffer(r.hash)))),null!=e.total&&e.hasOwnProperty("total")&&(r.total=e.total),null!=e.hash&&e.hasOwnProperty("hash")&&(r.hash=t.bytes===String?s.base64.encode(e.hash,0,e.hash.length):t.bytes===Array?Array.prototype.slice.call(e.hash):e.hash),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Part=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.index=0,e.prototype.bytes=s.newBuffer([]),e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(8).uint32(e.index),null!=e.bytes&&Object.hasOwnProperty.call(e,"bytes")&&t.uint32(18).bytes(e.bytes),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&a.tendermint.crypto.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.Part;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.index=e.uint32();break;case 2:n.bytes=e.bytes();break;case 3:n.proof=a.tendermint.crypto.Proof.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.Part)return e;var t=new a.tendermint.types.Part;if(null!=e.index&&(t.index=e.index>>>0),null!=e.bytes&&("string"==typeof e.bytes?s.base64.decode(e.bytes,t.bytes=s.newBuffer(s.base64.length(e.bytes)),0):e.bytes.length&&(t.bytes=e.bytes)),null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".tendermint.types.Part.proof: object expected");t.proof=a.tendermint.crypto.Proof.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.index=0,t.bytes===String?r.bytes="":(r.bytes=[],t.bytes!==Array&&(r.bytes=s.newBuffer(r.bytes))),r.proof=null),null!=e.index&&e.hasOwnProperty("index")&&(r.index=e.index),null!=e.bytes&&e.hasOwnProperty("bytes")&&(r.bytes=t.bytes===String?s.base64.encode(e.bytes,0,e.bytes.length):t.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=a.tendermint.crypto.Proof.toObject(e.proof,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.BlockID=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.hash=s.newBuffer([]),e.prototype.partSetHeader=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).bytes(e.hash),null!=e.partSetHeader&&Object.hasOwnProperty.call(e,"partSetHeader")&&a.tendermint.types.PartSetHeader.encode(e.partSetHeader,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.BlockID;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.hash=e.bytes();break;case 2:n.partSetHeader=a.tendermint.types.PartSetHeader.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.BlockID)return e;var t=new a.tendermint.types.BlockID;if(null!=e.hash&&("string"==typeof e.hash?s.base64.decode(e.hash,t.hash=s.newBuffer(s.base64.length(e.hash)),0):e.hash.length&&(t.hash=e.hash)),null!=e.partSetHeader){if("object"!=typeof e.partSetHeader)throw TypeError(".tendermint.types.BlockID.partSetHeader: object expected");t.partSetHeader=a.tendermint.types.PartSetHeader.fromObject(e.partSetHeader)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.hash="":(r.hash=[],t.bytes!==Array&&(r.hash=s.newBuffer(r.hash))),r.partSetHeader=null),null!=e.hash&&e.hasOwnProperty("hash")&&(r.hash=t.bytes===String?s.base64.encode(e.hash,0,e.hash.length):t.bytes===Array?Array.prototype.slice.call(e.hash):e.hash),null!=e.partSetHeader&&e.hasOwnProperty("partSetHeader")&&(r.partSetHeader=a.tendermint.types.PartSetHeader.toObject(e.partSetHeader,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Header=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.version=null,e.prototype.chainId="",e.prototype.height=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.time=null,e.prototype.lastBlockId=null,e.prototype.lastCommitHash=s.newBuffer([]),e.prototype.dataHash=s.newBuffer([]),e.prototype.validatorsHash=s.newBuffer([]),e.prototype.nextValidatorsHash=s.newBuffer([]),e.prototype.consensusHash=s.newBuffer([]),e.prototype.appHash=s.newBuffer([]),e.prototype.lastResultsHash=s.newBuffer([]),e.prototype.evidenceHash=s.newBuffer([]),e.prototype.proposerAddress=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&a.tendermint.version.Consensus.encode(e.version,t.uint32(10).fork()).ldelim(),null!=e.chainId&&Object.hasOwnProperty.call(e,"chainId")&&t.uint32(18).string(e.chainId),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(24).int64(e.height),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&a.google.protobuf.Timestamp.encode(e.time,t.uint32(34).fork()).ldelim(),null!=e.lastBlockId&&Object.hasOwnProperty.call(e,"lastBlockId")&&a.tendermint.types.BlockID.encode(e.lastBlockId,t.uint32(42).fork()).ldelim(),null!=e.lastCommitHash&&Object.hasOwnProperty.call(e,"lastCommitHash")&&t.uint32(50).bytes(e.lastCommitHash),null!=e.dataHash&&Object.hasOwnProperty.call(e,"dataHash")&&t.uint32(58).bytes(e.dataHash),null!=e.validatorsHash&&Object.hasOwnProperty.call(e,"validatorsHash")&&t.uint32(66).bytes(e.validatorsHash),null!=e.nextValidatorsHash&&Object.hasOwnProperty.call(e,"nextValidatorsHash")&&t.uint32(74).bytes(e.nextValidatorsHash),null!=e.consensusHash&&Object.hasOwnProperty.call(e,"consensusHash")&&t.uint32(82).bytes(e.consensusHash),null!=e.appHash&&Object.hasOwnProperty.call(e,"appHash")&&t.uint32(90).bytes(e.appHash),null!=e.lastResultsHash&&Object.hasOwnProperty.call(e,"lastResultsHash")&&t.uint32(98).bytes(e.lastResultsHash),null!=e.evidenceHash&&Object.hasOwnProperty.call(e,"evidenceHash")&&t.uint32(106).bytes(e.evidenceHash),null!=e.proposerAddress&&Object.hasOwnProperty.call(e,"proposerAddress")&&t.uint32(114).bytes(e.proposerAddress),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.Header;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.version=a.tendermint.version.Consensus.decode(e,e.uint32());break;case 2:n.chainId=e.string();break;case 3:n.height=e.int64();break;case 4:n.time=a.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:n.lastBlockId=a.tendermint.types.BlockID.decode(e,e.uint32());break;case 6:n.lastCommitHash=e.bytes();break;case 7:n.dataHash=e.bytes();break;case 8:n.validatorsHash=e.bytes();break;case 9:n.nextValidatorsHash=e.bytes();break;case 10:n.consensusHash=e.bytes();break;case 11:n.appHash=e.bytes();break;case 12:n.lastResultsHash=e.bytes();break;case 13:n.evidenceHash=e.bytes();break;case 14:n.proposerAddress=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.Header)return e;var t=new a.tendermint.types.Header;if(null!=e.version){if("object"!=typeof e.version)throw TypeError(".tendermint.types.Header.version: object expected");t.version=a.tendermint.version.Consensus.fromObject(e.version)}if(null!=e.chainId&&(t.chainId=String(e.chainId)),null!=e.height&&(s.Long?(t.height=s.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.time){if("object"!=typeof e.time)throw TypeError(".tendermint.types.Header.time: object expected");t.time=a.google.protobuf.Timestamp.fromObject(e.time)}if(null!=e.lastBlockId){if("object"!=typeof e.lastBlockId)throw TypeError(".tendermint.types.Header.lastBlockId: object expected");t.lastBlockId=a.tendermint.types.BlockID.fromObject(e.lastBlockId)}return null!=e.lastCommitHash&&("string"==typeof e.lastCommitHash?s.base64.decode(e.lastCommitHash,t.lastCommitHash=s.newBuffer(s.base64.length(e.lastCommitHash)),0):e.lastCommitHash.length&&(t.lastCommitHash=e.lastCommitHash)),null!=e.dataHash&&("string"==typeof e.dataHash?s.base64.decode(e.dataHash,t.dataHash=s.newBuffer(s.base64.length(e.dataHash)),0):e.dataHash.length&&(t.dataHash=e.dataHash)),null!=e.validatorsHash&&("string"==typeof e.validatorsHash?s.base64.decode(e.validatorsHash,t.validatorsHash=s.newBuffer(s.base64.length(e.validatorsHash)),0):e.validatorsHash.length&&(t.validatorsHash=e.validatorsHash)),null!=e.nextValidatorsHash&&("string"==typeof e.nextValidatorsHash?s.base64.decode(e.nextValidatorsHash,t.nextValidatorsHash=s.newBuffer(s.base64.length(e.nextValidatorsHash)),0):e.nextValidatorsHash.length&&(t.nextValidatorsHash=e.nextValidatorsHash)),null!=e.consensusHash&&("string"==typeof e.consensusHash?s.base64.decode(e.consensusHash,t.consensusHash=s.newBuffer(s.base64.length(e.consensusHash)),0):e.consensusHash.length&&(t.consensusHash=e.consensusHash)),null!=e.appHash&&("string"==typeof e.appHash?s.base64.decode(e.appHash,t.appHash=s.newBuffer(s.base64.length(e.appHash)),0):e.appHash.length&&(t.appHash=e.appHash)),null!=e.lastResultsHash&&("string"==typeof e.lastResultsHash?s.base64.decode(e.lastResultsHash,t.lastResultsHash=s.newBuffer(s.base64.length(e.lastResultsHash)),0):e.lastResultsHash.length&&(t.lastResultsHash=e.lastResultsHash)),null!=e.evidenceHash&&("string"==typeof e.evidenceHash?s.base64.decode(e.evidenceHash,t.evidenceHash=s.newBuffer(s.base64.length(e.evidenceHash)),0):e.evidenceHash.length&&(t.evidenceHash=e.evidenceHash)),null!=e.proposerAddress&&("string"==typeof e.proposerAddress?s.base64.decode(e.proposerAddress,t.proposerAddress=s.newBuffer(s.base64.length(e.proposerAddress)),0):e.proposerAddress.length&&(t.proposerAddress=e.proposerAddress)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.version=null,r.chainId="",s.Long){var n=new s.Long(0,0,!1);r.height=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.height=t.longs===String?"0":0;r.time=null,r.lastBlockId=null,t.bytes===String?r.lastCommitHash="":(r.lastCommitHash=[],t.bytes!==Array&&(r.lastCommitHash=s.newBuffer(r.lastCommitHash))),t.bytes===String?r.dataHash="":(r.dataHash=[],t.bytes!==Array&&(r.dataHash=s.newBuffer(r.dataHash))),t.bytes===String?r.validatorsHash="":(r.validatorsHash=[],t.bytes!==Array&&(r.validatorsHash=s.newBuffer(r.validatorsHash))),t.bytes===String?r.nextValidatorsHash="":(r.nextValidatorsHash=[],t.bytes!==Array&&(r.nextValidatorsHash=s.newBuffer(r.nextValidatorsHash))),t.bytes===String?r.consensusHash="":(r.consensusHash=[],t.bytes!==Array&&(r.consensusHash=s.newBuffer(r.consensusHash))),t.bytes===String?r.appHash="":(r.appHash=[],t.bytes!==Array&&(r.appHash=s.newBuffer(r.appHash))),t.bytes===String?r.lastResultsHash="":(r.lastResultsHash=[],t.bytes!==Array&&(r.lastResultsHash=s.newBuffer(r.lastResultsHash))),t.bytes===String?r.evidenceHash="":(r.evidenceHash=[],t.bytes!==Array&&(r.evidenceHash=s.newBuffer(r.evidenceHash))),t.bytes===String?r.proposerAddress="":(r.proposerAddress=[],t.bytes!==Array&&(r.proposerAddress=s.newBuffer(r.proposerAddress)))}return null!=e.version&&e.hasOwnProperty("version")&&(r.version=a.tendermint.version.Consensus.toObject(e.version,t)),null!=e.chainId&&e.hasOwnProperty("chainId")&&(r.chainId=e.chainId),null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?r.height=t.longs===String?String(e.height):e.height:r.height=t.longs===String?s.Long.prototype.toString.call(e.height):t.longs===Number?new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.time&&e.hasOwnProperty("time")&&(r.time=a.google.protobuf.Timestamp.toObject(e.time,t)),null!=e.lastBlockId&&e.hasOwnProperty("lastBlockId")&&(r.lastBlockId=a.tendermint.types.BlockID.toObject(e.lastBlockId,t)),null!=e.lastCommitHash&&e.hasOwnProperty("lastCommitHash")&&(r.lastCommitHash=t.bytes===String?s.base64.encode(e.lastCommitHash,0,e.lastCommitHash.length):t.bytes===Array?Array.prototype.slice.call(e.lastCommitHash):e.lastCommitHash),null!=e.dataHash&&e.hasOwnProperty("dataHash")&&(r.dataHash=t.bytes===String?s.base64.encode(e.dataHash,0,e.dataHash.length):t.bytes===Array?Array.prototype.slice.call(e.dataHash):e.dataHash),null!=e.validatorsHash&&e.hasOwnProperty("validatorsHash")&&(r.validatorsHash=t.bytes===String?s.base64.encode(e.validatorsHash,0,e.validatorsHash.length):t.bytes===Array?Array.prototype.slice.call(e.validatorsHash):e.validatorsHash),null!=e.nextValidatorsHash&&e.hasOwnProperty("nextValidatorsHash")&&(r.nextValidatorsHash=t.bytes===String?s.base64.encode(e.nextValidatorsHash,0,e.nextValidatorsHash.length):t.bytes===Array?Array.prototype.slice.call(e.nextValidatorsHash):e.nextValidatorsHash),null!=e.consensusHash&&e.hasOwnProperty("consensusHash")&&(r.consensusHash=t.bytes===String?s.base64.encode(e.consensusHash,0,e.consensusHash.length):t.bytes===Array?Array.prototype.slice.call(e.consensusHash):e.consensusHash),null!=e.appHash&&e.hasOwnProperty("appHash")&&(r.appHash=t.bytes===String?s.base64.encode(e.appHash,0,e.appHash.length):t.bytes===Array?Array.prototype.slice.call(e.appHash):e.appHash),null!=e.lastResultsHash&&e.hasOwnProperty("lastResultsHash")&&(r.lastResultsHash=t.bytes===String?s.base64.encode(e.lastResultsHash,0,e.lastResultsHash.length):t.bytes===Array?Array.prototype.slice.call(e.lastResultsHash):e.lastResultsHash),null!=e.evidenceHash&&e.hasOwnProperty("evidenceHash")&&(r.evidenceHash=t.bytes===String?s.base64.encode(e.evidenceHash,0,e.evidenceHash.length):t.bytes===Array?Array.prototype.slice.call(e.evidenceHash):e.evidenceHash),null!=e.proposerAddress&&e.hasOwnProperty("proposerAddress")&&(r.proposerAddress=t.bytes===String?s.base64.encode(e.proposerAddress,0,e.proposerAddress.length):t.bytes===Array?Array.prototype.slice.call(e.proposerAddress):e.proposerAddress),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Data=function(){function e(e){if(this.txs=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.txs=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.txs&&e.txs.length)for(var r=0;r<e.txs.length;++r)t.uint32(10).bytes(e.txs[r]);return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.Data;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.txs&&n.txs.length||(n.txs=[]),n.txs.push(e.bytes());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.Data)return e;var t=new a.tendermint.types.Data;if(e.txs){if(!Array.isArray(e.txs))throw TypeError(".tendermint.types.Data.txs: array expected");t.txs=[];for(var r=0;r<e.txs.length;++r)"string"==typeof e.txs[r]?s.base64.decode(e.txs[r],t.txs[r]=s.newBuffer(s.base64.length(e.txs[r])),0):e.txs[r].length&&(t.txs[r]=e.txs[r])}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.txs=[]),e.txs&&e.txs.length){r.txs=[];for(var n=0;n<e.txs.length;++n)r.txs[n]=t.bytes===String?s.base64.encode(e.txs[n],0,e.txs[n].length):t.bytes===Array?Array.prototype.slice.call(e.txs[n]):e.txs[n]}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Vote=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.height=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.round=0,e.prototype.blockId=null,e.prototype.timestamp=null,e.prototype.validatorAddress=s.newBuffer([]),e.prototype.validatorIndex=0,e.prototype.signature=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).int64(e.height),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(24).int32(e.round),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&a.tendermint.types.BlockID.encode(e.blockId,t.uint32(34).fork()).ldelim(),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&a.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(42).fork()).ldelim(),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(50).bytes(e.validatorAddress),null!=e.validatorIndex&&Object.hasOwnProperty.call(e,"validatorIndex")&&t.uint32(56).int32(e.validatorIndex),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(66).bytes(e.signature),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.Vote;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.type=e.int32();break;case 2:n.height=e.int64();break;case 3:n.round=e.int32();break;case 4:n.blockId=a.tendermint.types.BlockID.decode(e,e.uint32());break;case 5:n.timestamp=a.google.protobuf.Timestamp.decode(e,e.uint32());break;case 6:n.validatorAddress=e.bytes();break;case 7:n.validatorIndex=e.int32();break;case 8:n.signature=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.Vote)return e;var t=new a.tendermint.types.Vote;switch(e.type){case"SIGNED_MSG_TYPE_UNKNOWN":case 0:t.type=0;break;case"SIGNED_MSG_TYPE_PREVOTE":case 1:t.type=1;break;case"SIGNED_MSG_TYPE_PRECOMMIT":case 2:t.type=2;break;case"SIGNED_MSG_TYPE_PROPOSAL":case 32:t.type=32}if(null!=e.height&&(s.Long?(t.height=s.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.round&&(t.round=0|e.round),null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.Vote.blockId: object expected");t.blockId=a.tendermint.types.BlockID.fromObject(e.blockId)}if(null!=e.timestamp){if("object"!=typeof e.timestamp)throw TypeError(".tendermint.types.Vote.timestamp: object expected");t.timestamp=a.google.protobuf.Timestamp.fromObject(e.timestamp)}return null!=e.validatorAddress&&("string"==typeof e.validatorAddress?s.base64.decode(e.validatorAddress,t.validatorAddress=s.newBuffer(s.base64.length(e.validatorAddress)),0):e.validatorAddress.length&&(t.validatorAddress=e.validatorAddress)),null!=e.validatorIndex&&(t.validatorIndex=0|e.validatorIndex),null!=e.signature&&("string"==typeof e.signature?s.base64.decode(e.signature,t.signature=s.newBuffer(s.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.type=t.enums===String?"SIGNED_MSG_TYPE_UNKNOWN":0,s.Long){var n=new s.Long(0,0,!1);r.height=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.height=t.longs===String?"0":0;r.round=0,r.blockId=null,r.timestamp=null,t.bytes===String?r.validatorAddress="":(r.validatorAddress=[],t.bytes!==Array&&(r.validatorAddress=s.newBuffer(r.validatorAddress))),r.validatorIndex=0,t.bytes===String?r.signature="":(r.signature=[],t.bytes!==Array&&(r.signature=s.newBuffer(r.signature)))}return null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?a.tendermint.types.SignedMsgType[e.type]:e.type),null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?r.height=t.longs===String?String(e.height):e.height:r.height=t.longs===String?s.Long.prototype.toString.call(e.height):t.longs===Number?new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.round&&e.hasOwnProperty("round")&&(r.round=e.round),null!=e.blockId&&e.hasOwnProperty("blockId")&&(r.blockId=a.tendermint.types.BlockID.toObject(e.blockId,t)),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(r.timestamp=a.google.protobuf.Timestamp.toObject(e.timestamp,t)),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=t.bytes===String?s.base64.encode(e.validatorAddress,0,e.validatorAddress.length):t.bytes===Array?Array.prototype.slice.call(e.validatorAddress):e.validatorAddress),null!=e.validatorIndex&&e.hasOwnProperty("validatorIndex")&&(r.validatorIndex=e.validatorIndex),null!=e.signature&&e.hasOwnProperty("signature")&&(r.signature=t.bytes===String?s.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Commit=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.height=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.round=0,e.prototype.blockId=null,e.prototype.signatures=s.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(8).int64(e.height),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(16).int32(e.round),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&a.tendermint.types.BlockID.encode(e.blockId,t.uint32(26).fork()).ldelim(),null!=e.signatures&&e.signatures.length)for(var r=0;r<e.signatures.length;++r)a.tendermint.types.CommitSig.encode(e.signatures[r],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.Commit;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.height=e.int64();break;case 2:n.round=e.int32();break;case 3:n.blockId=a.tendermint.types.BlockID.decode(e,e.uint32());break;case 4:n.signatures&&n.signatures.length||(n.signatures=[]),n.signatures.push(a.tendermint.types.CommitSig.decode(e,e.uint32()));break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.Commit)return e;var t=new a.tendermint.types.Commit;if(null!=e.height&&(s.Long?(t.height=s.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.round&&(t.round=0|e.round),null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.Commit.blockId: object expected");t.blockId=a.tendermint.types.BlockID.fromObject(e.blockId)}if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".tendermint.types.Commit.signatures: array expected");t.signatures=[];for(var r=0;r<e.signatures.length;++r){if("object"!=typeof e.signatures[r])throw TypeError(".tendermint.types.Commit.signatures: object expected");t.signatures[r]=a.tendermint.types.CommitSig.fromObject(e.signatures[r])}}return t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.signatures=[]),t.defaults){if(s.Long){var n=new s.Long(0,0,!1);r.height=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.height=t.longs===String?"0":0;r.round=0,r.blockId=null}if(null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?r.height=t.longs===String?String(e.height):e.height:r.height=t.longs===String?s.Long.prototype.toString.call(e.height):t.longs===Number?new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.round&&e.hasOwnProperty("round")&&(r.round=e.round),null!=e.blockId&&e.hasOwnProperty("blockId")&&(r.blockId=a.tendermint.types.BlockID.toObject(e.blockId,t)),e.signatures&&e.signatures.length){r.signatures=[];for(var o=0;o<e.signatures.length;++o)r.signatures[o]=a.tendermint.types.CommitSig.toObject(e.signatures[o],t)}return r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.CommitSig=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.blockIdFlag=0,e.prototype.validatorAddress=s.newBuffer([]),e.prototype.timestamp=null,e.prototype.signature=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.blockIdFlag&&Object.hasOwnProperty.call(e,"blockIdFlag")&&t.uint32(8).int32(e.blockIdFlag),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).bytes(e.validatorAddress),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&a.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(26).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(34).bytes(e.signature),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.CommitSig;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.blockIdFlag=e.int32();break;case 2:n.validatorAddress=e.bytes();break;case 3:n.timestamp=a.google.protobuf.Timestamp.decode(e,e.uint32());break;case 4:n.signature=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.CommitSig)return e;var t=new a.tendermint.types.CommitSig;switch(e.blockIdFlag){case"BLOCK_ID_FLAG_UNKNOWN":case 0:t.blockIdFlag=0;break;case"BLOCK_ID_FLAG_ABSENT":case 1:t.blockIdFlag=1;break;case"BLOCK_ID_FLAG_COMMIT":case 2:t.blockIdFlag=2;break;case"BLOCK_ID_FLAG_NIL":case 3:t.blockIdFlag=3}if(null!=e.validatorAddress&&("string"==typeof e.validatorAddress?s.base64.decode(e.validatorAddress,t.validatorAddress=s.newBuffer(s.base64.length(e.validatorAddress)),0):e.validatorAddress.length&&(t.validatorAddress=e.validatorAddress)),null!=e.timestamp){if("object"!=typeof e.timestamp)throw TypeError(".tendermint.types.CommitSig.timestamp: object expected");t.timestamp=a.google.protobuf.Timestamp.fromObject(e.timestamp)}return null!=e.signature&&("string"==typeof e.signature?s.base64.decode(e.signature,t.signature=s.newBuffer(s.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.blockIdFlag=t.enums===String?"BLOCK_ID_FLAG_UNKNOWN":0,t.bytes===String?r.validatorAddress="":(r.validatorAddress=[],t.bytes!==Array&&(r.validatorAddress=s.newBuffer(r.validatorAddress))),r.timestamp=null,t.bytes===String?r.signature="":(r.signature=[],t.bytes!==Array&&(r.signature=s.newBuffer(r.signature)))),null!=e.blockIdFlag&&e.hasOwnProperty("blockIdFlag")&&(r.blockIdFlag=t.enums===String?a.tendermint.types.BlockIDFlag[e.blockIdFlag]:e.blockIdFlag),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(r.validatorAddress=t.bytes===String?s.base64.encode(e.validatorAddress,0,e.validatorAddress.length):t.bytes===Array?Array.prototype.slice.call(e.validatorAddress):e.validatorAddress),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(r.timestamp=a.google.protobuf.Timestamp.toObject(e.timestamp,t)),null!=e.signature&&e.hasOwnProperty("signature")&&(r.signature=t.bytes===String?s.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Proposal=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.type=0,e.prototype.height=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.round=0,e.prototype.polRound=0,e.prototype.blockId=null,e.prototype.timestamp=null,e.prototype.signature=s.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).int64(e.height),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(24).int32(e.round),null!=e.polRound&&Object.hasOwnProperty.call(e,"polRound")&&t.uint32(32).int32(e.polRound),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&a.tendermint.types.BlockID.encode(e.blockId,t.uint32(42).fork()).ldelim(),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&a.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(50).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(58).bytes(e.signature),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.Proposal;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.type=e.int32();break;case 2:n.height=e.int64();break;case 3:n.round=e.int32();break;case 4:n.polRound=e.int32();break;case 5:n.blockId=a.tendermint.types.BlockID.decode(e,e.uint32());break;case 6:n.timestamp=a.google.protobuf.Timestamp.decode(e,e.uint32());break;case 7:n.signature=e.bytes();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.Proposal)return e;var t=new a.tendermint.types.Proposal;switch(e.type){case"SIGNED_MSG_TYPE_UNKNOWN":case 0:t.type=0;break;case"SIGNED_MSG_TYPE_PREVOTE":case 1:t.type=1;break;case"SIGNED_MSG_TYPE_PRECOMMIT":case 2:t.type=2;break;case"SIGNED_MSG_TYPE_PROPOSAL":case 32:t.type=32}if(null!=e.height&&(s.Long?(t.height=s.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.round&&(t.round=0|e.round),null!=e.polRound&&(t.polRound=0|e.polRound),null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.Proposal.blockId: object expected");t.blockId=a.tendermint.types.BlockID.fromObject(e.blockId)}if(null!=e.timestamp){if("object"!=typeof e.timestamp)throw TypeError(".tendermint.types.Proposal.timestamp: object expected");t.timestamp=a.google.protobuf.Timestamp.fromObject(e.timestamp)}return null!=e.signature&&("string"==typeof e.signature?s.base64.decode(e.signature,t.signature=s.newBuffer(s.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.type=t.enums===String?"SIGNED_MSG_TYPE_UNKNOWN":0,s.Long){var n=new s.Long(0,0,!1);r.height=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.height=t.longs===String?"0":0;r.round=0,r.polRound=0,r.blockId=null,r.timestamp=null,t.bytes===String?r.signature="":(r.signature=[],t.bytes!==Array&&(r.signature=s.newBuffer(r.signature)))}return null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?a.tendermint.types.SignedMsgType[e.type]:e.type),null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?r.height=t.longs===String?String(e.height):e.height:r.height=t.longs===String?s.Long.prototype.toString.call(e.height):t.longs===Number?new s.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.round&&e.hasOwnProperty("round")&&(r.round=e.round),null!=e.polRound&&e.hasOwnProperty("polRound")&&(r.polRound=e.polRound),null!=e.blockId&&e.hasOwnProperty("blockId")&&(r.blockId=a.tendermint.types.BlockID.toObject(e.blockId,t)),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(r.timestamp=a.google.protobuf.Timestamp.toObject(e.timestamp,t)),null!=e.signature&&e.hasOwnProperty("signature")&&(r.signature=t.bytes===String?s.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.SignedHeader=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.header=null,e.prototype.commit=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&a.tendermint.types.Header.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.commit&&Object.hasOwnProperty.call(e,"commit")&&a.tendermint.types.Commit.encode(e.commit,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.SignedHeader;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.header=a.tendermint.types.Header.decode(e,e.uint32());break;case 2:n.commit=a.tendermint.types.Commit.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.SignedHeader)return e;var t=new a.tendermint.types.SignedHeader;if(null!=e.header){if("object"!=typeof e.header)throw TypeError(".tendermint.types.SignedHeader.header: object expected");t.header=a.tendermint.types.Header.fromObject(e.header)}if(null!=e.commit){if("object"!=typeof e.commit)throw TypeError(".tendermint.types.SignedHeader.commit: object expected");t.commit=a.tendermint.types.Commit.fromObject(e.commit)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.header=null,r.commit=null),null!=e.header&&e.hasOwnProperty("header")&&(r.header=a.tendermint.types.Header.toObject(e.header,t)),null!=e.commit&&e.hasOwnProperty("commit")&&(r.commit=a.tendermint.types.Commit.toObject(e.commit,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.LightBlock=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.signedHeader=null,e.prototype.validatorSet=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.signedHeader&&Object.hasOwnProperty.call(e,"signedHeader")&&a.tendermint.types.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),null!=e.validatorSet&&Object.hasOwnProperty.call(e,"validatorSet")&&a.tendermint.types.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.LightBlock;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.signedHeader=a.tendermint.types.SignedHeader.decode(e,e.uint32());break;case 2:n.validatorSet=a.tendermint.types.ValidatorSet.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.LightBlock)return e;var t=new a.tendermint.types.LightBlock;if(null!=e.signedHeader){if("object"!=typeof e.signedHeader)throw TypeError(".tendermint.types.LightBlock.signedHeader: object expected");t.signedHeader=a.tendermint.types.SignedHeader.fromObject(e.signedHeader)}if(null!=e.validatorSet){if("object"!=typeof e.validatorSet)throw TypeError(".tendermint.types.LightBlock.validatorSet: object expected");t.validatorSet=a.tendermint.types.ValidatorSet.fromObject(e.validatorSet)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(r.signedHeader=null,r.validatorSet=null),null!=e.signedHeader&&e.hasOwnProperty("signedHeader")&&(r.signedHeader=a.tendermint.types.SignedHeader.toObject(e.signedHeader,t)),null!=e.validatorSet&&e.hasOwnProperty("validatorSet")&&(r.validatorSet=a.tendermint.types.ValidatorSet.toObject(e.validatorSet,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.BlockMeta=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.blockId=null,e.prototype.blockSize=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.header=null,e.prototype.numTxs=s.Long?s.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&a.tendermint.types.BlockID.encode(e.blockId,t.uint32(10).fork()).ldelim(),null!=e.blockSize&&Object.hasOwnProperty.call(e,"blockSize")&&t.uint32(16).int64(e.blockSize),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&a.tendermint.types.Header.encode(e.header,t.uint32(26).fork()).ldelim(),null!=e.numTxs&&Object.hasOwnProperty.call(e,"numTxs")&&t.uint32(32).int64(e.numTxs),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.BlockMeta;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.blockId=a.tendermint.types.BlockID.decode(e,e.uint32());break;case 2:n.blockSize=e.int64();break;case 3:n.header=a.tendermint.types.Header.decode(e,e.uint32());break;case 4:n.numTxs=e.int64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.BlockMeta)return e;var t=new a.tendermint.types.BlockMeta;if(null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.BlockMeta.blockId: object expected");t.blockId=a.tendermint.types.BlockID.fromObject(e.blockId)}if(null!=e.blockSize&&(s.Long?(t.blockSize=s.Long.fromValue(e.blockSize)).unsigned=!1:"string"==typeof e.blockSize?t.blockSize=parseInt(e.blockSize,10):"number"==typeof e.blockSize?t.blockSize=e.blockSize:"object"==typeof e.blockSize&&(t.blockSize=new s.LongBits(e.blockSize.low>>>0,e.blockSize.high>>>0).toNumber())),null!=e.header){if("object"!=typeof e.header)throw TypeError(".tendermint.types.BlockMeta.header: object expected");t.header=a.tendermint.types.Header.fromObject(e.header)}return null!=e.numTxs&&(s.Long?(t.numTxs=s.Long.fromValue(e.numTxs)).unsigned=!1:"string"==typeof e.numTxs?t.numTxs=parseInt(e.numTxs,10):"number"==typeof e.numTxs?t.numTxs=e.numTxs:"object"==typeof e.numTxs&&(t.numTxs=new s.LongBits(e.numTxs.low>>>0,e.numTxs.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(r.blockId=null,s.Long){var n=new s.Long(0,0,!1);r.blockSize=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.blockSize=t.longs===String?"0":0;if(r.header=null,s.Long){n=new s.Long(0,0,!1);r.numTxs=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.numTxs=t.longs===String?"0":0}return null!=e.blockId&&e.hasOwnProperty("blockId")&&(r.blockId=a.tendermint.types.BlockID.toObject(e.blockId,t)),null!=e.blockSize&&e.hasOwnProperty("blockSize")&&("number"==typeof e.blockSize?r.blockSize=t.longs===String?String(e.blockSize):e.blockSize:r.blockSize=t.longs===String?s.Long.prototype.toString.call(e.blockSize):t.longs===Number?new s.LongBits(e.blockSize.low>>>0,e.blockSize.high>>>0).toNumber():e.blockSize),null!=e.header&&e.hasOwnProperty("header")&&(r.header=a.tendermint.types.Header.toObject(e.header,t)),null!=e.numTxs&&e.hasOwnProperty("numTxs")&&("number"==typeof e.numTxs?r.numTxs=t.longs===String?String(e.numTxs):e.numTxs:r.numTxs=t.longs===String?s.Long.prototype.toString.call(e.numTxs):t.longs===Number?new s.LongBits(e.numTxs.low>>>0,e.numTxs.high>>>0).toNumber():e.numTxs),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.TxProof=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.rootHash=s.newBuffer([]),e.prototype.data=s.newBuffer([]),e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.rootHash&&Object.hasOwnProperty.call(e,"rootHash")&&t.uint32(10).bytes(e.rootHash),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(18).bytes(e.data),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&a.tendermint.crypto.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.TxProof;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.rootHash=e.bytes();break;case 2:n.data=e.bytes();break;case 3:n.proof=a.tendermint.crypto.Proof.decode(e,e.uint32());break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.TxProof)return e;var t=new a.tendermint.types.TxProof;if(null!=e.rootHash&&("string"==typeof e.rootHash?s.base64.decode(e.rootHash,t.rootHash=s.newBuffer(s.base64.length(e.rootHash)),0):e.rootHash.length&&(t.rootHash=e.rootHash)),null!=e.data&&("string"==typeof e.data?s.base64.decode(e.data,t.data=s.newBuffer(s.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".tendermint.types.TxProof.proof: object expected");t.proof=a.tendermint.crypto.Proof.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var r={};return t.defaults&&(t.bytes===String?r.rootHash="":(r.rootHash=[],t.bytes!==Array&&(r.rootHash=s.newBuffer(r.rootHash))),t.bytes===String?r.data="":(r.data=[],t.bytes!==Array&&(r.data=s.newBuffer(r.data))),r.proof=null),null!=e.rootHash&&e.hasOwnProperty("rootHash")&&(r.rootHash=t.bytes===String?s.base64.encode(e.rootHash,0,e.rootHash.length):t.bytes===Array?Array.prototype.slice.call(e.rootHash):e.rootHash),null!=e.data&&e.hasOwnProperty("data")&&(r.data=t.bytes===String?s.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.proof&&e.hasOwnProperty("proof")&&(r.proof=a.tendermint.crypto.Proof.toObject(e.proof,t)),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.ValidatorSet=function(){function e(e){if(this.validators=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.validators=s.emptyArray,e.prototype.proposer=null,e.prototype.totalVotingPower=s.Long?s.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.validators&&e.validators.length)for(var r=0;r<e.validators.length;++r)a.tendermint.types.Validator.encode(e.validators[r],t.uint32(10).fork()).ldelim();return null!=e.proposer&&Object.hasOwnProperty.call(e,"proposer")&&a.tendermint.types.Validator.encode(e.proposer,t.uint32(18).fork()).ldelim(),null!=e.totalVotingPower&&Object.hasOwnProperty.call(e,"totalVotingPower")&&t.uint32(24).int64(e.totalVotingPower),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.ValidatorSet;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.validators&&n.validators.length||(n.validators=[]),n.validators.push(a.tendermint.types.Validator.decode(e,e.uint32()));break;case 2:n.proposer=a.tendermint.types.Validator.decode(e,e.uint32());break;case 3:n.totalVotingPower=e.int64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.ValidatorSet)return e;var t=new a.tendermint.types.ValidatorSet;if(e.validators){if(!Array.isArray(e.validators))throw TypeError(".tendermint.types.ValidatorSet.validators: array expected");t.validators=[];for(var r=0;r<e.validators.length;++r){if("object"!=typeof e.validators[r])throw TypeError(".tendermint.types.ValidatorSet.validators: object expected");t.validators[r]=a.tendermint.types.Validator.fromObject(e.validators[r])}}if(null!=e.proposer){if("object"!=typeof e.proposer)throw TypeError(".tendermint.types.ValidatorSet.proposer: object expected");t.proposer=a.tendermint.types.Validator.fromObject(e.proposer)}return null!=e.totalVotingPower&&(s.Long?(t.totalVotingPower=s.Long.fromValue(e.totalVotingPower)).unsigned=!1:"string"==typeof e.totalVotingPower?t.totalVotingPower=parseInt(e.totalVotingPower,10):"number"==typeof e.totalVotingPower?t.totalVotingPower=e.totalVotingPower:"object"==typeof e.totalVotingPower&&(t.totalVotingPower=new s.LongBits(e.totalVotingPower.low>>>0,e.totalVotingPower.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if((t.arrays||t.defaults)&&(r.validators=[]),t.defaults)if(r.proposer=null,s.Long){var n=new s.Long(0,0,!1);r.totalVotingPower=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.totalVotingPower=t.longs===String?"0":0;if(e.validators&&e.validators.length){r.validators=[];for(var o=0;o<e.validators.length;++o)r.validators[o]=a.tendermint.types.Validator.toObject(e.validators[o],t)}return null!=e.proposer&&e.hasOwnProperty("proposer")&&(r.proposer=a.tendermint.types.Validator.toObject(e.proposer,t)),null!=e.totalVotingPower&&e.hasOwnProperty("totalVotingPower")&&("number"==typeof e.totalVotingPower?r.totalVotingPower=t.longs===String?String(e.totalVotingPower):e.totalVotingPower:r.totalVotingPower=t.longs===String?s.Long.prototype.toString.call(e.totalVotingPower):t.longs===Number?new s.LongBits(e.totalVotingPower.low>>>0,e.totalVotingPower.high>>>0).toNumber():e.totalVotingPower),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Validator=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.address=s.newBuffer([]),e.prototype.pubKey=null,e.prototype.votingPower=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.proposerPriority=s.Long?s.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).bytes(e.address),null!=e.pubKey&&Object.hasOwnProperty.call(e,"pubKey")&&a.tendermint.crypto.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),null!=e.votingPower&&Object.hasOwnProperty.call(e,"votingPower")&&t.uint32(24).int64(e.votingPower),null!=e.proposerPriority&&Object.hasOwnProperty.call(e,"proposerPriority")&&t.uint32(32).int64(e.proposerPriority),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.Validator;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.address=e.bytes();break;case 2:n.pubKey=a.tendermint.crypto.PublicKey.decode(e,e.uint32());break;case 3:n.votingPower=e.int64();break;case 4:n.proposerPriority=e.int64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.Validator)return e;var t=new a.tendermint.types.Validator;if(null!=e.address&&("string"==typeof e.address?s.base64.decode(e.address,t.address=s.newBuffer(s.base64.length(e.address)),0):e.address.length&&(t.address=e.address)),null!=e.pubKey){if("object"!=typeof e.pubKey)throw TypeError(".tendermint.types.Validator.pubKey: object expected");t.pubKey=a.tendermint.crypto.PublicKey.fromObject(e.pubKey)}return null!=e.votingPower&&(s.Long?(t.votingPower=s.Long.fromValue(e.votingPower)).unsigned=!1:"string"==typeof e.votingPower?t.votingPower=parseInt(e.votingPower,10):"number"==typeof e.votingPower?t.votingPower=e.votingPower:"object"==typeof e.votingPower&&(t.votingPower=new s.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber())),null!=e.proposerPriority&&(s.Long?(t.proposerPriority=s.Long.fromValue(e.proposerPriority)).unsigned=!1:"string"==typeof e.proposerPriority?t.proposerPriority=parseInt(e.proposerPriority,10):"number"==typeof e.proposerPriority?t.proposerPriority=e.proposerPriority:"object"==typeof e.proposerPriority&&(t.proposerPriority=new s.LongBits(e.proposerPriority.low>>>0,e.proposerPriority.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(t.bytes===String?r.address="":(r.address=[],t.bytes!==Array&&(r.address=s.newBuffer(r.address))),r.pubKey=null,s.Long){var n=new s.Long(0,0,!1);r.votingPower=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.votingPower=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!1);r.proposerPriority=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.proposerPriority=t.longs===String?"0":0}return null!=e.address&&e.hasOwnProperty("address")&&(r.address=t.bytes===String?s.base64.encode(e.address,0,e.address.length):t.bytes===Array?Array.prototype.slice.call(e.address):e.address),null!=e.pubKey&&e.hasOwnProperty("pubKey")&&(r.pubKey=a.tendermint.crypto.PublicKey.toObject(e.pubKey,t)),null!=e.votingPower&&e.hasOwnProperty("votingPower")&&("number"==typeof e.votingPower?r.votingPower=t.longs===String?String(e.votingPower):e.votingPower:r.votingPower=t.longs===String?s.Long.prototype.toString.call(e.votingPower):t.longs===Number?new s.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber():e.votingPower),null!=e.proposerPriority&&e.hasOwnProperty("proposerPriority")&&("number"==typeof e.proposerPriority?r.proposerPriority=t.longs===String?String(e.proposerPriority):e.proposerPriority:r.proposerPriority=t.longs===String?s.Long.prototype.toString.call(e.proposerPriority):t.longs===Number?new s.LongBits(e.proposerPriority.low>>>0,e.proposerPriority.high>>>0).toNumber():e.proposerPriority),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.SimpleValidator=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.pubKey=null,e.prototype.votingPower=s.Long?s.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.pubKey&&Object.hasOwnProperty.call(e,"pubKey")&&a.tendermint.crypto.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),null!=e.votingPower&&Object.hasOwnProperty.call(e,"votingPower")&&t.uint32(16).int64(e.votingPower),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.types.SimpleValidator;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.pubKey=a.tendermint.crypto.PublicKey.decode(e,e.uint32());break;case 2:n.votingPower=e.int64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.types.SimpleValidator)return e;var t=new a.tendermint.types.SimpleValidator;if(null!=e.pubKey){if("object"!=typeof e.pubKey)throw TypeError(".tendermint.types.SimpleValidator.pubKey: object expected");t.pubKey=a.tendermint.crypto.PublicKey.fromObject(e.pubKey)}return null!=e.votingPower&&(s.Long?(t.votingPower=s.Long.fromValue(e.votingPower)).unsigned=!1:"string"==typeof e.votingPower?t.votingPower=parseInt(e.votingPower,10):"number"==typeof e.votingPower?t.votingPower=e.votingPower:"object"==typeof e.votingPower&&(t.votingPower=new s.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults)if(r.pubKey=null,s.Long){var n=new s.Long(0,0,!1);r.votingPower=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.votingPower=t.longs===String?"0":0;return null!=e.pubKey&&e.hasOwnProperty("pubKey")&&(r.pubKey=a.tendermint.crypto.PublicKey.toObject(e.pubKey,t)),null!=e.votingPower&&e.hasOwnProperty("votingPower")&&("number"==typeof e.votingPower?r.votingPower=t.longs===String?String(e.votingPower):e.votingPower:r.votingPower=t.longs===String?s.Long.prototype.toString.call(e.votingPower):t.longs===Number?new s.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber():e.votingPower),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e.version=function(){const e={};return e.App=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.protocol=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.software="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.protocol&&Object.hasOwnProperty.call(e,"protocol")&&t.uint32(8).uint64(e.protocol),null!=e.software&&Object.hasOwnProperty.call(e,"software")&&t.uint32(18).string(e.software),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.version.App;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.protocol=e.uint64();break;case 2:n.software=e.string();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.version.App)return e;var t=new a.tendermint.version.App;return null!=e.protocol&&(s.Long?(t.protocol=s.Long.fromValue(e.protocol)).unsigned=!0:"string"==typeof e.protocol?t.protocol=parseInt(e.protocol,10):"number"==typeof e.protocol?t.protocol=e.protocol:"object"==typeof e.protocol&&(t.protocol=new s.LongBits(e.protocol.low>>>0,e.protocol.high>>>0).toNumber(!0))),null!=e.software&&(t.software=String(e.software)),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!0);r.protocol=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.protocol=t.longs===String?"0":0;r.software=""}return null!=e.protocol&&e.hasOwnProperty("protocol")&&("number"==typeof e.protocol?r.protocol=t.longs===String?String(e.protocol):e.protocol:r.protocol=t.longs===String?s.Long.prototype.toString.call(e.protocol):t.longs===Number?new s.LongBits(e.protocol.low>>>0,e.protocol.high>>>0).toNumber(!0):e.protocol),null!=e.software&&e.hasOwnProperty("software")&&(r.software=e.software),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e.Consensus=function(){function e(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return e.prototype.block=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.app=s.Long?s.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.block&&Object.hasOwnProperty.call(e,"block")&&t.uint32(8).uint64(e.block),null!=e.app&&Object.hasOwnProperty.call(e,"app")&&t.uint32(16).uint64(e.app),t},e.decode=function(e,t){e instanceof o||(e=o.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new a.tendermint.version.Consensus;e.pos<r;){var i=e.uint32();switch(i>>>3){case 1:n.block=e.uint64();break;case 2:n.app=e.uint64();break;default:e.skipType(7&i)}}return n},e.fromObject=function(e){if(e instanceof a.tendermint.version.Consensus)return e;var t=new a.tendermint.version.Consensus;return null!=e.block&&(s.Long?(t.block=s.Long.fromValue(e.block)).unsigned=!0:"string"==typeof e.block?t.block=parseInt(e.block,10):"number"==typeof e.block?t.block=e.block:"object"==typeof e.block&&(t.block=new s.LongBits(e.block.low>>>0,e.block.high>>>0).toNumber(!0))),null!=e.app&&(s.Long?(t.app=s.Long.fromValue(e.app)).unsigned=!0:"string"==typeof e.app?t.app=parseInt(e.app,10):"number"==typeof e.app?t.app=e.app:"object"==typeof e.app&&(t.app=new s.LongBits(e.app.low>>>0,e.app.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var r={};if(t.defaults){if(s.Long){var n=new s.Long(0,0,!0);r.block=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.block=t.longs===String?"0":0;if(s.Long){n=new s.Long(0,0,!0);r.app=t.longs===String?n.toString():t.longs===Number?n.toNumber():n}else r.app=t.longs===String?"0":0}return null!=e.block&&e.hasOwnProperty("block")&&("number"==typeof e.block?r.block=t.longs===String?String(e.block):e.block:r.block=t.longs===String?s.Long.prototype.toString.call(e.block):t.longs===Number?new s.LongBits(e.block.low>>>0,e.block.high>>>0).toNumber(!0):e.block),null!=e.app&&e.hasOwnProperty("app")&&("number"==typeof e.app?r.app=t.longs===String?String(e.app):e.app:r.app=t.longs===String?s.Long.prototype.toString.call(e.app):t.longs===Number?new s.LongBits(e.app.low>>>0,e.app.high>>>0).toNumber(!0):e.app),r},e.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},e}(),e}(),e})(),e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignDocWrapper=void 0;const n=r(242),o=r(2);class i{constructor(e,t){this.mode=e,this.message=t}static fromAminoSignDoc(e){const t=new i("amino",new Uint8Array(0));return t._aminoSignDoc=e,t}static fromDirectSignDoc(e){const t=new i("direct",new Uint8Array(0));return t._protoSignDoc=new n.ProtoSignDocDecoder(e),t}clone(){return new i(this.mode,this.message)}get protoSignDoc(){return this._protoSignDoc||(this._protoSignDoc=n.ProtoSignDocDecoder.decode(this.message)),this._protoSignDoc}get aminoSignDoc(){return this._aminoSignDoc||(this._aminoSignDoc=JSON.parse(o.Buffer.from(this.message).toString())),this._aminoSignDoc}get chainId(){return"direct"===this.mode?this.protoSignDoc.chainId:this.aminoSignDoc.chain_id}get memo(){return"direct"===this.mode?this.protoSignDoc.txBody.memo:this.aminoSignDoc.memo}get fees(){var e,t;if("direct"===this.mode){const r=[];for(const n of null!==(t=null===(e=this.protoSignDoc.authInfo.fee)||void 0===e?void 0:e.amount)&&void 0!==t?t:[]){if(null==n.denom||null==n.amount)throw new Error("Invalid fee");r.push({denom:n.denom,amount:n.amount})}return r}return this.aminoSignDoc.fee.amount}get gas(){var e,t,r;return"direct"===this.mode?null!==(r=null===(t=null===(e=this.protoSignDoc.authInfo.fee)||void 0===e?void 0:e.gasLimit)||void 0===t?void 0:t.toNumber())&&void 0!==r?r:0:parseInt(this.aminoSignDoc.fee.gas)}}t.SignDocWrapper=i},,function(e,t){},function(e,t){},function(e,t,r){"use strict";var n=r(153).Buffer,o=r(448);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,o,i=n.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=i,o=a,t.copy(r,o),a+=s.data.length,s=s.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,o,i,s,a,c=1,u={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(s+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return u[c]=o,n(c),c++},d.clearImmediate=h}function h(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(12),r(13))},function(e,t,r){"use strict";e.exports=i;var n=r(246),o=Object.create(r(95));function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}o.inherits=r(4),o.inherits(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},,function(e,t,r){"use strict";t.sha1=r(453),t.sha224=r(454),t.sha256=r(248),t.sha384=r(455),t.sha512=r(249)},function(e,t,r){"use strict";var n=r(49),o=r(96),i=r(247),s=n.rotl32,a=n.sum32,c=n.sum32_5,u=i.ft_1,l=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,l),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],l=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=c(s(o,5),u(p,i,l,d),h,r[n],f[p]);h=d,d=l,l=s(i,30),i=o,o=g}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(49),o=r(248);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,o),e.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(49),o=r(249);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,o),e.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(49),o=r(96),i=n.rotl32,s=n.sum32,a=n.sum32_3,c=n.sum32_4,u=o.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,u),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],o=this.h[2],u=this.h[3],l=this.h[4],b=r,v=n,w=o,_=u,k=l,S=0;S<80;S++){var O=s(i(c(r,f(S,n,o,u),e[p[S]+t],d(S)),m[S]),l);r=l,l=u,u=i(o,10),o=n,n=O,O=s(i(c(b,f(79-S,v,w,_),e[g[S]+t],h(S)),y[S]),k),b=k,k=_,_=i(w,10),w=v,v=O}O=a(this.h[1],o,_),this.h[1]=a(this.h[2],u,k),this.h[2]=a(this.h[3],l,b),this.h[3]=a(this.h[4],r,v),this.h[4]=a(this.h[0],n,w),this.h[0]=O},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],y=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(49),o=r(32);function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,r){(t=e.exports=r(251)).Stream=t,t.Readable=t,t.Writable=r(255),t.Duplex=r(74),t.Transform=r(256),t.PassThrough=r(464),t.finished=r(157),t.pipeline=r(465)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=r(2).Buffer,a=r(461).inspect,c=a&&a.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,u;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,n,o=s.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,s.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),u&&i(t,u),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){var n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(157),s=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function g(e){t.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var e=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[c]?n(e[c]):r(h(void 0,!0))}))}));var n,o=this[l];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[f](r,n)}),n)}}(o,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(y,(o(t={},d,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var n=r[d].read();n?(r[l]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[l]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[s]=null,r[a]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}}).call(this,r(13))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=o;var n=r(256);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(4)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n;var o=r(73).codes,i=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e,t,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(157)),n(e,{readable:t,writable:o},(function(e){if(e)return i(e);a=!0,i()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new s("pipe"))}}function u(e){e()}function l(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var s=t.map((function(e,r){var i=r<t.length-1;return c(e,i,r>0,(function(e){n||(n=e),e&&s.forEach(u),i||(s.forEach(u),o(n))}))}));return t.reduce(l)}},function(e,t,r){var n=r(4),o=r(77),i=r(7).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+l(h,o,i,a)+c+r[d]+s[h];c=a,a=i,i=u(o),o=n,n=p}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(4),o=r(77),i=r(7).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,o=0|this._b,i=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),g=u(n)+f(p,o,i,a)+c+r[h]+s[p]|0;c=a,a=i,i=l(o),o=n,n=g}this._a=n+this._a|0,this._b=o+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(4),o=r(257),i=r(77),s=r(7).Buffer,a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}n(c,o),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,r){var n=r(4),o=r(258),i=r(77),s=r(7).Buffer,a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}n(c,o),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,r){e.exports=r(154)},function(e,t,r){e.exports=r(65)},function(e,t,r){e.exports=r(148).Transform},function(e,t,r){e.exports=r(148).PassThrough},function(e,t,r){"use strict";var n=r(4),o=r(7).Buffer,i=r(56),s=o.alloc(128);function a(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=o.concat([t,s],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),a=0;a<64;a++)r[a]=54^t[a],n[a]=92^t[a];this._hash=[r]}n(a,i),a.prototype._update=function(e){this._hash.push(e)},a.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},e.exports=a},function(e,t,r){e.exports=r(260)},function(e,t,r){(function(t,n){var o,i=r(7).Buffer,s=r(261),a=r(262),c=r(263),u=r(264),l=t.crypto&&t.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(e,t,r,n,o){return l.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return l.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:o}},e,n<<3)})).then((function(e){return i.from(e)}))}e.exports=function(e,r,p,g,m,y){"function"==typeof m&&(y=m,m=void 0);var b=f[(m=m||"sha1").toLowerCase()];if(!b||"function"!=typeof t.Promise)return n.nextTick((function(){var t;try{t=c(e,r,p,g,m)}catch(e){return y(e)}y(null,t)}));if(s(p,g),e=u(e,a,"Password"),r=u(r,a,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){n.nextTick((function(){t(null,e)}))}),(function(e){n.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var r=h(o=o||i.alloc(8),o,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=r,r}(b).then((function(t){return t?h(e,r,p,g,b):c(e,r,p,g,m)})),y)}}).call(this,r(12),r(13))},function(e,t,r){var n=r(478),o=r(159),i=r(160),s=r(491),a=r(122);function c(e,t,r){if(e=e.toLowerCase(),i[e])return o.createCipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function u(e,t,r){if(e=e.toLowerCase(),i[e])return o.createDecipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),i[e])r=i[e].key,n=i[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var o=a(t,!1,r,n);return c(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),i[e])r=i[e].key,n=i[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var o=a(t,!1,r,n);return u(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=function(){return Object.keys(s).concat(o.getCiphers())}},function(e,t,r){var n=r(56),o=r(479),i=r(4),s=r(7).Buffer,a={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function c(e){n.call(this);var t,r=e.mode.toLowerCase(),o=a[r];t=e.decrypt?"decrypt":"encrypt";var i=e.key;s.isBuffer(i)||(i=s.from(i)),"des-ede"!==r&&"des-ede-cbc"!==r||(i=s.concat([i,i.slice(0,8)]));var c=e.iv;s.isBuffer(c)||(c=s.from(c)),this._des=o.create({key:i,iv:c,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=c,i(c,n),c.prototype._update=function(e){return s.from(this._des.update(e))},c.prototype._final=function(){return s.from(this._des.final())}},function(e,t,r){"use strict";t.utils=r(265),t.Cipher=r(158),t.DES=r(266),t.CBC=r(480),t.EDE=r(481)},function(e,t,r){"use strict";var n=r(32),o=r(4),i={};function s(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}o(t,e);for(var r=Object.keys(i),n=0;n<r.length;n++){var s=r[n];t.prototype[s]=i[s]}return t.create=function(e){return new t(e)},t},i._cbcInit=function(){var e=new s(this.options.iv);this._cbcState=e},i._update=function(e,t,r,n){var o=this._cbcState,i=this.constructor.super_.prototype,s=o.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=e[t+a];i._update.call(this,s,0,r,n);for(a=0;a<this.blockSize;a++)s[a]=r[n+a]}else{i._update.call(this,e,t,r,n);for(a=0;a<this.blockSize;a++)r[n+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=e[t+a]}}},function(e,t,r){"use strict";var n=r(32),o=r(4),i=r(158),s=r(266);function a(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),o=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i})]:[s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o}),s.create({type:"decrypt",key:r})]}function c(e){i.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}o(c,i),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var o=this._edeState;o.ciphers[0]._update(e,t,r,n),o.ciphers[1]._update(r,n,r,n),o.ciphers[2]._update(r,n,r,n)},c.prototype._pad=s.prototype._pad,c.prototype._unpad=s.prototype._unpad},function(e,t,r){var n=r(160),o=r(270),i=r(7).Buffer,s=r(271),a=r(56),c=r(121),u=r(122);function l(e,t,r){a.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}r(4)(l,a),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return i.concat(n)};var f=i.alloc(16,16);function d(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var a=n[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=i.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new s(a.module,t,r):"auth"===a.type?new o(a.module,t,r):new l(a.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return i.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var o=u(t,!1,r.key,r.iv);return h(e,o.key,o.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){var n=r(98);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var o=e._cipher.decryptBlock(t);return n(o,r)}},function(e,t,r){var n=r(7).Buffer,o=r(98);function i(e,t,r){var i=t.length,s=o(t,e._cache);return e._cache=e._cache.slice(i),e._prev=n.concat([e._prev,r?t:s]),s}t.encrypt=function(e,t,r){for(var o,s=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){s=n.concat([s,i(e,t,r)]);break}o=e._cache.length,s=n.concat([s,i(e,t.slice(0,o),r)]),t=t.slice(o)}return s}},function(e,t,r){var n=r(7).Buffer;function o(e,t,r){var o=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:o])]),o}t.encrypt=function(e,t,r){for(var i=t.length,s=n.allocUnsafe(i),a=-1;++a<i;)s[a]=o(e,t[a],r);return s}},function(e,t,r){var n=r(7).Buffer;function o(e,t,r){for(var n,o,s=-1,a=0;++s<8;)n=t&1<<7-s?128:0,a+=(128&(o=e._cipher.encryptBlock(e._prev)[0]^n))>>s%8,e._prev=i(e._prev,r?n:o);return a}function i(e,t){var r=e.length,o=-1,i=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++o<r;)i[o]=e[o]<<1|e[o+1]>>7;return i}t.encrypt=function(e,t,r){for(var i=t.length,s=n.allocUnsafe(i),a=-1;++a<i;)s[a]=o(e,t[a],r);return s}},function(e,t,r){(function(e){var n=r(98);function o(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,o(t)]);var i=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,i)}}).call(this,r(2).Buffer)},function(e,t,r){var n=r(7).Buffer,o=n.alloc(16,0);function i(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],o=[0,0,0,0],s=-1;++s<128;){for(0!=(this.state[~~(s/8)]&1<<7-s%8)&&(o[0]^=n[0],o[1]^=n[1],o[2]^=n[2],o[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=i(o)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,o],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=s},function(e,t,r){var n=r(270),o=r(7).Buffer,i=r(160),s=r(271),a=r(56),c=r(121),u=r(122);function l(e,t,r){a.call(this),this._cache=new f,this._last=void 0,this._cipher=new c.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=o.allocUnsafe(0)}function d(e,t,r){var a=i[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=o.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new s(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new l(a.module,t,r)}r(4)(l,a),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return o.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},t.createDecipheriv=d},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(272),o=r(494),i=r(495);var s={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(o[t].prime,"hex"),n=new e(o[t].gen,"hex");return new i(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,o,a,c){return e.isBuffer(o)||void 0===s[o]?t(r,"binary",o,a):(o=o||"binary",c=c||"binary",a=a||new e([2]),e.isBuffer(a)||(a=new e(a,c)),"number"==typeof r?new i(n(r,a),a,!0):(e.isBuffer(r)||(r=new e(r,o)),new i(r,a,!0)))}}).call(this,r(2).Buffer)},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,r){(function(t){var n=r(6),o=new(r(273)),i=new n(24),s=new n(11),a=new n(10),c=new n(3),u=new n(7),l=r(272),f=r(62);function d(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function h(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=g;var p={};function g(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function m(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var f,d=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!o.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(o.test(e.shrn(1))||(d+=2),r){case"02":e.mod(i).cmp(s)&&(d+=8);break;case"05":(f=e.mod(a)).cmp(c)&&f.cmp(u)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new n(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new t(r.toArray()),i=this.getPrime();if(o.length<i.length){var s=new t(i.length-o.length);s.fill(0),o=t.concat([s,o])}return o},g.prototype.getPublicKey=function(e){return m(this._pub,e)},g.prototype.getPrivateKey=function(e){return m(this._priv,e)},g.prototype.getPrime=function(e){return m(this.__prime,e)},g.prototype.getGenerator=function(e){return m(this._gen,e)},g.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r(2).Buffer)},function(e,t,r){var n=r(7).Buffer,o=r(54),i=r(497),s=r(4),a=r(505),c=r(530),u=r(260);function l(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=o(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new l(e)}function h(e){return new f(e)}Object.keys(u).forEach((function(e){u[e].id=n.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]})),s(l,i.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=a(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},s(f,i.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,r){"string"==typeof t&&(t=n.from(t,r)),this.end();var o=this._hash.digest();return c(t,o,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},function(e,t,r){(t=e.exports=r(274)).Stream=t,t.Readable=t,t.Writable=r(278),t.Duplex=r(79),t.Transform=r(279),t.PassThrough=r(503),t.finished=r(162),t.pipeline=r(504)},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=r(2).Buffer,a=r(500).inspect,c=a&&a.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,u;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,n,o=s.allocUnsafe(e>>>0),i=this.head,a=0;i;)t=i.data,r=o,n=a,s.prototype.copy.call(t,r,n),a+=i.data.length,i=i.next;return o}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&i(t.prototype,r),u&&i(t,u),e}()},function(e,t){},function(e,t,r){"use strict";(function(t){var n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=r(162),s=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[s]=null,e[a]=null,t(h(r,!1)))}}function g(e){t.nextTick(p,e)}var m=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var e=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(r,n){t.nextTick((function(){e[c]?n(e[c]):r(h(void 0,!0))}))}));var n,o=this[l];if(o)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[f](r,n)}),n)}}(o,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),m);e.exports=function(e){var t,r=Object.create(y,(o(t={},d,{value:e,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var n=r[d].read();n?(r[l]=null,r[s]=null,r[a]=null,e(h(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[l]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[s]=null,r[a]=null,t(e)),void(r[c]=e)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}}).call(this,r(13))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,r){"use strict";e.exports=o;var n=r(279);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(4)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){"use strict";var n;var o=r(78).codes,i=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e,t,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(162)),n(e,{readable:t,writable:o},(function(e){if(e)return i(e);a=!0,i()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new s("pipe"))}}function u(e){e()}function l(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var s=t.map((function(e,r){var i=r<t.length-1;return c(e,i,r>0,(function(e){n||(n=e),e&&s.forEach(u),i||(s.forEach(u),o(n))}))}));return t.reduce(l)}},function(e,t,r){var n=r(7).Buffer,o=r(120),i=r(163),s=r(45).ec,a=r(282),c=r(124),u=r(288);function l(e,t,r,i){if((e=n.from(e.toArray())).length<t.byteLength()){var s=n.alloc(t.byteLength()-e.length);e=n.concat([s,e])}var a=r.length,c=function(e,t){e=(e=f(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var o=n.alloc(t.byteLength()-r.length);r=n.concat([o,r])}return r}(r,t),u=n.alloc(a);u.fill(1);var l=n.alloc(a);return l=o(i,l).update(u).update(n.from([0])).update(e).update(c).digest(),u=o(i,l).update(u).digest(),{k:l=o(i,l).update(u).update(n.from([1])).update(e).update(c).digest(),v:u=o(i,l).update(u).digest()}}function f(e,t){var r=new a(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function d(e,t,r){var i,s;do{for(i=n.alloc(0);8*i.length<e.bitLength();)t.v=o(r,t.k).update(t.v).digest(),i=n.concat([i,t.v]);s=f(i,e),t.k=o(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=o(r,t.k).update(t.v).digest()}while(-1!==s.cmp(e));return s}function h(e,t,r,n){return e.toRed(a.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,o,p){var g=c(t);if(g.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(e,t){var r=u[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var o=new s(r).keyFromPrivate(t.privateKey).sign(e);return n.from(o.toDER())}(e,g)}if("dsa"===g.type){if("dsa"!==o)throw new Error("wrong private key type");return function(e,t,r){var o,i=t.params.priv_key,s=t.params.p,c=t.params.q,u=t.params.g,p=new a(0),g=f(e,c).mod(c),m=!1,y=l(i,c,e,r);for(;!1===m;)o=d(c,y,r),p=h(u,o,s,c),0===(m=o.invm(c).imul(g.add(i.mul(p))).mod(c)).cmpn(0)&&(m=!1,p=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(p,m)}(e,g,r)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");e=n.concat([p,e]);for(var m=g.modulus.byteLength(),y=[0,1];e.length+y.length+1<m;)y.push(255);y.push(0);for(var b=-1;++b<e.length;)y.push(e[b]);return i(y,g)},e.exports.getKey=l,e.exports.makeKey=d},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{s=r(507).Buffer}catch(e){}function a(e,t,r){for(var o=0,i=Math.min(e.length,r),s=0,a=t;a<i;a++){var c,u=e.charCodeAt(a)-48;o<<=4,o|=c=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,s|=c}return n(!(240&s),"Invalid character in "+e),o}function c(e,t,r,o){for(var i=0,s=0,a=Math.min(e.length,r),c=t;c<a;c++){var u=e.charCodeAt(c)-48;i*=o,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<o,"Invalid character"),i+=s}return i}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===t?this._parseHex(e,o):this._parseBase(e,t,o),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,s,a=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,o,i=0;for(r=e.length-6,n=0;r>=t;r-=6)o=a(e,r,r+6),this.words[n]|=o<<i&67108863,this.words[n+1]|=o>>>26-i&4194303,(i+=24)>=26&&(i-=26,n++);r+6!==t&&(o=a(e,t,r+6),this.words[n]|=o<<i&67108863,this.words[n+1]|=o>>>26-i&4194303),this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,s=i%n,a=Math.min(i,i-s)+r,u=0,l=r;l<a;l+=n)u=c(e,l,l+n,t),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var f=1;for(u=c(e,l,e.length,t),l=0;l<s;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){u(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(e){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","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"],d=[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],h=[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];i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var o=0,i=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<o|i)).toString(16);r=0!==(i=a>>>24-o&16777215)||s!==this.length-1?f[6-c.length]+c+r:c+r,(o+=2)>=26&&(o-=26,s--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?g+r:f[u-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],s=o*i,a=67108863&s,c=s/67108864|0;r.words[0]=a;for(var u=1;u<n;u++){for(var l=c>>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(s=(o=0|e.words[p])*(i=0|t.words[h])+f)/67108864|0,f=67108863&s}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}i.prototype.toArrayLike=function(e,t,r){this._strip();var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,o),s},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,o=0,i=0;o<this.length;o++){var s=this.words[o]<<i|n;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===i?(r<e.length&&(e[r++]=s>>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,o=0,i=0;o<this.length;o++){var s=this.words[o]<<i|n;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===i?(r>=0&&(e[r--]=s>>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<o:this.words[r]&~(1<<o),this._strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var o=0,i=0;i<n.length;i++)t=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<r.length;i++)t=(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=e):(r=e,n=this);for(var i=0,s=0;s<n.length;s++)i=(t=(0|r.words[s])-(0|n.words[s])+i)>>26,this.words[s]=67108863&t;for(;0!==i&&s<r.length;s++)i=(t=(0|r.words[s])+i)>>26,this.words[s]=67108863&t;if(0===i&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,o,i,s=e.words,a=t.words,c=r.words,u=0,l=0|s[0],f=8191&l,d=l>>>13,h=0|s[1],p=8191&h,g=h>>>13,m=0|s[2],y=8191&m,b=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,k=0|s[4],S=8191&k,O=k>>>13,j=0|s[5],E=8191&j,P=j>>>13,x=0|s[6],A=8191&x,M=x>>>13,I=0|s[7],C=8191&I,R=I>>>13,T=0|s[8],N=8191&T,B=T>>>13,D=0|s[9],L=8191&D,U=D>>>13,q=0|a[0],H=8191&q,z=q>>>13,F=0|a[1],K=8191&F,$=F>>>13,V=0|a[2],J=8191&V,G=V>>>13,W=0|a[3],Q=8191&W,Z=W>>>13,Y=0|a[4],X=8191&Y,ee=Y>>>13,te=0|a[5],re=8191&te,ne=te>>>13,oe=0|a[6],ie=8191&oe,se=oe>>>13,ae=0|a[7],ce=8191&ae,ue=ae>>>13,le=0|a[8],fe=8191&le,de=le>>>13,he=0|a[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(f,H))|0)+((8191&(o=(o=Math.imul(f,z))+Math.imul(d,H)|0))<<13)|0;u=((i=Math.imul(d,z))+(o>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,H),o=(o=Math.imul(p,z))+Math.imul(g,H)|0,i=Math.imul(g,z);var ye=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(o=(o=o+Math.imul(f,$)|0)+Math.imul(d,K)|0))<<13)|0;u=((i=i+Math.imul(d,$)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,H),o=(o=Math.imul(y,z))+Math.imul(b,H)|0,i=Math.imul(b,z),n=n+Math.imul(p,K)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(g,K)|0,i=i+Math.imul(g,$)|0;var be=(u+(n=n+Math.imul(f,J)|0)|0)+((8191&(o=(o=o+Math.imul(f,G)|0)+Math.imul(d,J)|0))<<13)|0;u=((i=i+Math.imul(d,G)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,H),o=(o=Math.imul(w,z))+Math.imul(_,H)|0,i=Math.imul(_,z),n=n+Math.imul(y,K)|0,o=(o=o+Math.imul(y,$)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,$)|0,n=n+Math.imul(p,J)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(g,J)|0,i=i+Math.imul(g,G)|0;var ve=(u+(n=n+Math.imul(f,Q)|0)|0)+((8191&(o=(o=o+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;u=((i=i+Math.imul(d,Z)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,H),o=(o=Math.imul(S,z))+Math.imul(O,H)|0,i=Math.imul(O,z),n=n+Math.imul(w,K)|0,o=(o=o+Math.imul(w,$)|0)+Math.imul(_,K)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(y,J)|0,o=(o=o+Math.imul(y,G)|0)+Math.imul(b,J)|0,i=i+Math.imul(b,G)|0,n=n+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,Z)|0)+Math.imul(g,Q)|0,i=i+Math.imul(g,Z)|0;var we=(u+(n=n+Math.imul(f,X)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((i=i+Math.imul(d,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(E,H),o=(o=Math.imul(E,z))+Math.imul(P,H)|0,i=Math.imul(P,z),n=n+Math.imul(S,K)|0,o=(o=o+Math.imul(S,$)|0)+Math.imul(O,K)|0,i=i+Math.imul(O,$)|0,n=n+Math.imul(w,J)|0,o=(o=o+Math.imul(w,G)|0)+Math.imul(_,J)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0,n=n+Math.imul(p,X)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(g,X)|0,i=i+Math.imul(g,ee)|0;var _e=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(o=(o=o+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((i=i+Math.imul(d,ne)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(A,H),o=(o=Math.imul(A,z))+Math.imul(M,H)|0,i=Math.imul(M,z),n=n+Math.imul(E,K)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(P,K)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(S,J)|0,o=(o=o+Math.imul(S,G)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,G)|0,n=n+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(y,X)|0,o=(o=o+Math.imul(y,ee)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ne)|0)+Math.imul(g,re)|0,i=i+Math.imul(g,ne)|0;var ke=(u+(n=n+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,se)|0)+Math.imul(d,ie)|0))<<13)|0;u=((i=i+Math.imul(d,se)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(C,H),o=(o=Math.imul(C,z))+Math.imul(R,H)|0,i=Math.imul(R,z),n=n+Math.imul(A,K)|0,o=(o=o+Math.imul(A,$)|0)+Math.imul(M,K)|0,i=i+Math.imul(M,$)|0,n=n+Math.imul(E,J)|0,o=(o=o+Math.imul(E,G)|0)+Math.imul(P,J)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(S,Q)|0,o=(o=o+Math.imul(S,Z)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,Z)|0,n=n+Math.imul(w,X)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(_,X)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,o=(o=o+Math.imul(y,ne)|0)+Math.imul(b,re)|0,i=i+Math.imul(b,ne)|0,n=n+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,se)|0)+Math.imul(g,ie)|0,i=i+Math.imul(g,se)|0;var Se=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(o=(o=o+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((i=i+Math.imul(d,ue)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,H),o=(o=Math.imul(N,z))+Math.imul(B,H)|0,i=Math.imul(B,z),n=n+Math.imul(C,K)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(A,J)|0,o=(o=o+Math.imul(A,G)|0)+Math.imul(M,J)|0,i=i+Math.imul(M,G)|0,n=n+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,Z)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(S,X)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(O,X)|0,i=i+Math.imul(O,ee)|0,n=n+Math.imul(w,re)|0,o=(o=o+Math.imul(w,ne)|0)+Math.imul(_,re)|0,i=i+Math.imul(_,ne)|0,n=n+Math.imul(y,ie)|0,o=(o=o+Math.imul(y,se)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,se)|0,n=n+Math.imul(p,ce)|0,o=(o=o+Math.imul(p,ue)|0)+Math.imul(g,ce)|0,i=i+Math.imul(g,ue)|0;var Oe=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((i=i+Math.imul(d,de)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,H),o=(o=Math.imul(L,z))+Math.imul(U,H)|0,i=Math.imul(U,z),n=n+Math.imul(N,K)|0,o=(o=o+Math.imul(N,$)|0)+Math.imul(B,K)|0,i=i+Math.imul(B,$)|0,n=n+Math.imul(C,J)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(R,J)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(A,Q)|0,o=(o=o+Math.imul(A,Z)|0)+Math.imul(M,Q)|0,i=i+Math.imul(M,Z)|0,n=n+Math.imul(E,X)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(P,X)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(S,re)|0,o=(o=o+Math.imul(S,ne)|0)+Math.imul(O,re)|0,i=i+Math.imul(O,ne)|0,n=n+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,se)|0)+Math.imul(_,ie)|0,i=i+Math.imul(_,se)|0,n=n+Math.imul(y,ce)|0,o=(o=o+Math.imul(y,ue)|0)+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,n=n+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,de)|0)+Math.imul(g,fe)|0,i=i+Math.imul(g,de)|0;var je=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,ge)|0)+Math.imul(d,pe)|0))<<13)|0;u=((i=i+Math.imul(d,ge)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,K),o=(o=Math.imul(L,$))+Math.imul(U,K)|0,i=Math.imul(U,$),n=n+Math.imul(N,J)|0,o=(o=o+Math.imul(N,G)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,G)|0,n=n+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(A,X)|0,o=(o=o+Math.imul(A,ee)|0)+Math.imul(M,X)|0,i=i+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,o=(o=o+Math.imul(E,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(S,ie)|0,o=(o=o+Math.imul(S,se)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,se)|0,n=n+Math.imul(w,ce)|0,o=(o=o+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,i=i+Math.imul(_,ue)|0,n=n+Math.imul(y,fe)|0,o=(o=o+Math.imul(y,de)|0)+Math.imul(b,fe)|0,i=i+Math.imul(b,de)|0;var Ee=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;u=((i=i+Math.imul(g,ge)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,J),o=(o=Math.imul(L,G))+Math.imul(U,J)|0,i=Math.imul(U,G),n=n+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,Z)|0,n=n+Math.imul(C,X)|0,o=(o=o+Math.imul(C,ee)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(A,re)|0,o=(o=o+Math.imul(A,ne)|0)+Math.imul(M,re)|0,i=i+Math.imul(M,ne)|0,n=n+Math.imul(E,ie)|0,o=(o=o+Math.imul(E,se)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,se)|0,n=n+Math.imul(S,ce)|0,o=(o=o+Math.imul(S,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,n=n+Math.imul(w,fe)|0,o=(o=o+Math.imul(w,de)|0)+Math.imul(_,fe)|0,i=i+Math.imul(_,de)|0;var Pe=(u+(n=n+Math.imul(y,pe)|0)|0)+((8191&(o=(o=o+Math.imul(y,ge)|0)+Math.imul(b,pe)|0))<<13)|0;u=((i=i+Math.imul(b,ge)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,Q),o=(o=Math.imul(L,Z))+Math.imul(U,Q)|0,i=Math.imul(U,Z),n=n+Math.imul(N,X)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(B,X)|0,i=i+Math.imul(B,ee)|0,n=n+Math.imul(C,re)|0,o=(o=o+Math.imul(C,ne)|0)+Math.imul(R,re)|0,i=i+Math.imul(R,ne)|0,n=n+Math.imul(A,ie)|0,o=(o=o+Math.imul(A,se)|0)+Math.imul(M,ie)|0,i=i+Math.imul(M,se)|0,n=n+Math.imul(E,ce)|0,o=(o=o+Math.imul(E,ue)|0)+Math.imul(P,ce)|0,i=i+Math.imul(P,ue)|0,n=n+Math.imul(S,fe)|0,o=(o=o+Math.imul(S,de)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,de)|0;var xe=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,ge)|0)+Math.imul(_,pe)|0))<<13)|0;u=((i=i+Math.imul(_,ge)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(L,X),o=(o=Math.imul(L,ee))+Math.imul(U,X)|0,i=Math.imul(U,ee),n=n+Math.imul(N,re)|0,o=(o=o+Math.imul(N,ne)|0)+Math.imul(B,re)|0,i=i+Math.imul(B,ne)|0,n=n+Math.imul(C,ie)|0,o=(o=o+Math.imul(C,se)|0)+Math.imul(R,ie)|0,i=i+Math.imul(R,se)|0,n=n+Math.imul(A,ce)|0,o=(o=o+Math.imul(A,ue)|0)+Math.imul(M,ce)|0,i=i+Math.imul(M,ue)|0,n=n+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,de)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,de)|0;var Ae=(u+(n=n+Math.imul(S,pe)|0)|0)+((8191&(o=(o=o+Math.imul(S,ge)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,ge)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,re),o=(o=Math.imul(L,ne))+Math.imul(U,re)|0,i=Math.imul(U,ne),n=n+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,se)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,se)|0,n=n+Math.imul(C,ce)|0,o=(o=o+Math.imul(C,ue)|0)+Math.imul(R,ce)|0,i=i+Math.imul(R,ue)|0,n=n+Math.imul(A,fe)|0,o=(o=o+Math.imul(A,de)|0)+Math.imul(M,fe)|0,i=i+Math.imul(M,de)|0;var Me=(u+(n=n+Math.imul(E,pe)|0)|0)+((8191&(o=(o=o+Math.imul(E,ge)|0)+Math.imul(P,pe)|0))<<13)|0;u=((i=i+Math.imul(P,ge)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,ie),o=(o=Math.imul(L,se))+Math.imul(U,ie)|0,i=Math.imul(U,se),n=n+Math.imul(N,ce)|0,o=(o=o+Math.imul(N,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,n=n+Math.imul(C,fe)|0,o=(o=o+Math.imul(C,de)|0)+Math.imul(R,fe)|0,i=i+Math.imul(R,de)|0;var Ie=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(o=(o=o+Math.imul(A,ge)|0)+Math.imul(M,pe)|0))<<13)|0;u=((i=i+Math.imul(M,ge)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(L,ce),o=(o=Math.imul(L,ue))+Math.imul(U,ce)|0,i=Math.imul(U,ue),n=n+Math.imul(N,fe)|0,o=(o=o+Math.imul(N,de)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,de)|0;var Ce=(u+(n=n+Math.imul(C,pe)|0)|0)+((8191&(o=(o=o+Math.imul(C,ge)|0)+Math.imul(R,pe)|0))<<13)|0;u=((i=i+Math.imul(R,ge)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,fe),o=(o=Math.imul(L,de))+Math.imul(U,fe)|0,i=Math.imul(U,de);var Re=(u+(n=n+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,ge)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,ge)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Te=(u+(n=Math.imul(L,pe))|0)+((8191&(o=(o=Math.imul(L,ge))+Math.imul(U,pe)|0))<<13)|0;return u=((i=Math.imul(U,ge))+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,c[0]=me,c[1]=ye,c[2]=be,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=Se,c[8]=Oe,c[9]=je,c[10]=Ee,c[11]=Pe,c[12]=xe,c[13]=Ae,c[14]=Me,c[15]=Ie,c[16]=Ce,c[17]=Re,c[18]=Te,0!==u&&(c[19]=u,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var s=o;o=0;for(var a=67108863&n,c=Math.min(i,t.length-1),u=Math.max(0,i-e.length+1);u<=c;u++){var l=i-u,f=(0|e.words[l])*(0|t.words[u]),d=67108863&f;a=67108863&(d=d+a|0),o+=(s=(s=s+(f/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}r.words[i]=a,n=s,s=o}return 0!==n?r.words[i]=n:r.length--,r._strip()}function y(e,t,r){return m(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=p),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?p(this,e,t):r<1024?m(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,o=0;o<t;o++)n|=(1&e)<<t-o-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,o,i){for(var s=0;s<i;s++)n[s]=t[e[s]],o[s]=r[e[s]]},b.prototype.transform=function(e,t,r,n,o,i){this.permute(i,e,t,r,n,o);for(var s=1;s<o;s<<=1)for(var a=s<<1,c=Math.cos(2*Math.PI/a),u=Math.sin(2*Math.PI/a),l=0;l<o;l+=a)for(var f=c,d=u,h=0;h<s;h++){var p=r[l+h],g=n[l+h],m=r[l+h+s],y=n[l+h+s],b=f*m-d*y;y=f*y+d*m,m=b,r[l+h]=p+m,n[l+h]=g+y,r[l+h+s]=p-m,n[l+h+s]=g-y,h!==a&&(b=c*f-u*d,d=c*d+u*f,f=b)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=e[n];e[n]=e[r-n-1],e[r-n-1]=o,o=t[n],t[n]=-t[r-n-1],t[r-n-1]=-o}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var o=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&o,r=o<67108864?0:o/67108864|0}return e},b.prototype.convert13b=function(e,t,r,o){for(var i=0,s=0;s<t;s++)i+=0|e[s],r[2*s]=8191&i,i>>>=13,r[2*s+1]=8191&i,i>>>=13;for(s=2*t;s<o;++s)r[s]=0;n(0===i),n(0==(-8192&i))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),i=this.stub(n),s=new Array(n),a=new Array(n),c=new Array(n),u=new Array(n),l=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,u,n),this.transform(s,i,a,c,n,o),this.transform(u,i,l,f,n,o);for(var h=0;h<n;h++){var p=a[h]*l[h]-c[h]*f[h];c[h]=a[h]*f[h]+c[h]*l[h],a[h]=p}return this.conjugate(a,c,n),this.transform(a,c,d,i,n,o),this.conjugate(d,i,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),y(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,o=0;o<this.length;o++){var i=(0|this.words[o])*e,s=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=s>>>26,this.words[o]=67108863&s}return 0!==r&&(this.words[o]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=e.words[n]>>>o&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,o=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,c=(0|this.words[t])-a<<r;this.words[t]=c|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var o;n("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,s=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,c=r;if(o-=s,o=Math.max(0,o),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=o);u--){var f=0|this.words[u];this.words[u]=l<<26-i|f>>>i,l=f&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,o=1<<t;return!(this.length<=r)&&!!(this.words[r]&o)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var o,i,s=e.length+r;this._expand(s);var a=0;for(o=0;o<e.length;o++){i=(0|this.words[o+r])+a;var c=(0|e.words[o])*t;a=((i-=67108863&c)>>26)-(c/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)a=(i=(0|this.words[o+r])+a)>>26,this.words[o+r]=67108863&i;if(0===a)return this._strip();for(n(-1===a),a=0,o=0;o<this.length;o++)a=(i=-(0|this.words[o])+a)>>26,this.words[o]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,c=n.length-o.length;if("mod"!==t){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=n.clone()._ishlnsubmul(o,1,c);0===l.negative&&(n=l,a&&(a.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(o,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);a&&(a.words[f]=d)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,o=0,i=this.length-1;i>=0;i--)o=(r*o+(0|this.words[i]))%e;return t?-o:o},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+67108864*r;this.words[o]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(f)),o.iushrn(1),s.iushrn(1);for(var p=0,g=1;0==(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(f)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a),s.isub(c)):(r.isub(t),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var f=0,d=1;0==(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,o=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,s=r;0!==i&&s<this.length;s++){var a=0|this.words[s];i=(a+=i)>>>26,a&=67108863,this.words[s]=a}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){n<o?t=-1:n>o&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new j(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function O(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},o(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,n=10;n<e.length;n++){var i=0|e.words[n];e.words[n-10]=(4194303&i)<<4|o>>>22,o=i}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(k,w),o(S,w),o(O,w),O.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,o=67108863&n;n>>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new O}return v[e]=t,t},j.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},j.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=s;0!==h.cmp(a);){for(var g=h,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(f,new i(1).iushln(p-m-1));d=d.redMul(y),f=y.redSqr(),h=h.redMul(f),p=m}return d},j.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},j.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==s?(s<<=1,s|=f,(4===++a||0===n&&0===l)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}c=26}return o},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},o(E,j),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(71)(e))},function(e,t){},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.3","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}')},function(e,t,r){"use strict";var n=r(33),o=r(6),i=r(4),s=r(123),a=n.assert;function c(e){s.call(this,"short",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(t,16),this.y=new o(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(t,16),this.y=new o(r,16),this.z=new o(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(c,s),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new o(e.a,16),b:new o(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.mont(e),r=new o(2).toRed(t).redInvm(),n=r.redNeg(),i=new o(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,i,s,a,c,u,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new o(1),g=new o(0),m=new o(0),y=new o(1),b=0;0!==d.cmpn(0);){var v=h.div(d);u=h.sub(v.mul(d)),l=m.sub(v.mul(p));var w=y.sub(v.mul(g));if(!n&&u.cmp(f)<0)t=c.neg(),r=p,n=u.neg(),i=l;else if(n&&2==++b)break;c=u,h=d,d=u,m=p,p=l,y=g,g=w}s=u.neg(),a=l;var _=n.sqr().add(i.sqr());return s.sqr().add(a.sqr()).cmp(_)>=0&&(s=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:i},{a:s,b:a}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),s=o.mul(r.a),a=i.mul(n.a),c=o.mul(r.b),u=i.mul(n.b);return{k1:e.sub(s).sub(a),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var s=this._endoSplit(t[i]),a=e[i],c=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),c=c.neg(!0)),n[2*i]=a,n[2*i+1]=c,o[2*i]=s.k1,o[2*i+1]=s.k2}for(var u=this._wnafMulAdd(1,n,o,2*i,r),l=0;l<2*i;l++)n[l]=null,o[l]=null;return u},i(u,s.BasePoint),c.prototype.point=function(e,t,r){return new u(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function o(t){return e.point(t[0],t[1],r)}var i=t[2];return n.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[n].concat(i.doubles.points.map(o))},naf:i.naf&&{wnd:i.naf.wnd,points:[n].concat(i.naf.points.map(o))}},n},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=o.redSqr().redISub(this.x.redAdd(this.x)),s=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,s)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new o(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(l,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),o=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(o),c=i.redSub(s);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),f=n.redMul(u),d=c.redSqr().redIAdd(l).redISub(f).redISub(f),h=c.redMul(f.redISub(d)).redISub(i.redMul(l)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=o.redSub(i);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),l=r.redMul(c),f=a.redSqr().redIAdd(u).redISub(l).redISub(l),d=a.redMul(l.redISub(f)).redISub(o.redMul(u)),h=this.z.redMul(s);return this.curve.jpoint(f,d,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,o=this.curve.tinv,i=this.x,s=this.y,a=this.z,c=a.redSqr().redSqr(),u=s.redAdd(s);for(r=0;r<e;r++){var l=i.redSqr(),f=u.redSqr(),d=f.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(c)),p=i.redMul(f),g=h.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),y=h.redMul(m);y=y.redIAdd(y).redISub(d);var b=u.redMul(a);r+1<e&&(c=c.redMul(d)),i=g,a=b,u=y}return this.curve.jpoint(i,u.redMul(o),a)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(i);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),c=a.redSqr().redISub(s).redISub(s),u=i.redIAdd(i);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=a.redMul(s.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(l).redISub(d);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),g=p.redSqr(),m=d.redIAdd(d);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),s=this.x.redAdd(o).redSqr().redISub(n).redISub(i);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=a.redSqr().redISub(s).redISub(s);e=c;var u=i.redIAdd(i);u=(u=u.redIAdd(u)).redIAdd(u),t=a.redMul(s.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),g=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var m=f.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=h.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,o=n.redSqr().redSqr(),i=t.redSqr(),s=r.redSqr(),a=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(o)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(s),l=a.redSqr().redISub(u.redAdd(u)),f=u.redISub(l),d=s.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=a.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),o=e.redAdd(e).redIAdd(e),i=o.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(i)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=o.redIAdd(s).redSqr().redISub(i).redISub(a).redISub(c),l=t.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(a).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(u.redMul(c.redISub(u)).redISub(s.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(f,d,h)},l.prototype.mul=function(e,t){return e=new o(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),o=r.redMul(e.z);return 0===this.y.redMul(o).redISub(e.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),o=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(6),o=r(4),i=r(123),s=r(33);function a(e){i.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){i.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(a,i),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(c,i.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},a.prototype.point=function(e,t){return new c(this,e,t)},a.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),o=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,o)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),o=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(r),s=o.redMul(n),a=t.z.redMul(i.redAdd(s).redSqr()),c=t.x.redMul(i.redISub(s).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var i=o.length-1;i>=0;i--)0===o[i]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(33),o=r(6),i=r(4),s=r(123),a=n.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}i(c,s),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(i.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(t&&!c||!t&&c)&&(a=a.redNeg()),this.point(e,a)},c.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(i.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(o)},i(u,s.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),o=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=n.redAdd(t),s=i.redSub(r),a=n.redSub(t),c=o.redMul(s),u=i.redMul(a),l=o.redMul(a),f=s.redMul(i);return this.curve.point(c,u,f,l)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var s=(u=this.curve._mulA(o)).redAdd(i);if(this.zOne)e=n.redSub(o).redSub(i).redMul(s.redSub(this.curve.two)),t=s.redMul(u.redSub(i)),r=s.redSqr().redSub(s).redSub(s);else{var a=this.z.redSqr(),c=s.redSub(a).redISub(a);e=n.redSub(o).redISub(i).redMul(c),t=s.redMul(u.redSub(i)),r=s.redMul(c)}}else{var u=o.redAdd(i);a=this.curve._mulC(this.z).redSqr(),c=u.redSub(a).redSub(a);e=this.curve._mulC(n.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(o.redISub(i)),r=u.redMul(c)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),o=this.z.redMul(e.z.redAdd(e.z)),i=r.redSub(t),s=o.redSub(n),a=o.redAdd(n),c=r.redAdd(t),u=i.redMul(s),l=a.redMul(c),f=i.redMul(c),d=s.redMul(a);return this.curve.point(u,l,d,f)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),o=n.redSqr(),i=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(i).redMul(s),c=o.redSub(a),u=o.redAdd(a),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(s),f=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(s.redSub(this.curve._mulA(i))),r=c.redMul(u)):(t=n.redMul(u).redMul(s.redSub(i)),r=this.curve._mulC(c).redMul(u)),this.curve.point(f,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(6),o=r(514),i=r(33),s=r(164),a=r(161),c=i.assert,u=r(515),l=r(516);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(c(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new u(this,e)},f.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new o({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),a=t.getPrivate().toArray("be",s),c=e.toArray("be",s),u=new o({hash:this.hash,entropy:a,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),f=this.n.sub(new n(1)),d=0;;d++){var h=i.k?i.k(d):new n(u.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var y=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new l({r:m,s:y,recoveryParam:b})}}}}}},f.prototype.verify=function(e,t,r,o){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,o);var i=(t=new l(t,"hex")).r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,c=s.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),f)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),f)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},f.prototype.recoverPubKey=function(e,t,r,o){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,o);var i=this.n,s=new n(e),a=t.r,u=t.s,f=1&r,d=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),f):this.curve.pointFromX(a,f);var h=t.r.invm(i),p=i.sub(s).mul(h).umod(i),g=u.mul(h).umod(i);return this.g.mulAdd(p,a,g)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(70),o=r(280),i=r(32);function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=o.toArray(e.entropy,e.entropyEnc||"hex"),r=o.toArray(e.nonce,e.nonceEnc||"hex"),n=o.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=o.toArray(e,t),r=o.toArray(r,n),i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=o.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var s=i.slice(0,e);return this._update(r),this._reseed++,o.encode(s,t)}},function(e,t,r){"use strict";var n=r(6),o=r(33).assert;function i(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=i,i.fromPublic=function(e,t,r){return t instanceof i?t:new i(e,{pub:t,pubEnc:r})},i.fromPrivate=function(e,t,r){return t instanceof i?t:new i(e,{priv:t,privEnc:r})},i.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},i.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},i.prototype.derive=function(e){return e.mul(this.priv).getX()},i.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},i.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},i.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(6),o=r(33),i=o.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var o=0,i=0,s=t.place;i<n;i++,s++)o<<=8,o|=e[s],o>>>=0;return!(o<=127)&&(t.place=s,o)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=s,s.prototype._importDER=function(e,t){e=o.toArray(e,t);var r=new a;if(48!==e[r.place++])return!1;var i=c(e,r);if(!1===i)return!1;if(i+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var s=c(e,r);if(!1===s)return!1;var u=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var l=c(e,r);if(!1===l)return!1;if(e.length!==l+r.place)return!1;var f=e.slice(r.place,l+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new n(u),this.s=new n(f),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var i=n.concat(r),s=[48];return l(s,i.length),s=s.concat(i),o.encode(s,e)}},function(e,t,r){"use strict";var n=r(70),o=r(164),i=r(33),s=i.assert,a=i.parseBytes,c=r(518),u=r(519);function l(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=o[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),o=this.g.mul(n),i=this.encodePoint(o),s=this.hashInt(i,r.pubBytes(),e).mul(r.priv()),c=n.add(s).umod(this.curve.n);return this.makeSignature({R:o,S:c,Rencoded:i})},l.prototype.verify=function(e,t,r){e=a(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),o=this.hashInt(t.Rencoded(),n.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(n.pub().mul(o)).eq(i)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return i.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=i.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),o=i.intFromLE(r);return this.curve.pointFromY(o,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return i.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(33),o=n.assert,i=n.parseBytes,s=n.cachedProperty;function a(e,t){this.eddsa=e,this._secret=i(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=i(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(a,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),s(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(e){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return o(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},a.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=a},function(e,t,r){"use strict";var n=r(6),o=r(33),i=o.assert,s=o.cachedProperty,a=o.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),i(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t){},function(e,t,r){"use strict";var n=r(283);t.certificate=r(527);var o=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=o;var i=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=i;var s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));t.PublicKey=s;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=l,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var f=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,r){"use strict";const n=r(284),o=r(286),i=r(4);function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return i(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(o[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t,r){"use strict";const n=r(4),o=r(285);function i(e){o.call(this,e),this.enc="pem"}n(i,o),e.exports=i,i.prototype.encode=function(e,t){const r=o.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"];for(let e=0;e<r.length;e+=64)n.push(r.slice(e,e+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";const n=r(4),o=r(165).Buffer,i=r(287);function s(e){i.call(this,e),this.enc="pem"}n(s,i),e.exports=s,s.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,c=-1;for(let e=0;e<r.length;e++){const t=r[e].match(s);if(null!==t&&t[2]===n){if(-1!==a){if("END"!==t[1])break;c=e;break}if("BEGIN"!==t[1])break;a=e}}if(-1===a||-1===c)throw new Error("PEM section not found for: "+n);const u=r.slice(a+1,c).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const l=o.from(u,"base64");return i.prototype.decode.call(this,l,t)}},function(e,t,r){"use strict";const n=t;n.Reporter=r(167).Reporter,n.DecoderBuffer=r(99).DecoderBuffer,n.EncoderBuffer=r(99).EncoderBuffer,n.Node=r(166)},function(e,t,r){"use strict";const n=t;n._reverse=function(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t},n.der=r(168)},function(e,t,r){"use strict";var n=r(283),o=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),i=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),c=n.define("RelativeDistinguishedName",(function(){this.setof(i)})),u=n.define("RDNSequence",(function(){this.seqof(c)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),f=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));e.exports=p},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=r(122),a=r(159),c=r(7).Buffer;e.exports=function(e,t){var r,u=e.toString(),l=u.match(n);if(l){var f="aes"+l[1],d=c.from(l[2],"hex"),h=c.from(l[3].replace(/[\r\n]/g,""),"base64"),p=s(t,d.slice(0,8),parseInt(l[1],10)).key,g=[],m=a.createDecipheriv(f,p,d);g.push(m.update(h)),g.push(m.final()),r=c.concat(g)}else{var y=u.match(i);r=c.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(o)[1],data:r}}},function(e,t,r){var n=r(7).Buffer,o=r(282),i=r(45).ec,s=r(124),a=r(288);function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,r,u,l){var f=s(r);if("ec"===f.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,t,f)}if("dsa"===f.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,i=r.data.q,a=r.data.g,u=r.data.pub_key,l=s.signature.decode(e,"der"),f=l.s,d=l.r;c(f,i),c(d,i);var h=o.mont(n),p=f.invm(i);return 0===a.toRed(h).redPow(new o(t).mul(p).mod(i)).fromRed().mul(u.toRed(h).redPow(d.mul(p).mod(i)).fromRed()).mod(n).mod(i).cmp(d)}(e,t,f)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=n.concat([l,t]);for(var d=f.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<d;)h.push(255),p++;h.push(0);for(var g=-1;++g<t.length;)h.push(t[g]);h=n.from(h);var m=o.mont(f.modulus);e=(e=new o(e).toRed(m)).redPow(new o(f.publicExponent)),e=n.from(e.fromRed().toArray());var y=p<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(y=1),g=-1;++g<d;)y|=e[g]^h[g];return 0===y}},function(e,t,r){(function(t){var n=r(45),o=r(6);e.exports=function(e){return new s(e)};var i={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=i[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(e,r,n){Array.isArray(e)||(e=e.toArray());var o=new t(e);if(n&&o.length<n){var i=new t(n-o.length);i.fill(0),o=t.concat([i,o])}return r?o.toString(r):o}i.p224=i.secp224r1,i.p256=i.secp256r1=i.prime256v1,i.p192=i.secp192r1=i.prime192v1,i.p384=i.secp384r1,i.p521=i.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},s.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new o(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(2).Buffer)},function(e,t,r){t.publicEncrypt=r(533),t.privateDecrypt=r(534),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){var n=r(124),o=r(62),i=r(54),s=r(289),a=r(290),c=r(6),u=r(291),l=r(163),f=r(7).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===d)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,u=i("sha1").update(f.alloc(0)).digest(),l=u.length,d=2*l;if(n>r-d-2)throw new Error("message too long");var h=f.alloc(r-n-d-2),p=r-l-1,g=o(l),m=a(f.concat([u,h,f.alloc(1,1),t],p),s(g,p)),y=a(g,s(m,l));return new c(f.concat([f.alloc(1),y,m],r))}(p,t);else if(1===d)h=function(e,t,r){var n,i=t.length,s=e.modulus.byteLength();if(i>s-11)throw new Error("message too long");n=r?f.alloc(s-i-3,255):function(e){var t,r=f.allocUnsafe(e),n=0,i=o(2*e),s=0;for(;n<e;)s===i.length&&(i=o(2*e),s=0),(t=i[s++])&&(r[n++]=t);return r}(s-i-3);return new c(f.concat([f.from([0,r?1:2]),n,f.alloc(1),t],s))}(p,t,r);else{if(3!==d)throw new Error("unknown padding");if((h=new c(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?l(h,p):u(h,p)}},function(e,t,r){var n=r(124),o=r(289),i=r(290),s=r(6),a=r(163),c=r(54),u=r(291),l=r(7).Buffer;e.exports=function(e,t,r){var f;f=e.padding?e.padding:r?1:4;var d,h=n(e),p=h.modulus.byteLength();if(t.length>p||new s(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=r?u(new s(t),h):a(t,h);var g=l.alloc(p-d.length);if(d=l.concat([g,d],p),4===f)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(l.alloc(0)).digest(),s=n.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,s+1),u=t.slice(s+1),f=i(a,o(u,s)),d=i(u,o(f,r-s-1));if(function(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var o=-1;for(;++o<n;)r+=e[o]^t[o];return r}(n,d.slice(0,s)))throw new Error("decryption error");var h=s;for(;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===f)return function(e,t,r){var n=t.slice(0,2),o=2,i=0;for(;0!==t[o++];)if(o>=t.length){i++;break}var s=t.slice(2,o-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&i++;s.length<8&&i++;if(i)throw new Error("decryption error");return t.slice(o)}(0,d,r);if(3===f)return d;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var i=r(7),s=r(62),a=i.Buffer,c=i.kMaxLength,u=e.crypto||e.msCrypto,l=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>c)throw new RangeError("buffer too small")}function h(e,t,r,o){if(n.browser){var i=e.buffer,a=new Uint8Array(i,t,r);return u.getRandomValues(a),o?void n.nextTick((function(){o(null,e)})):e}if(!o)return s(r).copy(e,t),e;s(r,(function(r,n){if(r)return o(r);n.copy(e,t),o(null,e)}))}u&&u.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,o){if(!(a.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)o=r,r=0,n=t.length;else if("function"==typeof n)o=n,n=t.length-r;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return f(r,t.length),d(n,r,t.length),h(t,r,n,o)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(a.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),h(t,r,n)}):(t.randomFill=o,t.randomFillSync=o)}).call(this,r(12),r(13))},function(e,t){const r="Impossible case. Please create issue.",n="The tweak was out of range or the resulted private key is invalid",o="The tweak was out of range or equal to zero",i="Unknow error on context randomization",s="Private Key is invalid",a="Public Key could not be parsed",c="Public Key serialization error",u="The sum of the public keys is not valid",l="Signature could not be parsed",f="The nonce generation function failed, or the private key was invalid",d="Public key could not be recover",h="Scalar was invalid (zero or overflow)";function p(e,t){if(!e)throw new Error(t)}function g(e,t,r){if(p(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==r)if(Array.isArray(r)){const n=`Expected ${e} to be an Uint8Array with length [${r.join(", ")}]`;p(r.includes(t.length),n)}else{const n=`Expected ${e} to be an Uint8Array with length ${r}`;p(t.length===r,n)}}function m(e){p("Boolean"===b(e),"Expected compressed to be a Boolean")}function y(e=(e=>new Uint8Array(e)),t){return"function"==typeof e&&(e=e(t)),g("output",e,t),e}function b(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=e=>({contextRandomize(t){switch(p(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&g("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(i)}},privateKeyVerify:t=>(g("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(g("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(r)}},privateKeyTweakAdd(t,r){switch(g("private key",t,32),g("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw new Error(n)}},privateKeyTweakMul(t,r){switch(g("private key",t,32),g("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw new Error(o)}},publicKeyVerify:t=>(g("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(g("private key",t,32),m(r),n=y(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw new Error(s);case 2:throw new Error(c)}},publicKeyConvert(t,r=!0,n){switch(g("public key",t,[33,65]),m(r),n=y(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(c)}},publicKeyNegate(t,n=!0,o){switch(g("public key",t,[33,65]),m(n),o=y(o,n?33:65),e.publicKeyNegate(o,t)){case 0:return o;case 1:throw new Error(a);case 2:throw new Error(r);case 3:throw new Error(c)}},publicKeyCombine(t,r=!0,n){p(Array.isArray(t),"Expected public keys to be an Array"),p(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)g("public key",e,[33,65]);switch(m(r),n=y(n,r?33:65),e.publicKeyCombine(n,t)){case 0:return n;case 1:throw new Error(a);case 2:throw new Error(u);case 3:throw new Error(c)}},publicKeyTweakAdd(t,r,o=!0,i){switch(g("public key",t,[33,65]),g("tweak",r,32),m(o),i=y(i,o?33:65),e.publicKeyTweakAdd(i,t,r)){case 0:return i;case 1:throw new Error(a);case 2:throw new Error(n)}},publicKeyTweakMul(t,r,n=!0,i){switch(g("public key",t,[33,65]),g("tweak",r,32),m(n),i=y(i,n?33:65),e.publicKeyTweakMul(i,t,r)){case 0:return i;case 1:throw new Error(a);case 2:throw new Error(o)}},signatureNormalize(t){switch(g("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(l)}},signatureExport(t,n){g("signature",t,64);const o={output:n=y(n,72),outputlen:72};switch(e.signatureExport(o,t)){case 0:return n.slice(0,o.outputlen);case 1:throw new Error(l);case 2:throw new Error(r)}},signatureImport(t,n){switch(g("signature",t),n=y(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(l);case 2:throw new Error(r)}},ecdsaSign(t,n,o={},i){g("message",t,32),g("private key",n,32),p("Object"===b(o),"Expected options to be an Object"),void 0!==o.data&&g("options.data",o.data),void 0!==o.noncefn&&p("Function"===b(o.noncefn),"Expected options.noncefn to be a Function");const s={signature:i=y(i,64),recid:null};switch(e.ecdsaSign(s,t,n,o.data,o.noncefn)){case 0:return s;case 1:throw new Error(f);case 2:throw new Error(r)}},ecdsaVerify(t,r,n){switch(g("signature",t,64),g("message",r,32),g("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(l);case 2:throw new Error(a)}},ecdsaRecover(t,n,o,i=!0,s){switch(g("signature",t,64),p("Number"===b(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),g("message",o,32),m(i),s=y(s,i?33:65),e.ecdsaRecover(s,t,n,o)){case 0:return s;case 1:throw new Error(l);case 2:throw new Error(d);case 3:throw new Error(r)}},ecdh(t,r,n={},o){switch(g("public key",t,[33,65]),g("private key",r,32),p("Object"===b(n),"Expected options to be an Object"),void 0!==n.data&&g("options.data",n.data),void 0!==n.hashfn?(p("Function"===b(n.hashfn),"Expected options.hashfn to be a Function"),void 0!==n.xbuf&&g("options.xbuf",n.xbuf,32),void 0!==n.ybuf&&g("options.ybuf",n.ybuf,32),g("output",o)):o=y(o,32),e.ecdh(o,t,r,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return o;case 1:throw new Error(a);case 2:throw new Error(h)}}})},function(e,t,r){const n=new(0,r(45).ec)("secp256k1"),o=n.curve,i=o.n.constructor;function s(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let r=new i(t);if(r.cmp(o.p)>=0)return null;r=r.toRed(o.red);let s=r.redSqr().redIMul(r).redIAdd(o.b).redSqrt();return 3===e!==s.isOdd()&&(s=s.redNeg()),n.keyPair({pub:{x:r,y:s}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){let s=new i(t),a=new i(r);if(s.cmp(o.p)>=0||a.cmp(o.p)>=0)return null;if(s=s.toRed(o.red),a=a.toRed(o.red),(6===e||7===e)&&a.isOdd()!==(7===e))return null;const c=s.redSqr().redIMul(s);return a.redSqr().redISub(c.redIAdd(o.b)).isZero()?n.keyPair({pub:{x:s,y:a}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function a(e,t){const r=t.encode(null,33===e.length);for(let t=0;t<e.length;++t)e[t]=r[t]}e.exports={contextRandomize:()=>0,privateKeyVerify(e){const t=new i(e);return t.cmp(o.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new i(e),r=o.n.sub(t).umod(o.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){const r=new i(t);if(r.cmp(o.n)>=0)return 1;if(r.iadd(new i(e)),r.cmp(o.n)>=0&&r.isub(o.n),r.isZero())return 1;const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakMul(e,t){let r=new i(t);if(r.cmp(o.n)>=0||r.isZero())return 1;r.imul(new i(e)),r.cmp(o.n)>=0&&(r=r.umod(o.n));const n=r.toArrayLike(Uint8Array,"be",32);return e.set(n),0},publicKeyVerify:e=>null===s(e)?1:0,publicKeyCreate(e,t){const r=new i(t);if(r.cmp(o.n)>=0||r.isZero())return 1;return a(e,n.keyFromPrivate(t).getPublic()),0},publicKeyConvert(e,t){const r=s(t);if(null===r)return 1;return a(e,r.getPublic()),0},publicKeyNegate(e,t){const r=s(t);if(null===r)return 1;const n=r.getPublic();return n.y=n.y.redNeg(),a(e,n),0},publicKeyCombine(e,t){const r=new Array(t.length);for(let e=0;e<t.length;++e)if(r[e]=s(t[e]),null===r[e])return 1;let n=r[0].getPublic();for(let e=1;e<r.length;++e)n=n.add(r[e].pub);return n.isInfinity()?2:(a(e,n),0)},publicKeyTweakAdd(e,t,r){const n=s(t);if(null===n)return 1;if((r=new i(r)).cmp(o.n)>=0)return 2;const c=n.getPublic().add(o.g.mul(r));return c.isInfinity()?2:(a(e,c),0)},publicKeyTweakMul(e,t,r){const n=s(t);if(null===n)return 1;if((r=new i(r)).cmp(o.n)>=0||r.isZero())return 2;return a(e,n.getPublic().mul(r)),0},signatureNormalize(e){const t=new i(e.subarray(0,32)),r=new i(e.subarray(32,64));return t.cmp(o.n)>=0||r.cmp(o.n)>=0?1:(1===r.cmp(n.nh)&&e.set(o.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const r=t.subarray(0,32),n=t.subarray(32,64);if(new i(r).cmp(o.n)>=0)return 1;if(new i(n).cmp(o.n)>=0)return 1;const{output:s}=e;let a=s.subarray(4,37);a[0]=0,a.set(r,1);let c=33,u=0;for(;c>1&&0===a[u]&&!(128&a[u+1]);--c,++u);if(a=a.subarray(u),128&a[0])return 1;if(c>1&&0===a[0]&&!(128&a[1]))return 1;let l=s.subarray(39,72);l[0]=0,l.set(n,1);let f=33,d=0;for(;f>1&&0===l[d]&&!(128&l[d+1]);--f,++d);return l=l.subarray(d),128&l[0]||f>1&&0===l[0]&&!(128&l[1])?1:(e.outputlen=6+c+f,s[0]=48,s[1]=e.outputlen-2,s[2]=2,s[3]=a.length,s.set(a,4),s[4+c]=2,s[5+c]=l.length,s.set(l,6+c),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const r=t[3];if(0===r)return 1;if(5+r>=t.length)return 1;if(2!==t[4+r])return 1;const n=t[5+r];if(0===n)return 1;if(6+r+n!==t.length)return 1;if(128&t[4])return 1;if(r>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[r+6])return 1;if(n>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let s=t.subarray(4,4+r);if(33===s.length&&0===s[0]&&(s=s.subarray(1)),s.length>32)return 1;let a=t.subarray(6+r);if(33===a.length&&0===a[0]&&(a=a.slice(1)),a.length>32)throw new Error("S length is too long");let c=new i(s);c.cmp(o.n)>=0&&(c=new i(0));let u=new i(t.subarray(6+r));return u.cmp(o.n)>=0&&(u=new i(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,s,a){if(a){const e=a;a=n=>{const o=e(t,r,null,s,n);if(!(o instanceof Uint8Array&&32===o.length))throw new Error("This is the way");return new i(o)}}const c=new i(r);if(c.cmp(o.n)>=0||c.isZero())return 1;let u;try{u=n.sign(t,r,{canonical:!0,k:a,pers:s})}catch(e){return 1}return e.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),e.recid=u.recoveryParam,0},ecdsaVerify(e,t,r){const a={r:e.subarray(0,32),s:e.subarray(32,64)},c=new i(a.r),u=new i(a.s);if(c.cmp(o.n)>=0||u.cmp(o.n)>=0)return 1;if(1===u.cmp(n.nh)||c.isZero()||u.isZero())return 3;const l=s(r);if(null===l)return 2;const f=l.getPublic();return n.verify(t,a,f)?0:3},ecdsaRecover(e,t,r,s){const c={r:t.slice(0,32),s:t.slice(32,64)},u=new i(c.r),l=new i(c.s);if(u.cmp(o.n)>=0||l.cmp(o.n)>=0)return 1;if(u.isZero()||l.isZero())return 2;let f;try{f=n.recoverPubKey(s,c,r)}catch(e){return 2}return a(e,f),0},ecdh(e,t,r,a,c,u,l){const f=s(t);if(null===f)return 1;const d=new i(r);if(d.cmp(o.n)>=0||d.isZero())return 2;const h=f.getPublic().mul(d);if(void 0===c){const t=h.encode(null,!0),r=n.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{u||(u=new Uint8Array(32));const t=h.getX().toArray("be",32);for(let e=0;e<32;++e)u[e]=t[e];l||(l=new Uint8Array(32));const r=h.getY().toArray("be",32);for(let e=0;e<32;++e)l[e]=r[e];const n=c(u,l,a);if(!(n instanceof Uint8Array&&n.length===e.length))return 2;e.set(n)}return 0}}},function(e,t,r){"use strict";var n=r(539),o=r(57),i=r(294),s=r(169),a=r(295),c=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var l;if(l="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,l)))throw new Error(s[r]);this._dict_set=!0}}function l(e,t){var r=new u(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}u.prototype.push=function(e,t){var r,s,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=i.string2buf(e):"[object ArrayBuffer]"===c.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new o.Buf8(u),a.next_out=0,a.avail_out=u),1!==(r=n.deflate(a,s))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(a.output,a.next_out))):this.onData(o.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),a.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=u,t.deflate=l,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,l(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,l(e,t)}},function(e,t,r){"use strict";var n,o=r(57),i=r(540),s=r(292),a=r(293),c=r(169);function u(e,t){return e.msg=c[t],t}function l(e){return(e<<1)-(e>4?9:0)}function f(e){for(var t=e.length;--t>=0;)e[t]=0}function d(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(o.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function h(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,d(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function g(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function m(e,t){var r,n,o=e.max_chain_length,i=e.strstart,s=e.prev_length,a=e.nice_match,c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,l=e.w_mask,f=e.prev,d=e.strstart+258,h=u[i+s-1],p=u[i+s];e.prev_length>=e.good_match&&(o>>=2),a>e.lookahead&&(a=e.lookahead);do{if(u[(r=t)+s]===p&&u[r+s-1]===h&&u[r]===u[i]&&u[++r]===u[i+1]){i+=2,r++;do{}while(u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&i<d);if(n=258-(d-i),i=d-258,n>s){if(e.match_start=t,s=n,n>=a)break;h=u[i+s-1],p=u[i+s]}}}while((t=f[t&l])>c&&0!=--o);return s<=e.lookahead?s:e.lookahead}function y(e){var t,r,n,i,c,u,l,f,d,h,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){o.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=p?n-p:0}while(--r);t=r=p;do{n=e.prev[--t],e.prev[t]=n>=p?n-p:0}while(--r);i+=p}if(0===e.strm.avail_in)break;if(u=e.strm,l=e.window,f=e.strstart+e.lookahead,d=i,h=void 0,(h=u.avail_in)>d&&(h=d),r=0===h?0:(u.avail_in-=h,o.arraySet(l,u.input,u.next_in,h,f),1===u.state.wrap?u.adler=s(u.adler,l,h,f):2===u.state.wrap&&(u.adler=a(u.adler,l,h,f)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function b(e,t){for(var r,n;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=m(e,r)),e.match_length>=3)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function v(e,t){for(var r,n,o;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=m(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-3,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(h(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&h(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,r,n,o){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=o}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,i._tr_init(t),0):u(e,-2)}function S(e){var t,r=k(e);return 0===r&&((t=e.state).window_size=2*t.w_size,f(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function O(e,t,r,n,i,s){if(!e)return-2;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||8!==r||n<8||n>15||t<0||t>9||s<0||s>4)return u(e,-2);8===n&&(n=9);var c=new _;return e.state=c,c.strm=e,c.wrap=a,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=i+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new o.Buf8(2*c.w_size),c.head=new o.Buf16(c.hash_size),c.prev=new o.Buf16(c.w_size),c.lit_bufsize=1<<i+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new o.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=s,c.method=r,S(e)}n=[new w(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(y(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,h(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(h(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,b),new w(4,5,16,8,b),new w(4,6,32,32,b),new w(4,4,16,16,v),new w(8,16,32,32,v),new w(8,16,128,128,v),new w(8,32,128,256,v),new w(32,128,258,1024,v),new w(32,258,258,4096,v)],t.deflateInit=function(e,t){return O(e,t,8,15,8,0)},t.deflateInit2=O,t.deflateReset=S,t.deflateResetKeep=k,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var r,o,s,c;if(!e||!e.state||t>5||t<0)return e?u(e,-2):-2;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&4!==t)return u(e,0===e.avail_out?-5:-2);if(o.strm=e,r=o.last_flush,o.last_flush=t,42===o.status)if(2===o.wrap)e.adler=0,p(o,31),p(o,139),p(o,8),o.gzhead?(p(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),p(o,255&o.gzhead.time),p(o,o.gzhead.time>>8&255),p(o,o.gzhead.time>>16&255),p(o,o.gzhead.time>>24&255),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(p(o,255&o.gzhead.extra.length),p(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=a(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(p(o,0),p(o,0),p(o,0),p(o,0),p(o,0),p(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),p(o,3),o.status=113);else{var m=8+(o.w_bits-8<<4)<<8;m|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(m|=32),m+=31-m%31,o.status=113,g(o,m),0!==o.strstart&&(g(o,e.adler>>>16),g(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(s=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>s&&(e.adler=a(e.adler,o.pending_buf,o.pending-s,s)),d(e),s=o.pending,o.pending!==o.pending_buf_size));)p(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>s&&(e.adler=a(e.adler,o.pending_buf,o.pending-s,s)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){s=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>s&&(e.adler=a(e.adler,o.pending_buf,o.pending-s,s)),d(e),s=o.pending,o.pending===o.pending_buf_size)){c=1;break}c=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,p(o,c)}while(0!==c);o.gzhead.hcrc&&o.pending>s&&(e.adler=a(e.adler,o.pending_buf,o.pending-s,s)),0===c&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){s=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>s&&(e.adler=a(e.adler,o.pending_buf,o.pending-s,s)),d(e),s=o.pending,o.pending===o.pending_buf_size)){c=1;break}c=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,p(o,c)}while(0!==c);o.gzhead.hcrc&&o.pending>s&&(e.adler=a(e.adler,o.pending_buf,o.pending-s,s)),0===c&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&d(e),o.pending+2<=o.pending_buf_size&&(p(o,255&e.adler),p(o,e.adler>>8&255),e.adler=0,o.status=113)):o.status=113),0!==o.pending){if(d(e),0===e.avail_out)return o.last_flush=-1,0}else if(0===e.avail_in&&l(t)<=l(r)&&4!==t)return u(e,-5);if(666===o.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==o.lookahead||0!==t&&666!==o.status){var b=2===o.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(y(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(o,t):3===o.strategy?function(e,t){for(var r,n,o,s,a=e.window;;){if(e.lookahead<=258){if(y(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=a[o=e.strstart-1])===a[++o]&&n===a[++o]&&n===a[++o]){s=e.strstart+258;do{}while(n===a[++o]&&n===a[++o]&&n===a[++o]&&n===a[++o]&&n===a[++o]&&n===a[++o]&&n===a[++o]&&n===a[++o]&&o<s);e.match_length=258-(s-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=i._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(o,t):n[o.level].func(o,t);if(3!==b&&4!==b||(o.status=666),1===b||3===b)return 0===e.avail_out&&(o.last_flush=-1),0;if(2===b&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(f(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),d(e),0===e.avail_out))return o.last_flush=-1,0}return 4!==t?0:o.wrap<=0?1:(2===o.wrap?(p(o,255&e.adler),p(o,e.adler>>8&255),p(o,e.adler>>16&255),p(o,e.adler>>24&255),p(o,255&e.total_in),p(o,e.total_in>>8&255),p(o,e.total_in>>16&255),p(o,e.total_in>>24&255)):(g(o,e.adler>>>16),g(o,65535&e.adler)),d(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?u(e,-2):(e.state=null,113===t?u(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var r,n,i,a,c,u,l,d,h=t.length;if(!e||!e.state)return-2;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return-2;for(1===a&&(e.adler=s(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===a&&(f(r.head),r.strstart=0,r.block_start=0,r.insert=0),d=new o.Buf8(r.w_size),o.arraySet(d,t,h-r.w_size,r.w_size,0),t=d,h=r.w_size),c=e.avail_in,u=e.next_in,l=e.input,e.avail_in=h,e.next_in=0,e.input=t,y(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=2,y(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=l,e.avail_in=c,r.wrap=a,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,r){"use strict";var n=r(57);function o(e){for(var t=e.length;--t>=0;)e[t]=0}var i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);o(u);var l=new Array(60);o(l);var f=new Array(512);o(f);var d=new Array(256);o(d);var h=new Array(29);o(h);var p,g,m,y=new Array(30);function b(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function S(e,t,r){k(e,r[2*t],r[2*t+1])}function O(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function j(e,t,r){var n,o,i=new Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+r[n-1]<<1;for(o=0;o<=t;o++){var a=e[2*o+1];0!==a&&(e[2*o]=O(i[a]++,a))}}function E(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function P(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function x(e,t,r,n){var o=2*t,i=2*r;return e[o]<e[i]||e[o]===e[i]&&n[t]<=n[r]}function A(e,t,r){for(var n=e.heap[r],o=r<<1;o<=e.heap_len&&(o<e.heap_len&&x(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!x(t,n,e.heap[o],e.depth));)e.heap[r]=e.heap[o],r=o,o<<=1;e.heap[r]=n}function M(e,t,r){var n,o,a,c,u=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],o=e.pending_buf[e.l_buf+u],u++,0===n?S(e,o,t):(S(e,(a=d[o])+256+1,t),0!==(c=i[a])&&k(e,o-=h[a],c),S(e,a=w(--n),r),0!==(c=s[a])&&k(e,n-=y[a],c))}while(u<e.last_lit);S(e,256,t)}function I(e,t){var r,n,o,i=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<c;r++)0!==i[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[o]=0,e.opt_len--,a&&(e.static_len-=s[2*o+1]);for(t.max_code=u,r=e.heap_len>>1;r>=1;r--)A(e,i,r);o=c;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],A(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*o]=i[2*r]+i[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=o,e.heap[1]=o++,A(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,o,i,s,a,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(i=c[2*c[2*(n=e.heap[r])+1]+1]+1)>p&&(i=p,g++),c[2*n+1]=i,n>u||(e.bl_count[i]++,s=0,n>=h&&(s=d[n-h]),a=c[2*n],e.opt_len+=a*(i+s),f&&(e.static_len+=a*(l[2*n+1]+s)));if(0!==g){do{for(i=p-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(i=p;0!==i;i--)for(n=e.bl_count[i];0!==n;)(o=e.heap[--r])>u||(c[2*o+1]!==i&&(e.opt_len+=(i-c[2*o+1])*c[2*o],c[2*o+1]=i),n--)}}(e,t),j(i,u,e.bl_count)}function C(e,t,r){var n,o,i=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=s,s=t[2*(n+1)+1],++a<c&&o===s||(a<u?e.bl_tree[2*o]+=a:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,i=o,0===s?(c=138,u=3):o===s?(c=6,u=3):(c=7,u=4))}function R(e,t,r){var n,o,i=-1,s=t[1],a=0,c=7,u=4;for(0===s&&(c=138,u=3),n=0;n<=r;n++)if(o=s,s=t[2*(n+1)+1],!(++a<c&&o===s)){if(a<u)do{S(e,o,e.bl_tree)}while(0!=--a);else 0!==o?(o!==i&&(S(e,o,e.bl_tree),a--),S(e,16,e.bl_tree),k(e,a-3,2)):a<=10?(S(e,17,e.bl_tree),k(e,a-3,3)):(S(e,18,e.bl_tree),k(e,a-11,7));a=0,i=o,0===s?(c=138,u=3):o===s?(c=6,u=3):(c=7,u=4)}}o(y);var T=!1;function N(e,t,r,o){k(e,0+(o?1:0),3),function(e,t,r,o){P(e),o&&(_(e,r),_(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}t._tr_init=function(e){T||(!function(){var e,t,r,n,o,c=new Array(16);for(r=0,n=0;n<28;n++)for(h[n]=r,e=0;e<1<<i[n];e++)d[r++]=n;for(d[r-1]=n,o=0,n=0;n<16;n++)for(y[n]=o,e=0;e<1<<s[n];e++)f[o++]=n;for(o>>=7;n<30;n++)for(y[n]=o<<7,e=0;e<1<<s[n]-7;e++)f[256+o++]=n;for(t=0;t<=15;t++)c[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,c[8]++;for(;e<=255;)u[2*e+1]=9,e++,c[9]++;for(;e<=279;)u[2*e+1]=7,e++,c[7]++;for(;e<=287;)u[2*e+1]=8,e++,c[8]++;for(j(u,287,c),e=0;e<30;e++)l[2*e+1]=5,l[2*e]=O(e,5);p=new b(u,i,257,286,15),g=new b(l,s,0,30,15),m=new b(new Array(0),a,0,19,7)}(),T=!0),e.l_desc=new v(e.dyn_ltree,p),e.d_desc=new v(e.dyn_dtree,g),e.bl_desc=new v(e.bl_tree,m),e.bi_buf=0,e.bi_valid=0,E(e)},t._tr_stored_block=N,t._tr_flush_block=function(e,t,r,n){var o,i,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),s=function(e){var t;for(C(e,e.dyn_ltree,e.l_desc.max_code),C(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=r+5,r+4<=o&&-1!==t?N(e,t,r,n):4===e.strategy||i===o?(k(e,2+(n?1:0),3),M(e,u,l)):(k(e,4+(n?1:0),3),function(e,t,r,n){var o;for(k(e,t-257,5),k(e,r-1,5),k(e,n-4,4),o=0;o<n;o++)k(e,e.bl_tree[2*c[o]+1],3);R(e,e.dyn_ltree,t-1),R(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),M(e,e.dyn_ltree,e.dyn_dtree)),E(e),n&&P(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(d[r]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),S(e,256,u),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,r){"use strict";var n=r(542),o=r(57),i=r(294),s=r(296),a=r(169),c=r(295),u=r(545),l=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);if(this.header=new u,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==s.Z_OK))throw new Error(a[r])}function d(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}f.prototype.push=function(e,t){var r,a,c,u,f,d=this.strm,h=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?d.input=i.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new o.Buf8(h),d.next_out=0,d.avail_out=h),(r=n.inflate(d,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==s.Z_STREAM_END&&(0!==d.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(c=i.utf8border(d.output,d.next_out),u=d.next_out-c,f=i.buf2string(d.output,c),d.next_out=u,d.avail_out=h-u,u&&o.arraySet(d.output,d.output,c,u,0),this.onData(f)):this.onData(o.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),d.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=d,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.ungzip=d},function(e,t,r){"use strict";var n=r(57),o=r(292),i=r(293),s=r(543),a=r(544);function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):-2}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,l(e)):-2}function d(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,f(e))):-2}function h(e,t){var r,n;return e?(n=new u,e.state=n,n.window=null,0!==(r=d(e,t))&&(e.state=null),r):-2}var p,g,m=!0;function y(e){if(m){var t;for(p=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,g,0,e.work,{bits:5}),m=!1}e.lencode=p,e.lenbits=9,e.distcode=g,e.distbits=5}function b(e,t,r,o){var i,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),o>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((i=s.wsize-s.wnext)>o&&(i=o),n.arraySet(s.window,t,r-o,i,s.wnext),(o-=i)?(n.arraySet(s.window,t,r-o,o,0),s.wnext=o,s.whave=s.wsize):(s.wnext+=i,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=i))),0}t.inflateReset=f,t.inflateReset2=d,t.inflateResetKeep=l,t.inflateInit=function(e){return h(e,15)},t.inflateInit2=h,t.inflate=function(e,t){var r,u,l,f,d,h,p,g,m,v,w,_,k,S,O,j,E,P,x,A,M,I,C,R,T=0,N=new n.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(r=e.state).mode&&(r.mode=13),d=e.next_out,l=e.output,p=e.avail_out,f=e.next_in,u=e.input,h=e.avail_in,g=r.hold,m=r.bits,v=h,w=p,I=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;m<16;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(2&r.wrap&&35615===g){r.check=0,N[0]=255&g,N[1]=g>>>8&255,r.check=i(r.check,N,2,0),g=0,m=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(m-=4,M=8+(15&(g>>>=4)),0===r.wbits)r.wbits=M;else if(M>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<M,e.adler=r.check=1,r.mode=512&g?10:12,g=0,m=0;break;case 2:for(;m<16;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=i(r.check,N,2,0)),g=0,m=0,r.mode=3;case 3:for(;m<32;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}r.head&&(r.head.time=g),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,N[2]=g>>>16&255,N[3]=g>>>24&255,r.check=i(r.check,N,4,0)),g=0,m=0,r.mode=4;case 4:for(;m<16;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=i(r.check,N,2,0)),g=0,m=0,r.mode=5;case 5:if(1024&r.flags){for(;m<16;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(N[0]=255&g,N[1]=g>>>8&255,r.check=i(r.check,N,2,0)),g=0,m=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((_=r.length)>h&&(_=h),_&&(r.head&&(M=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,f,_,M)),512&r.flags&&(r.check=i(r.check,u,_,f)),h-=_,f+=_,r.length-=_),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===h)break e;_=0;do{M=u[f+_++],r.head&&M&&r.length<65536&&(r.head.name+=String.fromCharCode(M))}while(M&&_<h);if(512&r.flags&&(r.check=i(r.check,u,_,f)),h-=_,f+=_,M)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===h)break e;_=0;do{M=u[f+_++],r.head&&M&&r.length<65536&&(r.head.comment+=String.fromCharCode(M))}while(M&&_<h);if(512&r.flags&&(r.check=i(r.check,u,_,f)),h-=_,f+=_,M)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;m<16;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}g=0,m=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;m<32;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}e.adler=r.check=c(g),g=0,m=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=d,e.avail_out=p,e.next_in=f,e.avail_in=h,r.hold=g,r.bits=m,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&m,m-=7&m,r.mode=27;break}for(;m<3;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}switch(r.last=1&g,m-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(y(r),r.mode=20,6===t){g>>>=2,m-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,m-=2;break;case 14:for(g>>>=7&m,m-=7&m;m<32;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,g=0,m=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(_=r.length){if(_>h&&(_=h),_>p&&(_=p),0===_)break e;n.arraySet(l,u,f,_,d),h-=_,f+=_,p-=_,d+=_,r.length-=_;break}r.mode=12;break;case 17:for(;m<14;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(r.nlen=257+(31&g),g>>>=5,m-=5,r.ndist=1+(31&g),g>>>=5,m-=5,r.ncode=4+(15&g),g>>>=4,m-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;m<3;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}r.lens[B[r.have++]]=7&g,g>>>=3,m-=3}for(;r.have<19;)r.lens[B[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},I=a(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,I){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;j=(T=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,E=65535&T,!((O=T>>>24)<=m);){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(E<16)g>>>=O,m-=O,r.lens[r.have++]=E;else{if(16===E){for(R=O+2;m<R;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(g>>>=O,m-=O,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}M=r.lens[r.have-1],_=3+(3&g),g>>>=2,m-=2}else if(17===E){for(R=O+3;m<R;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}m-=O,M=0,_=3+(7&(g>>>=O)),g>>>=3,m-=3}else{for(R=O+7;m<R;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}m-=O,M=0,_=11+(127&(g>>>=O)),g>>>=7,m-=7}if(r.have+_>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;_--;)r.lens[r.have++]=M}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,C={bits:r.lenbits},I=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,I){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},I=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,I){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(h>=6&&p>=258){e.next_out=d,e.avail_out=p,e.next_in=f,e.avail_in=h,r.hold=g,r.bits=m,s(e,w),d=e.next_out,l=e.output,p=e.avail_out,f=e.next_in,u=e.input,h=e.avail_in,g=r.hold,m=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;j=(T=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,E=65535&T,!((O=T>>>24)<=m);){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(j&&0==(240&j)){for(P=O,x=j,A=E;j=(T=r.lencode[A+((g&(1<<P+x)-1)>>P)])>>>16&255,E=65535&T,!(P+(O=T>>>24)<=m);){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}g>>>=P,m-=P,r.back+=P}if(g>>>=O,m-=O,r.back+=O,r.length=E,0===j){r.mode=26;break}if(32&j){r.back=-1,r.mode=12;break}if(64&j){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&j,r.mode=22;case 22:if(r.extra){for(R=r.extra;m<R;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,m-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;j=(T=r.distcode[g&(1<<r.distbits)-1])>>>16&255,E=65535&T,!((O=T>>>24)<=m);){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(0==(240&j)){for(P=O,x=j,A=E;j=(T=r.distcode[A+((g&(1<<P+x)-1)>>P)])>>>16&255,E=65535&T,!(P+(O=T>>>24)<=m);){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}g>>>=P,m-=P,r.back+=P}if(g>>>=O,m-=O,r.back+=O,64&j){e.msg="invalid distance code",r.mode=30;break}r.offset=E,r.extra=15&j,r.mode=24;case 24:if(r.extra){for(R=r.extra;m<R;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,m-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===p)break e;if(_=w-p,r.offset>_){if((_=r.offset-_)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}_>r.wnext?(_-=r.wnext,k=r.wsize-_):k=r.wnext-_,_>r.length&&(_=r.length),S=r.window}else S=l,k=d-r.offset,_=r.length;_>p&&(_=p),p-=_,r.length-=_;do{l[d++]=S[k++]}while(--_);0===r.length&&(r.mode=21);break;case 26:if(0===p)break e;l[d++]=r.length,p--,r.mode=21;break;case 27:if(r.wrap){for(;m<32;){if(0===h)break e;h--,g|=u[f++]<<m,m+=8}if(w-=p,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?i(r.check,l,w,d-w):o(r.check,l,w,d-w)),w=p,(r.flags?g:c(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}g=0,m=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;m<32;){if(0===h)break e;h--,g+=u[f++]<<m,m+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}g=0,m=0}r.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=d,e.avail_out=p,e.next_in=f,e.avail_in=h,r.hold=g,r.bits=m,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&b(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(v-=e.avail_in,w-=e.avail_out,e.total_in+=v,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?i(r.check,l,w,e.next_out-w):o(r.check,l,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===v&&0===w||4===t)&&0===I&&(I=-5),I)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?-2:(r.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&o(1,t,n,0)!==r.check?-3:b(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,r){"use strict";e.exports=function(e,t){var r,n,o,i,s,a,c,u,l,f,d,h,p,g,m,y,b,v,w,_,k,S,O,j,E;r=e.state,n=e.next_in,j=e.input,o=n+(e.avail_in-5),i=e.next_out,E=e.output,s=i-(t-e.avail_out),a=i+(e.avail_out-257),c=r.dmax,u=r.wsize,l=r.whave,f=r.wnext,d=r.window,h=r.hold,p=r.bits,g=r.lencode,m=r.distcode,y=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{p<15&&(h+=j[n++]<<p,p+=8,h+=j[n++]<<p,p+=8),v=g[h&y];t:for(;;){if(h>>>=w=v>>>24,p-=w,0===(w=v>>>16&255))E[i++]=65535&v;else{if(!(16&w)){if(0==(64&w)){v=g[(65535&v)+(h&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=65535&v,(w&=15)&&(p<w&&(h+=j[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=j[n++]<<p,p+=8,h+=j[n++]<<p,p+=8),v=m[h&b];r:for(;;){if(h>>>=w=v>>>24,p-=w,!(16&(w=v>>>16&255))){if(0==(64&w)){v=m[(65535&v)+(h&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&v,p<(w&=15)&&(h+=j[n++]<<p,(p+=8)<w&&(h+=j[n++]<<p,p+=8)),(k+=h&(1<<w)-1)>c){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,k>(w=i-s)){if((w=k-w)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=0,O=d,0===f){if(S+=u-w,w<_){_-=w;do{E[i++]=d[S++]}while(--w);S=i-k,O=E}}else if(f<w){if(S+=u+f-w,(w-=f)<_){_-=w;do{E[i++]=d[S++]}while(--w);if(S=0,f<_){_-=w=f;do{E[i++]=d[S++]}while(--w);S=i-k,O=E}}}else if(S+=f-w,w<_){_-=w;do{E[i++]=d[S++]}while(--w);S=i-k,O=E}for(;_>2;)E[i++]=O[S++],E[i++]=O[S++],E[i++]=O[S++],_-=3;_&&(E[i++]=O[S++],_>1&&(E[i++]=O[S++]))}else{S=i-k;do{E[i++]=E[S++],E[i++]=E[S++],E[i++]=E[S++],_-=3}while(_>2);_&&(E[i++]=E[S++],_>1&&(E[i++]=E[S++]))}break}}break}}while(n<o&&i<a);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<o?o-n+5:5-(n-o),e.avail_out=i<a?a-i+257:257-(i-a),r.hold=h,r.bits=p}},function(e,t,r){"use strict";var n=r(57),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,c,u,l,f,d){var h,p,g,m,y,b,v,w,_,k=d.bits,S=0,O=0,j=0,E=0,P=0,x=0,A=0,M=0,I=0,C=0,R=null,T=0,N=new n.Buf16(16),B=new n.Buf16(16),D=null,L=0;for(S=0;S<=15;S++)N[S]=0;for(O=0;O<c;O++)N[t[r+O]]++;for(P=k,E=15;E>=1&&0===N[E];E--);if(P>E&&(P=E),0===E)return u[l++]=20971520,u[l++]=20971520,d.bits=1,0;for(j=1;j<E&&0===N[j];j++);for(P<j&&(P=j),M=1,S=1;S<=15;S++)if(M<<=1,(M-=N[S])<0)return-1;if(M>0&&(0===e||1!==E))return-1;for(B[1]=0,S=1;S<15;S++)B[S+1]=B[S]+N[S];for(O=0;O<c;O++)0!==t[r+O]&&(f[B[t[r+O]]++]=O);if(0===e?(R=D=f,b=19):1===e?(R=o,T-=257,D=i,L-=257,b=256):(R=s,D=a,b=-1),C=0,O=0,S=j,y=l,x=P,A=0,g=-1,m=(I=1<<P)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){v=S-A,f[O]<b?(w=0,_=f[O]):f[O]>b?(w=D[L+f[O]],_=R[T+f[O]]):(w=96,_=0),h=1<<S-A,j=p=1<<x;do{u[y+(C>>A)+(p-=h)]=v<<24|w<<16|_|0}while(0!==p);for(h=1<<S-1;C&h;)h>>=1;if(0!==h?(C&=h-1,C+=h):C=0,O++,0==--N[S]){if(S===E)break;S=t[r+f[O]]}if(S>P&&(C&m)!==g){for(0===A&&(A=P),y+=j,M=1<<(x=S-A);x+A<E&&!((M-=N[x+A])<=0);)x++,M<<=1;if(I+=1<<x,1===e&&I>852||2===e&&I>592)return 1;u[g=C&m]=P<<24|x<<16|y-l|0}}return 0!==C&&(u[y+C]=S-A<<24|64<<16|0),d.bits=P,0}},function(e,t,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseKVStore=void 0;t.BaseKVStore=class{constructor(e,t){this.provider=e,this._prefix=t}get(e){return n(this,void 0,void 0,(function*(){const t=this.prefix()+"/"+e;return(yield this.provider.get())[t]}))}set(e,t){const r=this.prefix()+"/"+e;return this.provider.set({[r]:t})}prefix(){return this._prefix}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const o=r(69),i=r(557),s=r(2);class a{static generateWallet(e,t="m/44'/118'/0'/0/0",r="",o=256){return n(this,void 0,void 0,(function*(){const n=yield a.generateSeed(e,o);return{privKey:a.generateWalletFromMnemonic(n,t,r),mnemonic:n}}))}static validateMnemonic(e){o.validateMnemonic(e)}static generateSeed(e,t=128){return n(this,void 0,void 0,(function*(){if(t%32!=0)throw new TypeError("invalid entropy");let r=new Uint8Array(t/8);return r=yield e(r),o.entropyToMnemonic(s.Buffer.from(r).toString("hex"))}))}static generateWalletFromMnemonic(e,t="m/44'/118'/0'/0/0",r=""){const n=o.mnemonicToSeedSync(e,r),s=i.fromSeed(n).derivePath(t).privateKey;if(!s)throw new Error("null hd key");return s}}t.Mnemonic=a},function(e){e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},function(e){e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},function(e){e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},function(e){e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},function(e){e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},function(e){e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},function(e){e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},function(e){e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},function(e){e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(558);t.fromSeed=n.fromSeed,t.fromBase58=n.fromBase58,t.fromPublicKey=n.fromPublicKey,t.fromPrivateKey=n.fromPrivateKey},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(559),o=r(298),i=r(562),s=r(564),a=r(566),c=s.BufferN(32),u=s.compile({wif:s.UInt8,bip32:{public:s.UInt32,private:s.UInt32}}),l={messagePrefix:"\18Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},f=Math.pow(2,31)-1;function d(e){return s.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function h(e){return s.UInt32(e)&&e<=f}class p{constructor(e,t,r,n,o=0,i=0,a=0){this.__D=e,this.__Q=t,this.chainCode=r,this.network=n,this.__DEPTH=o,this.__INDEX=i,this.__PARENT_FINGERPRINT=a,s(u,n),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return void 0===this.__Q&&(this.__Q=i.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return n.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return void 0===this.__D}neutered(){return y(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const t=this.network,r=this.isNeutered()?t.bip32.public:t.bip32.private,n=e.allocUnsafe(78);return n.writeUInt32BE(r,0),n.writeUInt8(this.depth,4),n.writeUInt32BE(this.parentFingerprint,5),n.writeUInt32BE(this.index,9),this.chainCode.copy(n,13),this.isNeutered()?this.publicKey.copy(n,45):(n.writeUInt8(0,45),this.privateKey.copy(n,46)),o.encode(n)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return a.encode(this.network.wif,this.privateKey,!0)}derive(t){s(s.UInt32,t);const r=t>=2147483648,o=e.allocUnsafe(37);if(r){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");o[0]=0,this.privateKey.copy(o,1),o.writeUInt32BE(t,33)}else this.publicKey.copy(o,0),o.writeUInt32BE(t,33);const a=n.hmacSHA512(this.chainCode,o),c=a.slice(0,32),u=a.slice(32);if(!i.isPrivate(c))return this.derive(t+1);let l;if(this.isNeutered()){const e=i.pointAddScalar(this.publicKey,c,!0);if(null===e)return this.derive(t+1);l=y(e,u,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}else{const e=i.privateAdd(this.privateKey,c);if(null==e)return this.derive(t+1);l=m(e,u,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}return l}deriveHardened(e){return s(h,e),this.derive(e+2147483648)}derivePath(e){s(d,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce((e,t)=>{let r;return"'"===t.slice(-1)?(r=parseInt(t.slice(0,-1),10),e.deriveHardened(r)):(r=parseInt(t,10),e.derive(r))},this)}sign(t,r){if(!this.privateKey)throw new Error("Missing private key");if(void 0===r&&(r=this.lowR),!1===r)return i.sign(t,this.privateKey);{let r=i.sign(t,this.privateKey);const n=e.alloc(32,0);let o=0;for(;r[0]>127;)o++,n.writeUIntLE(o,0,6),r=i.signWithEntropy(t,this.privateKey,n);return r}}verify(e,t){return i.verify(e,this.publicKey,t)}}function g(e,t,r){return m(e,t,r)}function m(e,t,r,n,o,a){if(s({privateKey:c,chainCode:c},{privateKey:e,chainCode:t}),r=r||l,!i.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new p(e,void 0,t,r,n,o,a)}function y(e,t,r,n,o,a){if(s({publicKey:s.BufferN(33),chainCode:c},{publicKey:e,chainCode:t}),r=r||l,!i.isPoint(e))throw new TypeError("Point is not on the curve");return new p(void 0,e,t,r,n,o,a)}t.fromBase58=function(e,t){const r=o.decode(e);if(78!==r.length)throw new TypeError("Invalid buffer length");t=t||l;const n=r.readUInt32BE(0);if(n!==t.bip32.private&&n!==t.bip32.public)throw new TypeError("Invalid network version");const i=r[4],s=r.readUInt32BE(5);if(0===i&&0!==s)throw new TypeError("Invalid parent fingerprint");const a=r.readUInt32BE(9);if(0===i&&0!==a)throw new TypeError("Invalid index");const c=r.slice(13,45);let u;if(n===t.bip32.private){if(0!==r.readUInt8(45))throw new TypeError("Invalid private key");u=m(r.slice(46,78),c,t,i,a,s)}else{u=y(r.slice(45,78),c,t,i,a,s)}return u},t.fromPrivateKey=g,t.fromPublicKey=function(e,t,r){return y(e,t,r)},t.fromSeed=function(t,r){if(s(s.Buffer,t),t.length<16)throw new TypeError("Seed should be at least 128 bits");if(t.length>64)throw new TypeError("Seed should be at most 512 bits");r=r||l;const o=n.hmacSHA512(e.from("Bitcoin seed","utf8"),t);return g(o.slice(0,32),o.slice(32),r)}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(54),o=r(120);t.hash160=function(e){const t=n("sha256").update(e).digest();try{return n("rmd160").update(t).digest()}catch(e){return n("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return o("sha512",e).update(t).digest()}},function(e,t,r){"use strict";var n=r(561),o=r(7).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),o=e(r);if(!(n[0]^o[0]|n[1]^o[1]|n[2]^o[2]|n[3]^o[3]))return r}return{encode:function(t){var r=e(t);return n.encode(o.concat([t,r],t.length+4))},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if(r)return t(r)}}}},function(e,t,r){var n=r(396);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,r){(function(t){const n=r(6),o=new(0,r(45).ec)("secp256k1"),i=r(563),s=t.alloc(32,0),a=t.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),c=t.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),u=o.curve.n,l=u.shrn(1),f=o.curve.g;function d(e){return t.isBuffer(e)&&32===e.length}function h(e){return!!d(e)&&e.compare(a)<0}function p(e){if(!t.isBuffer(e))return!1;if(e.length<33)return!1;const r=e[0],n=e.slice(1,33);if(0===n.compare(s))return!1;if(n.compare(c)>=0)return!1;if((2===r||3===r)&&33===e.length){try{w(e)}catch(e){return!1}return!0}const o=e.slice(33);return 0!==o.compare(s)&&(!(o.compare(c)>=0)&&(4===r&&65===e.length))}function g(e){return 4!==e[0]}function m(e){return!!d(e)&&(e.compare(s)>0&&e.compare(a)<0)}function y(e,t){return void 0===e&&void 0!==t?g(t):void 0===e||e}function b(e){return new n(e)}function v(e){return e.toArrayLike(t,"be",32)}function w(e){return o.curve.decodePoint(e)}function _(e,r){return t.from(e._encode(r))}function k(e,r,n){if(!d(e))throw new TypeError("Expected Hash");if(!m(r))throw new TypeError("Expected Private");if(void 0!==n&&!d(n))throw new TypeError("Expected Extra Data (32 bytes)");const o=b(r),s=b(e);let a,c;i(e,r,(function(e){const t=b(e),r=f.mul(t);return!r.isInfinity()&&(a=r.x.umod(u),0!==a.isZero()&&(c=t.invm(u).mul(s.add(o.mul(a))).umod(u),0!==c.isZero()))}),m,n),c.cmp(l)>0&&(c=u.sub(c));const h=t.allocUnsafe(64);return v(a).copy(h,0),v(c).copy(h,32),h}e.exports={isPoint:p,isPointCompressed:function(e){return!!p(e)&&g(e)},isPrivate:m,pointAdd:function(e,t,r){if(!p(e))throw new TypeError("Expected Point");if(!p(t))throw new TypeError("Expected Point");const n=w(e),o=w(t),i=n.add(o);return i.isInfinity()?null:_(i,y(r,e))},pointAddScalar:function(e,t,r){if(!p(e))throw new TypeError("Expected Point");if(!h(t))throw new TypeError("Expected Tweak");const n=y(r,e),o=w(e);if(0===t.compare(s))return _(o,n);const i=b(t),a=f.mul(i),c=o.add(a);return c.isInfinity()?null:_(c,n)},pointCompress:function(e,t){if(!p(e))throw new TypeError("Expected Point");const r=w(e);if(r.isInfinity())throw new TypeError("Expected Point");return _(r,y(t,e))},pointFromScalar:function(e,t){if(!m(e))throw new TypeError("Expected Private");const r=b(e),n=f.mul(r);return n.isInfinity()?null:_(n,y(t))},pointMultiply:function(e,t,r){if(!p(e))throw new TypeError("Expected Point");if(!h(t))throw new TypeError("Expected Tweak");const n=y(r,e),o=w(e),i=b(t),s=o.mul(i);return s.isInfinity()?null:_(s,n)},privateAdd:function(e,t){if(!m(e))throw new TypeError("Expected Private");if(!h(t))throw new TypeError("Expected Tweak");const r=b(e),n=b(t),o=v(r.add(n).umod(u));return m(o)?o:null},privateSub:function(e,t){if(!m(e))throw new TypeError("Expected Private");if(!h(t))throw new TypeError("Expected Tweak");const r=b(e),n=b(t),o=v(r.sub(n).umod(u));return m(o)?o:null},sign:function(e,t){return k(e,t)},signWithEntropy:function(e,t,r){return k(e,t,r)},verify:function(e,r,n,o){if(!d(e))throw new TypeError("Expected Hash");if(!p(r))throw new TypeError("Expected Point");if(!function(e){const r=e.slice(0,32),n=e.slice(32,64);return t.isBuffer(e)&&64===e.length&&r.compare(a)<0&&n.compare(a)<0}(n))throw new TypeError("Expected Signature");const i=w(r),s=b(n.slice(0,32)),c=b(n.slice(32,64));if(o&&c.cmp(l)>0)return!1;if(s.gtn(0)<=0)return!1;if(c.gtn(0)<=0)return!1;const h=b(e),g=c.invm(u),m=h.mul(g).umod(u),y=s.mul(g).umod(u),v=f.mulAdd(m,i,y);return!v.isInfinity()&&v.x.umod(u).eq(s)}}}).call(this,r(2).Buffer)},function(e,t,r){(function(t){const n=r(120),o=t.alloc(1,1),i=t.alloc(1,0);e.exports=function(e,r,s,a,c){let u=t.alloc(32,0),l=t.alloc(32,1);u=n("sha256",u).update(l).update(i).update(r).update(e).update(c||"").digest(),l=n("sha256",u).update(l).digest(),u=n("sha256",u).update(l).update(o).update(r).update(e).update(c||"").digest(),l=n("sha256",u).update(l).digest(),l=n("sha256",u).update(l).digest();let f=l;for(;!a(f)||!s(f);)u=n("sha256",u).update(l).update(i).digest(),l=n("sha256",u).update(l).digest(),l=n("sha256",u).update(l).digest(),f=l;return f}}).call(this,r(2).Buffer)},function(e,t,r){var n=r(299),o=r(170),i=n.tfJSON,s=n.TfTypeError,a=n.TfPropertyTypeError,c=n.tfSubError,u=n.getValueTypeName,l={arrayOf:function(e,t){function r(r,n){return!!o.Array(r)&&(!o.Nil(r)&&(!(void 0!==t.minLength&&r.length<t.minLength)&&(!(void 0!==t.maxLength&&r.length>t.maxLength)&&((void 0===t.length||r.length===t.length)&&r.every((function(t,r){try{return d(e,t,n)}catch(e){throw c(e,r)}}))))))}return e=f(e),t=t||{},r.toJSON=function(){var r="["+i(e)+"]";return void 0!==t.length?r+="{"+t.length+"}":void 0===t.minLength&&void 0===t.maxLength||(r+="{"+(void 0===t.minLength?0:t.minLength)+","+(void 0===t.maxLength?1/0:t.maxLength)+"}"),r},r},maybe:function e(t){function r(r,n){return o.Nil(r)||t(r,n,e)}return t=f(t),r.toJSON=function(){return"?"+i(t)},r},map:function(e,t){function r(r,n){if(!o.Object(r))return!1;if(o.Nil(r))return!1;for(var i in r){try{t&&d(t,i,n)}catch(e){throw c(e,i,"key")}try{var s=r[i];d(e,s,n)}catch(e){throw c(e,i)}}return!0}return e=f(e),t&&(t=f(t)),r.toJSON=t?function(){return"{"+i(t)+": "+i(e)+"}"}:function(){return"{"+i(e)+"}"},r},object:function(e){var t={};for(var r in e)t[r]=f(e[r]);function n(e,r){if(!o.Object(e))return!1;if(o.Nil(e))return!1;var n;try{for(n in t){d(t[n],e[n],r)}}catch(e){throw c(e,n)}if(r)for(n in e)if(!t[n])throw new a(void 0,n);return!0}return n.toJSON=function(){return i(t)},n},anyOf:function(){var e=[].slice.call(arguments).map(f);function t(t,r){return e.some((function(e){try{return d(e,t,r)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(i).join("|")},t},allOf:function(){var e=[].slice.call(arguments).map(f);function t(t,r){return e.every((function(e){try{return d(e,t,r)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(i).join(" & ")},t},quacksLike:function(e){function t(t){return e===u(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(f);function t(t,r){return!o.Nil(t)&&(!o.Nil(t.length)&&((!r||t.length===e.length)&&e.every((function(e,n){try{return d(e,t[n],r)}catch(e){throw c(e,n)}}))))}return t.toJSON=function(){return"("+e.map(i).join(", ")+")"},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function f(e){if(o.String(e))return"?"===e[0]?l.maybe(e.slice(1)):o[e]||l.quacksLike(e);if(e&&o.Object(e)){if(o.Array(e)){if(1!==e.length)throw new TypeError("Expected compile() parameter of type Array of length 1");return l.arrayOf(e[0])}return l.object(e)}return o.Function(e)?e:l.value(e)}function d(e,t,r,n){if(o.Function(e)){if(e(t,r))return!0;throw new s(n||e,t)}return d(f(e),t,r)}for(var h in l.oneOf=l.anyOf,o)d[h]=o[h];for(h in l)d[h]=l[h];var p=r(565);for(h in p)d[h]=p[h];d.compile=f,d.TfTypeError=s,d.TfPropertyTypeError=a,e.exports=d},function(e,t,r){(function(t){var n=r(170),o=r(299);function i(e){return t.isBuffer(e)}function s(e){return"string"==typeof e&&/^([0-9a-f]{2})+$/i.test(e)}function a(e,t){var r=e.toJSON();function n(n){if(!e(n))return!1;if(n.length===t)return!0;throw o.tfCustomError(r+"(Length: "+t+")",r+"(Length: "+n.length+")")}return n.toJSON=function(){return r},n}var c=a.bind(null,n.Array),u=a.bind(null,i),l=a.bind(null,s),f=a.bind(null,n.String);var d=Math.pow(2,53)-1;var h={ArrayN:c,Buffer:i,BufferN:u,Finite:function(e){return"number"==typeof e&&isFinite(e)},Hex:s,HexN:l,Int8:function(e){return e<<24>>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-d&&e<=d&&Math.floor(e)===e},Range:function(e,t,r){function o(n,o){return r(n,o)&&n>e&&n<t}return r=r||n.Number,o.toJSON=function(){return`${r.toJSON()} between [${e}, ${t}]`},o},StringN:f,UInt8:function(e){return(255&e)===e},UInt16:function(e){return(65535&e)===e},UInt32:function(e){return e>>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=d&&Math.floor(e)===e}};for(var p in h)h[p].toJSON=function(e){return e}.bind(null,p);e.exports=h}).call(this,r(2).Buffer)},function(e,t,r){(function(t){var n=r(298);function o(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function i(e,r,n){var o=new t(n?34:33);return o.writeUInt8(e,0),r.copy(o,1),n&&(o[33]=1),o}e.exports={decode:function(e,t){return o(n.decode(e),t)},decodeRaw:o,encode:function(e,t,r){return"number"==typeof e?n.encode(i(e,t,r)):n.encode(i(e.version,e.privateKey,e.compressed))},encodeRaw:i}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PubKeySecp256k1=t.PrivKeySecp256k1=void 0;const o=n(r(45)),i=n(r(568)),s=r(2);t.PrivKeySecp256k1=class{constructor(e){this.privKey=e}toBytes(){return new Uint8Array(this.privKey)}getPubKey(){const e=new o.default.ec("secp256k1").keyFromPrivate(this.privKey);return new a(new Uint8Array(e.getPublic().encodeCompressed("array")))}sign(e){const t=new o.default.ec("secp256k1").keyFromPrivate(this.privKey),r=i.default.SHA256(i.default.lib.WordArray.create(e)).toString(),n=t.sign(s.Buffer.from(r,"hex"),{canonical:!0});return new Uint8Array(n.r.toArray("be",32).concat(n.s.toArray("be",32)))}};class a{constructor(e){this.pubKey=e}toBytes(){return new Uint8Array(this.pubKey)}getAddress(){let e=i.default.SHA256(i.default.lib.WordArray.create(this.pubKey)).toString();return e=i.default.RIPEMD160(i.default.enc.Hex.parse(e)).toString(),new Uint8Array(s.Buffer.from(e,"hex"))}}t.PubKeySecp256k1=a},function(e,t,r){var n;e.exports=(n=r(9),r(125),r(569),r(570),r(80),r(81),r(171),r(300),r(571),r(301),r(572),r(573),r(574),r(172),r(575),r(67),r(22),r(576),r(577),r(578),r(579),r(580),r(581),r(582),r(583),r(584),r(585),r(586),r(587),r(588),r(589),r(590),r(591),n)},function(e,t,r){var n;e.exports=(n=r(9),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},function(e,t,r){var n;e.exports=(n=r(9),function(){var e=n,t=e.lib.WordArray,r=e.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var r=e.length,n=[],o=0;o<r;o++)n[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return t.create(n,2*r)}},r.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var s=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var r=e.length,n=[],i=0;i<r;i++)n[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return t.create(n,2*r)}}}(),n.enc.Utf16)},function(e,t,r){var n,o,i,s,a,c;e.exports=(c=r(9),r(300),o=(n=c).lib.WordArray,i=n.algo,s=i.SHA256,a=i.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=s._createHelper(a),n.HmacSHA224=s._createHmacHelper(a),c.SHA224)},function(e,t,r){var n,o,i,s,a,c,u,l;e.exports=(l=r(9),r(125),r(301),o=(n=l).x64,i=o.Word,s=o.WordArray,a=n.algo,c=a.SHA512,u=a.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),l.SHA384)},function(e,t,r){var n;e.exports=(n=r(9),r(125),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.x64.Word,a=t.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var a=0,f=0,d=0;d<7;d++){if(1&o){var h=(1<<d)-1;h<32?f^=1<<h:a^=1<<h-32}128&o?o=o<<1^113:o<<=1}l[i]=s.create(a,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=s.create()}();var d=a.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=e[t+2*o],s=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(x=r[o]).high^=s,x.low^=i}for(var a=0;a<24;a++){for(var d=0;d<5;d++){for(var h=0,p=0,g=0;g<5;g++)h^=(x=r[d+5*g]).high,p^=x.low;var m=f[d];m.high=h,m.low=p}for(d=0;d<5;d++){var y=f[(d+4)%5],b=f[(d+1)%5],v=b.high,w=b.low;for(h=y.high^(v<<1|w>>>31),p=y.low^(w<<1|v>>>31),g=0;g<5;g++)(x=r[d+5*g]).high^=h,x.low^=p}for(var _=1;_<25;_++){var k=(x=r[_]).high,S=x.low,O=c[_];O<32?(h=k<<O|S>>>32-O,p=S<<O|k>>>32-O):(h=S<<O-32|k>>>64-O,p=k<<O-32|S>>>64-O);var j=f[u[_]];j.high=h,j.low=p}var E=f[0],P=r[0];for(E.high=P.high,E.low=P.low,d=0;d<5;d++)for(g=0;g<5;g++){var x=r[_=d+5*g],A=f[_],M=f[(d+1)%5+5*g],I=f[(d+2)%5+5*g];x.high=A.high^~M.high&I.high,x.low=A.low^~M.low&I.low}x=r[0];var C=l[a];x.high^=C.high,x.low^=C.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,u=[],l=0;l<c;l++){var f=s[l],d=f.high,h=f.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(h),u.push(d)}return new o.init(u,a)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=i._createHelper(d),t.HmacSHA3=i._createHmacHelper(d)}(Math),n.SHA3)},function(e,t,r){var n;e.exports=(n=r(9),
36 /** @preserve
37         (c) 2012 by Cédric Mesnil. All rights reserved.
38
39         Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
40
41             - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
42             - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
43
44         THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45         */
46 function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),d=o.create([1352829926,1548603684,1836072691,2053994217,0]),h=s.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,s,h,w,_,k,S,O,j,E,P,x=this._hash.words,A=f.words,M=d.words,I=a.words,C=c.words,R=u.words,T=l.words;for(k=i=x[0],S=s=x[1],O=h=x[2],j=w=x[3],E=_=x[4],r=0;r<80;r+=1)P=i+e[t+I[r]]|0,P+=r<16?p(s,h,w)+A[0]:r<32?g(s,h,w)+A[1]:r<48?m(s,h,w)+A[2]:r<64?y(s,h,w)+A[3]:b(s,h,w)+A[4],P=(P=v(P|=0,R[r]))+_|0,i=_,_=w,w=v(h,10),h=s,s=P,P=k+e[t+C[r]]|0,P+=r<16?b(S,O,j)+M[0]:r<32?y(S,O,j)+M[1]:r<48?m(S,O,j)+M[2]:r<64?g(S,O,j)+M[3]:p(S,O,j)+M[4],P=(P=v(P|=0,T[r]))+E|0,k=E,E=j,j=v(O,10),O=S,S=P;P=x[1]+h+j|0,x[1]=x[2]+w+E|0,x[2]=x[3]+_+k|0,x[3]=x[4]+i+S|0,x[4]=x[0]+s+O|0,x[0]=P},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,s=0;s<5;s++){var a=i[s];i[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function y(e,t,r){return e&r|t&~r}function b(e,t,r){return e^(t|~r)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(Math),n.RIPEMD160)},function(e,t,r){var n,o,i,s,a,c,u,l,f;e.exports=(f=r(9),r(171),r(172),o=(n=f).lib,i=o.Base,s=o.WordArray,a=n.algo,c=a.SHA1,u=a.HMAC,l=a.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=u.create(r.hasher,e),o=s.create(),i=s.create([1]),a=o.words,c=i.words,l=r.keySize,f=r.iterations;a.length<l;){var d=n.update(t).finalize(i);n.reset();for(var h=d.words,p=h.length,g=d,m=1;m<f;m++){g=n.finalize(g),n.reset();for(var y=g.words,b=0;b<p;b++)h[b]^=y[b]}o.concat(d),c[0]++}return o.sigBytes=4*l,o}}),n.PBKDF2=function(e,t,r){return l.create(r).compute(e,t)},f.PBKDF2)},function(e,t,r){var n;e.exports=(n=r(9),r(22),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var s=0;s<r;s++)e[t+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize;t.call(this,e,r,o,n),this._prevBlock=e.slice(r,r+o)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize,i=e.slice(r,r+o);t.call(this,e,r,o,n),this._prevBlock=i}}),e}(),n.mode.CFB)},function(e,t,r){var n,o,i;e.exports=(i=r(9),r(22),i.mode.CTR=(n=i.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var s=i.slice(0);r.encryptBlock(s,0),i[n-1]=i[n-1]+1|0;for(var a=0;a<n;a++)e[t+a]^=s[a]}}),n.Decryptor=o,n),i.mode.CTR)},function(e,t,r){var n;e.exports=(n=r(9),r(22),
47 /** @preserve
48          * Counter block mode compatible with  Dr Brian Gladman fileenc.c
49          * derived from CryptoJS.mode.CTR
50          * Jan Hruby jhruby.web@gmail.com
51          */
52 n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,o=n.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(s);var a=s.slice(0);n.encryptBlock(a,0);for(var c=0;c<o;c++)e[r+c]^=a[c]}});return e.Decryptor=r,e}(),n.mode.CTRGladman)},function(e,t,r){var n,o,i;e.exports=(i=r(9),r(22),i.mode.OFB=(n=i.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(i,0);for(var s=0;s<n;s++)e[t+s]^=i[s]}}),n.Decryptor=o,n),i.mode.OFB)},function(e,t,r){var n,o;e.exports=(o=r(9),r(22),o.mode.ECB=((n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),n.Decryptor=n.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),n),o.mode.ECB)},function(e,t,r){var n;e.exports=(n=r(9),r(22),n.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,o=n-r%n,i=r+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Ansix923)},function(e,t,r){var n;e.exports=(n=r(9),r(22),n.pad.Iso10126={pad:function(e,t){var r=4*t,o=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},n.pad.Iso10126)},function(e,t,r){var n;e.exports=(n=r(9),r(22),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},function(e,t,r){var n;e.exports=(n=r(9),r(22),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},n.pad.ZeroPadding)},function(e,t,r){var n;e.exports=(n=r(9),r(22),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},function(e,t,r){var n,o,i,s;e.exports=(s=r(9),r(22),o=(n=s).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return o.create({ciphertext:t})}},s.format.Hex)},function(e,t,r){var n;e.exports=(n=r(9),r(80),r(81),r(67),r(22),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,o=[],i=[],s=[],a=[],c=[],u=[],l=[],f=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,o[r]=p,i[p]=r;var g=e[r],m=e[g],y=e[m],b=257*e[p]^16843008*p;s[r]=b<<24|b>>>8,a[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,u[r]=b,b=16843009*y^65537*m^257*g^16843008*r,l[p]=b<<24|b>>>8,f[p]=b<<16|b>>>16,d[p]=b<<8|b>>>24,h[p]=b,r?(r=g^e[e[e[y^g]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),i=this._keySchedule=[],s=0;s<n;s++)s<r?i[s]=t[s]:(u=i[s-1],s%r?r>6&&s%r==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=o[(u=u<<8|u>>>24)>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=p[s/r|0]<<24),i[s]=i[s-r]^u);for(var a=this._invKeySchedule=[],c=0;c<n;c++){if(s=n-c,c%4)var u=i[s];else u=i[s-4];a[c]=c<4||s<=4?u:l[o[u>>>24]]^f[o[u>>>16&255]]^d[o[u>>>8&255]]^h[o[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,c,u,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,f,d,h,i),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,a){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],h=4,p=1;p<c;p++){var g=n[u>>>24]^o[l>>>16&255]^i[f>>>8&255]^s[255&d]^r[h++],m=n[l>>>24]^o[f>>>16&255]^i[d>>>8&255]^s[255&u]^r[h++],y=n[f>>>24]^o[d>>>16&255]^i[u>>>8&255]^s[255&l]^r[h++],b=n[d>>>24]^o[u>>>16&255]^i[l>>>8&255]^s[255&f]^r[h++];u=g,l=m,f=y,d=b}g=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&d])^r[h++],m=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^r[h++],y=(a[f>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^r[h++],b=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^r[h++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=b},keySize:8});e.AES=t._createHelper(g)}(),n.AES)},function(e,t,r){var n;e.exports=(n=r(9),r(80),r(81),r(67),r(22),function(){var e=n,t=e.lib,r=t.WordArray,o=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=s[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var u=o[i]=[],l=c[i];for(r=0;r<24;r++)u[r/6|0]|=t[(a[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(a[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=o[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((s^o[c])&l[c])>>>0];this._lBlock=s,this._rBlock=i^a}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=o._createHelper(f);var p=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(r.create(t)),this._des2=f.createEncryptor(r.create(n)),this._des3=f.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(p)}(),n.TripleDES)},function(e,t,r){var n;e.exports=(n=r(9),r(80),r(81),r(67),r(22),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var s=o%r,a=t[s>>>2]>>>24-s%4*8&255;i=(i+n[o]+a)%256;var c=n[o];n[o]=n[i],n[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,r=this._j,n=0,o=0;o<4;o++){r=(r+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[r],e[r]=i,n|=e[(e[t]+e[r])%256]<<24-8*o}return this._i=t,this._j=r,n}e.RC4=t._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(s)}(),n.RC4)},function(e,t,r){var n;e.exports=(n=r(9),r(80),r(81),r(67),r(22),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],i=[],s=[],a=r.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(t){var i=t.words,s=i[0],a=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;for(o[0]^=u,o[1]^=f,o[2]^=l,o[3]^=d,o[4]^=u,o[5]^=f,o[6]^=l,o[7]^=d,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=t._createHelper(a)}(),n.Rabbit)},function(e,t,r){var n;e.exports=(n=r(9),r(80),r(81),r(67),r(22),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,o=[],i=[],s=[],a=r.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(t){var i=t.words,s=i[0],a=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;for(n[0]^=u,n[1]^=f,n[2]^=l,n[3]^=d,n[4]^=u,n[5]^=f,n[6]^=l,n[7]^=d,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],o=65535&n,a=n>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,u=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=t._createHelper(a)}(),n.RabbitLegacy)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const n=r(76);t.Hash=class{static sha256(e){return new Uint8Array((new n.sha256).update(e).digest())}static truncHashPortion(e,t=e.length,r=0){return e.substring(0,t)+"…"+e.substring(e.length-r,e.length)}}},function(e,t,r){"use strict";var n=r(28),o=r(302),i=r(594),s=r(308);function a(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var c=a(r(305));c.Axios=i,c.create=function(e){return a(s(c.defaults,e))},c.Cancel=r(309),c.CancelToken=r(607),c.isCancel=r(304),c.all=function(e){return Promise.all(e)},c.spread=r(608),c.isAxiosError=r(609),e.exports=c,e.exports.default=c},function(e,t,r){"use strict";var n=r(28),o=r(303),i=r(595),s=r(596),a=r(308);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[s,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},c.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}})),e.exports=c},function(e,t,r){"use strict";var n=r(28);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,r){"use strict";var n=r(28),o=r(597),i=r(304),s=r(305);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(a(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,r){"use strict";var n=r(28);e.exports=function(e,t,r){return n.forEach(r,(function(r){e=r(e,t)})),e}},function(e,t,r){"use strict";var n=r(28);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},function(e,t,r){"use strict";var n=r(307);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,r){"use strict";var n=r(28);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n=r(603),o=r(604);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(28),o=["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"];e.exports=function(e){var t,r,i,s={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},function(e,t,r){"use strict";var n=r(28);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(309);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,r){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayContentEquals=void 0,t.arrayContentEquals=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertDefinedAndNotNull=t.assertDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(t||"condition is not truthy")},t.assertDefined=function(e,t){if(void 0===e)throw new Error(null!=t?t:"value is undefined")},t.assertDefinedAndNotNull=function(e,t){if(null==e)throw new Error(null!=t?t:"value is undefined or null")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=async function(e){return new Promise(t=>setTimeout(t,e))}},function(e,t,r){"use strict";(function(e){function r(e){return"object"==typeof e&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=t.isNonNullObject=void 0,t.isNonNullObject=r,t.isUint8Array=function(t){return!!r(t)&&("[object Uint8Array]"===Object.prototype.toString.call(t)&&(void 0===e||void 0===e.isBuffer||!e.isBuffer(t)))}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Bip39=void 0;const s=r(39),a=i(r(69)),c=r(97),u=i(r(311)),l=r(312);t.Bip39=class{static encode(e){if(-1===[16,20,24,28,32].indexOf(e.length))throw new Error("invalid input length");return new l.EnglishMnemonic(a.entropyToMnemonic(s.toHex(e)))}static decode(e){return s.fromHex(a.mnemonicToEntropy(e.toString()))}static async mnemonicToSeed(e,t){const r=s.toUtf8(u.nfkd(e.toString())),n="mnemonic"+(t?u.nfkd(t):""),o=s.toUtf8(n);return this.pbkdf2(r,o,2048,64,"sha512")}static async pbkdf2(e,t,r,n,o){return new Promise((i,s)=>{c.pbkdf2(e,t,r,n,o,(e,t)=>{e?s(e):i(new Uint8Array(t))})})}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromAscii=t.toAscii=void 0,t.toAscii=function(e){return Uint8Array.from(e.split("").map(e=>{const t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t}))},t.fromAscii=function(e){return(t=Array.from(e),t.map(e=>{if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)})).join("");var t}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=t.toBase64=void 0;const s=i(r(117));t.toBase64=function(e){return s.fromByteArray(e)},t.fromBase64=function(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return s.toByteArray(e)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Bech32=void 0;const s=i(r(94));t.Bech32=class{static encode(e,t,r){return s.encode(e,s.toWords(t),r)}static decode(e,t=1/0){const r=s.decode(e,t);return{prefix:r.prefix,data:new Uint8Array(s.fromWords(r.words))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=void 0,t.toHex=function(e){let t="";for(const r of e)t+=("0"+r.toString(16)).slice(-2);return t},t.fromHex=function(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");const t=[];for(let r=0;r<e.length;r+=2){const n=e.substr(r,2);if(!n.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t.push(parseInt(n,16))}return new Uint8Array(t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRfc3339=t.fromRfc3339=void 0;const n=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function o(e,t=2){const r="00000"+e.toString();return r.substring(r.length-t)}t.fromRfc3339=function(e){const t=n.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const r=+t[1],o=+t[2],i=+t[3],s=+t[4],a=+t[5],c=+t[6],u=t[7]?Math.floor(1e3*+t[7]):0;let l,f,d;"Z"===t[8]?(l=1,f=0,d=0):(l="-"===t[8].substring(0,1)?-1:1,f=+t[8].substring(1,3),d=+t[8].substring(4,6));const h=l*(60*f+d)*60,p=Date.UTC(r,o-1,i,s,a,c,u)-1e3*h;return new Date(p)},t.toRfc3339=function(e){return`${e.getUTCFullYear()}-${o(e.getUTCMonth()+1)}-${o(e.getUTCDate())}T${o(e.getUTCHours())}:${o(e.getUTCMinutes())}:${o(e.getUTCSeconds())}.${o(e.getUTCMilliseconds(),3)}Z`}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=t.toUtf8=void 0,t.toUtf8=function(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):new Uint8Array(e.from(t,"utf8"))},t.fromUtf8=function(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(t);if(!function(t){const r=e.from(e.from(t).toString("utf8"),"utf8");return 0===e.compare(e.from(t),r)}(t))throw new Error("Invalid UTF8 data");return e.from(t).toString("utf8")}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=t.Keccak256=void 0;const o=n(r(222));class i{constructor(e){this.blockSize=64,this.impl=o.default.keccak256.create(),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Keccak256=i,t.keccak256=function(e){return new i(e).digest()}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Xchacha20poly1305Ietf=t.xchacha20NonceLength=t.Ed25519=t.Ed25519Keypair=t.Argon2id=t.isArgon2idOptions=void 0;const o=r(100),i=n(r(314));t.isArgon2idOptions=function(e){return!!o.isNonNullObject(e)&&("number"==typeof e.outputLength&&("number"==typeof e.opsLimit&&"number"==typeof e.memLimitKib))};t.Argon2id=class{static async execute(e,t,r){return await i.default.ready,i.default.crypto_pwhash(r.outputLength,e,t,r.opsLimit,1024*r.memLimitKib,i.default.crypto_pwhash_ALG_ARGON2ID13)}};class s{constructor(e,t){this.privkey=e,this.pubkey=t}static fromLibsodiumPrivkey(e){if(64!==e.length)throw new Error(`Unexpected key length ${e.length}. Must be 64.`);return new s(e.slice(0,32),e.slice(32,64))}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}t.Ed25519Keypair=s;t.Ed25519=class{static async makeKeypair(e){await i.default.ready;const t=i.default.crypto_sign_seed_keypair(e);return s.fromLibsodiumPrivkey(t.privateKey)}static async createSignature(e,t){return await i.default.ready,i.default.crypto_sign_detached(e,t.toLibsodiumPrivkey())}static async verifySignature(e,t,r){return await i.default.ready,i.default.crypto_sign_verify_detached(e,t,r)}},t.xchacha20NonceLength=24;t.Xchacha20poly1305Ietf=class{static async encrypt(e,t,r){await i.default.ready;return i.default.crypto_aead_xchacha20poly1305_ietf_encrypt(e,null,null,r,t)}static async decrypt(e,t,r){await i.default.ready;return i.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,e,null,r,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Random=void 0;t.Random=class{static getBytes(e){try{const t="object"==typeof window?window:self,r=void 0!==t.crypto?t.crypto:t.msCrypto,n=new Uint8Array(e);return r.getRandomValues(n),n}catch(t){try{const t=r(72);return new Uint8Array([...t.randomBytes(e)])}catch(e){throw new Error("No secure random number generator found")}}}}},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.Ripemd160=void 0;const o=n(r(75));class i{constructor(e){this.blockSize=64,this.impl=new o.default,e&&this.update(e)}update(t){return this.impl.update(e.from(t)),this}digest(){return Uint8Array.from(this.impl.digest())}}t.Ripemd160=i,t.ripemd160=function(e){return new i(e).digest()}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1=void 0;const o=r(39),i=n(r(6)),s=n(r(45)),a=r(315),c=new s.default.ec("secp256k1"),u=new i.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");t.Secp256k1=class{static async makeKeypair(e){if(32!==e.length)throw new Error("input data is not a valid secp256k1 private key");const t=c.keyFromPrivate(e);if(!0!==t.validate().result)throw new Error("input data is not a valid secp256k1 private key");if(new i.default(e).gte(u))throw new Error("input data is not a valid secp256k1 private key");return{privkey:o.fromHex(t.getPrivate("hex")),pubkey:Uint8Array.from(t.getPublic("array"))}}static async createSignature(e,t){if(0===e.length)throw new Error("Message hash must not be empty");if(e.length>32)throw new Error("Message hash length must not exceed 32 bytes");const r=c.keyFromPrivate(t),{r:n,s:o,recoveryParam:i}=r.sign(e,{canonical:!0});if("number"!=typeof i)throw new Error("Recovery param missing");return new a.ExtendedSecp256k1Signature(Uint8Array.from(n.toArray()),Uint8Array.from(o.toArray()),i)}static async verifySignature(e,t,r){if(0===t.length)throw new Error("Message hash must not be empty");if(t.length>32)throw new Error("Message hash length must not exceed 32 bytes");const n=c.keyFromPublic(r);try{return n.verify(t,e.toDer())}catch(e){return!1}}static recoverPubkey(e,t){const r={r:o.toHex(e.r()),s:o.toHex(e.s())},n=c.recoverPubKey(t,r,e.recovery),i=c.keyFromPublic(n);return o.fromHex(i.getPublic(!1,"hex"))}static compressPubkey(e){switch(e.length){case 33:return e;case 65:return Uint8Array.from(c.keyFromPublic(e).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(e){switch(e.length){case 64:return e;case 65:return e.slice(0,64);default:throw new Error("Invalid signature length")}}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringToPath=t.pathToString=t.Slip10=t.Slip10RawIndex=t.slip10CurveFromString=t.Slip10Curve=void 0;const o=r(39),i=r(82),s=n(r(6)),a=n(r(45)),c=r(313),u=r(316);var l;!function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"}(l=t.Slip10Curve||(t.Slip10Curve={})),t.slip10CurveFromString=function(e){switch(e){case l.Ed25519:return l.Ed25519;case l.Secp256k1:return l.Secp256k1;default:throw new Error(`Unknown curve string: '${e}'`)}};class f extends i.Uint32{static hardened(e){return new f(e+2**31)}static normal(e){return new f(e)}isHardened(){return this.data>=2**31}}t.Slip10RawIndex=f;const d=new a.default.ec("secp256k1");class h{static derivePath(e,t,r){let n=this.master(e,t);for(const t of r)n=this.child(e,n.privkey,n.chainCode,t);return n}static master(e,t){const r=new c.Hmac(u.Sha512,o.toAscii(e)).update(t).digest(),n=r.slice(0,32),i=r.slice(32,64);return e!==l.Ed25519&&(this.isZero(n)||this.isGteN(e,n))?this.master(e,r):{chainCode:i,privkey:n}}static child(e,t,r,n){let o;if(n.isHardened()){const e=new Uint8Array([0,...t,...n.toBytesBigEndian()]);o=new c.Hmac(u.Sha512,r).update(e).digest()}else{if(e===l.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const i=new Uint8Array([...h.serializedPoint(e,new s.default(t)),...n.toBytesBigEndian()]);o=new c.Hmac(u.Sha512,r).update(i).digest()}}return this.childImpl(e,t,r,n,o)}static serializedPoint(e,t){switch(e){case l.Secp256k1:return o.fromHex(d.g.mul(t).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(e,t,r,n,o){const i=o.slice(0,32),a=o.slice(32,64),f=a;if(e===l.Ed25519)return{chainCode:f,privkey:i};const d=this.n(e),h=new s.default(i).add(new s.default(t)).mod(d),p=Uint8Array.from(h.toArray("be",32));if(this.isGteN(e,i)||this.isZero(p)){const o=new c.Hmac(u.Sha512,r).update(new Uint8Array([1,...a,...n.toBytesBigEndian()])).digest();return this.childImpl(e,t,r,n,o)}return{chainCode:f,privkey:p}}static isZero(e){return e.every(e=>0===e)}static isGteN(e,t){return new s.default(t).gte(this.n(e))}static n(e){switch(e){case l.Secp256k1:return new s.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}t.Slip10=h,t.pathToString=function(e){return e.reduce((e,t)=>e+"/"+(t.isHardened()?t.toNumber()-2**31+"'":t.toString()),"m")},t.stringToPath=function(e){if(!e.startsWith("m"))throw new Error("Path string must start with 'm'");let t=e.slice(1);const r=new Array;for(;t;){const e=t.match(/^\/([0-9]+)('?)/);if(!e)throw new Error("Syntax error while reading path component");const[n,o,s]=e,a=i.Uint53.fromString(o).toNumber();if(a>=2**31)throw new Error("Component value too high. Must not exceed 2**31-1.");s?r.push(f.hardened(a)):r.push(f.normal(a)),t=t.slice(n.length)}return r}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decimal=void 0;const o=n(r(6));class i{constructor(e,t){this.data={atomics:new o.default(e),fractionalDigits:t}}static fromUserInput(e,t){i.verifyFractionalDigits(t);const r=e.match(/[^0-9.]/);if(r)throw new Error("Invalid character at position "+(r.index+1));let n,o;if(-1===e.search(/\./))n=e,o="";else{const t=e.split(".");switch(t.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!t[1])throw new Error("Fractional part missing");n=t[0],o=t[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(o.length>t)throw new Error("Got more fractional digits than supported");const s=`${n}${o.padEnd(t,"0")}`;return new i(s,t)}static fromAtomics(e,t){return i.verifyFractionalDigits(t),new i(e,t)}static verifyFractionalDigits(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed 100")}static compare(e,t){if(e.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return e.data.atomics.cmp(new o.default(t.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}toString(){const e=new o.default(10).pow(new o.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),r=this.data.atomics.mod(e);if(r.isZero())return t.toString();{const e=r.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${t.toString()}.${e}`}}toFloatApproximation(){const e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}plus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.add(new o.default(e.atomics));return new i(t.toString(),this.fractionalDigits)}minus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.sub(new o.default(e.atomics));if(t.ltn(0))throw new Error("Difference must not be negative");return new i(t.toString(),this.fractionalDigits)}multiply(e){const t=this.data.atomics.mul(new o.default(e.toString()));return new i(t.toString(),this.fractionalDigits)}equals(e){return 0===i.compare(this,e)}isLessThan(e){return i.compare(this,e)<0}isLessThanOrEqual(e){return i.compare(this,e)<=0}isGreaterThan(e){return i.compare(this,e)>0}isGreaterThanOrEqual(e){return i.compare(this,e)>=0}}t.Decimal=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Int53=t.Uint32=void 0;const o=n(r(6)),i=new o.default("18446744073709551615",10,"be");class s{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<0||e>4294967295)throw new Error("Input not in uint32 range: "+e.toString());this.data=e}static fromBigEndianBytes(e){return s.fromBytes(e)}static fromBytes(e,t="be"){if(4!==e.length)throw new Error("Invalid input length. Expected 4 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const r="be"===t?e:Array.from(e).reverse();return new s(r[0]*2**24+65536*r[1]+256*r[2]+r[3])}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new s(Number.parseInt(e,10))}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/2**24),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/2**24)])}toNumber(){return this.data}toString(){return this.data.toString()}}t.Uint32=s;class a{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+e.toString());this.data=e}static fromString(e){if(!e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new a(Number.parseInt(e,10))}toNumber(){return this.data}toString(){return this.data.toString()}}t.Int53=a;class c{constructor(e){const t=new a(e);if(t.toNumber()<0)throw new Error("Input is negative");this.data=t}static fromString(e){const t=a.fromString(e);return new c(t.toNumber())}toNumber(){return this.data.toNumber()}toString(){return this.data.toString()}}t.Uint53=c;class u{constructor(e){if(e.isNeg())throw new Error("Input is negative");if(e.gt(i))throw new Error("Input exceeds uint64 range");this.data=e}static fromBytesBigEndian(e){return u.fromBytes(e)}static fromBytes(e,t="be"){if(8!==e.length)throw new Error("Invalid input length. Expected 8 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const r="be"===t?Array.from(e):Array.from(e).reverse();return new u(new o.default(r))}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new u(new o.default(e,10,"be"))}static fromNumber(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");let t;try{t=new o.default(e)}catch(e){throw new Error("Input is not a safe integer")}return new u(t)}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toNumber(){return this.data.toNumber()}}t.Uint64=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupAuthExtension=void 0,t.setupAuthExtension=function(e){return{auth:{account:async t=>{const r="/auth/accounts/"+t,n=await e.get(r);if("cosmos-sdk/Account"!==n.result.type)throw new Error("Unexpected response data format");return n}}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupBankExtension=void 0,t.setupBankExtension=function(e){return{bank:{balances:async t=>{const r="/bank/balances/"+t;return e.get(r)}}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupDistributionExtension=void 0,t.setupDistributionExtension=function(e){return{distribution:{delegatorRewards:async t=>e.get(`/distribution/delegators/${t}/rewards`),delegatorReward:async(t,r)=>e.get(`/distribution/delegators/${t}/rewards/${r}`),withdrawAddress:async t=>e.get(`/distribution/delegators/${t}/withdraw_address`),validator:async t=>e.get("/distribution/validators/"+t),validatorRewards:async t=>e.get(`/distribution/validators/${t}/rewards`),validatorOutstandingRewards:async t=>e.get(`/distribution/validators/${t}/outstanding_rewards`),parameters:async()=>e.get("/distribution/parameters"),communityPool:async()=>e.get("/distribution/community_pool")}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupGovExtension=t.GovParametersType=void 0,function(e){e.Deposit="deposit",e.Tallying="tallying",e.Voting="voting"}(t.GovParametersType||(t.GovParametersType={})),t.setupGovExtension=function(e){return{gov:{parameters:async t=>e.get("/gov/parameters/"+t),proposals:async()=>e.get("/gov/proposals"),proposal:async t=>e.get("/gov/proposals/"+t),proposer:async t=>e.get(`/gov/proposals/${t}/proposer`),deposits:async t=>e.get(`/gov/proposals/${t}/deposits`),deposit:async(t,r)=>e.get(`/gov/proposals/${t}/deposits/${r}`),tally:async t=>e.get(`/gov/proposals/${t}/tally`),votes:async t=>e.get(`/gov/proposals/${t}/votes`),vote:async(t,r)=>e.get(`/gov/proposals/${t}/votes/${r}`)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupMintExtension=void 0,t.setupMintExtension=function(e){return{mint:{parameters:async()=>e.get("/minting/parameters"),inflation:async()=>e.get("/minting/inflation"),annualProvisions:async()=>e.get("/minting/annual-provisions")}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupSlashingExtension=void 0,t.setupSlashingExtension=function(e){return{slashing:{signingInfos:async()=>e.get("/slashing/signing_infos"),parameters:async()=>e.get("/slashing/parameters")}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupStakingExtension=t.BondStatus=void 0,function(e){e[e.Unbonded=0]="Unbonded",e[e.Unbonding=1]="Unbonding",e[e.Bonded=2]="Bonded"}(t.BondStatus||(t.BondStatus={})),t.setupStakingExtension=function(e){return{staking:{delegatorDelegations:async t=>e.get(`/staking/delegators/${t}/delegations`),delegatorUnbondingDelegations:async t=>e.get(`/staking/delegators/${t}/unbonding_delegations`),delegatorTransactions:async t=>e.get(`/staking/delegators/${t}/txs`),delegatorValidators:async t=>e.get(`/staking/delegators/${t}/validators`),delegatorValidator:async(t,r)=>e.get(`/staking/delegators/${t}/validators/${r}`),delegation:async(t,r)=>e.get(`/staking/delegators/${t}/delegations/${r}`),unbondingDelegation:async(t,r)=>e.get(`/staking/delegators/${t}/unbonding_delegations/${r}`),redelegations:async()=>e.get("/staking/redelegations"),validators:async t=>e.get("/staking/validators",t),validator:async t=>e.get("/staking/validators/"+t),validatorDelegations:async t=>e.get(`/staking/validators/${t}/delegations`),validatorUnbondingDelegations:async t=>e.get(`/staking/validators/${t}/unbonding_delegations`),historicalInfo:async t=>e.get("/staking/historical_info/"+t),pool:async()=>e.get("/staking/pool"),parameters:async()=>e.get("/staking/parameters")}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupSupplyExtension=void 0,t.setupSupplyExtension=function(e){return{supply:{totalAll:async()=>e.get("/supply/total"),total:async t=>e.get("/supply/total/"+t)}}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LcdClient=t.normalizeLcdApiArray=void 0;const o=r(100),i=n(r(68)),s=r(319);function a(e){var t;if(null===(t=e.response)||void 0===t?void 0:t.data){let t;const r=e.response.data;throw t=r.error&&"string"==typeof r.error?r.error:"string"==typeof r?r:JSON.stringify(r),new Error(`${t} (HTTP ${e.response.status})`)}throw e}t.normalizeLcdApiArray=function(e){return e||[]};class c{constructor(e,t=s.BroadcastMode.Block){this.client=i.default.create({baseURL:e,headers:{post:{"Content-Type":"application/json"}}}),this.broadcastMode=t}static withExtensions(e,...t){const r=new c(e.apiUrl,e.broadcastMode),n=t.map(e=>e(r));for(const e of n){o.assert(o.isNonNullObject(e),"Extension must be a non-null object");for(const[t,n]of Object.entries(e)){o.assert(o.isNonNullObject(n),`Module must be a non-null object. Found type ${typeof n} for module "${t}".`);const e=r[t]||{};r[t]=Object.assign(Object.assign({},e),n)}}return r}async get(e,t){const{data:r}=await this.client.get(e,{params:t}).catch(a);if(null===r)throw new Error("Received null response from server");return r}async post(e,t){if(!o.isNonNullObject(t))throw new Error("Got unexpected type of params. Expected object.");const{data:r}=await this.client.post(e,t).catch(a);if(null===r)throw new Error("Received null response from server");return r}async blocksLatest(){const e=await this.get("/blocks/latest");if(!e.block)throw new Error("Unexpected response data format");return e}async blocks(e){const t=await this.get("/blocks/"+e);if(!t.block)throw new Error("Unexpected response data format");return t}async nodeInfo(){const e=await this.get("/node_info");if(!e.node_info)throw new Error("Unexpected response data format");return e}async txById(e){const t=await this.get("/txs/"+e);if(!t.tx)throw new Error("Unexpected response data format");return t}async txsQuery(e){const t=await this.get("/txs?"+e);if(!t.txs)throw new Error("Unexpected response data format");return t}async encodeTx(e){const t=await this.post("/txs/encode",e);if(!t.tx)throw new Error("Unexpected response data format");return t}async broadcastTx(e){const t={tx:e,mode:this.broadcastMode},r=await this.post("/txs",t);if(!r.txhash)throw new Error("Unexpected response data format");return r}}t.LcdClient=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePubkey=t.uint64ToString=t.uint64ToNumber=void 0;const n=r(82),o=r(175);t.uint64ToNumber=function(e){return("number"==typeof e?n.Uint64.fromNumber(e):n.Uint64.fromString(e)).toNumber()},t.uint64ToString=function(e){return("number"==typeof e?n.Uint64.fromNumber(e):n.Uint64.fromString(e)).toString()},t.normalizePubkey=function(e){return e?"string"==typeof e?o.decodeBech32Pubkey(e):e:null}},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgUndelegate=t.isMsgBeginRedelegate=t.isMsgDelegate=t.isMsgEditValidator=t.isMsgCreateValidator=t.isMsgUnjail=t.isMsgDeposit=t.isMsgVote=t.isMsgSubmitProposal=t.isMsgSubmitEvidence=t.isMsgFundCommunityPool=t.isMsgWithdrawValidatorCommission=t.isMsgWithdrawDelegatorReward=t.isMsgSetWithdrawAddress=t.isMsgVerifyInvariant=t.isMsgMultiSend=t.isMsgSend=void 0,t.isMsgSend=function(e){return"cosmos-sdk/MsgSend"===e.type},t.isMsgMultiSend=function(e){return"cosmos-sdk/MsgMultiSend"===e.type},t.isMsgVerifyInvariant=function(e){return"cosmos-sdk/MsgVerifyInvariant"===e.type},t.isMsgSetWithdrawAddress=function(e){return"cosmos-sdk/MsgModifyWithdrawAddress"===e.type},t.isMsgWithdrawDelegatorReward=function(e){return"cosmos-sdk/MsgWithdrawDelegationReward"===e.type},t.isMsgWithdrawValidatorCommission=function(e){return"cosmos-sdk/MsgWithdrawValidatorCommission"===e.type},t.isMsgFundCommunityPool=function(e){return"cosmos-sdk/MsgFundCommunityPool"===e.type},t.isMsgSubmitEvidence=function(e){return"cosmos-sdk/MsgSubmitEvidence"===e.type},t.isMsgSubmitProposal=function(e){return"cosmos-sdk/MsgSubmitProposal"===e.type},function(e){e[e.VoteOptionUnspecified=0]="VoteOptionUnspecified",e[e.VoteOptionYes=1]="VoteOptionYes",e[e.VoteOptionAbstain=2]="VoteOptionAbstain",e[e.VoteOptionNo=3]="VoteOptionNo",e[e.VoteOptionNoWithVeto=4]="VoteOptionNoWithVeto"}(n||(n={})),t.isMsgVote=function(e){return"cosmos-sdk/MsgVote"===e.type},t.isMsgDeposit=function(e){return"cosmos-sdk/MsgDeposit"===e.type},t.isMsgUnjail=function(e){return"cosmos-sdk/MsgUnjail"===e.type},t.isMsgCreateValidator=function(e){return"cosmos-sdk/MsgCreateValidator"===e.type},t.isMsgEditValidator=function(e){return"cosmos-sdk/MsgEditValidator"===e.type},t.isMsgDelegate=function(e){return"cosmos-sdk/MsgDelegate"===e.type},t.isMsgBeginRedelegate=function(e){return"cosmos-sdk/MsgBeginRedelegate"===e.type},t.isMsgUndelegate=function(e){return"cosmos-sdk/MsgUndelegate"===e.type}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findSequenceForSignedTx=void 0;const n=r(50),o=r(101),i=r(127);t.findSequenceForSignedTx=async function(e,t,r,s,a=0){const c=e.value.signatures.find(()=>!0);if(!c)throw new Error("Signature missing in tx");const{pubkey:u,signature:l}=i.decodeSignature(c),f=n.Secp256k1Signature.fromFixedLength(l);for(let i=a;i<s;i++){const s=o.serializeSignDoc(o.makeSignDoc(e.value.msg,e.value.fee,t,e.value.memo||"",r,i)),a=n.sha256(s);if(await n.Secp256k1.verifySignature(f,a,u))return i}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SigningCosmosClient=void 0;const o=n(r(642)),i=r(318),s=r(101),a=r(320),c=r(174),u=r(322),l=a.GasPrice.fromString("0.025ucosm"),f={send:8e4};class d extends i.CosmosClient{constructor(e,t,r,n=l,o={},i=c.BroadcastMode.Block){super(e,i),this.anyValidAddress=t,this.signerAddress=t,this.signer=r,this.fees=a.buildFeeTable(n,f,o)}async getSequence(e){return super.getSequence(e||this.signerAddress)}async getAccount(e){return super.getAccount(e||this.signerAddress)}async sendTokens(e,t,r=""){const n={type:"cosmos-sdk/MsgSend",value:{from_address:this.signerAddress,to_address:e,amount:t}};return this.signAndBroadcast([n],this.fees.send,r)}async signAndBroadcast(e,t,r=""){const n=await this.sign(e,t,r);return this.broadcastTx(n)}async sign(e,t,r=""){const{accountNumber:n,sequence:o}=await this.getSequence(),i=await this.getChainId(),a=s.makeSignDoc(e,t,i,r,n,o),{signed:c,signature:l}=await this.signer.signAmino(this.signerAddress,a);return u.makeStdTx(c,l)}async appendSignature(e){const{msg:t,fee:r,memo:n}=e,{accountNumber:i,sequence:a}=await this.getSequence(),c=await this.getChainId(),l=s.makeSignDoc(t,r,c,n,i,a),{signed:f,signature:d}=await this.signer.signAmino(this.signerAddress,l);if(!o.default(l,f))throw new Error("The signed document differs from the one of the original transaction. This is not allowed since the resulting transaction will be invalid.");return u.makeStdTx(f,[...e.signatures,d])}}t.SigningCosmosClient=d},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var s=i[o];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1HdWallet=t.extractKdfConfiguration=void 0;const n=r(50),o=r(39),i=r(100),s=r(173),a=r(101),c=r(321),u=r(127),l=r(323),f={algorithm:"argon2id",params:{outputLength:32,opsLimit:20,memLimitKib:12288}};t.extractKdfConfiguration=function(e){const t=JSON.parse(e);if(!i.isNonNullObject(t))throw new Error("Root document is not an object.");switch(t.type){case"secp256k1wallet-v1":return t.kdf;default:throw new Error("Unsupported serialization type")}};class d{constructor(e,t,r,n,o){this.secret=e,this.accounts=[{hdPath:t,prefix:o}],this.privkey=r,this.pubkey=n}static async fromMnemonic(e,t=c.makeCosmoshubPath(0),r="cosmos"){const o=new n.EnglishMnemonic(e),i=await n.Bip39.mnemonicToSeed(o),{privkey:s}=n.Slip10.derivePath(n.Slip10Curve.Secp256k1,i,t),a=(await n.Secp256k1.makeKeypair(s)).pubkey;return new d(o,t,s,n.Secp256k1.compressPubkey(a),r)}static async generate(e=12,t=c.makeCosmoshubPath(0),r="cosmos"){const o=4*Math.floor(11*e/33),i=n.Random.getBytes(o),s=n.Bip39.encode(i);return d.fromMnemonic(s.toString(),t,r)}static async deserialize(e,t){const r=JSON.parse(e);if(!i.isNonNullObject(r))throw new Error("Root document is not an object.");switch(r.type){case"secp256k1wallet-v1":return d.deserializeTypeV1(e,t);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(e,t){const r=JSON.parse(e);if(!i.isNonNullObject(r))throw new Error("Root document is not an object.");const s=r;switch(s.type){case"secp256k1wallet-v1":{const e=await l.decrypt(o.fromBase64(s.data),t,s.encryption),r=JSON.parse(o.fromUtf8(e)),{mnemonic:c,accounts:u}=r;if(i.assert("string"==typeof c),!Array.isArray(u))throw new Error("Property 'accounts' is not an array");if(1!==u.length)throw new Error("Property 'accounts' only supports one entry");const f=u[0];if(a=f,!i.isNonNullObject(a)||"string"!=typeof a.hdPath||"string"!=typeof a.prefix)throw new Error("Account is not in the correct format.");return d.fromMnemonic(c,n.stringToPath(f.hdPath),f.prefix)}default:throw new Error("Unsupported serialization type")}var a}static async deserializeTypeV1(e,t){const r=JSON.parse(e);if(!i.isNonNullObject(r))throw new Error("Root document is not an object.");const n=await l.executeKdf(t,r.kdf);return d.deserializeWithEncryptionKey(e,n)}get mnemonic(){return this.secret.toString()}get address(){return s.rawSecp256k1PubkeyToAddress(this.pubkey,this.accounts[0].prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(e,t){if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const r=n.sha256(a.serializeSignDoc(t)),o=await n.Secp256k1.createSignature(r,this.privkey),i=new Uint8Array([...o.r(32),...o.s(32)]);return{signed:t,signature:u.encodeSecp256k1Signature(this.pubkey,i)}}async serialize(e){const t=f,r=await l.executeKdf(e,t);return this.serializeWithEncryptionKey(r,t)}async serializeWithEncryptionKey(e,t){const r={mnemonic:this.mnemonic,accounts:this.accounts.map(e=>({hdPath:n.pathToString(e.hdPath),prefix:e.prefix}))},i=o.toUtf8(JSON.stringify(r)),s={algorithm:l.supportedAlgorithms.xchacha20poly1305Ietf},a=await l.encrypt(i,e,s),c={type:"secp256k1wallet-v1",kdf:t,encryption:s,data:o.toBase64(a)};return JSON.stringify(c)}}t.Secp256k1HdWallet=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1Wallet=void 0;const n=r(50),o=r(173),i=r(101),s=r(127);class a{constructor(e,t,r){this.privkey=e,this.pubkey=t,this.prefix=r}static async fromKey(e,t="cosmos"){const r=(await n.Secp256k1.makeKeypair(e)).pubkey;return new a(e,n.Secp256k1.compressPubkey(r),t)}get address(){return o.rawSecp256k1PubkeyToAddress(this.pubkey,this.prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(e,t){if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const r=new n.Sha256(i.serializeSignDoc(t)).digest(),o=await n.Secp256k1.createSignature(r,this.privkey),a=new Uint8Array([...o.r(32),...o.s(32)]);return{signed:t,signature:s.encodeSecp256k1Signature(this.pubkey,a)}}}t.Secp256k1Wallet=a},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o="~";function i(){}function s(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,r,n,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new s(r,n||e,i),c=o?o+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function u(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(o=!1)),u.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},u.prototype.listeners=function(e){var t=o?o+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,i=r.length,s=new Array(i);n<i;n++)s[n]=r[n].fn;return s},u.prototype.listenerCount=function(e){var t=o?o+e:e,r=this._events[t];return r?r.fn?1:r.length:0},u.prototype.emit=function(e,t,r,n,i,s){var a=o?o+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,n),!0;case 5:return l.fn.call(l.context,t,r,n,i),!0;case 6:return l.fn.call(l.context,t,r,n,i,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,n);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},u.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},u.prototype.removeListener=function(e,t,r,n){var i=o?o+e:e;if(!this._events[i])return this;if(!t)return c(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||n&&!s.once||r&&s.context!==r||c(this,i);else{for(var a=0,u=[],l=s.length;a<l;a++)(s[a].fn!==t||n&&!s[a].once||r&&s[a].context!==r)&&u.push(s[a]);u.length?this._events[i]=1===u.length?u[0]:u:c(this,i)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&c(this,t)):(this._events=new i,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=o,u.EventEmitter=u,e.exports=u},function(e,t,r){"use strict";const n=r(647);class o extends Error{constructor(e){super(e),this.name="TimeoutError"}}const i=(e,t,r)=>new Promise((i,s)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0)return void i(e);const a=setTimeout(()=>{if("function"==typeof r){try{i(r())}catch(e){s(e)}return}const n=r instanceof Error?r:new o("string"==typeof r?r:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),s(n)},t);n(e.then(i,s),()=>{clearTimeout(a)})});e.exports=i,e.exports.default=i,e.exports.TimeoutError=o},function(e,t,r){"use strict";e.exports=(e,t)=>(t=t||(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e})))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(649);t.default=class{constructor(){this._queue=[]}enqueue(e,t){const r={priority:(t=Object.assign({priority:0},t)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)return void this._queue.push(r);const o=n.default(this._queue,r,(e,t)=>t.priority-e.priority);this._queue.splice(o,0,r)}dequeue(){const e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this._queue.length}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){let n=0,o=e.length;for(;o>0;){const i=o/2|0;let s=n+i;r(e[s],t)<=0?(n=++s,o-=i+1):o=i}return n}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionRouter=void 0;const o=r(176);class i extends o.Router{constructor(){super(...arguments),this.onMessage=(e,t)=>{if(e.port===this.port)return this.onMessageHandler(e,t)}}listen(e){if(!e)throw new Error("Empty port");this.port=e,browser.runtime.onMessage.addListener(this.onMessage)}unlisten(){this.port="",browser.runtime.onMessage.removeListener(this.onMessage)}onMessageHandler(e,t){return n(this,void 0,void 0,(function*(){try{return{return:yield this.handleMessage(e,t)}}catch(t){return console.log(`Failed to process msg ${e.type}: ${(null==t?void 0:t.message)||(null==t?void 0:t.toString())}`),t?Promise.resolve({error:t.message||t.toString()}):Promise.resolve({error:"Unknown error, and error is null"})}}))}}t.ExtensionRouter=i},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MockRouter=void 0;const o=r(176),i=r(51);class s extends o.Router{constructor(){super(...arguments),this.onMessage=e=>n(this,void 0,void 0,(function*(){const{message:t,sender:r}=e;if(t.port===this.port)try{const e=yield this.handleMessage(t,r);return void r.resolver({return:e})}catch(e){console.log(`Failed to process msg ${t.type}: ${(null==e?void 0:e.message)||(null==e?void 0:e.toString())}`),e?r.resolver({error:e.message||e.toString()}):r.resolver({error:"Unknown error, and error is null"})}}))}listen(e){if(!e)throw new Error("Empty port");this.port=e,s.eventEmitter.addListener("message",this.onMessage)}unlisten(){this.port="",s.eventEmitter.removeListener("message",this.onMessage)}}t.MockRouter=s,s.eventEmitter=new i.EventEmitter},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;t.Message=class{approveExternal(e,t){return!1}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InExtensionMessageRequester=void 0;const o=r(107);t.InExtensionMessageRequester=class{sendMessage(e,t){return n(this,void 0,void 0,(function*(){t.validateBasic(),t.origin=window.location.origin;const r=o.JSONUint8Array.unwrap(yield browser.runtime.sendMessage({port:e,type:t.type(),msg:o.JSONUint8Array.wrap(t)}));if(!r)throw new Error("Null result");if(r.error)throw new Error(r.error);return r.return}))}static sendMessageToTab(e,t,r){return n(this,void 0,void 0,(function*(){r.validateBasic(),r.origin=window.location.origin;const n=o.JSONUint8Array.unwrap(yield browser.tabs.sendMessage(e,{port:t,type:r.type(),msg:o.JSONUint8Array.wrap(r)}));if(!n)throw new Error("Null result");if(n.error)throw new Error(n.error);return n.return}))}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentScriptMessageRequester=void 0;const o=r(107);t.ContentScriptMessageRequester=class{sendMessage(e,t){return n(this,void 0,void 0,(function*(){t.validateBasic(),t.origin=window.location.origin;const r=o.JSONUint8Array.wrap(t),n=yield browser.tabs.query({discarded:!1,status:"complete"});for(let o=0;o<n.length;o++){const i=n[o].id;if(i)try{yield browser.tabs.sendMessage(i,{port:e,type:t.type(),msg:r})}catch(e){}}}))}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MockMessageRequester=void 0;const o=r(107),i=r(324);t.MockMessageRequester=class{constructor(e,t){this.id=e,this.url=t}sendMessage(e,t){return n(this,void 0,void 0,(function*(){t.validateBasic(),t.origin=new URL(this.url).origin;const r=o.JSONUint8Array.unwrap(yield new Promise(r=>{i.MockRouter.eventEmitter.emit("message",{message:{port:e,type:t.type(),msg:o.JSONUint8Array.wrap(t)},sender:{id:this.id,url:this.url,resolver:r}})}));if(!r)throw new Error("Null result");if(r.error)throw new Error(r.error);return r.return}))}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(328),t),o(r(660),t),o(r(661),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentScriptGuards=void 0;class n{}t.ContentScriptGuards=n,n.checkMessageIsInternal=(e,t,r)=>{if(!e.isInternalMsg||t.approveExternal(e,r))throw new Error("Content script can't handle the message that is able to be sent from external");return Promise.resolve()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockGuards=void 0;const n=r(328);class o{}t.MockGuards=o,o.checkOriginIsValid=n.ExtensionGuards.checkOriginIsValid,o.checkMessageIsInternal=n.ExtensionGuards.checkMessageIsInternal},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(329),t),o(r(663),t),o(r(664),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentScriptEnv=void 0;class n{}t.ContentScriptEnv=n,n.produceEnv=e=>({isInternalMsg:e.id===browser.runtime.id,requestInteraction:()=>{throw new Error("ContentScriptEnv doesn't support `requestInteraction`")}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockEnv=void 0;const n=r(329);t.MockEnv=class{constructor(e,t){this.id=e,this.url=t}envProducer(){return e=>({isInternalMsg:n.ExtensionEnv.checkIsInternalMessage(e,this.id,this.url),requestInteraction:()=>{throw new Error("TODO: Implement me")}})}}},function(e,t,r){(function(e,t){
53 /*! *****************************************************************************
54 Copyright (C) Microsoft. All rights reserved.
55 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
56 this file except in compliance with the License. You may obtain a copy of the
57 License at http://www.apache.org/licenses/LICENSE-2.0
58
59 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
60 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
61 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
62 MERCHANTABLITY OR NON-INFRINGEMENT.
63
64 See the Apache Version 2.0 License for specific language governing permissions
65 and limitations under the License.
66 ***************************************************************************** */
67 var r;!function(r){!function(n){var o="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=s(r);function s(e,t){return function(r,n){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:n}),t&&t(r,n)}}void 0===o.Reflect?o.Reflect=r:i=s(o.Reflect,i),function(t){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,o=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,c=!s&&!a,u={create:s?function(){return R(Object.create(null))}:a?function(){return R({__proto__:null})}:function(){return R({})},has:c?function(e,t){return r.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return r.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),f="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],r=function(){function e(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},t.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var n=this._keys.length,o=r+1;o<n;o++)this._keys[o-1]=this._keys[o],this._values[o-1]=this._values[o];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new r(this._keys,this._values,n)},t.prototype.values=function(){return new r(this._keys,this._values,o)},t.prototype.entries=function(){return new r(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function n(e,t){return e}function o(e,t){return t}function s(e,t){return[e,t]}}():Map,h=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}():Set,p=new(f||"function"!=typeof WeakMap?function(){var e=u.create(),t=n();return function(){function e(){this._key=n()}return e.prototype.has=function(e){var t=o(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=o(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return o(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=o(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=n()},e}();function n(){var t;do{t="@@WeakMap@@"+s()}while(u.has(e,t));return e[t]=!0,t}function o(e,n){if(!r.call(e,t)){if(!n)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function i(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function s(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):i(new Uint8Array(e),e):i(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",n=0;n<16;++n){var o=t[n];4!==n&&6!==n&&8!==n||(r+="-"),o<16&&(r+="0"),r+=o.toString(16).toLowerCase()}return r}}():WeakMap);function g(e,t,r){var n=p.get(e);if(_(n)){if(!r)return;n=new d,p.set(e,n)}var o=n.get(t);if(_(o)){if(!r)return;o=new d,n.set(t,o)}return o}function m(e,t,r){var n=g(t,r,!1);return!_(n)&&!!n.has(e)}function y(e,t,r){var n=g(t,r,!1);if(!_(n))return n.get(e)}function b(e,t,r,n){g(r,n,!0).set(e,t)}function v(e,t){var r=[],n=g(e,t,!1);if(_(n))return r;for(var o=function(e){var t=A(e,i);if(!P(t))throw new TypeError;var r=t.call(e);if(!S(r))throw new TypeError;return r}(n.keys()),s=0;;){var a=M(o);if(!a)return r.length=s,r;var c=a.value;try{r[s]=c}catch(e){try{I(o)}finally{throw e}}s++}}function w(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function _(e){return void 0===e}function k(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function O(e,t){switch(w(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",n=A(e,o);if(void 0!==n){var i=n.call(e,r);if(S(i))throw new TypeError;return i}return function(e,t){if("string"===t){var r=e.toString;if(P(r))if(!S(o=r.call(e)))return o;if(P(n=e.valueOf))if(!S(o=n.call(e)))return o}else{var n;if(P(n=e.valueOf))if(!S(o=n.call(e)))return o;var o,i=e.toString;if(P(i))if(!S(o=i.call(e)))return o}throw new TypeError}(e,"default"===r?"number":r)}function j(e){var t=O(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function E(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function P(e){return"function"==typeof e}function x(e){return"function"==typeof e}function A(e,t){var r=e[t];if(null!=r){if(!P(r))throw new TypeError;return r}}function M(e){var t=e.next();return!t.done&&t}function I(e){var t=e.return;t&&t.call(e)}function C(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var r=e.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return t;var o=n.constructor;return"function"!=typeof o||o===e?t:o}function R(e){return e.__=void 0,delete e.__,e}t("decorate",(function(e,t,r,n){if(_(r)){if(!E(e))throw new TypeError;if(!x(t))throw new TypeError;return function(e,t){for(var r=e.length-1;r>=0;--r){var n=(0,e[r])(t);if(!_(n)&&!k(n)){if(!x(n))throw new TypeError;t=n}}return t}(e,t)}if(!E(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(n)&&!_(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(e,t,r,n){for(var o=e.length-1;o>=0;--o){var i=(0,e[o])(t,r,n);if(!_(i)&&!k(i)){if(!S(i))throw new TypeError;n=i}}return n}(e,t,r=j(r),n)})),t("metadata",(function(e,t){return function(r,n){if(!S(r))throw new TypeError;if(!_(n)&&!function(e){switch(w(e)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;b(e,t,r,n)}})),t("defineMetadata",(function(e,t,r,n){if(!S(r))throw new TypeError;return _(n)||(n=j(n)),b(e,t,r,n)})),t("hasMetadata",(function(e,t,r){if(!S(t))throw new TypeError;return _(r)||(r=j(r)),function e(t,r,n){if(m(t,r,n))return!0;var o=C(r);return!k(o)&&e(t,o,n)}(e,t,r)})),t("hasOwnMetadata",(function(e,t,r){if(!S(t))throw new TypeError;return _(r)||(r=j(r)),m(e,t,r)})),t("getMetadata",(function(e,t,r){if(!S(t))throw new TypeError;return _(r)||(r=j(r)),function e(t,r,n){if(m(t,r,n))return y(t,r,n);var o=C(r);return k(o)?void 0:e(t,o,n)}(e,t,r)})),t("getOwnMetadata",(function(e,t,r){if(!S(t))throw new TypeError;return _(r)||(r=j(r)),y(e,t,r)})),t("getMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return _(t)||(t=j(t)),function e(t,r){var n=v(t,r),o=C(t);if(null===o)return n;var i=e(o,r);if(i.length<=0)return n;if(n.length<=0)return i;for(var s=new h,a=[],c=0,u=n;c<u.length;c++){var l=u[c];s.has(l)||(s.add(l),a.push(l))}for(var f=0,d=i;f<d.length;f++){l=d[f];s.has(l)||(s.add(l),a.push(l))}return a}(e,t)})),t("getOwnMetadataKeys",(function(e,t){if(!S(e))throw new TypeError;return _(t)||(t=j(t)),v(e,t)})),t("deleteMetadata",(function(e,t,r){if(!S(t))throw new TypeError;_(r)||(r=j(r));var n=g(t,r,!1);if(_(n))return!1;if(!n.delete(e))return!1;if(n.size>0)return!0;var o=p.get(t);return o.delete(r),o.size>0||p.delete(t),!0}))}(i)}()}(r||(r={}))}).call(this,r(13),r(12))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(330),t),o(r(667),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(177),o=r(331),i=r(668);t.init=function(e,t){e.registerMessage(n.SetPersistentMemoryMsg),e.registerMessage(n.GetPersistentMemoryMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const n=r(177);t.getHandler=e=>(t,r)=>{switch(r.constructor){case n.SetPersistentMemoryMsg:return o(e)(t,r);case n.GetPersistentMemoryMsg:return e.get();default:throw new Error("Unknown msg type")}};const o=e=>(t,r)=>(e.set(r.data),{success:!0})},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(332),t),o(r(676),t)},function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(e,t,r){"use strict";const n=r(12);e.exports=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new n(t)}}},function(e,t,r){"use strict";const n=r(0),o=r(12),i=r(29);let s,a;const c={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=i.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t,r="Options"){n(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const o=Object.keys(e).filter(e=>!t.includes(e));n(0===o.length,"".concat(r," contain unknown keys: ").concat(o))},t.checkPreferences=function(e){a=a||r(16);const t=a.preferences.validate(e);if(t.error)throw new o([t.error.details[0].message])},t.compare=function(e,t,r){switch(r){case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return c.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e,r={}){const o=e&&e[t.symbols.any];return!!o&&(n(r.legacy||o.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,n){s=s||r(9),e=e||{},n=n||{};const o=Object.assign({},e,n);return n.errors&&e.errors&&(o.errors=Object.assign({},e.errors,n.errors),o.errors.wrap=Object.assign({},e.errors.wrap,n.errors.wrap)),n.messages&&(o.messages=s.compile(n.messages,e.messages)),delete o[t.symbols.prefs],o},t.tryWithPath=function(e,t,r={}){try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,r.append&&(e.message="".concat(e.message," (").concat(e.path,")")),e}},t.validateArg=function(e,r,{assert:n,message:o}){if(t.isSchema(n)){const t=n.validate(e);if(!t.error)return;return t.error.message}if(!n(e))return r?"".concat(r," ").concat(o):o},t.verifyFlat=function(e,t){for(const r of e)n(!Array.isArray(r),"Method no longer accepts array arguments:",t)}},function(e,t,r){"use strict";const n=r(6),o=r(13),i=r(14),s={needsProtoHack:new Set([o.set,o.map,o.weakSet,o.weakMap])};e.exports=s.clone=function(e,t={},r=null){if("object"!=typeof e||null===e)return e;let n=s.clone,a=r;if(t.shallow){if(!0!==t.shallow)return s.cloneWithShallow(e,t);n=e=>e}else if(a){const t=a.get(e);if(t)return t}else a=new Map;const c=o.getInternalProto(e);if(c===o.buffer)return!1;if(c===o.date)return new Date(e.getTime());if(c===o.regex)return new RegExp(e);const u=s.base(e,c,t);if(u===e)return e;if(a&&a.set(e,u),c===o.set)for(const r of e)u.add(n(r,t,a));else if(c===o.map)for(const[r,o]of e)u.set(r,n(o,t,a));const l=i.keys(e,t);for(const r of l){if("__proto__"===r)continue;if(c===o.array&&"length"===r){u.length=e.length;continue}const i=Object.getOwnPropertyDescriptor(e,r);i?i.get||i.set?Object.defineProperty(u,r,i):i.enumerable?u[r]=n(e[r],t,a):Object.defineProperty(u,r,{enumerable:!1,writable:!0,configurable:!0,value:n(e[r],t,a)}):Object.defineProperty(u,r,{enumerable:!0,writable:!0,configurable:!0,value:n(e[r],t,a)})}return u},s.cloneWithShallow=function(e,t){const r=t.shallow;(t=Object.assign({},t)).shallow=!1;const o=new Map;for(const t of r){const r=n(e,t);"object"!=typeof r&&"function"!=typeof r||o.set(r,r)}return s.clone(e,t,o)},s.base=function(e,t,r){if(!1===r.prototype)return s.needsProtoHack.has(t)?new t.constructor:t===o.array?[]:{};const n=Object.getPrototypeOf(e);if(n&&n.isImmutable)return e;if(t===o.array){const e=[];return n!==t&&Object.setPrototypeOf(e,n),e}if(s.needsProtoHack.has(t)){const e=new n.constructor;return n!==t&&Object.setPrototypeOf(e,n),e}return Object.create(n)}},function(e,t,r){"use strict";const n=r(0),o=r(34),i=r(1),s=r(9);e.exports=o.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,{method:r}){try{return r(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){n(i.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return n(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate:(e,t,{code:r,local:n})=>t.error(r,n),args:["code","local"],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=s.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(const r in t){const n=t[r];if(["examples","externals","metas","notes","tags"].includes(r))for(const t of n)e=e[r.slice(0,-1)](t);else if("alterations"!==r)if("whens"!==r){if("shared"===r)for(const t of n)e=e.shared(t)}else for(const t of n){const{ref:r,is:n,not:o,then:i,otherwise:s,concat:a}=t;e=a?e.concat(a):r?e.when(r,{is:n,not:o,then:i,otherwise:s,switch:t.switch,break:t.break}):e.when(n,{then:i,otherwise:s,break:t.break})}else{const t={};for(const{target:e,adjuster:r}of n)t[e]=r;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},function(e,t,r){"use strict";const n=r(32),o=r(1),i=r(7);t.Report=class{constructor(e,r,n,o,i,s,a){if(this.code=e,this.flags=o,this.messages=i,this.path=s.path,this.prefs=a,this.state=s,this.value=r,this.message=null,this.template=null,this.local=n||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?'Error code "'.concat(e,'" is not defined, your custom type is missing the correct messages definition'):(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,r){return t.template(this.value,e,r||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const r of e)"object"!=typeof r&&("string"==typeof r?(t&&(t+="."),t+=r):t+="[".concat(r,"]"));return t},t.template=function(e,t,r,n,s){if(!t)return;if(i.isTemplate(t))return"root"!==r?t:null;let a=s.errors.language;return o.isResolvable(a)&&(a=a.resolve(e,n,s)),a&&t[a]&&void 0!==t[a][r]?t[a][r]:t[r]},t.label=function(e,r,n,o){if(e.label)return e.label;if(!n.errors.label)return"";let i=r.path;return"key"===n.errors.label&&r.path.length>1&&(i=r.path.slice(-1)),t.path(i)||t.template(null,n.messages,"root",r,n)||o&&t.template(null,o,"root",r,n)||"value"},t.process=function(e,r,n){if(!e)return null;const{override:o,message:i,details:s}=t.details(e);if(o)return o;if(n.errors.stack)return new t.ValidationError(i,s,r);const a=Error.stackTraceLimit;Error.stackTraceLimit=0;const c=new t.ValidationError(i,s,r);return Error.stackTraceLimit=a,c},t.details=function(e,t={}){let r=[];const n=[];for(const o of e){if(o instanceof Error){if(!1!==t.override)return{override:o};const e=o.toString();r.push(e),n.push({message:e,type:"override",context:{error:o}});continue}const e=o.toString();r.push(e),n.push({message:e,path:o.path.filter(e=>"object"!=typeof e),type:o.code,context:o.local})}return r.length>1&&(r=[...new Set(r)]),{message:r.join(". "),details:n}},t.ValidationError=class extends Error{constructor(e,t,r){super(e),this._original=r,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=n.error},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=r(0),a=r(2),c=r(6),u=r(1);let l;const f={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e,t={}){s("string"==typeof e,"Invalid reference key:",e),u.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),s(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const r=Object.assign({},f.defaults,t);delete r.prefix;const n=r.separator,o=f.context(e,n,t.prefix);if(r.type=o.type,e=o.key,"value"===r.type)if(o.root&&(s(!n||e[0]!==n,"Cannot specify relative path with root prefix"),r.ancestor="root",e||(e=null)),n&&n===e)e=null,r.ancestor=0;else if(void 0!==r.ancestor)s(!n||!e||e[0]!==n,"Cannot combine prefix with ancestor option");else{const[t,o]=f.ancestor(e,n);o&&""===(e=e.slice(o))&&(e=null),r.ancestor=t}return r.path=n?null===e?[]:e.split(n):[e],new f.Ref(r)},t.in=function(e,r={}){return t.create(e,o(o({},r),{},{in:!0}))},t.isRef=function(e){return!!e&&!!e[u.symbols.ref]},f.Ref=class{constructor(e){s("object"==typeof e,"Invalid reference construction"),u.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),s([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),s(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),s(!e.map||Array.isArray(e.map),"options.map must be an array"),s(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,f.defaults,e),s("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,r,n,o={}){return s(!this.in||o.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(r.context,t,o):"local"===this.type?this._resolve(n,t,o):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,o):(s(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,o)):this._resolve(e,t,o)}_resolve(e,t,r){let n;if("value"===this.type&&t.mainstay.shadow&&!1!==r.shadow&&(n=t.mainstay.shadow.get(this.absolute(t))),void 0===n&&(n=c(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(n=this.adjust(n)),this.map){const e=this.map.get(n);void 0!==e&&(n=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,n),n}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new f.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display="ref:".concat(this.type,":").concat(e));if(!this.separator)return void(this.display="ref:".concat(e));if(!this.ancestor)return void(this.display="ref:".concat(this.separator).concat(e));if("root"===this.ancestor)return void(this.display="ref:root:".concat(e));if(1===this.ancestor)return void(this.display="ref:".concat(e||".."));const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display="ref:".concat(t).concat(e||"")}},f.Ref.prototype[u.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},f.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new f.Ref(e)},f.context=function(e,t,r={}){if(e=e.trim(),r){const n=void 0===r.global?"$":r.global;if(n!==t&&e.startsWith(n))return{key:e.slice(n.length),type:"global"};const o=void 0===r.local?"#":r.local;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"local"};const i=void 0===r.root?"/":r.root;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"value",root:!0}}return{key:e,type:"value"}},f.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let r=2;for(;e[r]===t;)++r;return[r-1,r]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,n){if(e)if(n=void 0===n?t.toParent:n,Array.isArray(e))for(const t of e)this.register(t,n);else if(u.isSchema(e))for(const t of e._refs.refs)t.ancestor-n>=0&&this.refs.push({ancestor:t.ancestor-n,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-n>=0&&this.refs.push({ancestor:e.ancestor-n,root:e.root}),l=l||r(7),l.isTemplate(e)&&this.register(e.refs(),n)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=a(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter(e=>!e.ancestor).map(e=>e.root)}}},function(e,t,r){"use strict";const n=r(0),o={};e.exports=function(e,t,r){if(!1===t||null==t)return e;"string"==typeof(r=r||{})&&(r={separator:r});const i=Array.isArray(t);n(!i||!r.separator,"Separator option no valid for array-based chain");const s=i?t:t.split(r.separator||".");let a=e;for(let e=0;e<s.length;++e){let i=s[e];const c=r.iterables&&o.iterables(a);if(Array.isArray(a)||"set"===c){const e=Number(i);Number.isInteger(e)&&(i=e<0?a.length+e:e)}if(!a||"function"==typeof a&&!1===r.functions||!c&&void 0===a[i]){n(!r.strict||e+1===s.length,"Missing segment",i,"in reach path ",t),n("object"==typeof a||!0===r.functions||"function"!=typeof a,"Invalid segment",i,"in reach path ",t),a=r.default;break}a=c?"set"===c?[...a][i]:a.get(i):a[i]}return a},o.iterables=function(e){return e instanceof Set?"set":e instanceof Map?"map":void 0}},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const i=r(0),s=r(2),a=r(30),c=r(31),u=r(1),l=r(4),f=r(5),d={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("\ 1"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=d.Template=class{constructor(e,t){i("string"==typeof e,"Template source must be a string"),i(!e.includes("\0")&&!e.includes("\ 1"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=s(t),this._parse()}_parse(){if(!this.source.includes("{"))return;const e=d.encode(this.source),t=d.split(e);let r=!1;const n=[],o=t.shift();o&&n.push(o);for(const e of t){const t="{"!==e[0],o=t?"}":"}}",i=e.indexOf(o);if(-1===i||"{"===e[1]){n.push("{".concat(d.decode(e)));continue}let s=e.slice(t?0:1,i);const a=":"===s[0];a&&(s=s.slice(1));const c=this._ref(d.decode(s),{raw:t,wrapped:a});n.push(c),"string"!=typeof c&&(r=!0);const u=e.slice(i+o.length);u&&n.push(d.decode(u))}r?this._template=n:this.rendered=n.join("")}static date(e,t){return d.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new d.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[u.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,r,n){return this._template&&1===this._template.length?this._part(this._template[0],e,t,r,n,{}):this.render(e,t,r,n)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,r,n,o={}){if(!this.isDynamic())return this.rendered;const i=[];for(const s of this._template)if("string"==typeof s)i.push(s);else{const c=this._part(s,e,t,r,n,o),u=d.stringify(c,e,t,r,n,o);if(void 0!==u){const e=s.raw||!1===(o.errors&&o.errors.escapeHtml)?u:a(u);i.push(d.wrap(e,s.wrapped&&r.errors.wrap.label))}}return i.join("")}_ref(e,{raw:t,wrapped:r}){const n=[],o=e=>{const t=f.create(e,this._settings);return n.push(t),e=>t.resolve(...e)};try{var i=new c.Parser(e,{reference:o,functions:d.functions,constants:d.constants})}catch(t){throw t.message='Invalid template variable "'.concat(e,'" fails due to: ').concat(t.message),t}if(i.single){if("reference"===i.single.type){const e=n[0];return{ref:e,raw:t,refs:n,wrapped:r||"local"===e.type&&"label"===e.key}}return d.stringify(i.single.value)}return{formula:i,raw:t,refs:n}}toString(){return this.source}},d.Template.prototype[u.symbols.template]=!0,d.Template.prototype.isImmutable=!0,d.encode=function(e){return e.replace(/\\(\{+)/g,(e,t)=>d.opens.slice(0,t.length)).replace(/\\(\}+)/g,(e,t)=>d.closes.slice(0,t.length))},d.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},d.split=function(e){const t=[];let r="";for(let n=0;n<e.length;++n){const o=e[n];if("{"===o){let o="";for(;n+1<e.length&&"{"===e[n+1];)o+="{",++n;t.push(r),r=o}else r+=o}return t.push(r),t},d.wrap=function(e,t){return t?1===t.length?"".concat(t).concat(e).concat(t):"".concat(t[0]).concat(e).concat(t[1]):e},d.stringify=function(e,t,r,i,s,a){const c=typeof e;let u=!1;if(f.isRef(e)&&e.render&&(u=e.in,e=e.resolve(t,r,i,s,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({in:e.in},a))),null===e)return"null";if("string"===c)return e;if("number"===c||"function"===c||"symbol"===c)return e.toString();if("object"!==c)return JSON.stringify(e);if(e instanceof Date)return d.Template.date(e,i);if(e instanceof Map){const t=[];for(const[r,n]of e.entries())t.push("".concat(r.toString()," -> ").concat(n.toString()));e=t}if(!Array.isArray(e))return e.toString();let l="";for(const n of e)l=l+(l.length?", ":"")+d.stringify(n,t,r,i,s,a);return u?l:d.wrap(l,i.errors.wrap.array)},d.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},d.functions={if:(e,t,r)=>e?t:r,msg(e){const[t,r,n,o,i]=this,s=i.messages;if(!s)return"";const a=l.template(t,s[0],e,r,n)||l.template(t,s[1],e,r,n);return a?a.render(t,r,n,o,i):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},function(e,t,r){"use strict";const n=r(0),o=r(1),i=r(5),s={};t.schema=function(e,t,r={}){o.assertOptions(r,["appendPath","override"]);try{return s.schema(e,t,r)}catch(e){throw r.appendPath&&void 0!==e.path&&(e.message="".concat(e.message," (").concat(e.path,")")),e}},s.schema=function(e,t,r){n(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(n(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const i=(t,...n)=>!1!==r.override?t.valid(e.override,...n):t.valid(...n);if(s.simple(t))return i(e,t);if("function"==typeof t)return e.custom(t);if(n("object"==typeof t,"Invalid schema content:",typeof t),o.isResolvable(t))return i(e,t);if(o.isSchema(t))return t;if(Array.isArray(t)){for(const r of t)if(!s.simple(r))return e.alternatives().try(...t);return i(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?i(e.date(),t):(n(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return i.isRef(e)?e:i.create(e,t)},t.compile=function(e,r,i={}){o.assertOptions(i,["legacy"]);const a=r&&r[o.symbols.any];if(a)return n(i.legacy||a.version===o.version,"Cannot mix different versions of joi schemas:",a.version,o.version),r;if("object"!=typeof r||!i.legacy)return t.schema(e,r,{appendPath:!0});const c=s.walk(r);return c?c.compile(c.root,r):t.schema(e,r,{appendPath:!0})},s.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=s.walk(t);if(e)return e}return null}const t=e[o.symbols.any];if(t)return{root:e[t.root],compile:t.compile};n(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const t in e){const r=s.walk(e[t]);if(r)return r}return null},s.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,r,a){if(void 0===a&&(n(r&&"object"==typeof r,"Missing options"),a=r,r=i.create(".")),Array.isArray(a)&&(a={switch:a}),o.assertOptions(a,["is","not","then","otherwise","switch","break"]),o.isSchema(r))return n(void 0===a.is,'"is" can not be used with a schema condition'),n(void 0===a.not,'"not" can not be used with a schema condition'),n(void 0===a.switch,'"switch" can not be used with a schema condition'),s.condition(e,{is:r,then:a.then,otherwise:a.otherwise,break:a.break});if(n(i.isRef(r)||"string"==typeof r,"Invalid condition:",r),n(void 0===a.not||void 0===a.is,'Cannot combine "is" with "not"'),void 0===a.switch){let c=a;void 0!==a.not&&(c={is:a.not,then:a.otherwise,otherwise:a.then,break:a.break});let u=void 0!==c.is?e.$_compile(c.is):e.$_root.invalid(null,!1,0,"").required();return n(void 0!==c.then||void 0!==c.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),n(void 0===c.break||void 0===c.then||void 0===c.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===a.is||i.isRef(a.is)||o.isSchema(a.is)||(u=u.required()),s.condition(e,{ref:t.ref(r),is:u,then:c.then,otherwise:c.otherwise,break:c.break})}n(Array.isArray(a.switch),'"switch" must be an array'),n(void 0===a.is,'Cannot combine "switch" with "is"'),n(void 0===a.not,'Cannot combine "switch" with "not"'),n(void 0===a.then,'Cannot combine "switch" with "then"');const c={ref:t.ref(r),switch:[],break:a.break};for(let t=0;t<a.switch.length;++t){const r=a.switch[t],s=t===a.switch.length-1;o.assertOptions(r,s?["is","then","otherwise"]:["is","then"]),n(void 0!==r.is,'Switch statement missing "is"'),n(void 0!==r.then,'Switch statement missing "then"');const u={is:e.$_compile(r.is),then:e.$_compile(r.then)};if(i.isRef(r.is)||o.isSchema(r.is)||(u.is=u.is.required()),s){n(void 0===a.otherwise||void 0===r.otherwise,'Cannot specify "otherwise" inside and outside a "switch"');const t=void 0!==a.otherwise?a.otherwise:r.otherwise;void 0!==t&&(n(void 0===c.break,"Cannot specify both otherwise and break"),u.otherwise=e.$_compile(t))}c.switch.push(u)}return c},s.condition=function(e,t){for(const r of["then","otherwise"])void 0===t[r]?delete t[r]:t[r]=e.$_compile(t[r]);return t}},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(7);t.compile=function(e,t){if("string"==typeof e)return n(!t,"Cannot set single message string"),new i(e);if(i.isTemplate(e))return n(!t,"Cannot set single message template"),e;n("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?o(t):{};for(let r in e){const o=e[r];if("root"===r||i.isTemplate(o)){t[r]=o;continue}if("string"==typeof o){t[r]=new i(o);continue}n("object"==typeof o&&!Array.isArray(o),"Invalid message for",r);const s=r;for(r in t[s]=t[s]||{},o){const e=o[r];"root"===r||i.isTemplate(e)?t[s][r]=e:(n("string"==typeof e,"Invalid message for",r,"in",s),t[s][r]=new i(e))}}return t},t.decompile=function(e){const t={};for(let r in e){const n=e[r];if("root"===r){t[r]=n;continue}if(i.isTemplate(n)){t[r]=n.describe({compact:!0});continue}const o=r;for(r in t[o]={},n){const e=n[r];t[o][r]="root"!==r?e.describe({compact:!0}):e}}return t},t.merge=function(e,r){if(!e)return t.compile(r);if(!r)return e;if("string"==typeof r)return new i(r);if(i.isTemplate(r))return r;const s=o(e);for(let e in r){const t=r[e];if("root"===e||i.isTemplate(t)){s[e]=t;continue}if("string"==typeof t){s[e]=new i(t);continue}n("object"==typeof t&&!Array.isArray(t),"Invalid message for",e);const o=e;for(e in s[o]=s[o]||{},t){const r=t[e];"root"===e||i.isTemplate(r)?s[o][e]=r:(n("string"==typeof r,"Invalid message for",e,"in",o),s[o][e]=new i(r))}}return s}},function(e,t,r){"use strict";const n=r(13),o={mismatched:null};e.exports=function(e,t,r){return r=Object.assign({prototype:!0},r),!!o.isDeepEqual(e,t,r,[])},o.isDeepEqual=function(e,t,r,i){if(e===t)return 0!==e||1/e==1/t;const s=typeof e;if(s!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===s){if(!r.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==s)return e!=e&&t!=t;const a=o.getSharedType(e,t,!!r.prototype);switch(a){case n.buffer:return!1;case n.promise:return e===t;case n.regex:return e.toString()===t.toString();case o.mismatched:return!1}for(let r=i.length-1;r>=0;--r)if(i[r].isSame(e,t))return!0;i.push(new o.SeenEntry(e,t));try{return!!o.isDeepEqualObj(a,e,t,r,i)}finally{i.pop()}},o.getSharedType=function(e,t,r){if(r)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?o.mismatched:n.getInternalProto(e);const i=n.getInternalProto(e);return i!==n.getInternalProto(t)?o.mismatched:i},o.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},o.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},o.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,r))return!1;return!0},o.isDeepEqualObj=function(e,t,r,i,s){const{isDeepEqual:a,valueOf:c,hasOwnEnumerableProperty:u}=o,{keys:l,getOwnPropertySymbols:f}=Object;if(e===n.array){if(!i.part){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!a(t[e],r[e],i,s))return!1;return!0}for(const e of t)for(const t of r)if(a(e,t,i,s))return!0}else if(e===n.set){if(t.size!==r.size)return!1;if(!o.isSetSimpleEqual(t,r)){const e=new Set(Set.prototype.values.call(r));for(const r of Set.prototype.values.call(t)){if(e.delete(r))continue;let t=!1;for(const n of e)if(a(r,n,i,s)){e.delete(n),t=!0;break}if(!t)return!1}}}else if(e===n.map){if(t.size!==r.size)return!1;for(const[e,n]of Map.prototype.entries.call(t)){if(void 0===n&&!Map.prototype.has.call(r,e))return!1;if(!a(n,Map.prototype.get.call(r,e),i,s))return!1}}else if(e===n.error&&(t.name!==r.name||t.message!==r.message))return!1;const d=c(t),h=c(r);if((t!==d||r!==h)&&!a(d,h,i,s))return!1;const p=l(t);if(!i.part&&p.length!==l(r).length&&!i.skip)return!1;let g=0;for(const e of p)if(i.skip&&i.skip.includes(e))void 0===r[e]&&++g;else{if(!u(r,e))return!1;if(!a(t[e],r[e],i,s))return!1}if(!i.part&&p.length-g!==l(r).length)return!1;if(!1!==i.symbols){const e=f(t),n=new Set(f(r));for(const o of e){if(!i.skip||!i.skip.includes(o))if(u(t,o)){if(!u(r,o))return!1;if(!a(t[o],r[o],i,s))return!1}else if(u(r,o))return!1;n.delete(o)}for(const e of n)if(u(r,e))return!1}return!0},o.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(15),s=r(1),a=r(8),c=r(4),u=r(17),l=r(18),f=r(5),d=r(7),h=r(19);let p;const g={types:{alternatives:r(33),any:r(3),array:r(39),boolean:r(40),date:r(41),function:r(42),link:r(45),number:r(46),object:r(47),string:r(48),symbol:r(52)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(g.types))};for(const t of e._types)e[t]=function(...e){return n(!e.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),g.generate(this,g.types[t],e)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(...e){return this.any()[t](...e)};Object.assign(e,g.methods);for(const t in g.aliases){const r=g.aliases[t];e[t]=e[r]}return e.x=e.expression,h.setup&&h.setup(e),e}};g.methods={ValidationError:c.ValidationError,version:s.version,cache:i.provider,assert(e,t,...r){g.assert(e,t,!0,r)},attempt:(e,t,...r)=>g.assert(e,t,!1,r),build(e){return n("function"==typeof l.build,"Manifest functionality disabled"),l.build(this,e)},checkPreferences(e){s.checkPreferences(e)},compile(e,t){return a.compile(this,e,t)},defaults(e){n("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const r of t._types){const o=e(t[r]());n(s.isSchema(o),"modifier must return a valid schema object"),t[r]=function(...e){return g.generate(this,o,e)}}return t},expression:(...e)=>new d(...e),extend(...e){s.verifyFlat(e,"extend"),p=p||r(16),n(e.length,"You need to provide at least one extension"),this.assert(e,p.extensions);const t=Object.assign({},this);t._types=new Set(t._types);for(let r of e){"function"==typeof r&&(r=r(t)),this.assert(r,p.extension);const e=g.expandExtension(r,t);for(const r of e){n(void 0===t[r.type]||t._types.has(r.type),"Cannot override name",r.type);const e=r.base||this.any(),o=u.type(e,r);t._types.add(r.type),t[r.type]=function(...e){return g.generate(this,o,e)}}}return t},isError:c.ValidationError.isError,isExpression:d.isTemplate,isRef:f.isRef,isSchema:s.isSchema,in:(...e)=>f.in(...e),override:s.symbols.override,ref:(...e)=>f.create(...e),types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in g.aliases)e[t]=this[t]();return e}},g.assert=function(e,t,r,n){const i=n[0]instanceof Error||"string"==typeof n[0]?n[0]:null,a=i?n[1]:n[0],u=t.validate(e,s.preferences({errors:{stack:!0}},a||{}));let l=u.error;if(!l)return u.value;if(i instanceof Error)throw i;const f=r&&"function"==typeof l.annotate?l.annotate():l.message;throw l instanceof c.ValidationError==0&&(l=o(l)),l.message=i?"".concat(i," ").concat(f):f,l},g.generate=function(e,t,r){return n(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&r.length?t._definition.args(t,...r):t},g.expandExtension=function(e,t){if("string"==typeof e.type)return[e];const r=[];for(const n of t._types)if(e.type.test(n)){const o=Object.assign({},e);o.type=n,o.base=t[n](),r.push(o)}return r},e.exports=g.root()},function(e,t,r){"use strict";const n=r(28);e.exports=class extends Error{constructor(e){super(e.filter(e=>""!==e).map(e=>"string"==typeof e?e:e instanceof Error?e.message:n(e)).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},function(e,t,r){"use strict";const n={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},n.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const r=Object.prototype.toString.call(e);return n.typeMap.get(r)||t.generic}},function(e,t,r){"use strict";t.keys=function(e,t={}){return!1!==t.symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(1),s={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new s.Cache(e)},s.Cache=class{constructor(e={}){i.assertOptions(e,["max"]),n(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||s.max,this._map=new Map,this._list=new s.List}get length(){return this._map.size}set(e,t){if(null!==e&&!s.supported.has(typeof e))return;let r=this._map.get(e);if(r)return r.value=t,void this._list.first(r);r=this._list.unshift({key:e,value:t}),this._map.set(e,r),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),o(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},s.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:r}=e;return t.prev=r,r&&(r.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},function(e,t,r){"use strict";const n=r(11),o={};o.wrap=n.string().min(1).max(2).allow(!1),t.preferences=n.object({allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),context:n.object(),convert:n.boolean(),dateFormat:n.valid("date","iso","string","time","utc"),debug:n.boolean(),errors:{escapeHtml:n.boolean(),label:n.valid("path","key",!1),language:[n.string(),n.object().ref()],render:n.boolean(),stack:n.boolean(),wrap:{label:o.wrap,array:o.wrap}},externals:n.boolean(),messages:n.object(),noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:n.valid("required","optional","forbidden"),skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()}).strict(),o.nameRx=/^[a-zA-Z0-9]\w*$/,o.rule=n.object({alias:n.array().items(n.string().pattern(o.nameRx)).single(),args:n.array().items(n.string(),n.object({name:n.string().pattern(o.nameRx).required(),ref:n.boolean(),assert:n.alternatives([n.function(),n.object().schema()]).conditional("ref",{is:!0,then:n.required()}),normalize:n.function(),message:n.string().when("assert",{is:n.function(),then:n.required()})})),convert:n.boolean(),manifest:n.boolean(),method:n.function().allow(!1),multi:n.boolean(),validate:n.function()}),t.extension=n.object({type:n.alternatives([n.string(),n.object().regex()]).required(),args:n.function(),cast:n.object().pattern(o.nameRx,n.object({from:n.function().maxArity(1).required(),to:n.function().minArity(1).maxArity(2).required()})),base:n.object().schema().when("type",{is:n.object().regex(),then:n.forbidden()}),coerce:[n.function().maxArity(3),n.object({method:n.function().maxArity(3).required(),from:n.array().items(n.string()).single()})],flags:n.object().pattern(o.nameRx,n.object({setter:n.string(),default:n.any()})),manifest:{build:n.function().arity(2)},messages:[n.object(),n.string()],modifiers:n.object().pattern(o.nameRx,n.function().minArity(1).maxArity(2)),overrides:n.object().pattern(o.nameRx,n.function()),prepare:n.function().maxArity(3),rebuild:n.function().arity(1),rules:n.object().pattern(o.nameRx,o.rule),terms:n.object().pattern(o.nameRx,n.object({init:n.array().allow(null).required(),manifest:n.object().pattern(/.+/,[n.valid("schema","single"),n.object({mapped:n.object({from:n.string().required(),to:n.string().required()}).required()})])})),validate:n.function().maxArity(3)}).strict(),t.extensions=n.array().items(n.object(),n.function().arity(1)).strict(),o.desc={buffer:n.object({buffer:n.string()}),func:n.object({function:n.function().required(),options:{literal:!0}}),override:n.object({override:!0}),ref:n.object({ref:n.object({type:n.valid("value","global","local"),path:n.array().required(),separator:n.string().length(1).allow(!1),ancestor:n.number().min(0).integer().allow("root"),map:n.array().items(n.array().length(2)).min(1),adjust:n.function(),iterables:n.boolean(),in:n.boolean(),render:n.boolean()}).required()}),regex:n.object({regex:n.string().min(3)}),special:n.object({special:n.valid("deep").required()}),template:n.object({template:n.string().required(),options:n.object()}),value:n.object({value:n.alternatives([n.object(),n.array()]).required()})},o.desc.entity=n.alternatives([n.array().items(n.link("...")),n.boolean(),n.function(),n.number(),n.string(),o.desc.buffer,o.desc.func,o.desc.ref,o.desc.regex,o.desc.special,o.desc.template,o.desc.value,n.link("/")]),o.desc.values=n.array().items(null,n.boolean(),n.function(),n.number().allow(1/0,-1/0),n.string().allow(""),n.symbol(),o.desc.buffer,o.desc.func,o.desc.override,o.desc.ref,o.desc.regex,o.desc.template,o.desc.value),o.desc.messages=n.object().pattern(/.+/,[n.string(),o.desc.template,n.object().pattern(/.+/,[n.string(),o.desc.template])]),t.description=n.object({type:n.string().required(),flags:n.object({cast:n.string(),default:n.any(),description:n.string(),empty:n.link("/"),failover:o.desc.entity,id:n.string(),label:n.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:n.boolean(),unit:n.string()}).unknown(),preferences:{allowUnknown:n.boolean(),abortEarly:n.boolean(),artifacts:n.boolean(),cache:n.boolean(),convert:n.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:n.boolean(),label:["path","key"],language:[n.string(),o.desc.ref],wrap:{label:o.wrap,array:o.wrap}},externals:n.boolean(),messages:o.desc.messages,noDefaults:n.boolean(),nonEnumerables:n.boolean(),presence:["required","optional","forbidden"],skipFunctions:n.boolean(),stripUnknown:n.object({arrays:n.boolean(),objects:n.boolean()}).or("arrays","objects").allow(!0,!1),warnings:n.boolean()},allow:o.desc.values,invalid:o.desc.values,rules:n.array().min(1).items({name:n.string().required(),args:n.object().min(1),keep:n.boolean(),message:[n.string(),o.desc.messages],warn:n.boolean()}),keys:n.object().pattern(/.*/,n.link("/")),link:o.desc.ref}).pattern(/^[a-z]\w*$/,n.any())},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(1),s=r(9),a={};t.type=function(e,t){const r=Object.getPrototypeOf(e),c=o(r),u=e._assign(Object.create(c)),l=Object.assign({},t);delete l.base,c._definition=l;const f=r._definition||{};l.messages=s.merge(f.messages,l.messages),l.properties=Object.assign({},f.properties,l.properties),u.type=l.type,l.flags=Object.assign({},f.flags,l.flags);const d=Object.assign({},f.terms);if(l.terms)for(const e in l.terms){const t=l.terms[e];n(void 0===u.$_terms[e],"Invalid term override for",l.type,e),u.$_terms[e]=t.init,d[e]=t}l.terms=d,l.args||(l.args=f.args),l.prepare=a.prepare(l.prepare,f.prepare),l.coerce&&("function"==typeof l.coerce&&(l.coerce={method:l.coerce}),l.coerce.from&&!Array.isArray(l.coerce.from)&&(l.coerce={method:l.coerce.method,from:[].concat(l.coerce.from)})),l.coerce=a.coerce(l.coerce,f.coerce),l.validate=a.validate(l.validate,f.validate);const h=Object.assign({},f.rules);if(l.rules)for(const e in l.rules){const t=l.rules[e];n("object"==typeof t,"Invalid rule definition for",l.type,e);let r=t.method;if(void 0===r&&(r=function(){return this.$_addRule(e)}),r&&(n(!c[e],"Rule conflict in",l.type,e),c[e]=r),n(!h[e],"Rule conflict in",l.type,e),h[e]=t,t.alias){const e=[].concat(t.alias);for(const r of e)c[r]=t.method}t.args&&(t.argsByName=new Map,t.args=t.args.map(e=>("string"==typeof e&&(e={name:e}),n(!t.argsByName.has(e.name),"Duplicated argument name",e.name),i.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),t.argsByName.set(e.name,e),e)))}l.rules=h;const p=Object.assign({},f.modifiers);if(l.modifiers)for(const e in l.modifiers){n(!c[e],"Rule conflict in",l.type,e);const t=l.modifiers[e];n("function"==typeof t,"Invalid modifier definition for",l.type,e);const r=function(t){return this.rule({[e]:t})};c[e]=r,p[e]=t}if(l.modifiers=p,l.overrides){c._super=r,u.$_super={};for(const e in l.overrides)n(r[e],"Cannot override missing",e),l.overrides[e][i.symbols.parent]=r[e],u.$_super[e]=r[e].bind(u);Object.assign(c,l.overrides)}l.cast=Object.assign({},f.cast,l.cast);const g=Object.assign({},f.manifest,l.manifest);return g.build=a.build(l.manifest&&l.manifest.build,f.manifest&&f.manifest.build),l.manifest=g,l.rebuild=a.rebuild(l.rebuild,f.rebuild),u},a.build=function(e,t){return e&&t?function(r,n){return t(e(r,n),n)}:e||t},a.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(r,n){let o;if((!t.from||t.from.includes(typeof r))&&(o=t.method(r,n),o)){if(o.errors||void 0===o.value)return o;r=o.value}if(!e.from||e.from.includes(typeof r)){const t=e.method(r,n);if(t)return t}return o}}:e||t},a.prepare=function(e,t){return e&&t?function(r,n){const o=e(r,n);if(o){if(o.errors||void 0===o.value)return o;r=o.value}return t(r,n)||o}:e||t},a.rebuild=function(e,t){return e&&t?function(r){t(r),e(r)}:e||t},a.validate=function(e,t){return e&&t?function(r,n){const o=t(r,n);if(o){if(o.errors&&(!Array.isArray(o.errors)||o.errors.length))return o;r=o.value}return e(r,n)||o}:e||t}},function(e,t){},function(e,t){},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(14),s={};e.exports=s.merge=function(e,t,r){if(n(e&&"object"==typeof e,"Invalid target value: must be an object"),n(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(r=Object.assign({nullOverride:!0,mergeArrays:!0},r),Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object"),r.mergeArrays||(e.length=0);for(let n=0;n<t.length;++n)e.push(o(t[n],{symbols:r.symbols}));return e}const a=i.keys(t,r);for(let n=0;n<a.length;++n){const i=a[n];if("__proto__"===i||!Object.prototype.propertyIsEnumerable.call(t,i))continue;const c=t[i];if(c&&"object"==typeof c){if(e[i]===c)continue;!e[i]||"object"!=typeof e[i]||Array.isArray(e[i])!==Array.isArray(c)||c instanceof Date||c instanceof RegExp?e[i]=o(c,{symbols:r.symbols}):s.merge(e[i],c,r)}else(null!=c||r.nullOverride)&&(e[i]=c)}return e}},function(e,t,r){"use strict";const n=r(0),o=r(10),i=r(1),s={};e.exports=s.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=s.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){i.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,r){if(e=e||new s.Values,t){if(t._override)return t.clone();for(const r of[...t._values,...t._refs])e.add(r)}if(r)for(const t of[...r._values,...r._refs])e.remove(t);return e.length?e:null}remove(e){i.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,r,n){return!!this.get(e,t,r,n)}get(e,t,r,n){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&n){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const t of this._values)if(o(t,e))return{value:t};if(t)for(const i of this._refs){const s=i.resolve(e,t,r,null,{in:!0});if(void 0===s)continue;const a=i.in&&"object"==typeof s?Array.isArray(s)?s:Object.keys(s):[s];for(const t of a)if(typeof t==typeof e)if(n&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:i}}else if(o(t,e))return{value:t,ref:i}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new s.Values(this._values,this._refs);return e._override=this._override,e}concat(e){n(!e._override,"Cannot concat override set of values");const t=new s.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},s.Values.prototype[i.symbols.values]=!0,s.Values.prototype.slice=s.Values.prototype.clone,s.lowercases=function(e){const t=new Map;if(e)for(const r of e)"string"==typeof r&&t.set(r.toLowerCase(),r);return t}},function(e,t,r){"use strict";const n=r(43),o=r(0),i=r(2),s=r(44),a=r(3),c=r(1),u=r(8),l=r(4),f=r(5),d=r(7),h={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=a.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,{schema:t,error:r,state:n,prefs:o}){if(!e||typeof e!==t.$_property("typeof")||Array.isArray(e))return{value:e,errors:r("object.base",{type:t.$_property("typeof")})};if(!(t.$_terms.renames||t.$_terms.dependencies||t.$_terms.keys||t.$_terms.patterns||t.$_terms.externals))return;e=h.clone(e,o);const i=[];if(t.$_terms.renames&&!h.rename(t,e,n,o,i))return{value:e,errors:i};if(!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:i};const s=new Set(Object.keys(e));if(t.$_terms.keys){const r=[e,...n.ancestors];for(const a of t.$_terms.keys){const t=a.key,c=e[t];s.delete(t);const u=n.localize([...n.path,t],r,a),l=a.schema.$_validate(c,u,o);if(l.errors){if(o.abortEarly)return{value:e,errors:l.errors};i.push(...l.errors)}else"strip"===a.schema._flags.result||void 0===l.value&&void 0!==c?delete e[t]:void 0!==l.value&&(e[t]=l.value)}}if(s.size||t._flags._hasPatternMatch){const r=h.unknown(t,e,s,i,n,o);if(r)return r}if(t.$_terms.dependencies)for(const r of t.$_terms.dependencies){if(r.key&&void 0===r.key.resolve(e,n,o,null,{shadow:!1}))continue;const s=h.dependencies[r.rel](t,r,e,n,o);if(s){const r=t.$_createError(s.code,e,s.context,n,o);if(o.abortEarly)return{value:e,errors:r};i.push(r)}}return{value:e,errors:i}},rules:{and:{method(...e){return c.verifyFlat(e,"and"),h.dependency(this,"and",null,e)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,r){d.isTemplate(e)||(e=u.ref(e)),o(void 0===r||"string"==typeof r,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const n=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:r}});return n.$_mutateRegister(e),n.$_mutateRegister(t),n},validate(e,{error:t,prefs:r,state:n},{subject:o,schema:i,message:s}){const a=o.resolve(e,n,r),c=f.isRef(o)?o.absolute(n):[];return i.$_match(a,n.localize(c,[e,...n.ancestors],i),r)?e:t("object.assert",{subject:o,message:s})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return o("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate:(e,t,{constructor:r,name:n})=>e instanceof r?e:t.error("object.instance",{type:n,value:e}),args:["constructor","name"]},keys:{method(e){o(void 0===e||"object"==typeof e,"Object schema must be a valid object"),o(!c.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter(t=>!e.hasOwnProperty(t.key)):new h.Keys;for(const r in e)c.tryWithPath(()=>t.$_terms.keys.push({key:r,schema:this.$_compile(e[r])}),r)}else t.$_terms.keys=new h.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:r},{name:n,operator:o,args:i})=>c.compare(Object.keys(e).length,r,o)?e:t.error("object."+n,{limit:i.limit,value:e}),args:[{name:"limit",ref:!0,assert:c.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(...e){return c.verifyFlat(e,"nand"),h.dependency(this,"nand",null,e)}},or:{method(...e){return c.verifyFlat(e,"or"),h.dependency(this,"or",null,e)}},oxor:{method(...e){return h.dependency(this,"oxor",null,e)}},pattern:{method(e,t,r={}){const n=e instanceof RegExp;n||(e=this.$_compile(e,{appendPath:!0})),o(void 0!==t,"Invalid rule"),c.assertOptions(r,["fallthrough","matches"]),n&&o(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const i=this.clone();i.$_terms.patterns=i.$_terms.patterns||[];const s={[n?"regex":"schema"]:e,rule:t};return r.matches&&(s.matches=this.$_compile(r.matches),"array"!==s.matches.type&&(s.matches=s.matches.$_root.array().items(s.matches)),i.$_mutateRegister(s.matches),i.$_setFlag("_hasPatternMatch",!0,{clone:!1})),r.fallthrough&&(s.fallthrough=!0),i.$_terms.patterns.push(s),i.$_mutateRegister(t),i}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>f.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t,r={}){o("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),o("string"==typeof t||t instanceof d,"Invalid rename to argument"),o(t!==e,"Cannot rename key to same name:",e),c.assertOptions(r,["alias","ignoreUndefined","override","multiple"]);const i=this.clone();i.$_terms.renames=i.$_terms.renames||[];for(const t of i.$_terms.renames)o(t.from!==e,"Cannot rename the same key multiple times");return t instanceof d&&i.$_mutateRegister(t),i.$_terms.renames.push({from:e,to:t,options:n(h.renameDefaults,r)}),i}},schema:{method(e="any"){return this.$_addRule({name:"schema",args:{type:e}})},validate:(e,t,{type:r})=>!c.isSchema(e)||"any"!==r&&e.type!==r?t.error("object.schema",{type:r}):e},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t,r={}){return h.dependency(this,"with",e,t,r)}},without:{method(e,t,r={}){return h.dependency(this,"without",e,t,r)}},xor:{method(...e){return c.verifyFlat(e,"xor"),h.dependency(this,"xor",null,e)}}},overrides:{default(e,t){return void 0===e&&(e=c.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){const t=new s.Sorter;for(const r of e.$_terms.keys)c.tryWithPath(()=>t.add(r,{after:r.schema.$_rootReferences(),group:r.key}),r.key);e.$_terms.keys=new h.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:r,key:n=null,peers:o,options:i}of t.dependencies)e=h.dependency(e,r,n,o,i);if(t.patterns)for(const{regex:r,schema:n,rule:o,fallthrough:i,matches:s}of t.patterns)e=e.pattern(r||n,o,{fallthrough:i,matches:s});if(t.renames)for(const{from:r,to:n,options:o}of t.renames)e=e.rename(r,n,o);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),h.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return i(e,{shallow:!0});const r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}const r=function(...t){return e.apply(this,t)};return r.prototype=i(e.prototype),Object.defineProperty(r,"name",{value:e.name,writable:!1}),Object.defineProperty(r,"length",{value:e.length,writable:!1}),Object.assign(r,e),r},h.dependency=function(e,t,r,n,i){o(null===r||"string"==typeof r,t,"key must be a strings"),i||(i=n.length>1&&"object"==typeof n[n.length-1]?n.pop():{}),c.assertOptions(i,["separator"]),n=[].concat(n);const s=c.default(i.separator,"."),a=[];for(const e of n)o("string"==typeof e,t,"peers must be a string or a reference"),a.push(u.ref(e,{separator:s,ancestor:0,prefix:!1}));null!==r&&(r=u.ref(r,{separator:s,ancestor:0,prefix:!1}));const l=e.clone();return l.$_terms.dependencies=l.$_terms.dependencies||[],l.$_terms.dependencies.push(new h.Dependency(t,r,a,n)),l},h.dependencies={and(e,t,r,n,o){const i=[],s=[],a=t.peers.length;for(const e of t.peers)void 0===e.resolve(r,n,o,null,{shadow:!1})?i.push(e.key):s.push(e.key);if(i.length!==a&&s.length!==a)return{code:"object.and",context:{present:s,presentWithLabels:h.keysToLabels(e,s),missing:i,missingWithLabels:h.keysToLabels(e,i)}}},nand(e,t,r,n,o){const i=[];for(const e of t.peers)void 0!==e.resolve(r,n,o,null,{shadow:!1})&&i.push(e.key);if(i.length!==t.peers.length)return;const s=t.paths[0],a=t.paths.slice(1);return{code:"object.nand",context:{main:s,mainWithLabel:h.keysToLabels(e,s),peers:a,peersWithLabels:h.keysToLabels(e,a)}}},or(e,t,r,n,o){for(const e of t.peers)if(void 0!==e.resolve(r,n,o,null,{shadow:!1}))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)}}},oxor(e,t,r,n,o){const i=[];for(const e of t.peers)void 0!==e.resolve(r,n,o,null,{shadow:!1})&&i.push(e.key);if(!i.length||1===i.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return s.present=i,s.presentWithLabels=h.keysToLabels(e,i),{code:"object.oxor",context:s}},with(e,t,r,n,o){for(const i of t.peers)if(void 0===i.resolve(r,n,o,null,{shadow:!1}))return{code:"object.with",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:i.key,peerWithLabel:h.keysToLabels(e,i.key)}}},without(e,t,r,n,o){for(const i of t.peers)if(void 0!==i.resolve(r,n,o,null,{shadow:!1}))return{code:"object.without",context:{main:t.key.key,mainWithLabel:h.keysToLabels(e,t.key.key),peer:i.key,peerWithLabel:h.keysToLabels(e,i.key)}}},xor(e,t,r,n,o){const i=[];for(const e of t.peers)void 0!==e.resolve(r,n,o,null,{shadow:!1})&&i.push(e.key);if(1===i.length)return;const s={peers:t.paths,peersWithLabels:h.keysToLabels(e,t.paths)};return 0===i.length?{code:"object.missing",context:s}:(s.present=i,s.presentWithLabels=h.keysToLabels(e,i),{code:"object.xor",context:s})}},h.keysToLabels=function(e,t){return Array.isArray(t)?t.map(t=>e.$_mapLabels(t)):e.$_mapLabels(t)},h.rename=function(e,t,r,n,o){const i={};for(const s of e.$_terms.renames){const a=[],c="string"!=typeof s.from;if(c)for(const e in t){if(void 0===t[e]&&s.options.ignoreUndefined)continue;if(e===s.to)continue;const r=s.from.exec(e);r&&a.push({from:e,to:s.to,match:r})}else!Object.prototype.hasOwnProperty.call(t,s.from)||void 0===t[s.from]&&s.options.ignoreUndefined||a.push(s);for(const u of a){const a=u.from;let l=u.to;if(l instanceof d&&(l=l.render(t,r,n,u.match)),a!==l){if(!s.options.multiple&&i[l]&&(o.push(e.$_createError("object.rename.multiple",t,{from:a,to:l,pattern:c},r,n)),n.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,l)&&!s.options.override&&!i[l]&&(o.push(e.$_createError("object.rename.override",t,{from:a,to:l,pattern:c},r,n)),n.abortEarly))return!1;void 0===t[a]?delete t[l]:t[l]=t[a],i[l]=!0,s.options.alias||delete t[a]}}}return!0},h.unknown=function(e,t,r,n,o,i){if(e.$_terms.patterns){let s=!1;const a=e.$_terms.patterns.map(e=>{if(e.matches)return s=!0,[]}),c=[t,...o.ancestors];for(const s of r){const u=t[s],l=[...o.path,s];for(let f=0;f<e.$_terms.patterns.length;++f){const d=e.$_terms.patterns[f];if(d.regex){const e=d.regex.test(s);if(o.mainstay.tracer.debug(o,"rule","pattern.".concat(f),e?"pass":"error"),!e)continue}else if(!d.schema.$_match(s,o.nest(d.schema,"pattern.".concat(f)),i))continue;r.delete(s);const h=o.localize(l,c,{schema:d.rule,key:s}),p=d.rule.$_validate(u,h,i);if(p.errors){if(i.abortEarly)return{value:t,errors:p.errors};n.push(...p.errors)}if(d.matches&&a[f].push(s),t[s]=p.value,!d.fallthrough)break}}if(s)for(let r=0;r<a.length;++r){const s=a[r];if(!s)continue;const u=e.$_terms.patterns[r].matches,f=o.localize(o.path,c,u),d=u.$_validate(s,f,i);if(d.errors){const r=l.details(d.errors,{override:!1});r.matches=s;const a=e.$_createError("object.pattern.match",t,r,o,i);if(i.abortEarly)return{value:t,errors:a};n.push(a)}}}if(r.size&&(e.$_terms.keys||e.$_terms.patterns)){if(i.stripUnknown&&!e._flags.unknown||i.skipFunctions){const e=!(!i.stripUnknown||!0!==i.stripUnknown&&!i.stripUnknown.objects);for(const n of r)e?(delete t[n],r.delete(n)):"function"==typeof t[n]&&r.delete(n)}if(!c.default(e._flags.unknown,i.allowUnknown))for(const s of r){const r=o.localize([...o.path,s],[]),a=e.$_createError("object.unknown",t[s],{child:s},r,i,{flags:!1});if(i.abortEarly)return{value:t,errors:a};n.push(a)}}},h.Dependency=class{constructor(e,t,r,n){this.rel=e,this.key=t,this.peers=r,this.paths=n}describe(){const e={rel:this.rel,peers:this.paths};return null!==this.key&&(e.key=this.key.key),"."!==this.peers[0].separator&&(e.options={separator:this.peers[0].separator}),e}},h.Keys=class extends Array{concat(e){const t=this.slice(),r=new Map;for(let e=0;e<t.length;++e)r.set(t[e].key,e);for(const n of e){const e=n.key,o=r.get(e);void 0!==o?t[o]={key:e,schema:t[o].schema.concat(n.schema)}:t.push(n)}return t}}},function(e,t,r){"use strict";const n=r(24),o=r(25),i={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:n.URL||URL};t.analyze=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return o.code("DOMAIN_NON_EMPTY_STRING");if(e.length>256)return o.code("DOMAIN_TOO_LONG");if(i.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return o.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(i.domainControlRx.test(e))return o.code("DOMAIN_INVALID_CHARS");e=i.punycode(e);const r=t.minDomainSegments||i.minDomainSegments,n=e.split(".");if(n.length<r)return o.code("DOMAIN_SEGMENTS_COUNT");if(t.maxDomainSegments&&n.length>t.maxDomainSegments)return o.code("DOMAIN_SEGMENTS_COUNT_MAX");const s=t.tlds;if(s){const e=n[n.length-1].toLowerCase();if(s.deny&&s.deny.has(e)||s.allow&&!s.allow.has(e))return o.code("DOMAIN_FORBIDDEN_TLDS")}for(let e=0;e<n.length;++e){const t=n[e];if(!t.length)return o.code("DOMAIN_EMPTY_SEGMENT");if(t.length>63)return o.code("DOMAIN_LONG_SEGMENT");if(e<n.length-1){if(!i.domainSegmentRx.test(t))return o.code("DOMAIN_INVALID_CHARS")}else if(!i.tldSegmentRx.test(t))return o.code("DOMAIN_INVALID_TLDS_CHARS")}return null},t.isValid=function(e,r){return!t.analyze(e,r)},i.punycode=function(e){try{return new i.URL("http://".concat(e)).host}catch(t){return e}}},function(e,t){},function(e,t,r){"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},function(e,t,r){"use strict";const n=r(0),o=r(27),i={generate:function(){const e={},t="!\\$&'\\(\\)\\*\\+,;=",r="\\w-\\.~%\\dA-Fa-f"+t+":@",n="["+r+"]",o="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+o+"\\.){3}"+o;const i="[\\dA-Fa-f]{1,4}",s="(?:"+i+":"+i+"|"+e.ipv4address+")",a="(?:"+i+":){6}"+s,c="::(?:"+i+":){5}"+s,u="(?:"+i+")?::(?:"+i+":){4}"+s,l="(?:(?:"+i+":){0,1}"+i+")?::(?:"+i+":){3}"+s,f="(?:(?:"+i+":){0,2}"+i+")?::(?:"+i+":){2}"+s,d="(?:(?:"+i+":){0,3}"+i+")?::"+i+":"+s,h="(?:(?:"+i+":){0,4}"+i+")?::"+s;e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+a+"|"+c+"|"+u+"|"+l+"|"+f+"|"+d+"|"+h+"|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)",e.ipvFuture="v[\\dA-Fa-f]+\\.[\\w-\\.~"+t+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const p="[\\w-\\.~%\\dA-Fa-f"+t+":]*",g="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})",m="(?:"+p+"@)?"+g+"(?::\\d*)?",y="(?:"+p+"@)?("+g+")(?::\\d*)?",b=n+"+",v="(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*",w="\\/(?:"+b+v+")?",_=b+v,k="[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=@]+"+v;return e.hierPart="(?:(?:\\/\\/"+m+v+")|"+w+"|"+_+"|(?:\\/\\/\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*))",e.hierPartCapture="(?:(?:\\/\\/"+y+v+")|"+w+"|"+_+")",e.relativeRef="(?:(?:\\/\\/"+m+v+")|"+w+"|"+k+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+y+v+")|"+w+"|"+k+"|)",e.query="["+r+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+r+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+r+"\\/\\?]*",e}};i.rfc3986=i.generate(),t.ip={v4Cidr:i.rfc3986.ipv4Cidr,v6Cidr:i.rfc3986.ipv6Cidr,ipv4:i.rfc3986.ipv4address,ipv6:i.rfc3986.ipv6address,ipvfuture:i.rfc3986.ipvFuture},i.createRegex=function(e){const t=i.rfc3986,r="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",s=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return i.wrap(s+r);let a="";if(e.scheme){n(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const r=[].concat(e.scheme);n(r.length>=1,"scheme must have at least 1 scheme specified");const i=[];for(let e=0;e<r.length;++e){const s=r[e];n(s instanceof RegExp||"string"==typeof s,"scheme at position "+e+" must be a RegExp or String"),s instanceof RegExp?i.push(s.source.toString()):(n(t.schemeRegex.test(s),"scheme at position "+e+" must be a valid scheme"),i.push(o(s)))}a=i.join("|")}const c="(?:"+(a?"(?:"+a+")":t.scheme)+":"+(e.domain?t.hierPartCapture:t.hierPart)+")",u=e.allowRelative?"(?:"+c+"|"+s+")":c;return i.wrap(u+r,a)},i.wrap=function(e,t){return{raw:e="(?=.)(?!https?:/$)".concat(e),regex:new RegExp("^".concat(e,"$")),scheme:t}},i.uriRegex=i.createRegex({}),t.regex=function(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?i.createRegex(e):i.uriRegex}},function(e,t,r){"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},function(e,t,r){"use strict";e.exports=function(...e){try{return JSON.stringify.apply(null,e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},function(e){e.exports=JSON.parse('{"version":"17.3.0"}')},function(e,t,r){"use strict";const n={};e.exports=function(e){if(!e)return"";let t="";for(let r=0;r<e.length;++r){const o=e.charCodeAt(r);n.isSafe(o)?t+=e[r]:t+=n.escapeHtmlChar(o)}return t},n.escapeHtmlChar=function(e){const t=n.namedHtml[e];if(void 0!==t)return t;if(e>=256)return"&#"+e+";";const r=e.toString(16).padStart(2,"0");return"&#x".concat(r,";")},n.isSafe=function(e){return void 0!==n.safeCharCodes[e]},n.namedHtml={38:"&amp;",60:"&lt;",62:"&gt;",34:"&quot;",160:"&nbsp;",162:"&cent;",163:"&pound;",164:"&curren;",169:"&copy;",174:"&reg;"},n.safeCharCodes=function(){const e={};for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&(e[t]=null);return e}()},function(e,t,r){"use strict";const n={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*\.?[0-9]*){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e,t={}){if(!t[n.settings]&&t.constants)for(const e in t.constants){const r=t.constants[e];if(null!==r&&!["boolean","number","string"].includes(typeof r))throw new Error("Formula constant ".concat(e," contains invalid ").concat(typeof r," value type"))}this.settings=t[n.settings]?t:Object.assign({[n.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let r=[],o="",i=0,s=!1;const a=e=>{if(i)throw new Error("Formula missing closing parenthesis");const a=r.length?r[r.length-1]:null;if(s||o||e){if(a&&"reference"===a.type&&")"===e)return a.type="function",a.value=this._subFormula(o,a.value),void(o="");if(")"===e){const e=new t.Parser(o,this.settings);r.push({type:"segment",value:e})}else if(s){if("]"===s)return r.push({type:"reference",value:o}),void(o="");r.push({type:"literal",value:o})}else if(n.operatorCharacters.includes(o))a&&"operator"===a.type&&n.operators.includes(a.value+o)?a.value+=o:r.push({type:"operator",value:o});else if(o.match(n.numberRx))r.push({type:"constant",value:parseFloat(o)});else if(void 0!==this.settings.constants[o])r.push({type:"constant",value:this.settings.constants[o]});else{if(!o.match(n.tokenRx))throw new Error("Formula contains invalid token: ".concat(o));r.push({type:"reference",value:o})}o=""}};for(const t of e)s?t===s?(a(),s=!1):o+=t:i?"("===t?(o+=t,++i):")"===t?(--i,i?o+=t:a(t)):o+=t:t in n.literals?s=n.literals[t]:"("===t?(a(),++i):n.operatorCharacters.includes(t)?(a(),o=t,a()):" "!==t?o+=t:a();a(),r=r.map((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==r[t-1].type?e:{type:"operator",value:"n"});let c=!1;for(const e of r){if("operator"===e.type){if(n.operatorsPrefix.includes(e.value))continue;if(!c)throw new Error("Formula contains an operator in invalid position");if(!n.operators.includes(e.value))throw new Error("Formula contains an unknown operator ".concat(e.value))}else if(c)throw new Error("Formula missing expected operator");c=!c}if(!c)throw new Error("Formula contains invalid trailing operator");1===r.length&&["reference","literal","constant"].includes(r[0].type)&&(this.single={type:"reference"===r[0].type?"reference":"value",value:r[0].value}),this._parts=r.map(e=>{if("operator"===e.type)return n.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error("Formula contains invalid reference ".concat(e.value));return this.settings.reference?this.settings.reference(e.value):n.reference(e.value)})}_subFormula(e,r){const o=this.settings.functions[r];if("function"!=typeof o)throw new Error("Formula contains unknown function ".concat(r));let i=[];if(e){let t="",o=0,s=!1;const a=()=>{if(!t)throw new Error("Formula contains function ".concat(r," with invalid arguments ").concat(e));i.push(t),t=""};for(let r=0;r<e.length;++r){const i=e[r];s?(t+=i,i===s&&(s=!1)):i in n.literals&&!o?(t+=i,s=n.literals[i]):","!==i||o?(t+=i,"("===i?++o:")"===i&&--o):a()}a()}return i=i.map(e=>new t.Parser(e,this.settings)),function(e){const t=[];for(const r of i)t.push(r.evaluate(e));return o.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let r=t.length-2;r>=0;--r){const o=t[r];if(o&&"operator"===o.type){const i=t[r+1];t.splice(r+1,1);const s=n.evaluate(i,e);t[r]=n.single(o.value,s)}}return n.operatorsOrder.forEach(r=>{for(let o=1;o<t.length-1;)if(r.includes(t[o])){const r=t[o],i=n.evaluate(t[o-1],e),s=n.evaluate(t[o+1],e);t.splice(o,2);const a=n.calculate(r,i,s);t[o-1]=0===a?0:a}else o+=2}),n.evaluate(t[0],e)}},t.Parser.prototype[n.symbol]=!0,n.reference=function(e){return function(t){return t&&void 0!==t[e]?t[e]:null}},n.evaluate=function(e,t){return null===e?null:"function"==typeof e?e(t):e[n.symbol]?e.evaluate(t):e},n.single=function(e,t){if("!"===e)return!t;const r=-t;return 0===r?0:r},n.calculate=function(e,t,r){if("??"===e)return n.exists(t)?t:r;if("string"==typeof t||"string"==typeof r){if("+"===e)return(t=n.exists(t)?t:"")+(n.exists(r)?r:"")}else switch(e){case"^":return Math.pow(t,r);case"*":return t*r;case"/":return t/r;case"%":return t%r;case"+":return t+r;case"-":return t-r}switch(e){case"<":return t<r;case"<=":return t<=r;case">":return t>r;case">=":return t>=r;case"==":return t===r;case"!=":return t!==r;case"&&":return t&&r;case"||":return t||r}return null},n.exists=function(e){return null!=e}},function(e,t){},function(e,t,r){"use strict";const n=r(0),o=r(3),i=r(1),s=r(8),a=r(4),c=r(5),u={};e.exports=o.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args:(e,...t)=>1===t.length&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t),validate(e,t){const{schema:r,error:n,state:o,prefs:i}=t;if(r._flags.match){let t,s=0;for(let n=0;n<r.$_terms.matches.length;++n){const a=r.$_terms.matches[n],c=o.nest(a.schema,"match.".concat(n));c.snapshot();const u=a.schema.$_validate(e,c,i);u.errors?c.restore():(++s,t=u.value)}return s?"one"===r._flags.match?1===s?{value:t}:{errors:n("alternatives.one")}:s===r.$_terms.matches.length?{value:e}:{errors:n("alternatives.all")}:{errors:n("alternatives.any")}}const s=[];for(let t=0;t<r.$_terms.matches.length;++t){const n=r.$_terms.matches[t];if(n.schema){const r=o.nest(n.schema,"match.".concat(t));r.snapshot();const a=n.schema.$_validate(e,r,i);if(!a.errors)return a;r.restore(),s.push({schema:n.schema,reports:a.errors});continue}const a=n.ref?n.ref.resolve(e,o,i):e,c=n.is?[n]:n.switch;for(let r=0;r<c.length;++r){const s=c[r],{is:u,then:l,otherwise:f}=s,d="match.".concat(t).concat(n.switch?"."+r:"");if(u.$_match(a,o.nest(u,"".concat(d,".is")),i)){if(l)return l.$_validate(e,o.nest(l,"".concat(d,".then")),i)}else if(f)return f.$_validate(e,o.nest(f,"".concat(d,".otherwise")),i)}}return u.errors(s,t)},rules:{conditional:{method(e,t){n(!this._flags._endedSwitch,"Unreachable condition"),n(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),n(void 0===t.break,"Cannot use break option with alternatives conditional");const r=this.clone(),o=s.when(r,e,t),i=o.is?[o]:o.switch;for(const e of i)if(e.then&&e.otherwise){r.$_setFlag("_endedSwitch",!0,{clone:!1});break}return r.$_terms.matches.push(o),r.$_mutateRebuild()}},match:{method(e){if(n(["any","one","all"].includes(e),"Invalid alternatives match mode",e),"any"!==e)for(const t of this.$_terms.matches)n(t.schema,"Cannot combine match mode",e,"with conditional rules");return this.$_setFlag("match",e)}},try:{method(...e){n(e.length,"Missing alternative schemas"),i.verifyFlat(e,"try"),n(!this._flags._endedSwitch,"Unreachable condition");const t=this.clone();for(const r of e)t.$_terms.matches.push({schema:t.$_compile(r)});return t.$_mutateRebuild()}}},overrides:{label(e){return this.$_parent("label",e).$_modify({each:(t,r)=>"is"!==r.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{i.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const r of t.matches){const{schema:t,ref:n,is:o,not:i,then:s,otherwise:a}=r;e=t?e.try(t):n?e.conditional(n,{is:o,then:s,not:i,otherwise:a,switch:r.switch}):e.conditional(o,{then:s,otherwise:a})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),u.errors=function(e,{error:t,state:r}){if(!e.length)return{errors:t("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const n=new Set,o=[];for(const{reports:i,schema:s}of e){if(i.length>1)return u.unmatched(e,t);const c=i[0];if(c instanceof a.Report==0)return u.unmatched(e,t);if(c.state.path.length!==r.path.length){o.push({type:s.type,report:c});continue}if("any.only"===c.code){for(const e of c.local.valids)n.add(e);continue}const[l,f]=c.code.split(".");"base"===f?n.add(l):o.push({type:s.type,report:c})}return o.length?1===o.length?{errors:o[0].report}:u.unmatched(e,t):{errors:t("alternatives.types",{types:[...n]})}},u.unmatched=function(e,t){const r=[];for(const t of e)r.push(...t.reports);return{errors:t("alternatives.match",a.details(r,{override:!1}))}}},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(10),s=r(20),a=r(15),c=r(1),u=r(8),l=r(4),f=r(17),d=r(18),h=r(9),p=r(35),g=r(5),m=r(19),y=r(36),b=r(21),v={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new p.Ids,this._preferences=null,this._refs=new g.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return n("function"==typeof d.describe,"Manifest functionality disabled"),d.describe(this)}allow(...e){return c.verifyFlat(e,"allow"),this._values(e,"_valids")}alter(e){n(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),n(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const r in e){const o=e[r];n("function"==typeof o,"Alteration adjuster for",r,"must be a function"),t.$_terms.alterations.push({target:r,adjuster:o})}return t.$_temp.ruleset=!1,t}artifact(e){return n(void 0!==e,"Artifact cannot be undefined"),n(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return n(!1===e||"string"==typeof e,"Invalid to value"),n(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return n(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return n(e,"Missing error"),n(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e,t={}){return n(void 0!==e,"Missing example"),c.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(n(!t,"Cannot combine options with description"),t=e.description,e=e.method),n("function"==typeof e,"Method must be a function"),n(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(n("string"==typeof e,"id must be a non-empty string"),n(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(...e){return this._values(e,"_invalids")}label(e){return n(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return n(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(...e){n(e.length,"Missing notes");for(const t of e)n(t&&"string"==typeof t,"Notes must be non-empty strings");return this._inner("notes",e)}only(e=!0){return n("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){n(e,"Missing preferences"),n(void 0===e.context,"Cannot override context"),n(void 0===e.externals,"Cannot override externals"),n(void 0===e.warnings,"Cannot override warnings"),n(void 0===e.debug,"Cannot override debug"),c.checkPreferences(e);const t=this.clone();return t._preferences=c.preferences(t._preferences,e),t}presence(e){return n(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(e=!0){return this.$_setFlag("result",e?"raw":void 0)}result(e){return n(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),r=void 0!==e&&!e;return t._preferences=c.preferences(t._preferences,{convert:r}),t}strip(e=!0){return this.$_setFlag("result",e?"strip":void 0)}tag(...e){n(e.length,"Missing tags");for(const t of e)n(t&&"string"==typeof t,"Tags must be non-empty strings");return this._inner("tags",e)}unit(e){return n(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(...e){c.verifyFlat(e,"valid");const t=this.allow(...e);return t.$_setFlag("only",!!t._valids,{clone:!1}),t}when(e,t){const r=this.clone();r.$_terms.whens||(r.$_terms.whens=[]);const o=u.when(r,e,t);if(!["any","link"].includes(r.type)){const e=o.is?[o]:o.switch;for(const t of e)n(!t.then||"any"===t.then.type||t.then.type===r.type,"Cannot combine",r.type,"with",t.then&&t.then.type),n(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===r.type,"Cannot combine",r.type,"with",t.otherwise&&t.otherwise.type)}return r.$_terms.whens.push(o),r.$_mutateRebuild()}cache(e){n(!this._inRuleset(),"Cannot set caching inside a ruleset"),n(!this._cache,"Cannot override schema cache"),n(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");const t=this.clone();return t._cache=e||a.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){n(c.isSchema(e),"Invalid schema object"),n("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),n(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),n(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const r=e.clone();for(const e of Object.keys(t))"type"!==e&&(r[e]=t[e]);t=r}t._ids.concat(e._ids),t._refs.register(e,g.toSibling),t._preferences=t._preferences?c.preferences(t._preferences,e._preferences):e._preferences,t._valids=b.merge(t._valids,e._valids,e._invalids),t._invalids=b.merge(t._invalids,e._invalids,e._valids);for(const r of e._singleRules.keys())t._singleRules.has(r)&&(t._rules=t._rules.filter(e=>e.keep||e.name!==r),t._singleRules.delete(r));for(const r of e._rules)e._definition.rules[r.method].multi||t._singleRules.set(r.name,r),t._rules.push(r);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const r=Object.assign({},e._flags);delete r.empty,s(t._flags,r)}else s(t._flags,e._flags);for(const r in e.$_terms){const n=e.$_terms[r];n?t.$_terms[r]?t.$_terms[r]=t.$_terms[r].concat(n):t.$_terms[r]=n.slice():t.$_terms[r]||(t.$_terms[r]=n)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return n(!e.base,"Cannot extend type with another base"),f.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){n(!this._inRuleset(),"Cannot fork inside a ruleset");let r=this;for(let n of[].concat(e))n=Array.isArray(n)?n:n.split("."),r=r._ids.fork(n,t,r);return r.$_temp.ruleset=!1,r}rule(e){const t=this._definition;c.assertOptions(e,Object.keys(t.modifiers)),n(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const r=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;n(r>=0&&r<this._rules.length,"Cannot apply rules to empty ruleset");const i=this.clone();for(let s=r;s<i._rules.length;++s){const r=i._rules[s],a=o(r);for(const o in e)t.modifiers[o](a,e[o]),n(a.name===r.name,"Cannot change rule name");i._rules[s]=a,i._singleRules.get(a.name)===r&&i._singleRules.set(a.name,a)}return i.$_temp.ruleset=!1,i.$_mutateRebuild()}get ruleset(){n(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");const e=this.clone();return e.$_temp.ruleset=e._rules.length,e}get $(){return this.ruleset}tailor(e){e=[].concat(e),n(!this._inRuleset(),"Cannot tailor inside a ruleset");let t=this;if(this.$_terms.alterations)for(const{target:r,adjuster:o}of this.$_terms.alterations)e.includes(r)&&(t=o(t),n(c.isSchema(t),"Alteration adjuster for",r,"failed to return a schema object"));return t=t.$_modify({each:t=>t.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return m.location?m.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),n(e&&"object"==typeof e,"Invalid options"),n(e.name&&"string"==typeof e.name,"Invalid rule name");for(const t in e)n("_"!==t[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const r=this._definition.rules[t.method],o=t.args;n(r,"Unknown rule",t.method);const i=this.clone();if(o){n(1===Object.keys(o).length||Object.keys(o).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in o){let s=o[e];if(void 0!==s){if(r.argsByName){const a=r.argsByName.get(e);if(a.ref&&c.isResolvable(s))t._resolve.push(e),i.$_mutateRegister(s);else if(a.normalize&&(s=a.normalize(s),o[e]=s),a.assert){const t=c.validateArg(s,e,a);n(!t,t,"or reference")}}o[e]=s}else delete o[e]}}return r.multi||(i._ruleRemove(t.name,{clone:!1}),i._singleRules.set(t.name,t)),!1===i.$_temp.ruleset&&(i.$_temp.ruleset=null),r.priority?i._rules.unshift(t):i._rules.push(t),i}$_compile(e,t){return u.schema(this.$_root,e,t)}$_createError(e,t,r,n,o,i={}){const s=!1!==i.flags?this._flags:{},a=i.messages?h.merge(this._definition.messages,i.messages):this._definition.messages;return new l.Report(e,t,r,s,a,n,o)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,r,n){(r=Object.assign({},r)).abortEarly=!0,r._externals=!1,t.snapshot();const o=!y.validate(e,this,t,r,n).errors;return t.restore(),o}$_modify(e){return c.assertOptions(e,["each","once","ref","schema"]),p.schema(this,e)||this}$_mutateRebuild(){return n(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,{source:t,name:r,path:n,key:o})=>{const i=this._definition[t][r]&&this._definition[t][r].register;!1!==i&&this.$_mutateRegister(e,{family:i,key:o})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:r}={}){this._refs.register(e,t),this._ids.register(e,{key:r})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,r={}){n("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const o=this._definition.flags[e]||{};if(i(t,o.default)&&(t=void 0),i(t,this._flags[e]))return this;const s=!1!==r.clone?this.clone():this;return void 0!==t?(s._flags[e]=t,s.$_mutateRegister(t)):delete s._flags[e],"_"!==e[0]&&(s.$_temp.ruleset=!1),s}$_parent(e,...t){return this[e][c.symbols.parent].call(this,...t)}$_validate(e,t,r){return y.validate(e,this,t,r)}_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=o(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){const e=this.clone();e._reset();const t=e._definition.terms;for(const r in t){const n=t[r];e.$_terms[r]=n.init}return e.$_mutateRebuild()}_default(e,t,r={}){return c.assertOptions(r,"literal"),n(void 0!==t,"Missing",e,"value"),n("function"==typeof t||!r.literal,"Only function value supports literal option"),"function"==typeof t&&r.literal&&(t={[c.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,r){if(!this.$_terms.whens)return{schema:this};const n=[],o=[];for(let i=0;i<this.$_terms.whens.length;++i){const s=this.$_terms.whens[i];if(s.concat){n.push(s.concat),o.push("".concat(i,".concat"));continue}const a=s.ref?s.ref.resolve(e,t,r):e,c=s.is?[s]:s.switch,u=o.length;for(let u=0;u<c.length;++u){const{is:l,then:f,otherwise:d}=c[u],h="".concat(i).concat(s.switch?"."+u:"");if(l.$_match(a,t.nest(l,"".concat(h,".is")),r)){if(f){const i=t.localize([...t.path,"".concat(h,".then")],t.ancestors,t.schemas),{schema:s,id:a}=f._generate(e,i,r);n.push(s),o.push("".concat(h,".then").concat(a?"(".concat(a,")"):""));break}}else if(d){const i=t.localize([...t.path,"".concat(h,".otherwise")],t.ancestors,t.schemas),{schema:s,id:a}=d._generate(e,i,r);n.push(s),o.push("".concat(h,".otherwise").concat(a?"(".concat(a,")"):""));break}}if(s.break&&o.length>u)break}const i=o.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",i),!i)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[i])return{schema:this.$_temp.whens[i],id:i};let s=this;this._definition.generate&&(s=this._definition.generate(this,e,t,r));for(const e of n)s=s.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(s,[this,...n]),this.$_temp.whens[i]=s,{schema:s,id:i}}_inner(e,t,r={}){n(!this._inRuleset(),"Cannot set ".concat(e," inside a ruleset"));const o=this.clone();return o.$_terms[e]&&!r.override||(o.$_terms[e]=[]),r.single?o.$_terms[e].push(t):o.$_terms[e].push(...t),o.$_temp.ruleset=!1,o}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;const r=!1!==t.clone?this.clone():this;r._singleRules.delete(e);const n=[];for(let t=0;t<r._rules.length;++t){const o=r._rules[t];o.name!==e||o.keep?n.push(o):r._inRuleset()&&t<r.$_temp.ruleset&&--r.$_temp.ruleset}return r._rules=n,r}_values(e,t){c.verifyFlat(e,t.slice(1,-1));const r=this.clone(),o=e[0]===c.symbols.override;if(o&&(e=e.slice(1)),!r[t]&&e.length?r[t]=new b:o&&(r[t]=e.length?new b:null,r.$_mutateRebuild()),!r[t])return r;o&&r[t].override();for(const o of e){n(void 0!==o,"Cannot call allow/valid/invalid with undefined"),n(o!==c.symbols.override,"Override must be the first value");const e="_invalids"===t?"_valids":"_invalids";r[e]&&(r[e].remove(o),r[e].length||(n("_valids"===t||!r._flags.only,"Setting invalid value",o,"leaves schema rejecting all values due to previous valid rule"),r[e]=null)),r[t].add(o,r._refs)}return r}}};v.Base.prototype[c.symbols.any]={version:c.version,compile:u.compile,root:"$_root"},v.Base.prototype.isImmutable=!0,v.Base.prototype.deny=v.Base.prototype.invalid,v.Base.prototype.disallow=v.Base.prototype.invalid,v.Base.prototype.equal=v.Base.prototype.valid,v.Base.prototype.exist=v.Base.prototype.required,v.Base.prototype.not=v.Base.prototype.invalid,v.Base.prototype.options=v.Base.prototype.prefs,v.Base.prototype.preferences=v.Base.prototype.prefs,e.exports=new v.Base},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=r(0),a=r(1),c=r(5),u={};t.Ids=u.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new u.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,r]of e._byId.entries())s(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,r);for(const[t,r]of e._byKey.entries())s(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,r)}fork(e,t,r){const n=this._collect(e);n.push({schema:r});const o=n.shift();let i={id:o.id,schema:t(o.schema)};s(a.isSchema(i.schema),"adjuster function failed to return a joi schema type");for(const e of n)i={id:e.id,schema:u.fork(e.schema,i.id,i.schema)};return i.schema}labels(e,t=[]){const r=e[0],n=this._get(r);if(!n)return[...t,...e].join(".");const o=e.slice(1);return t=[...t,n.schema._flags.label||r],o.length?n.schema._ids.labels(o,t):t.join(".")}reach(e,t=[]){const r=e[0],n=this._get(r);s(n,"Schema does not contain path",[...t,...e].join("."));const o=e.slice(1);return o.length?n.schema._ids.reach(o,[...t,r]):n.schema}register(e,{key:t}={}){if(!e||!a.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const r=e._flags.id;if(r){const t=this._byId.get(r);s(!t||t.schema===e,"Cannot add different schemas with the same id:",r),s(!this._byKey.has(r),"Schema id conflicts with existing key:",r),this._byId.set(r,{schema:e,id:r})}t&&(s(!this._byKey.has(t),"Schema already contains key:",t),s(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,t=[],r=[]){const n=e[0],o=this._get(n);s(o,"Schema does not contain path",[...t,...e].join(".")),r=[o,...r];const i=e.slice(1);return i.length?o.schema._ids._collect(i,[...t,n],r):r}_get(e){return this._byId.get(e)||this._byKey.get(e)}},u.fork=function(e,r,n){const o=t.schema(e,{each:(e,{key:t})=>{if(r===(e._flags.id||t))return n},ref:!1});return o?o.$_mutateRebuild():e},t.schema=function(e,t){let r;for(const n in e._flags){if("_"===n[0])continue;const o=u.scan(e._flags[n],{source:"flags",name:n},t);void 0!==o&&(r=r||e.clone(),r._flags[n]=o)}for(let n=0;n<e._rules.length;++n){const o=e._rules[n],i=u.scan(o.args,{source:"rules",name:o.name},t);if(void 0!==i){r=r||e.clone();const t=Object.assign({},o);t.args=i,r._rules[n]=t,r._singleRules.get(o.name)===o&&r._singleRules.set(o.name,t)}}for(const n in e.$_terms){if("_"===n[0])continue;const o=u.scan(e.$_terms[n],{source:"terms",name:n},t);void 0!==o&&(r=r||e.clone(),r.$_terms[n]=o)}return r},u.scan=function(e,t,r,n,i){const s=n||[];if(null===e||"object"!=typeof e)return;let l;if(Array.isArray(e)){for(let n=0;n<e.length;++n){const o="terms"===t.source&&"keys"===t.name&&e[n].key,i=u.scan(e[n],t,r,[n,...s],o);void 0!==i&&(l=l||e.slice(),l[n]=i)}return l}if(!1!==r.schema&&a.isSchema(e)||!1!==r.ref&&c.isRef(e)){const n=r.each(e,o(o({},t),{},{path:s,key:i}));if(n===e)return;return n}for(const n in e){if("_"===n[0])continue;const o=u.scan(e[n],t,r,[n,...s],i);void 0!==o&&(l=l||Object.assign({},e),l[n]=o)}return l}},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(37),s=r(6),a=r(1),c=r(4),u=r(38),l={result:Symbol("result")};t.entry=function(e,t,r){let o=a.defaults;r&&(n(void 0===r.warnings,"Cannot override warnings preference in synchronous validation"),n(void 0===r.artifacts,"Cannot override artifacts preference in synchronous validation"),o=a.preferences(a.defaults,r));const i=l.entry(e,t,o);n(!i.mainstay.externals.length,"Schema with external rules must use validateAsync()");const s={value:i.value};return i.error&&(s.error=i.error),i.mainstay.warnings.length&&(s.warning=c.details(i.mainstay.warnings)),i.mainstay.debug&&(s.debug=i.mainstay.debug),i.mainstay.artifacts&&(s.artifacts=i.mainstay.artifacts),s},t.entryAsync=async function(e,t,r){let n=a.defaults;r&&(n=a.preferences(a.defaults,r));const o=l.entry(e,t,n),i=o.mainstay;if(o.error)throw i.debug&&(o.error.debug=i.debug),o.error;if(i.externals.length){let t=o.value;for(const{method:n,path:o,label:a}of i.externals){let i,c,u=t;o.length&&(i=o[o.length-1],c=s(t,o.slice(0,-1)),u=c[i]);try{const e=await n(u,{prefs:r});if(void 0===e||e===u)continue;c?c[i]=e:t=e}catch(e){throw e.message+=" (".concat(a,")"),e}}o.value=t}if(!n.warnings&&!n.debug&&!n.artifacts)return o.value;const u={value:o.value};return i.warnings.length&&(u.warning=c.details(i.warnings)),i.debug&&(u.debug=i.debug),i.artifacts&&(u.artifacts=i.artifacts),u},l.entry=function(e,r,n){const{tracer:o,cleanup:i}=l.tracer(r,n),s={externals:[],warnings:[],tracer:o,debug:n.debug?[]:null,links:r._ids._schemaChain?new Map:null},a=r._ids._schemaChain?[{schema:r}]:null,f=new u([],[],{mainstay:s,schemas:a}),d=t.validate(e,r,f,n);i&&r.$_root.untrace();const h=c.process(d.errors,e,n);return{value:d.value,error:h,mainstay:s}},l.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(n(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:l.ignore}},t.validate=function(e,t,r,n,o={}){if(t.$_terms.whens&&(t=t._generate(e,r,n).schema),t._preferences&&(n=l.prefs(t,n)),t._cache&&n.cache){const n=t._cache.get(e);if(r.mainstay.tracer.debug(r,"validate","cached",!!n),n)return n}const i=(o,i,s)=>t.$_createError(o,e,i,s||r,n),s={original:e,prefs:n,schema:t,state:r,error:i,errorsArray:l.errorsArray,warn:(e,t,n)=>r.mainstay.warnings.push(i(e,t,n)),message:(o,i)=>t.$_createError("custom",e,i,r,n,{messages:o})};r.mainstay.tracer.entry(t,r);const c=t._definition;if(c.prepare&&void 0!==e&&n.convert){const t=c.prepare(e,s);if(t){if(r.mainstay.tracer.value(r,"prepare",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),s);e=t.value}}if(c.coerce&&void 0!==e&&n.convert&&(!c.coerce.from||c.coerce.from.includes(typeof e))){const t=c.coerce.method(e,s);if(t){if(r.mainstay.tracer.value(r,"coerced",e,t.value),t.errors)return l.finalize(t.value,[].concat(t.errors),s);e=t.value}}const u=t._flags.empty;u&&u.$_match(l.trim(e,t),r.nest(u),a.defaults)&&(r.mainstay.tracer.value(r,"empty",e,void 0),e=void 0);const f=o.presence||t._flags.presence||(t._flags._endedSwitch?null:n.presence);if(void 0===e){if("forbidden"===f)return l.finalize(e,null,s);if("required"===f)return l.finalize(e,[t.$_createError("any.required",e,null,r,n)],s);if("optional"===f){if(t._flags.default!==a.symbols.deepDefault)return l.finalize(e,null,s);r.mainstay.tracer.value(r,"default",e,{}),e={}}}else if("forbidden"===f)return l.finalize(e,[t.$_createError("any.unknown",e,null,r,n)],s);const d=[];if(t._valids){const o=t._valids.get(e,r,n,t._flags.insensitive);if(o)return n.convert&&(r.mainstay.tracer.value(r,"valids",e,o.value),e=o.value),r.mainstay.tracer.filter(t,r,"valid",o),l.finalize(e,null,s);if(t._flags.only){const o=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[o],s);d.push(o)}}if(t._invalids){const o=t._invalids.get(e,r,n,t._flags.insensitive);if(o){r.mainstay.tracer.filter(t,r,"invalid",o);const i=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},r,n);if(n.abortEarly)return l.finalize(e,[i],s);d.push(i)}}if(c.validate){const t=c.validate(e,s);if(t&&(r.mainstay.tracer.value(r,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return d.push(t.errors),l.finalize(e,d,s);if(t.errors.length)return d.push(...t.errors),l.finalize(e,d,s)}}return t._rules.length?l.rules(e,d,s):l.finalize(e,d,s)},l.rules=function(e,t,r){const{schema:n,state:o,prefs:i}=r;for(const s of n._rules){const c=n._definition.rules[s.method];if(c.convert&&i.convert){o.mainstay.tracer.log(n,o,"rule",s.name,"full");continue}let u,f=s.args;if(s._resolve.length){f=Object.assign({},f);for(const t of s._resolve){const r=c.argsByName.get(t),s=f[t].resolve(e,o,i),l=r.normalize?r.normalize(s):s,d=a.validateArg(l,null,r);if(d){u=n.$_createError("any.ref",s,{arg:t,ref:f[t],reason:d},o,i);break}f[t]=l}}u=u||c.validate(e,r,f,s);const d=l.rule(u,s);if(d.errors){if(o.mainstay.tracer.log(n,o,"rule",s.name,"error"),s.warn){o.mainstay.warnings.push(...d.errors);continue}if(i.abortEarly)return l.finalize(e,d.errors,r);t.push(...d.errors)}else o.mainstay.tracer.log(n,o,"rule",s.name,"pass"),o.mainstay.tracer.value(o,"rule",e,d.value,s.name),e=d.value}return l.finalize(e,t,r)},l.rule=function(e,t){return e instanceof c.Report?(l.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[a.symbols.errors]?(e.forEach(e=>l.error(e,t)),{errors:e,value:null}):{errors:null,value:e}},l.error=function(e,t){return t.message&&e._setTemplate(t.message),e},l.finalize=function(e,t,r){t=t||[];const{schema:o,state:i,prefs:s}=r;if(t.length){const n=l.default("failover",void 0,t,r);void 0!==n&&(i.mainstay.tracer.value(i,"failover",e,n),e=n,t=[])}if(t.length&&o._flags.error)if("function"==typeof o._flags.error){t=o._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)n(e instanceof Error||e instanceof c.Report,"error() must return an Error object")}else t=[o._flags.error];if(void 0===e){const n=l.default("default",e,t,r);i.mainstay.tracer.value(i,"default",e,n),e=n}if(o._flags.cast&&void 0!==e){const t=o._definition.cast[o._flags.cast];if(t.from(e)){const n=t.to(e,r);i.mainstay.tracer.value(i,"cast",e,n,o._flags.cast),e=n}}if(o.$_terms.externals&&s.externals&&!1!==s._externals)for(const{method:e}of o.$_terms.externals)i.mainstay.externals.push({method:e,path:i.path,label:c.label(o._flags,i,s)});const a={value:e,errors:t.length?t:null};return o._flags.result&&(a.value="strip"===o._flags.result?void 0:r.original,i.mainstay.tracer.value(i,o._flags.result,e,a.value),i.shadow(e,o._flags.result)),o._cache&&!1!==s.cache&&!o._refs.length&&o._cache.set(r.original,a),void 0===e||a.errors||void 0===o._flags.artifact||(i.mainstay.artifacts=i.mainstay.artifacts||new Map,i.mainstay.artifacts.has(o._flags.artifact)||i.mainstay.artifacts.set(o._flags.artifact,[]),i.mainstay.artifacts.get(o._flags.artifact).push(i.path)),a},l.prefs=function(e,t){const r=t===a.defaults;return r&&e._preferences[a.symbols.prefs]?e._preferences[a.symbols.prefs]:(t=a.preferences(t,e._preferences),r&&(e._preferences[a.symbols.prefs]=t),t)},l.default=function(e,t,r,n){const{schema:i,state:s,prefs:c}=n,u=i._flags[e];if(c.noDefaults||void 0===u)return t;if(s.mainstay.tracer.log(i,s,"rule",e,"full"),!u)return u;if("function"==typeof u){const a=u.length?[o(s.ancestors[0]),n]:[];try{return u(...a)}catch(t){return void r.push(i.$_createError("any.".concat(e),null,{error:t},s,c))}}return"object"!=typeof u?u:u[a.symbols.literal]?u.literal:a.isResolvable(u)?u.resolve(t,s,c):o(u)},l.trim=function(e,t){if("string"!=typeof e)return e;const r=t.$_getRule("trim");return r&&r.args.enabled?e.trim():e},l.ignore={active:!1,debug:i,entry:i,filter:i,log:i,resolve:i,value:i},l.errorsArray=function(){const e=[];return e[a.symbols.errors]=!0,e}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";const n=r(2),o=r(6),i=r(1),s={value:Symbol("value")};e.exports=s.State=class{constructor(e,t,r){this.path=e,this.ancestors=t,this.mainstay=r.mainstay,this.schemas=r.schemas,this.debug=null}localize(e,t=null,r=null){const n=new s.State(e,t,this);return r&&n.schemas&&(n.schemas=[s.schemas(r),...n.schemas]),n}nest(e,t){const r=new s.State(this.path,this.ancestors,this);return r.schemas=r.schemas&&[s.schemas(e),...r.schemas],r.debug=t,r}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new s.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=n(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},s.schemas=function(e){return i.isSchema(e)?{schema:e}:e},s.Shadow=class{constructor(){this._values=null}set(e,t,r){if(!e.length)return;if("strip"===r&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let n=this._values;for(let t=0;t<e.length;++t){const r=e[t];let o=n.get(r);o||(o=new Map,n.set(r,o)),n=o}n[s.value]=t}get(e){const t=this.node(e);if(t)return t[s.value]}node(e){if(this._values)return o(this._values,e,{iterables:!0})}override(e,t){if(!this._values)return;const r=e.slice(0,-1),n=e[e.length-1],i=o(this._values,r,{iterables:!0});t?i.set(n,t):i&&i.delete(n)}}},function(e,t,r){"use strict";const n=r(0),o=r(10),i=r(6),s=r(3),a=r(1),c=r(8),u={};e.exports=s.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,{schema:t,state:r,prefs:n}){if(!Array.isArray(e))return;const o=t.$_getRule("sort");return o?u.sort(t,e,o.args.options,r,n):void 0}},validate(e,{schema:t,error:r}){if(!Array.isArray(e)){if(t._flags.single){const t=[e];return t[a.symbols.arraySingle]=!0,{value:t}}return{errors:r("array.base")}}if(t.$_getRule("items")||t.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:r,error:n},{schema:o}){const i=[e,...t.ancestors];for(let n=0;n<e.length;++n){const s=t.localize([...t.path,n],i,o);if(o.$_match(e[n],s,r))return e}const s=o._flags.label;return s?n("array.hasKnown",{patternLabel:s}):n("array.hasUnknown",null)},multi:!0},items:{method(...e){a.verifyFlat(e,"items");const t=this.$_addRule("items");for(let r=0;r<e.length;++r){const n=a.tryWithPath(()=>this.$_compile(e[r]),r,{append:!0});t.$_terms.items.push(n)}return t.$_mutateRebuild()},validate(e,{schema:t,error:r,state:n,prefs:o,errorsArray:i}){const s=t.$_terms._requireds.slice(),c=t.$_terms.ordered.slice(),l=[...t.$_terms._inclusions,...s],f=!e[a.symbols.arraySingle];delete e[a.symbols.arraySingle];const d=i();let h=e.length;for(let i=0;i<h;++i){const a=e[i];let p=!1,g=!1;const m=f?i:new Number(i),y=[...n.path,m];if(!t._flags.sparse&&void 0===a){if(d.push(r("array.sparse",{key:m,path:y,pos:i,value:void 0},n.localize(y))),o.abortEarly)return d;c.shift();continue}const b=[e,...n.ancestors];for(const e of t.$_terms._exclusions)if(e.$_match(a,n.localize(y,b,e),o,{presence:"ignore"})){if(d.push(r("array.excludes",{pos:i,value:a},n.localize(y))),o.abortEarly)return d;p=!0,c.shift();break}if(p)continue;if(t.$_terms.ordered.length){if(c.length){const s=c.shift(),l=s.$_validate(a,n.localize(y,b,s),o);if(l.errors){if(d.push(...l.errors),o.abortEarly)return d}else if("strip"===s._flags.result)u.fastSplice(e,i),--i,--h;else{if(!t._flags.sparse&&void 0===l.value){if(d.push(r("array.sparse",{key:m,path:y,pos:i,value:void 0},n.localize(y))),o.abortEarly)return d;continue}e[i]=l.value}continue}if(!t.$_terms.items.length){if(d.push(r("array.orderedLength",{pos:i,limit:t.$_terms.ordered.length})),o.abortEarly)return d;break}}const v=[];let w=s.length;for(let c=0;c<w;++c){const l=n.localize(y,b,s[c]);l.snapshot();const f=s[c].$_validate(a,l,o);if(v[c]=f,!f.errors){if(e[i]=f.value,g=!0,u.fastSplice(s,c),--c,--w,!t._flags.sparse&&void 0===f.value&&(d.push(r("array.sparse",{key:m,path:y,pos:i,value:void 0},n.localize(y))),o.abortEarly))return d;break}l.restore()}if(g)continue;const _=o.stripUnknown&&!!o.stripUnknown.arrays||!1;w=l.length;for(const c of l){let l;const f=s.indexOf(c);if(-1!==f)l=v[f];else{const s=n.localize(y,b,c);if(s.snapshot(),l=c.$_validate(a,s,o),!l.errors){"strip"===c._flags.result?(u.fastSplice(e,i),--i,--h):t._flags.sparse||void 0!==l.value?e[i]=l.value:(d.push(r("array.sparse",{key:m,path:y,pos:i,value:void 0},n.localize(y))),p=!0),g=!0;break}s.restore()}if(1===w){if(_){u.fastSplice(e,i),--i,--h,g=!0;break}if(d.push(...l.errors),o.abortEarly)return d;p=!0;break}}if(!p&&t.$_terms._inclusions.length&&!g){if(_){u.fastSplice(e,i),--i,--h;continue}if(d.push(r("array.includes",{pos:i,value:a},n.localize(y))),o.abortEarly)return d}}return s.length&&u.fillMissedErrors(t,d,s,e,n,o),c.length&&u.fillOrderedErrors(t,d,c,e,n,o),d.length?d:e},priority:!0,manifest:!1},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:r},{name:n,operator:o,args:i})=>a.compare(e.length,r,o)?e:t.error("array."+n,{limit:i.limit,value:e}),args:[{name:"limit",ref:!0,assert:a.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},ordered:{method(...e){a.verifyFlat(e,"ordered");const t=this.$_addRule("items");for(let r=0;r<e.length;++r){const n=a.tryWithPath(()=>this.$_compile(e[r]),r,{append:!0});u.validateSingle(n,t),t.$_mutateRegister(n),t.$_terms.ordered.push(n)}return t.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return n(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(e={}){a.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=c.ref(e.by,{ancestor:0}),n(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,{error:t,state:r,prefs:n,schema:o},{options:i}){const{value:s,errors:a}=u.sort(o,e,i,r,n);if(a)return a;for(let r=0;r<e.length;++r)if(e[r]!==s[r])return t("array.sort",{order:i.order,by:i.by?i.by.key:"value"});return e},convert:!0},sparse:{method(e){const t=void 0===e||!!e;return this._flags.sparse===t?this:(t?this.clone():this.$_addRule("items")).$_setFlag("sparse",t,{clone:!1})}},unique:{method(e,t={}){n(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),a.assertOptions(t,["ignoreUndefined","separator"]);const r={name:"unique",args:{options:t,comparator:e}};if(e)if("string"==typeof e){const n=a.default(t.separator,".");r.path=n?e.split(n):[e]}else r.comparator=e;return this.$_addRule(r)},validate(e,{state:t,error:r,schema:s},{comparator:a,options:c},{comparator:u,path:l}){const f={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},d=u||o,h=c.ignoreUndefined;for(let o=0;o<e.length;++o){const s=l?i(e[o],l):e[o],c=u?f.custom:f[typeof s];if(n(c,"Failed to find unique map container for type",typeof s),c instanceof Map){const n=c.entries();let i;for(;!(i=n.next()).done;)if(d(i.value[0],s)){const n=t.localize([...t.path,o],[e,...t.ancestors]),s={pos:o,value:e[o],dupePos:i.value[1],dupeValue:e[i.value[1]]};return l&&(s.path=a),r("array.unique",s,n)}c.set(s,o)}else{if((!h||void 0!==s)&&void 0!==c[s]){const n={pos:o,value:e[o],dupePos:c[s],dupeValue:e[c[s]]};return l&&(n.path=a),r("array.unique",n,t.localize([...t.path,o],[e,...t.ancestors]))}c[s]=o}}return e},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(e,t)=>new Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)u.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)u.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),u.fillMissedErrors=function(e,t,r,n,o,i){const s=[];let a=0;for(const e of r){const t=e._flags.label;t?s.push(t):++a}s.length?a?t.push(e.$_createError("array.includesRequiredBoth",n,{knownMisses:s,unknownMisses:a},o,i)):t.push(e.$_createError("array.includesRequiredKnowns",n,{knownMisses:s},o,i)):t.push(e.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:a},o,i))},u.fillOrderedErrors=function(e,t,r,n,o,i){const s=[];for(const e of r)"required"===e._flags.presence&&s.push(e);s.length&&u.fillMissedErrors(e,t,s,n,o,i)},u.fastSplice=function(e,t){let r=t;for(;r<e.length;)e[r++]=e[r];--e.length},u.validateSingle=function(e,t){("array"===e.type||e._flags._arrayItems)&&(n(!t._flags.single,"Cannot specify array item with single rule enabled"),t.$_setFlag("_arrayItems",!0,{clone:!1}))},u.sort=function(e,t,r,n,o){const i="ascending"===r.order?1:-1,s=-1*i,a=i,c=(c,l)=>{let f=u.compare(c,l,s,a);if(null!==f)return f;if(r.by&&(c=r.by.resolve(c,n,o),l=r.by.resolve(l,n,o)),f=u.compare(c,l,s,a),null!==f)return f;const d=typeof c;if(d!==typeof l)throw e.$_createError("array.sort.mismatching",t,null,n,o);if("number"!==d&&"string"!==d)throw e.$_createError("array.sort.unsupported",t,{type:d},n,o);return"number"===d?(c-l)*i:c<l?s:a};try{return{value:t.slice().sort(c)}}catch(e){return{errors:e}}},u.compare=function(e,t,r,n){return e===t?0:void 0===e?1:void 0===t?-1:null===e?n:null===t?r:null}},function(e,t,r){"use strict";const n=r(0),o=r(3),i=r(1),s=r(21),a={isBool:function(e){return"boolean"==typeof e}};e.exports=o.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,{schema:t}){if("boolean"!=typeof e){if("string"==typeof e){const r=t._flags.sensitive?e:e.toLowerCase();e="true"===r||"false"!==r&&e}return"boolean"!=typeof e&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(!t.$_terms.falsy||!t.$_terms.falsy.has(e,null,null,!t._flags.sensitive))&&e),{value:e}}},validate(e,{error:t}){if("boolean"!=typeof e)return{value:e,errors:t("boolean.base")}},rules:{truthy:{method(...e){i.verifyFlat(e,"truthy");const t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new s;for(let r=0;r<e.length;++r){const o=e[r];n(void 0!==o,"Cannot call truthy with undefined"),t.$_terms.truthy.add(o)}return t}},falsy:{method(...e){i.verifyFlat(e,"falsy");const t=this.clone();t.$_terms.falsy=t.$_terms.falsy||new s;for(let r=0;r<e.length;++r){const o=e[r];n(void 0!==o,"Cannot call falsy with undefined"),t.$_terms.falsy.add(o)}return t}},sensitive:{method(e=!0){return this.$_setFlag("sensitive",e)}}},cast:{number:{from:a.isBool,to:(e,t)=>e?1:0},string:{from:a.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},function(e,t,r){"use strict";const n=r(0),o=r(3),i=r(1),s=r(7),a={isDate:function(e){return e instanceof Date}};e.exports=o.extend({type:"date",coerce:{from:["number","string"],method:(e,{schema:t})=>({value:a.parse(e,t._flags.format)||e})},validate(e,{schema:t,error:r,prefs:n}){if(e instanceof Date&&!isNaN(e.getTime()))return;const o=t._flags.format;return n.convert&&o&&"string"==typeof e?{value:e,errors:r("date.format",{format:o})}:{value:e,errors:r("date.base")}},rules:{compare:{method:!1,validate(e,t,{date:r},{name:n,operator:o,args:s}){const a="now"===r?Date.now():r.getTime();return i.compare(e.getTime(),a,o)?e:t.error("date."+n,{limit:s.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:a.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return n(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(e="javascript"){return n(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:a.isDate,to:(e,t)=>e.getTime()},string:{from:a.isDate,to:(e,{prefs:t})=>s.date(e,t)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),a.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return i.isIsoDate(e)?a.date(e.toString()):null;const r=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return a.date(1*e);if("unix"===t)return a.date(1e3*e);if("string"==typeof r)return null}return a.date(e)},a.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},function(e,t,r){"use strict";const n=r(0),o=r(22);e.exports=o.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate:(e,t,{n:r})=>e.length===r?e:t.error("function.arity",{n:r})},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return n(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length>=r?e:t.error("function.minArity",{n:r})},maxArity:{method(e){return n(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate:(e,t,{n:r})=>e.length<=r?e:t.error("function.maxArity",{n:r})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},function(e,t,r){"use strict";const n=r(0),o=r(2),i=r(20),s=r(6),a={};e.exports=function(e,t,r={}){if(n(e&&"object"==typeof e,"Invalid defaults value: must be an object"),n(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),n("object"==typeof r,"Invalid options: must be an object"),!t)return null;if(r.shallow)return a.applyToDefaultsWithShallow(e,t,r);const s=o(e);if(!0===t)return s;const c=void 0!==r.nullOverride&&r.nullOverride;return i(s,t,{nullOverride:c,mergeArrays:!1})},a.applyToDefaultsWithShallow=function(e,t,r){const c=r.shallow;n(Array.isArray(c),"Invalid keys");const u=new Map,l=!0===t?null:new Set;for(let r of c){r=Array.isArray(r)?r:r.split(".");const n=s(e,r);n&&"object"==typeof n?u.set(n,l&&s(t,r)||n):l&&l.add(r)}const f=o(e,{},u);if(!l)return f;for(const e of l)a.reachCopy(f,t,e);return i(f,t,{mergeArrays:!1,nullOverride:!1})},a.reachCopy=function(e,t,r){for(const e of r){if(!(e in t))return;t=t[e]}const n=t;let o=e;for(let e=0;e<r.length-1;++e){const t=r[e];"object"!=typeof o[t]&&(o[t]={}),o=o[t]}o[r[r.length-1]]=n}},function(e,t,r){"use strict";const n=r(0),o={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const r=[].concat((t=t||{}).before||[]),o=[].concat(t.after||[]),i=t.group||"?",s=t.sort||0;n(!r.includes(i),"Item cannot come before itself: ".concat(i)),n(!r.includes("?"),"Item cannot come before unassociated items"),n(!o.includes(i),"Item cannot come after itself: ".concat(i)),n(!o.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const t of e){const e={seq:this._items.length,sort:s,before:r,after:o,group:i,node:t};this._items.push(e)}const a=this._sort();return n(a,"item","?"!==i?"added into group ".concat(i):"","created a dependencies error"),this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const t of e)if(t)for(const e of t._items)this._items.push(Object.assign({},e));this._items.sort(o.mergeSort);for(let e=0;e<this._items.length;++e)this._items[e].seq=e;const t=this._sort();return n(t,"merge created a dependencies error"),this.nodes}_sort(){const e={},t=Object.create(null),r=Object.create(null);for(const n of this._items){const o=n.seq,i=n.group;r[i]=r[i]||[],r[i].push(o),e[o]=n.before;for(const e of n.after)t[e]=t[e]||[],t[e].push(o)}for(const t in e){const n=[];for(const o in e[t]){const i=e[t][o];r[i]=r[i]||[],n.push(...r[i])}e[t]=n}for(const n in t)if(r[n])for(const o of r[n])e[o].push(...t[n]);const n={};for(const t in e){const r=e[t];for(const e of r)n[e]=n[e]||[],n[e].push(t)}const o={},i=[];for(let e=0;e<this._items.length;++e){let t=e;if(n[e]){t=null;for(let e=0;e<this._items.length;++e){if(!0===o[e])continue;n[e]||(n[e]=[]);const r=n[e].length;let i=0;for(let t=0;t<r;++t)o[n[e][t]]&&++i;if(i===r){t=e;break}}}null!==t&&(o[t]=!0,i.push(t))}if(i.length!==this._items.length)return!1;const s={};for(const e of this._items)s[e.seq]=e;this._items=[],this.nodes=[];for(const e of i){const t=s[e];this.nodes.push(t.node),this._items.push(t)}return!0}},o.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1},function(e,t,r){"use strict";const n=r(0),o=r(3),i=r(1),s=r(8),a=r(4),c={};e.exports=o.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,{schema:t,state:r,prefs:o}){n(t.$_terms.link,"Uninitialized link schema");const i=c.generate(t,e,r,o),s=t.$_terms.link[0].ref;return i.$_validate(e,r.nest(i,"link:".concat(s.display,":").concat(i.type)),o)},generate:(e,t,r,n)=>c.generate(e,t,r,n),rules:{ref:{method(e){n(!this.$_terms.link,"Cannot reinitialize schema"),e=s.ref(e),n("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),n("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag("relative",e)}}},overrides:{concat(e){n(this.$_terms.link,"Uninitialized link schema"),n(i.isSchema(e),"Invalid schema object"),n("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(n(t.link,"Invalid link description missing link"),e.ref(t.link))}}),c.generate=function(e,t,r,n){let o=r.mainstay.links.get(e);if(o)return o._generate(t,r,n).schema;const i=e.$_terms.link[0].ref,{perspective:s,path:a}=c.perspective(i,r);c.assert(s,"which is outside of schema boundaries",i,e,r,n);try{o=a.length?s.$_reach(a):s}catch(t){c.assert(!1,"to non-existing schema",i,e,r,n)}return c.assert("link"!==o.type,"which is another link",i,e,r,n),e._flags.relative||r.mainstay.links.set(e,o),o._generate(t,r,n).schema},c.perspective=function(e,t){if("local"===e.type){for(const{schema:r,key:n}of t.schemas){if((r._flags.id||n)===e.path[0])return{perspective:r,path:e.path.slice(1)};if(r.$_terms.shared)for(const t of r.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},c.assert=function(e,t,r,o,i,s){e||n(!1,'"'.concat(a.label(o._flags,i,s),'" contains link reference "').concat(r.display,'" ').concat(t))}},function(e,t,r){"use strict";const n=r(0),o=r(3),i=r(1),s={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/};e.exports=o.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,{schema:t,error:r}){const n=e.match(s.numberRx);if(!n)return;e=e.trim();const o={value:parseFloat(e)};if(0===o.value&&(o.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(s.normalizeExponent("".concat(o.value/Math.pow(10,n[1]),"e").concat(n[1]))!==s.normalizeExponent(e))return o.errors=r("number.unsafe"),o}else{const t=o.value.toString();if(t.match(/e/i))return o;if(t!==s.normalizeDecimal(e))return o.errors=r("number.unsafe"),o}return o}},validate(e,{schema:t,error:r,prefs:n}){if(e===1/0||e===-1/0)return{value:e,errors:r("number.infinity")};if(!i.isNumber(e))return{value:e,errors:r("number.base")};const o={value:e};if(n.convert){const e=t.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);o.value=Math.round(o.value*t)/t}}return 0===o.value&&(o.value=0),!t._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(o.errors=r("number.unsafe")),o},rules:{compare:{method:!1,validate:(e,t,{limit:r},{name:n,operator:o,args:s})=>i.compare(e,r,o)?e:t.error("number."+n,{limit:s.limit,value:e}),args:[{name:"limit",ref:!0,assert:i.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate:(e,t,{base:r},n)=>e%r==0?e:t.error("number.multiple",{multiple:n.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return n(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,{limit:r}){const n=e.toString().match(s.precisionRx);return Math.max((n[1]?n[1].length:0)-(n[2]?parseInt(n[2],10):0),0)<=r?e:t.error("number.precision",{limit:r,value:e})},convert:!0},sign:{method(e){return n(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate:(e,t,{sign:r})=>"negative"===r&&e<0||"positive"===r&&e>0?e:t.error("number.".concat(r))},unsafe:{method(e=!0){return n("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),s.normalizeExponent=function(e){return e.replace(/E/,"e").replace(/\.(\d*[1-9])?0+e/,".$1e").replace(/\.e/,"e").replace(/e\+/,"e").replace(/^\+/,"").replace(/^(-?)0+([1-9])/,"$1$2")},s.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},function(e,t,r){"use strict";const n=r(22);e.exports=n.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=r(0),a=r(23),c=r(49),u=r(50),l=r(27),f=r(51),d=r(26),h=r(3),p=r(1),g={tlds:f instanceof Set&&{tlds:{allow:f,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:u.regex().regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=h.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,{schema:t,state:r,prefs:n}){const o=t.$_getRule("normalize");o&&(e=e.normalize(o.args.form));const i=t.$_getRule("case");i&&(e="upper"===i.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const s=t.$_getRule("trim");if(s&&s.args.enabled&&(e=e.trim()),t.$_terms.replacements)for(const r of t.$_terms.replacements)e=e.replace(r.pattern,r.replacement);const a=t.$_getRule("hex");if(a&&a.args.options.byteAligned&&e.length%2!=0&&(e="0".concat(e)),t.$_getRule("isoDate")){const t=g.isoDate(e);t&&(e=t)}if(t._flags.truncate){const o=t.$_getRule("max");if(o){let i=o.args.limit;if(p.isResolvable(i)&&(i=i.resolve(e,r,n),!p.limit(i)))return{value:e,errors:t.$_createError("any.ref",i,{ref:o.args.limit,arg:"limit",reason:"must be a positive integer"},r,n)};e=e.slice(0,i)}}return{value:e}}},validate:(e,{error:t})=>"string"!=typeof e?{value:e,errors:t("string.base")}:""===e?{value:e,errors:t("string.empty")}:void 0,rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(e={}){return p.assertOptions(e,["paddingRequired","urlSafe"]),e=o({urlSafe:!1,paddingRequired:!0},e),s("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),s("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate:(e,t,{options:r})=>g.base64Regex[r.paddingRequired][r.urlSafe].test(e)?e:t.error("string.base64")},case:{method(e){return s(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate:(e,t,{direction:r})=>"lower"===r&&e===e.toLocaleLowerCase()||"upper"===r&&e===e.toLocaleUpperCase()?e:t.error("string.".concat(r,"case")),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let r=e.length,n=0,o=1;for(;r--;){const t=e.charAt(r)*o;n+=t-9*(t>9),o^=3}return n>0&&n%10==0?e:t.error("string.creditCard")}},dataUri:{method(e={}){return p.assertOptions(e,["paddingRequired"]),e=o({paddingRequired:!0},e),s("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,{options:r}){const n=e.match(g.dataUriRegex);if(n){if(!n[2])return e;if("base64"!==n[2])return e;if(g.base64Regex[r.paddingRequired].false.test(n[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&p.assertOptions(e,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=g.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate:(e,t,r,{address:n})=>a.isValid(e,n)?e:t.error("string.domain")},email:{method(e={}){p.assertOptions(e,["allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),s(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=g.addressOptions(e),r=new RegExp("\\s*[".concat(e.separator?l(e.separator):",","]\\s*"));return this.$_addRule({name:"email",args:{options:e},regex:r,address:t})},validate(e,t,{options:r},{regex:n,address:o}){const i=r.multiple?e.split(n):[e],s=[];for(const e of i)c.isValid(e,o)||s.push(e);return s.length?t.error("string.email",{value:e,invalids:s}):e}},guid:{alias:"uuid",method(e={}){p.assertOptions(e,["version","separator"]);let t="";if(e.version){const r=[].concat(e.version);s(r.length>=1,"version must have at least 1 valid version specified");const n=new Set;for(let e=0;e<r.length;++e){const o=r[e];s("string"==typeof o,"version at position "+e+" must be a string");const i=g.guidVersions[o.toLowerCase()];s(i,"version at position "+e+" must be one of "+Object.keys(g.guidVersions).join(", ")),s(!n.has(i),"version at position "+e+" must not be a duplicate"),t+=i,n.add(i)}}s(g.guidSeparators.has(e.separator),'separator must be one of true, false, "-", or ":"');const r=void 0===e.separator?"[:-]?":!0===e.separator?"[:-]":!1===e.separator?"[]?":"\\".concat(e.separator),n=new RegExp("^([\\[{\\(]?)[0-9A-F]{8}(".concat(r,")[0-9A-F]{4}\\2?[").concat(t||"0-9A-F","][0-9A-F]{3}\\2?[").concat(t?"89AB":"0-9A-F","][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$"),"i");return this.$_addRule({name:"guid",args:{options:e},regex:n})},validate(e,t,r,{regex:n}){const o=n.exec(e);return o?g.guidBrackets[o[1]]!==o[o.length-1]?t.error("string.guid"):e:t.error("string.guid")}},hex:{method(e={}){return p.assertOptions(e,["byteAligned"]),e=o({byteAligned:!1},e),s("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate:(e,t,{options:r})=>g.hexRegex.test(e)?r.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>a.isValid(e,{minDomainSegments:1})||g.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(e={}){p.assertOptions(e,["cidr","version"]);const{cidr:t,versions:r,regex:n}=u.regex(e),o=e.version?r:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:o}},regex:n})},validate:(e,t,{options:r},{regex:n})=>n.test(e)?e:r.version?t.error("string.ipVersion",{value:e,cidr:r.cidr,version:r.version}):t.error("string.ip",{value:e,cidr:r.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(e,{error:t})=>g.isoDate(e)?e:t("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>g.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return g.length(this,"length",e,"=",t)},validate(e,t,{limit:r,encoding:n},{name:o,operator:i,args:s}){const a=!n&&e.length;return p.compare(a,r,i)?e:t.error("string."+o,{limit:s.limit,value:e,encoding:n})},args:[{name:"limit",ref:!0,assert:p.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return g.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return g.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(e="NFC"){return s(g.normalizationForms.includes(e),"normalization form must be one of "+g.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate:(e,{error:t},{form:r})=>e===e.normalize(r)?e:t("string.normalize",{value:e,form:r}),convert:!0},pattern:{alias:"regex",method(e,t={}){s(e instanceof RegExp,"regex must be a RegExp"),s(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),p.assertOptions(t,["invert","name"]);const r=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:r})},validate:(e,t,{regex:r,options:n},{errorCode:o})=>r.test(e)^n.invert?e:t.error(o,{name:n.name,regex:r,value:e}),args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(l(e),"g")),s(e instanceof RegExp,"pattern must be a RegExp"),s("string"==typeof t,"replacement must be a String");const r=this.clone();return r.$_terms.replacements||(r.$_terms.replacements=[]),r.$_terms.replacements.push({pattern:e,replacement:t}),r}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(e=!0){return s("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate:(e,t,{enabled:r})=>r&&e!==e.trim()?t.error("string.trim"):e,convert:!0},truncate:{method(e=!0){return s("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(e={}){p.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&p.assertOptions(e.domain,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:r}=d.regex(e),n=e.domain?g.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:n,scheme:r})},validate(e,t,{options:r},{regex:n,domain:o,scheme:i}){if(["http:/","https:/"].includes(e))return t.error("string.uri");const s=n.exec(e);if(s){if(o){const e=s[1]||s[2];if(!a.isValid(e,o))return t.error("string.domain",{value:e})}return e}return r.relativeOnly?t.error("string.uriRelativeOnly"):r.scheme?t.error("string.uriCustomScheme",{scheme:i,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:r,replacement:n}of t.replacements)e=e.replace(r,n);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),g.addressOptions=function(e){if(!e)return e;if(s(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),s(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return s(g.tlds,"Built-in TLD list disabled"),Object.assign({},e,g.tlds);s("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),s(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),s(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),g.validateTlds(e.tlds.deny,"tlds.deny"),e;const r=e.tlds.allow;return r?!0===r?(s(g.tlds,"Built-in TLD list disabled"),Object.assign({},e,g.tlds)):(Array.isArray(r)&&(e=Object.assign({},e,{tlds:{allow:new Set(r)}})),s(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),g.validateTlds(e.tlds.allow,"tlds.allow"),e):e},g.validateTlds=function(e,t){for(const r of e)s(a.isValid(r,{minDomainSegments:1,maxDomainSegments:1}),"".concat(t," must contain valid top level domain names"))},g.isoDate=function(e){if(!p.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},g.length=function(e,t,r,n,o){return s(!o||!1,"Invalid encoding:",o),e.$_addRule({name:t,method:"length",args:{limit:r,encoding:o},operator:n})}},function(e,t,r){"use strict";const n=r(24),o=r(23),i=r(25),s={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(n.TextEncoder||TextEncoder)};t.analyze=function(e,t){return s.email(e,t)},t.isValid=function(e,t){return!s.email(e,t)},s.email=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return i.code("EMPTY_STRING");const r=!s.nonAsciiRx.test(e);if(!r){if(!1===t.allowUnicode)return i.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const n=e.split("@");if(2!==n.length)return n.length>2?i.code("MULTIPLE_AT_CHAR"):i.code("MISSING_AT_CHAR");const[a,c]=n;if(!a)return i.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return i.code("ADDRESS_TOO_LONG");if(s.encoder.encode(a).length>64)return i.code("LOCAL_TOO_LONG")}return s.local(a,r)||o.analyze(c,t)},s.local=function(e,t){const r=e.split(".");for(const e of r){if(!e.length)return i.code("EMPTY_LOCAL_SEGMENT");if(t){if(!s.atextRx.test(e))return i.code("INVALID_LOCAL_CHARS")}else for(const t of e){if(s.atextRx.test(t))continue;const e=s.binary(t);if(!s.atomRx.test(e))return i.code("INVALID_LOCAL_CHARS")}}},s.binary=function(e){return Array.from(s.encoder.encode(e)).map(e=>String.fromCharCode(e)).join("")},s.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,s.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},function(e,t,r){"use strict";const n=r(0),o=r(26);t.regex=function(e={}){n(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";n(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),n(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let r=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(r)||(r=[r]),n(r.length>=1,"options.version must have at least 1 version specified");for(let e=0;e<r.length;++e)n("string"==typeof r[e],"options.version must only contain strings"),r[e]=r[e].toLowerCase(),n(["ipv4","ipv6","ipvfuture"].includes(r[e]),"options.version contains unknown version "+r[e]+" - must be one of ipv4, ipv6, ipvfuture");r=Array.from(new Set(r));const i=r.map(e=>{if("forbidden"===t)return o.ip[e];const r="\\/".concat("ipv4"===e?o.ip.v4Cidr:o.ip.v6Cidr);return"required"===t?"".concat(o.ip[e]).concat(r):"".concat(o.ip[e],"(?:").concat(r,")?")}),s="(?:".concat(i.join("|"),")"),a=new RegExp("^".concat(s,"$"));return{cidr:t,versions:r,regex:a,raw:s}}},function(e,t){},function(e,t,r){"use strict";const n=r(0),o=r(3),i={};i.Map=class extends Map{slice(){return new i.Map(this)}},e.exports=o.extend({type:"symbol",terms:{map:{init:new i.Map}},coerce:{method(e,{schema:t,error:r}){const n=t.$_terms.map.get(e);return n&&(e=n),t._flags.only&&"symbol"!=typeof e?{value:e,errors:r("symbol.map",{map:t.$_terms.map})}:{value:e}}},validate(e,{error:t}){if("symbol"!=typeof e)return{value:e,errors:t("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),n(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),r=[];for(const o of e){n(o&&o[Symbol.iterator],"Entry must be an iterable");const[e,i]=o;n("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),n("symbol"==typeof i,"Value must be a Symbol"),t.$_terms.map.set(e,i),r.push(i)}return t.valid(...r)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})}])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InteractionForegroundService=void 0;t.InteractionForegroundService=class{constructor(e){this.handler=e}pushData(e){this.handler.onInteractionDataReceived(e)}pushEvent(e){this.handler.onEventDataReceived(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interactionForegroundInit=void 0;const n=r(179),o=r(340),i=r(674);t.interactionForegroundInit=function(e,t){e.registerMessage(n.PushInteractionDataMsg),e.registerMessage(n.PushEventDataMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const n=r(179);t.getHandler=e=>(t,r)=>{switch(r.constructor){case n.PushInteractionDataMsg:return o(e)(t,r);case n.PushEventDataMsg:return i(e)(t,r);default:throw new Error("Unknown msg type")}};const o=e=>(t,r)=>e.pushData(r.data),i=e=>(t,r)=>e.pushEvent(r.data)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(128),o=r(336),i=r(677);t.init=function(e,t){e.registerMessage(n.GetChainInfosMsg),e.registerMessage(n.SuggestChainInfoMsg),e.registerMessage(n.RemoveSuggestedChainInfoMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(128);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.GetChainInfosMsg:return i(e)(t,r);case o.SuggestChainInfoMsg:return s(e)(t,r);case o.RemoveSuggestedChainInfoMsg:return a(e)(t,r);default:throw new Error("Unknown msg type")}};const i=e=>()=>n(void 0,void 0,void 0,(function*(){return{chainInfos:yield e.getChainInfos()}})),s=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){if(yield e.hasChainInfo(r.chainInfo.chainId))return;const n=r.chainInfo;n.beta=!0,yield e.suggestChainInfo(t,n,r.origin)})),a=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.removeChainInfo(r.chainId),yield e.getChainInfos()}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(343),t),o(r(713),t)},function(e,t,r){"use strict";(function(e){var n=r(115);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(129)),i=n(r(130)),s=n(r(681)),a=n(r(682)),c=n(r(72)),u=n(r(75)),l=n(r(94)),f=r(345),d=r(684),h=r(181),p=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.APP_KEY;if((0,s.default)(this,t),!e)throw new Error("Transport has not been defined");this.transport=e,e.decorateAppAPIMethods(this,["getVersion","sign","getAddressAndPubKey","appInfo","deviceInfo","getBech32FromPK"],r)}var r,n,p,g,m,y,b,v,w,_;return(0,a.default)(t,[{key:"serializePath",value:(_=(0,i.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.getVersion)(this.transport);case 2:if(this.versionResponse=e.sent,this.versionResponse.return_code===h.ERROR_CODE.NoError){e.next=5;break}throw this.versionResponse;case 5:e.t0=this.versionResponse.major,e.next=1===e.t0?8:2===e.t0?9:10;break;case 8:return e.abrupt("return",(0,f.serializePathv1)(t));case 9:return e.abrupt("return",(0,d.serializePathv2)(t));case 10:return e.abrupt("return",{return_code:25600,error_message:"App Version is not supported"});case 11:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"signGetChunks",value:(w=(0,i.default)(o.default.mark((function t(r,n){var i,s,a,c,u;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.serializePath(r);case 2:for(i=t.sent,(s=[]).push(i),a=e.from(n),c=0;c<a.length;c+=h.CHUNK_SIZE)u=c+h.CHUNK_SIZE,c>a.length&&(u=a.length),s.push(a.slice(c,u));return t.abrupt("return",s);case 8:case"end":return t.stop()}}),t,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"getVersion",value:(v=(0,i.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,h.getVersion)(this.transport);case 3:return this.versionResponse=e.sent,e.abrupt("return",this.versionResponse);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,h.processErrorResponse)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return v.apply(this,arguments)})},{key:"appInfo",value:(b=(0,i.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.transport.send(176,1,0,0).then((function(e){var t=e.slice(-2),r=256*t[0]+t[1],n={},o="err",i="err",s=0,a=0;if(1!==e[0])n.error_message="response format ID not recognized",n.return_code=36865;else{var c=e[1];o=e.slice(2,2+c).toString("ascii");var u=2+c,l=e[u];u+=1,i=e.slice(u,u+l).toString("ascii"),s=e[u+=l],a=e[u+=1]}return{return_code:r,error_message:(0,h.errorCodeToString)(r),appName:o,appVersion:i,flagLen:s,flagsValue:a,flag_recovery:0!=(1&a),flag_signed_mcu_code:0!=(2&a),flag_onboarded:0!=(4&a),flag_pin_validated:0!=(128&a)}}),h.processErrorResponse));case 1:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"deviceInfo",value:(y=(0,i.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.transport.send(224,1,0,0,e.from([]),[h.ERROR_CODE.NoError,28160]).then((function(e){var t=e.slice(-2),r=256*t[0]+t[1];if(28160===r)return{return_code:r,error_message:"This command is only available in the Dashboard"};var n=e.slice(0,4).toString("hex"),o=4,i=e[o];o+=1;var s=e.slice(o,o+i).toString(),a=e[o+=i];o+=1;var c=e.slice(o,o+a).toString("hex"),u=e[o+=a];o+=1;var l=e.slice(o,o+u);0===l[u-1]&&(l=e.slice(o,o+u-1));var f=l.toString();return{return_code:r,error_message:(0,h.errorCodeToString)(r),targetId:n,seVersion:s,flag:c,mcuVersion:f}}),h.processErrorResponse));case 1:case"end":return t.stop()}}),t,this)}))),function(){return y.apply(this,arguments)})},{key:"publicKey",value:(m=(0,i.default)(o.default.mark((function r(n){var i,s;return o.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,this.serializePath(n);case 3:i=r.sent,r.t0=this.versionResponse.major,r.next=1===r.t0?7:2===r.t0?8:10;break;case 7:return r.abrupt("return",(0,f.publicKeyv1)(this,i));case 8:return s=e.concat([t.serializeHRP("cosmos"),i]),r.abrupt("return",(0,d.publicKeyv2)(this,s));case 10:return r.abrupt("return",{return_code:25600,error_message:"App Version is not supported"});case 11:r.next=16;break;case 13:return r.prev=13,r.t1=r.catch(0),r.abrupt("return",(0,h.processErrorResponse)(r.t1));case 16:case"end":return r.stop()}}),r,this,[[0,13]])}))),function(e){return m.apply(this,arguments)})},{key:"getAddressAndPubKey",value:(g=(0,i.default)(o.default.mark((function r(n,i){var s=this;return o.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.abrupt("return",this.serializePath(n).then((function(r){var n=e.concat([t.serializeHRP(i),r]);return s.transport.send(h.CLA,h.INS.GET_ADDR_SECP256K1,h.P1_VALUES.ONLY_RETRIEVE,0,n,[h.ERROR_CODE.NoError]).then((function(t){var r=t.slice(-2),n=256*r[0]+r[1],o=e.from(t.slice(0,33));return{bech32_address:e.from(t.slice(33,-2)).toString(),compressed_pk:o,return_code:n,error_message:(0,h.errorCodeToString)(n)}}),h.processErrorResponse)})).catch((function(e){return(0,h.processErrorResponse)(e)})));case 4:return r.prev=4,r.t0=r.catch(0),r.abrupt("return",(0,h.processErrorResponse)(r.t0));case 7:case"end":return r.stop()}}),r,this,[[0,4]])}))),function(e,t){return g.apply(this,arguments)})},{key:"showAddressAndPubKey",value:(p=(0,i.default)(o.default.mark((function r(n,i){var s=this;return o.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.abrupt("return",this.serializePath(n).then((function(r){var n=e.concat([t.serializeHRP(i),r]);return s.transport.send(h.CLA,h.INS.GET_ADDR_SECP256K1,h.P1_VALUES.SHOW_ADDRESS_IN_DEVICE,0,n,[h.ERROR_CODE.NoError]).then((function(t){var r=t.slice(-2),n=256*r[0]+r[1],o=e.from(t.slice(0,33));return{bech32_address:e.from(t.slice(33,-2)).toString(),compressed_pk:o,return_code:n,error_message:(0,h.errorCodeToString)(n)}}),h.processErrorResponse)})).catch((function(e){return(0,h.processErrorResponse)(e)})));case 4:return r.prev=4,r.t0=r.catch(0),r.abrupt("return",(0,h.processErrorResponse)(r.t0));case 7:case"end":return r.stop()}}),r,this,[[0,4]])}))),function(e,t){return p.apply(this,arguments)})},{key:"signSendChunk",value:(n=(0,i.default)(o.default.mark((function e(t,r,n){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.versionResponse.major,e.next=1===e.t0?3:2===e.t0?4:5;break;case 3:return e.abrupt("return",(0,f.signSendChunkv1)(this,t,r,n));case 4:return e.abrupt("return",(0,d.signSendChunkv2)(this,t,r,n));case 5:return e.abrupt("return",{return_code:25600,error_message:"App Version is not supported"});case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"sign",value:(r=(0,i.default)(o.default.mark((function e(t,r){var n=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.signGetChunks(t,r).then((function(e){return n.signSendChunk(1,e.length,e[0],[h.ERROR_CODE.NoError]).then(function(){var t=(0,i.default)(o.default.mark((function t(r){var i,s;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i={return_code:r.return_code,error_message:r.error_message,signature:null},s=1;case 2:if(!(s<e.length)){t.next=11;break}return t.next=5,n.signSendChunk(1+s,e.length,e[s]);case 5:if((i=t.sent).return_code===h.ERROR_CODE.NoError){t.next=8;break}return t.abrupt("break",11);case 8:s+=1,t.next=2;break;case 11:return t.abrupt("return",{return_code:i.return_code,error_message:i.error_message,signature:i.signature});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),h.processErrorResponse)}),h.processErrorResponse));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})}],[{key:"serializeHRP",value:function(t){if(null==t||t.length<3||t.length>83)throw new Error("Invalid HRP");var r=e.alloc(1+t.length);return r.writeUInt8(t.length,0),r.write(t,1),r}},{key:"getBech32FromPK",value:function(e,t){if(33!==t.length)throw new Error("expected compressed public key [31 bytes]");var r=c.default.createHash("sha256").update(t).digest(),n=(new u.default).update(r).digest();return l.default.encode(e,l.default.toWords(n))}}]),t}();t.default=p}).call(this,r(2).Buffer)},function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),s=new S(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=w(s,r);if(a){if(a===l)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,s),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function d(){}function h(){}var p={};p[o]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(O([])));m&&m!==t&&r.call(m,o)&&(p=m);var y=h.prototype=f.prototype=Object.create(p);function b(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){var n;this._invoke=function(o,i){function s(){return new t((function(n,s){!function n(o,i,s,a){var c=u(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function w(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y.constructor=h,h.constructor=d,d.displayName=a(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,a(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(v.prototype),v.prototype[i]=function(){return this},e.AsyncIterator=v,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var s=new v(c(t,r,n,o),i);return e.isGeneratorFunction(r)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},b(y),a(y,s,"Generator"),y[o]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=O,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return s.type="throw",s.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t,r){"use strict";(function(e){var n=r(115);Object.defineProperty(t,"__esModule",{value:!0}),t.serializePathv2=function(t){if(!t||5!==t.length)throw new Error("Invalid path.");var r=e.alloc(20);return r.writeUInt32LE(2147483648+t[0],0),r.writeUInt32LE(2147483648+t[1],4),r.writeUInt32LE(2147483648+t[2],8),r.writeUInt32LE(t[3],12),r.writeUInt32LE(t[4],16),r},t.signSendChunkv2=function(e,t,r,n){return c.apply(this,arguments)},t.publicKeyv2=function(e,t){return u.apply(this,arguments)};var o=n(r(129)),i=n(r(130)),s=r(345),a=r(181);function c(){return(c=(0,i.default)(o.default.mark((function e(t,r,n,i){var c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=a.PAYLOAD_TYPE.ADD,1===r&&(c=a.PAYLOAD_TYPE.INIT),r===n&&(c=a.PAYLOAD_TYPE.LAST),e.abrupt("return",(0,s.signSendChunkv1)(t,c,0,i));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return(u=(0,i.default)(o.default.mark((function t(r,n){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.transport.send(a.CLA,a.INS.GET_ADDR_SECP256K1,0,0,n,[a.ERROR_CODE.NoError]).then((function(t){var r=t.slice(-2),n=256*r[0]+r[1];return{pk:"OBSOLETE PROPERTY",compressed_pk:e.from(t.slice(0,33)),return_code:n,error_message:(0,a.errorCodeToString)(n)}}),a.processErrorResponse));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"default",(function(){return l}));var n=r(143),o=r(144),i=r.n(o),s=r(44),a=r(86),c=r(15),u=r(88);class l extends n.a{constructor(t,r){super(),this.device=void 0,this.deviceModel=void 0,this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.interfaceNumber=void 0,this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=t=>this.exchangeAtomicImpl(async()=>{const{channel:r,packetSize:n}=this;Object(a.a)("apdu","=> "+t.toString("hex"));const o=i()(r,n),s=o.makeBlocks(t);for(let e=0;e<s.length;e++)await this.device.transferOut(3,s[e]);let c,u;for(;!(c=o.getReducedResult(u));){const t=await this.device.transferIn(3,n),r=e.from(t.data.buffer);u=o.reduceResponse(u,r)}return Object(a.a)("apdu","<= "+c.toString("hex")),c}).catch(e=>{if(e&&e.message&&e.message.includes("disconnected"))throw this._emitDisconnect(e),new c.DisconnectedDeviceDuringOperation(e.message);throw e}),this.device=t,this.interfaceNumber=r,this.deviceModel=Object(s.a)(t.productId)}static async request(){const e=await Object(u.d)();return l.open(e)}static async openConnected(){const e=await Object(u.b)();return 0===e.length?null:l.open(e[0])}static async open(e){await e.open(),null===e.configuration&&await e.selectConfiguration(1),await f(e);const t=e.configurations[0].interfaces.find(({alternates:e})=>e.some(e=>255===e.interfaceClass));if(!t)throw new c.TransportInterfaceNotAvailable("No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.");const r=t.interfaceNumber;try{await e.claimInterface(r)}catch(t){throw await e.close(),new c.TransportInterfaceNotAvailable(t.message)}const n=new l(e,r),o=t=>{e===t.device&&(navigator.usb.removeEventListener("disconnect",o),n._emitDisconnect(new c.DisconnectedDevice))};return navigator.usb.addEventListener("disconnect",o),n}async close(){await this.exchangeBusyPromise,await this.device.releaseInterface(this.interfaceNumber),await f(this.device),await this.device.close()}setScrambleKey(){}}async function f(e){try{await e.reset()}catch(e){console.warn(e)}}l.isSupported=u.c,l.list=u.b,l.listen=e=>{let t=!1;return Object(u.a)().then(r=>{if(!t){const t=Object(s.a)(r.productId);e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}},t=>{window.DOMException&&t instanceof window.DOMException&&18===t.code?e.error(new c.TransportWebUSBGestureRequired(t.message)):e.error(new c.TransportOpenUserCancelled(t.message))}),{unsubscribe:function(){t=!0}}}}.call(this,r(2).Buffer)},function(e,t,r){const n=r(85);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},function(e,t,r){const n=r(85);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},function(e,t,r){const n=r(24);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},function(e,t,r){const n=r(85),o=r(183);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),i=r.prerelease.length||o.prerelease.length,s=i?"pre":"",a=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return s+e;return a}}},function(e,t,r){const n=r(24);e.exports=(e,t)=>new n(e,t).major},function(e,t,r){const n=r(24);e.exports=(e,t)=>new n(e,t).minor},function(e,t,r){const n=r(24);e.exports=(e,t)=>new n(e,t).patch},function(e,t,r){const n=r(85);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},function(e,t,r){const n=r(40);e.exports=(e,t,r)=>n(t,e,r)},function(e,t,r){const n=r(40);e.exports=(e,t)=>n(e,t,!0)},function(e,t,r){const n=r(184);e.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))},function(e,t,r){const n=r(184);e.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))},function(e,t,r){const n=r(24),o=r(85),{re:i,t:s}=r(84);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=i[s.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),i[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[s.COERCERTL].lastIndex=-1}else r=e.match(i[s.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},function(e,t,r){"use strict";const n=r(700),o=Symbol("max"),i=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),d=Symbol("cache"),h=Symbol("updateAgeOnGet"),p=()=>1;const g=(e,t,r)=>{const n=e[d].get(t);if(n){const t=n.value;if(m(e,t)){if(b(e,n),!e[a])return}else r&&(e[h]&&(n.value.now=Date.now()),e[f].unshiftNode(n));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},y=e=>{if(e[i]>e[o])for(let t=e[f].tail;e[i]>e[o]&&null!==t;){const r=t.prev;b(e,t),t=r}},b=(e,t)=>{if(t){const r=t.value;e[u]&&e[u](r.key,r.value),e[i]-=r.length,e[d].delete(r.key),e[f].removeNode(t)}};class v{constructor(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}}const w=(e,t,r,n)=>{let o=r.value;m(e,o)&&(b(e,r),e[a]||(o=void 0)),o&&t.call(n,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[o]=e.max||1/0;const t=e.length||p;if(this[s]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||1/0,y(this)}get max(){return this[o]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,y(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[s]&&(this[s]=e,this[i]=0,this[f].forEach(e=>{e.length=this[s](e.value,e.key),this[i]+=e.length})),y(this)}get lengthCalculator(){return this[s]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;null!==r;){const n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[f].head;null!==r;){const n=r.next;w(this,e,r,t),r=n}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){this[u]&&this[f]&&this[f].length&&this[f].forEach(e=>this[u](e.key,e.value)),this[d]=new Map,this[f]=new n,this[i]=0}dump(){return this[f].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[s](t,e);if(this[d].has(e)){if(a>this[o])return b(this,this[d].get(e)),!1;const s=this[d].get(e).value;return this[u]&&(this[l]||this[u](e,s.value)),s.now=n,s.maxAge=r,s.value=t,this[i]+=a-s.length,s.length=a,this.get(e),y(this),!0}const h=new v(e,t,a,n,r);return h.length>this[o]?(this[u]&&this[u](e,t),!1):(this[i]+=h.length,this[f].unshift(h),this[d].set(e,this[f].head),y(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!m(this,t)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){const e=this[f].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const e=o-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[d].forEach((e,t)=>g(this,t,!1))}}},function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)t.push(arguments[r]);return t}function o(e,t,r){var n=t===e.head?new a(r,null,t,e):new a(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function i(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,r,n){if(!(this instanceof a))return new a(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=a,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,o=this.head;null!==o;)r.push(e.call(t,o.value,this)),o=o.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,o=this.tail;null!==o;)r.push(e.call(t,o.value,this)),o=o.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;for(;null!==i&&o<t;o++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;var s=[];for(n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(n=0;n<r.length;n++)i=o(this,i,r[n]);return s},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(701)(n)}catch(e){}},function(e,t,r){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,r){const n=r(41);e.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},function(e,t,r){const n=r(24),o=r(41);e.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(i&&-1!==s.compare(e)||(i=e,s=new n(i,r)))}),i}},function(e,t,r){const n=r(24),o=r(41);e.exports=(e,t,r)=>{let i=null,s=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(i&&1!==s.compare(e)||(i=e,s=new n(i,r)))}),i}},function(e,t,r){const n=r(24),o=r(41),i=r(134);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let s=null;o.forEach(e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!i(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}),!s||r&&!i(r,s)||(r=s)}return r&&e.test(r)?r:null}},function(e,t,r){const n=r(41);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},function(e,t,r){const n=r(188);e.exports=(e,t,r)=>n(e,t,">",r)},function(e,t,r){const n=r(188);e.exports=(e,t,r)=>n(e,t,"<",r)},function(e,t,r){const n=r(41);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},function(e,t,r){const n=r(136),o=r(40);e.exports=(e,t,r)=>{const i=[];let s=null,a=null;const c=e.sort((e,t)=>o(e,t,r));for(const e of c){n(e,t,r)?(a=e,s||(s=e)):(a&&i.push([s,a]),a=null,s=null)}s&&i.push([s,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push("<="+t):u.push(`${e} - ${t}`):u.push(">="+e):u.push("*");const l=u.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}},function(e,t,r){const n=r(41),o=r(135),{ANY:i}=o,s=r(136),a=r(40),c=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?[new o(">=0.0.0-0")]:[new o(">=0.0.0")]}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=[new o(">=0.0.0")]}const n=new Set;let c,f,d,h,p,g,m;for(const t of e)">"===t.operator||">="===t.operator?c=u(c,t,r):"<"===t.operator||"<="===t.operator?f=l(f,t,r):n.add(t.semver);if(n.size>1)return null;if(c&&f){if(d=a(c.semver,f.semver,r),d>0)return null;if(0===d&&(">="!==c.operator||"<="!==f.operator))return null}for(const e of n){if(c&&!s(e,String(c),r))return null;if(f&&!s(e,String(f),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}let y=!(!f||r.includePrerelease||!f.semver.prerelease.length)&&f.semver,b=!(!c||r.includePrerelease||!c.semver.prerelease.length)&&c.semver;y&&1===y.prerelease.length&&"<"===f.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(m=m||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,c)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(h=u(c,e,r),h===e&&h!==c)return!1}else if(">="===c.operator&&!s(c.semver,String(e),r))return!1;if(f)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(p=l(f,e,r),p===e&&p!==f)return!1}else if("<="===f.operator&&!s(f.semver,String(e),r))return!1;if(!e.operator&&(f||c)&&0!==d)return!1}return!(c&&g&&!f&&0!==d)&&(!(f&&m&&!c&&0!==d)&&(!b&&!y))},u=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=c(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},function(e,t,r){"use strict";r.r(t),function(e,n){r.d(t,"default",(function(){return p}));var o=r(143),i=r(144),s=r.n(i),a=r(44),c=r(86),u=r(15);const l=[{vendorId:a.b}],f=()=>{const{hid:e}=navigator;if(!e)throw new u.TransportError("navigator.hid is not supported","HIDNotSupported");return e};async function d(){const e=await f().requestDevice({filters:l});return Array.isArray(e)?e:[e]}async function h(){return(await f().getDevices()).filter(e=>e.vendorId===a.b)}class p extends o.a{constructor(e){super(),this.device=void 0,this.deviceModel=void 0,this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.inputCallback=void 0,this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(e=>{this.inputCallback=e}),this.onInputReport=e=>{const t=n.from(e.data.buffer);this.inputCallback?(this.inputCallback(t),this.inputCallback=null):this.inputs.push(t)},this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=e=>this.exchangeAtomicImpl(async()=>{const{channel:t,packetSize:r}=this;Object(c.a)("apdu","=> "+e.toString("hex"));const n=s()(t,r),o=n.makeBlocks(e);for(let e=0;e<o.length;e++)await this.device.sendReport(0,o[e]);let i,a;for(;!(i=n.getReducedResult(a));){const e=await this.read();a=n.reduceResponse(a,e)}return Object(c.a)("apdu","<= "+i.toString("hex")),i}).catch(e=>{if(e&&e.message&&e.message.includes("write"))throw this._emitDisconnect(e),new u.DisconnectedDeviceDuringOperation(e.message);throw e}),this.device=e,this.deviceModel=Object(a.a)(e.productId),e.addEventListener("inputreport",this.onInputReport)}static async request(){const[e]=await d();return p.open(e)}static async openConnected(){const e=await h();return 0===e.length?null:p.open(e[0])}static async open(e){await e.open();const t=new p(e),r=n=>{e===n.device&&(f().removeEventListener("disconnect",r),t._emitDisconnect(new u.DisconnectedDevice))};return f().addEventListener("disconnect",r),t}async close(){await this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),await this.device.close()}setScrambleKey(){}}p.isSupported=()=>Promise.resolve(!(!e.navigator||!e.navigator.hid)),p.list=h,p.listen=e=>{let t=!1;return async function(){const e=await h();return e.length>0?e[0]:(await d())[0]}().then(r=>{if(r){if(!t){const t=Object(a.a)(r.productId);e.next({type:"add",descriptor:r,deviceModel:t}),e.complete()}}else e.error(new u.TransportOpenUserCancelled("Access denied to use Ledger device"))},t=>{e.error(new u.TransportOpenUserCancelled(t.message))}),{unsubscribe:function(){t=!0}}}}.call(this,r(12),r(2).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(189),o=r(348),i=r(714);t.init=function(e,t){e.registerMessage(n.LedgerGetWebHIDFlagMsg),e.registerMessage(n.LedgerSetWebHIDFlagMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(189);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.LedgerGetWebHIDFlagMsg:return i(e)(t,r);case o.LedgerSetWebHIDFlagMsg:return s(e)(t,r);default:throw new Error("Unknown msg type")}};const i=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.getWebHIDFlag()})),s=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.setWebHIDFlag(r.flag)}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(349),t),o(r(728),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Crypto=void 0;const c=a(r(410)),u=i(r(717)),l=r(108),f=r(2);class d{static encrypt(e,t,r,n,o,i){return s(this,void 0,void 0,(function*(){let s=new Uint8Array(32);const a={salt:f.Buffer.from(yield e(s)).toString("hex"),dklen:32,n:131072,r:8,p:1},c=yield d.scrpyt(n,a),h=f.Buffer.from(r);s=new Uint8Array(16);const p=f.Buffer.from(yield e(s)),g=new u.Counter(0);g.setBytes(p);const m=new u.default.ModeOfOperation.ctr(c,g),y=f.Buffer.from(m.encrypt(h)),b=l.Hash.sha256(f.Buffer.concat([f.Buffer.from(c.slice(c.length/2)),y]));return{version:"1.2",type:t,coinTypeForChain:{},bip44HDPath:i,meta:o,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:p.toString("hex")},ciphertext:y.toString("hex"),kdf:"scrypt",kdfparams:a,mac:f.Buffer.from(b).toString("hex")}}}))}static decrypt(e,t){return s(this,void 0,void 0,(function*(){const r=yield d.scrpyt(t,e.crypto.kdfparams),n=new u.Counter(0);n.setBytes(f.Buffer.from(e.crypto.cipherparams.iv,"hex"));const o=new u.default.ModeOfOperation.ctr(r,n),i=l.Hash.sha256(f.Buffer.concat([f.Buffer.from(r.slice(r.length/2)),f.Buffer.from(e.crypto.ciphertext,"hex")]));if(!f.Buffer.from(i).equals(f.Buffer.from(e.crypto.mac,"hex")))throw new Error("Unmatched mac");return f.Buffer.from(o.decrypt(f.Buffer.from(e.crypto.ciphertext,"hex")))}))}static scrpyt(e,t){return s(this,void 0,void 0,(function*(){const r=f.Buffer.from(e);return yield c.default.scrypt(r,f.Buffer.from(t.salt,"hex"),t.n,t.r,t.p,t.dklen)}))}}t.Crypto=d},function(e,t,r){
68 /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
69 !function(t){"use strict";function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t<e.length;t++)if(!r(e[t])||e[t]<0||e[t]>255)return!1;return!0}function o(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function s(e,t,r,n,o){null==n&&null==o||(e=e.slice?e.slice(n,o):Array.prototype.slice.call(e,n,o)),t.set(e,r)}var a,c={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r<e.length;){var n=e.charCodeAt(r++);37===n?(t.push(parseInt(e.substr(r,2),16)),r+=2):t.push(n)}return o(t)},fromBytes:function(e){for(var t=[],r=0;r<e.length;){var n=e[r];n<128?(t.push(String.fromCharCode(n)),r++):n>191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},u=(a="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},fromBytes:function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push(a[(240&n)>>4]+a[15&n])}return t.join("")}}),l={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],g=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],w=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],k=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],S=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],O=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],j=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function E(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var P=function(e){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(e,!0)}),this._prepare()};P.prototype._prepare=function(){var e=l[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(e+1),o=this.key.length/4,i=E(this.key);for(t=0;t<o;t++)r=t>>2,this._Ke[r][t%4]=i[t],this._Kd[e-r][t%4]=i[t];for(var s,a=0,c=o;c<n;){if(s=i[o-1],i[0]^=d[s>>16&255]<<24^d[s>>8&255]<<16^d[255&s]<<8^d[s>>24&255]^f[a]<<24,a+=1,8!=o)for(t=1;t<o;t++)i[t]^=i[t-1];else{for(t=1;t<o/2;t++)i[t]^=i[t-1];s=i[o/2-1],i[o/2]^=d[255&s]^d[s>>8&255]<<8^d[s>>16&255]<<16^d[s>>24&255]<<24;for(t=o/2+1;t<o;t++)i[t]^=i[t-1]}for(t=0;t<o&&c<n;)u=c>>2,h=c%4,this._Ke[u][h]=i[t],this._Kd[e-u][h]=i[t++],c++}for(var u=1;u<e;u++)for(var h=0;h<4;h++)s=this._Kd[u][h],this._Kd[u][h]=k[s>>24&255]^S[s>>16&255]^O[s>>8&255]^j[255&s]},P.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=E(e),o=0;o<4;o++)n[o]^=this._Ke[0][o];for(var s=1;s<t;s++){for(o=0;o<4;o++)r[o]=p[n[o]>>24&255]^g[n[(o+1)%4]>>16&255]^m[n[(o+2)%4]>>8&255]^y[255&n[(o+3)%4]]^this._Ke[s][o];n=r.slice()}var a,c=i(16);for(o=0;o<4;o++)a=this._Ke[t][o],c[4*o]=255&(d[n[o]>>24&255]^a>>24),c[4*o+1]=255&(d[n[(o+1)%4]>>16&255]^a>>16),c[4*o+2]=255&(d[n[(o+2)%4]>>8&255]^a>>8),c[4*o+3]=255&(d[255&n[(o+3)%4]]^a);return c},P.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=E(e),o=0;o<4;o++)n[o]^=this._Kd[0][o];for(var s=1;s<t;s++){for(o=0;o<4;o++)r[o]=b[n[o]>>24&255]^v[n[(o+3)%4]>>16&255]^w[n[(o+2)%4]>>8&255]^_[255&n[(o+1)%4]]^this._Kd[s][o];n=r.slice()}var a,c=i(16);for(o=0;o<4;o++)a=this._Kd[t][o],c[4*o]=255&(h[n[o]>>24&255]^a>>24),c[4*o+1]=255&(h[n[(o+3)%4]>>16&255]^a>>16),c[4*o+2]=255&(h[n[(o+2)%4]>>8&255]^a>>8),c[4*o+3]=255&(h[255&n[(o+1)%4]]^a);return c};var x=function(e){if(!(this instanceof x))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new P(e)};x.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16)s(e,r,0,n,n+16),s(r=this._aes.encrypt(r),t,n);return t},x.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16)s(e,r,0,n,n+16),s(r=this._aes.decrypt(r),t,n);return t};var A=function(e,t){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=i(16);this._lastCipherblock=o(t,!0),this._aes=new P(e)};A.prototype.encrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16){s(e,r,0,n,n+16);for(var a=0;a<16;a++)r[a]^=this._lastCipherblock[a];this._lastCipherblock=this._aes.encrypt(r),s(this._lastCipherblock,t,n)}return t},A.prototype.decrypt=function(e){if((e=o(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16){s(e,r,0,n,n+16),r=this._aes.decrypt(r);for(var a=0;a<16;a++)t[n+a]=r[a]^this._lastCipherblock[a];s(e,this._lastCipherblock,0,n,n+16)}return t};var M=function(e,t,r){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=i(16);r||(r=1),this.segmentSize=r,this._shiftRegister=o(t,!0),this._aes=new P(e)};M.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=o(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},M.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=o(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(e,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var I=function(e,t){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=i(16);this._lastPrecipher=o(t,!0),this._lastPrecipherIndex=16,this._aes=new P(e)};I.prototype.encrypt=function(e){for(var t=o(e,!0),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},I.prototype.decrypt=I.prototype.encrypt;var C=function(e){if(!(this instanceof C))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=i(16),this.setValue(e)):this.setBytes(e)};C.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},C.prototype.setBytes=function(e){if(16!=(e=o(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var R=function(e,t){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new P(e)};R.prototype.encrypt=function(e){for(var t=o(e,!0),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},R.prototype.decrypt=R.prototype.encrypt;var T={AES:P,Counter:C,ModeOfOperation:{ecb:x,cbc:A,cfb:M,ofb:I,ctr:R},utils:{hex:u,utf8:c},padding:{pkcs7:{pad:function(e){var t=16-(e=o(e,!0)).length%16,r=i(e.length+t);s(e,r);for(var n=e.length;n<r.length;n++)r[n]=t;return r},strip:function(e){if((e=o(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n<t;n++)if(e[r+n]!==t)throw new Error("PKCS#7 invalid padding byte");var a=i(r);return s(e,a,0,0,r),a}}},_arrayTest:{coerceArray:o,createArray:i,copyArray:s}};e.exports=T}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSignDoc=t.makeSignBytes=t.makeAuthInfoBytes=t.isOfflineDirectSigner=t.encodePubkey=t.decodePubkey=t.makeCosmoshubPath=t.DirectSecp256k1Wallet=t.DirectSecp256k1HdWallet=t.Registry=void 0;var n=r(720);Object.defineProperty(t,"Registry",{enumerable:!0,get:function(){return n.Registry}});var o=r(723);Object.defineProperty(t,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return o.DirectSecp256k1HdWallet}});var i=r(724);Object.defineProperty(t,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return i.DirectSecp256k1Wallet}});var s=r(358);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return s.makeCosmoshubPath}});var a=r(725);Object.defineProperty(t,"decodePubkey",{enumerable:!0,get:function(){return a.decodePubkey}}),Object.defineProperty(t,"encodePubkey",{enumerable:!0,get:function(){return a.encodePubkey}});var c=r(727);Object.defineProperty(t,"isOfflineDirectSigner",{enumerable:!0,get:function(){return c.isOfflineDirectSigner}});var u=r(193);Object.defineProperty(t,"makeAuthInfoBytes",{enumerable:!0,get:function(){return u.makeAuthInfoBytes}}),Object.defineProperty(t,"makeSignBytes",{enumerable:!0,get:function(){return u.makeSignBytes}}),Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return u.makeSignDoc}})},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=void 0;const n=r(721),o=r(137),i=r(355),s=r(138),a={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};t.Registry=class{constructor(e=[]){const{cosmosCoin:t,cosmosMsgSend:r}=a;this.types=new Map([[t,o.Coin],[r,n.MsgSend],...e])}register(e,t){this.types.set(e,t)}lookupType(e){return this.types.get(e)}lookupTypeWithError(e){const t=this.lookupType(e);if(!t)throw new Error("Unregistered type url: "+e);return t}encode({typeUrl:e,value:t}){if(e===a.cosmosTxBody)return this.encodeTxBody(t);const r=this.lookupTypeWithError(e),n=r.fromPartial(t);return Uint8Array.from(r.encode(n).finish())}encodeTxBody(e){const t=e.messages.map(e=>{const t=this.encode(e);return s.Any.fromPartial({typeUrl:e.typeUrl,value:t})}),r=i.TxBody.fromPartial(Object.assign(Object.assign({},e),{messages:t}));return Uint8Array.from(i.TxBody.encode(r).finish())}decode({typeUrl:t,value:r}){if(t===a.cosmosTxBody)return this.decodeTxBody(r);const n=this.lookupTypeWithError(t).decode(r);return Object.entries(n).forEach(([t,r])=>{void 0!==e&&void 0!==e.isBuffer&&e.isBuffer(r)&&(n[t]=Uint8Array.from(r))}),n}decodeTxBody(e){const t=i.TxBody.decode(e);return Object.assign(Object.assign({},t),{messages:t.messages.map(({typeUrl:e,value:t})=>{if(!e)throw new Error("Missing type_url in Any");if(!t)throw new Error("Missing value in Any");return this.decode({typeUrl:e,value:t})})})}}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgMultiSendResponse=t.MsgMultiSend=t.MsgSendResponse=t.MsgSend=t.protobufPackage=void 0;const o=r(137),i=r(722),s=n(r(48));t.protobufPackage="cosmos.bank.v1beta1";const a={fromAddress:"",toAddress:""};t.MsgSend={encode(e,t=s.default.Writer.create()){t.uint32(10).string(e.fromAddress),t.uint32(18).string(e.toAddress);for(const r of e.amount)o.Coin.encode(r,t.uint32(26).fork()).ldelim();return t},decode(e,t){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const i=Object.assign({},a);for(i.amount=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:i.fromAddress=r.string();break;case 2:i.toAddress=r.string();break;case 3:i.amount.push(o.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},a);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.amount&&null!==e.amount)for(const r of e.amount)t.amount.push(o.Coin.fromJSON(r));return t},fromPartial(e){const t=Object.assign({},a);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.amount&&null!==e.amount)for(const r of e.amount)t.amount.push(o.Coin.fromPartial(r));return t},toJSON(e){const t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(e=>e?o.Coin.toJSON(e):void 0):t.amount=[],t}};const c={};t.MsgSendResponse={encode:(e,t=s.default.Writer.create())=>t,decode(e,t){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},c);for(;r.pos<n;){const e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>Object.assign({},c),fromPartial:e=>Object.assign({},c),toJSON:e=>({})};const u={};t.MsgMultiSend={encode(e,t=s.default.Writer.create()){for(const r of e.inputs)i.Input.encode(r,t.uint32(10).fork()).ldelim();for(const r of e.outputs)i.Output.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},u);for(o.inputs=[],o.outputs=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.inputs.push(i.Input.decode(r,r.uint32()));break;case 2:o.outputs.push(i.Output.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},u);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs)for(const r of e.inputs)t.inputs.push(i.Input.fromJSON(r));if(void 0!==e.outputs&&null!==e.outputs)for(const r of e.outputs)t.outputs.push(i.Output.fromJSON(r));return t},fromPartial(e){const t=Object.assign({},u);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs)for(const r of e.inputs)t.inputs.push(i.Input.fromPartial(r));if(void 0!==e.outputs&&null!==e.outputs)for(const r of e.outputs)t.outputs.push(i.Output.fromPartial(r));return t},toJSON(e){const t={};return e.inputs?t.inputs=e.inputs.map(e=>e?i.Input.toJSON(e):void 0):t.inputs=[],e.outputs?t.outputs=e.outputs.map(e=>e?i.Output.toJSON(e):void 0):t.outputs=[],t}};const l={};t.MsgMultiSendResponse={encode:(e,t=s.default.Writer.create())=>t,decode(e,t){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},l);for(;r.pos<n;){const e=r.uint32();r.skipType(7&e)}return o},fromJSON:e=>Object.assign({},l),fromPartial:e=>Object.assign({},l),toJSON:e=>({})};t.MsgClientImpl=class{constructor(e){this.rpc=e}Send(e){const r=t.MsgSend.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","methodDesc.name",r).then(e=>t.MsgSendResponse.decode(new s.default.Reader(e)))}MultiSend(e){const r=t.MsgMultiSend.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","methodDesc.name",r).then(e=>t.MsgMultiSendResponse.decode(new s.default.Reader(e)))}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.DenomUnit=t.Supply=t.Output=t.Input=t.SendEnabled=t.Params=t.protobufPackage=void 0;const o=r(137),i=n(r(48));t.protobufPackage="cosmos.bank.v1beta1";const s={defaultSendEnabled:!1};t.Params={encode(e,r=i.default.Writer.create()){for(const n of e.sendEnabled)t.SendEnabled.encode(n,r.uint32(10).fork()).ldelim();return r.uint32(16).bool(e.defaultSendEnabled),r},decode(e,r){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const a=Object.assign({},s);for(a.sendEnabled=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:a.sendEnabled.push(t.SendEnabled.decode(n,n.uint32()));break;case 2:a.defaultSendEnabled=n.bool();break;default:n.skipType(7&e)}}return a},fromJSON(e){const r=Object.assign({},s);if(r.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled)for(const n of e.sendEnabled)r.sendEnabled.push(t.SendEnabled.fromJSON(n));return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?r.defaultSendEnabled=Boolean(e.defaultSendEnabled):r.defaultSendEnabled=!1,r},fromPartial(e){const r=Object.assign({},s);if(r.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled)for(const n of e.sendEnabled)r.sendEnabled.push(t.SendEnabled.fromPartial(n));return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?r.defaultSendEnabled=e.defaultSendEnabled:r.defaultSendEnabled=!1,r},toJSON(e){const r={};return e.sendEnabled?r.sendEnabled=e.sendEnabled.map(e=>e?t.SendEnabled.toJSON(e):void 0):r.sendEnabled=[],void 0!==e.defaultSendEnabled&&(r.defaultSendEnabled=e.defaultSendEnabled),r}};const a={denom:"",enabled:!1};t.SendEnabled={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).string(e.denom),t.uint32(16).bool(e.enabled),t),decode(e,t){const r=e instanceof Uint8Array?new i.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},a);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.denom=r.string();break;case 2:o.enabled=r.bool();break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},a);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=Boolean(e.enabled):t.enabled=!1,t},fromPartial(e){const t=Object.assign({},a);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=e.enabled:t.enabled=!1,t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t}};const c={address:""};t.Input={encode(e,t=i.default.Writer.create()){t.uint32(10).string(e.address);for(const r of e.coins)o.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){const r=e instanceof Uint8Array?new i.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const s=Object.assign({},c);for(s.coins=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:s.address=r.string();break;case 2:s.coins.push(o.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return s},fromJSON(e){const t=Object.assign({},c);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins)for(const r of e.coins)t.coins.push(o.Coin.fromJSON(r));return t},fromPartial(e){const t=Object.assign({},c);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins)for(const r of e.coins)t.coins.push(o.Coin.fromPartial(r));return t},toJSON(e){const t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?o.Coin.toJSON(e):void 0):t.coins=[],t}};const u={address:""};t.Output={encode(e,t=i.default.Writer.create()){t.uint32(10).string(e.address);for(const r of e.coins)o.Coin.encode(r,t.uint32(18).fork()).ldelim();return t},decode(e,t){const r=e instanceof Uint8Array?new i.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const s=Object.assign({},u);for(s.coins=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:s.address=r.string();break;case 2:s.coins.push(o.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return s},fromJSON(e){const t=Object.assign({},u);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins)for(const r of e.coins)t.coins.push(o.Coin.fromJSON(r));return t},fromPartial(e){const t=Object.assign({},u);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins)for(const r of e.coins)t.coins.push(o.Coin.fromPartial(r));return t},toJSON(e){const t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?o.Coin.toJSON(e):void 0):t.coins=[],t}};const l={};t.Supply={encode(e,t=i.default.Writer.create()){for(const r of e.total)o.Coin.encode(r,t.uint32(10).fork()).ldelim();return t},decode(e,t){const r=e instanceof Uint8Array?new i.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const s=Object.assign({},l);for(s.total=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:s.total.push(o.Coin.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return s},fromJSON(e){const t=Object.assign({},l);if(t.total=[],void 0!==e.total&&null!==e.total)for(const r of e.total)t.total.push(o.Coin.fromJSON(r));return t},fromPartial(e){const t=Object.assign({},l);if(t.total=[],void 0!==e.total&&null!==e.total)for(const r of e.total)t.total.push(o.Coin.fromPartial(r));return t},toJSON(e){const t={};return e.total?t.total=e.total.map(e=>e?o.Coin.toJSON(e):void 0):t.total=[],t}};const f={denom:"",exponent:0,aliases:""};t.DenomUnit={encode(e,t=i.default.Writer.create()){t.uint32(10).string(e.denom),t.uint32(16).uint32(e.exponent);for(const r of e.aliases)t.uint32(26).string(r);return t},decode(e,t){const r=e instanceof Uint8Array?new i.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const o=Object.assign({},f);for(o.aliases=[];r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:o.denom=r.string();break;case 2:o.exponent=r.uint32();break;case 3:o.aliases.push(r.string());break;default:r.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},f);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=Number(e.exponent):t.exponent=0,void 0!==e.aliases&&null!==e.aliases)for(const r of e.aliases)t.aliases.push(String(r));return t},fromPartial(e){const t=Object.assign({},f);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=e.exponent:t.exponent=0,void 0!==e.aliases&&null!==e.aliases)for(const r of e.aliases)t.aliases.push(r);return t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=e.exponent),e.aliases?t.aliases=e.aliases.map(e=>e):t.aliases=[],t}};const d={description:"",base:"",display:""};t.Metadata={encode(e,r=i.default.Writer.create()){r.uint32(10).string(e.description);for(const n of e.denomUnits)t.DenomUnit.encode(n,r.uint32(18).fork()).ldelim();return r.uint32(26).string(e.base),r.uint32(34).string(e.display),r},decode(e,r){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let o=void 0===r?n.len:n.pos+r;const s=Object.assign({},d);for(s.denomUnits=[];n.pos<o;){const e=n.uint32();switch(e>>>3){case 1:s.description=n.string();break;case 2:s.denomUnits.push(t.DenomUnit.decode(n,n.uint32()));break;case 3:s.base=n.string();break;case 4:s.display=n.string();break;default:n.skipType(7&e)}}return s},fromJSON(e){const r=Object.assign({},d);if(r.denomUnits=[],void 0!==e.description&&null!==e.description?r.description=String(e.description):r.description="",void 0!==e.denomUnits&&null!==e.denomUnits)for(const n of e.denomUnits)r.denomUnits.push(t.DenomUnit.fromJSON(n));return void 0!==e.base&&null!==e.base?r.base=String(e.base):r.base="",void 0!==e.display&&null!==e.display?r.display=String(e.display):r.display="",r},fromPartial(e){const r=Object.assign({},d);if(r.denomUnits=[],void 0!==e.description&&null!==e.description?r.description=e.description:r.description="",void 0!==e.denomUnits&&null!==e.denomUnits)for(const n of e.denomUnits)r.denomUnits.push(t.DenomUnit.fromPartial(n));return void 0!==e.base&&null!==e.base?r.base=e.base:r.base="",void 0!==e.display&&null!==e.display?r.display=e.display:r.display="",r},toJSON(e){const r={};return void 0!==e.description&&(r.description=e.description),e.denomUnits?r.denomUnits=e.denomUnits.map(e=>e?t.DenomUnit.toJSON(e):void 0):r.denomUnits=[],void 0!==e.base&&(r.base=e.base),void 0!==e.display&&(r.display=e.display),r}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1HdWallet=void 0;const n=r(50),o=r(114),i=r(358),s=r(193);class a{constructor(e,t,r,n,o){this.secret=e,this.accounts=[{hdPath:t,prefix:o}],this.privkey=r,this.pubkey=n}static async fromMnemonic(e,t=i.makeCosmoshubPath(0),r="cosmos"){const o=new n.EnglishMnemonic(e),s=await n.Bip39.mnemonicToSeed(o),{privkey:c}=n.Slip10.derivePath(n.Slip10Curve.Secp256k1,s,t),u=(await n.Secp256k1.makeKeypair(c)).pubkey;return new a(o,t,c,n.Secp256k1.compressPubkey(u),r)}static async generate(e=12,t=i.makeCosmoshubPath(0),r="cosmos"){const o=4*Math.floor(11*e/33),s=n.Random.getBytes(o),c=n.Bip39.encode(s);return a.fromMnemonic(c.toString(),t,r)}get mnemonic(){return this.secret.toString()}get address(){return o.rawSecp256k1PubkeyToAddress(this.pubkey,this.accounts[0].prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(e,t){const r=s.makeSignBytes(t);if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const i=n.sha256(r),a=await n.Secp256k1.createSignature(i,this.privkey),c=new Uint8Array([...a.r(32),...a.s(32)]);return{signed:t,signature:o.encodeSecp256k1Signature(this.pubkey,c)}}}t.DirectSecp256k1HdWallet=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1Wallet=void 0;const n=r(50),o=r(114),i=r(193);class s{constructor(e,t,r){this.privkey=e,this.pubkey=t,this.prefix=r}static async fromKey(e,t="cosmos"){const r=(await n.Secp256k1.makeKeypair(e)).pubkey;return new s(e,n.Secp256k1.compressPubkey(r),t)}get address(){return o.rawSecp256k1PubkeyToAddress(this.pubkey,this.prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(e,t){const r=i.makeSignBytes(t);if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const s=n.sha256(r),a=await n.Secp256k1.createSignature(s,this.privkey),c=new Uint8Array([...a.r(32),...a.s(32)]);return{signed:t,signature:o.encodeSecp256k1Signature(this.pubkey,c)}}}t.DirectSecp256k1Wallet=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePubkey=t.encodePubkey=void 0;const n=r(39),o=r(114),i=r(726),s=r(138);t.encodePubkey=function(e){switch(e.type){case"tendermint/PubKeySecp256k1":{const t=i.PubKey.fromPartial({key:n.fromBase64(e.value)});return s.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(i.PubKey.encode(t).finish())})}default:throw new Error(`Pubkey type ${e.type} not recognized`)}},t.decodePubkey=function(e){if(!e||!e.value)return null;switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{const{key:t}=i.PubKey.decode(e.value);return o.encodeSecp256k1Pubkey(t)}default:throw new Error(`Pubkey type_url ${e.typeUrl} not recognized`)}}},function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;const o=n(r(48));t.protobufPackage="cosmos.crypto.secp256k1";const i={};t.PubKey={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).bytes(e.key),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const s=Object.assign({},i);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:s.key=r.bytes();break;default:r.skipType(7&e)}}return s},fromJSON(e){const t=Object.assign({},i);return void 0!==e.key&&null!==e.key&&(t.key=u(e.key)),t},fromPartial(e){const t=Object.assign({},i);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.key&&(t.key=f(void 0!==e.key?e.key:new Uint8Array)),t}};const s={};t.PrivKey={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).bytes(e.key),t),decode(e,t){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let n=void 0===t?r.len:r.pos+t;const i=Object.assign({},s);for(;r.pos<n;){const e=r.uint32();switch(e>>>3){case 1:i.key=r.bytes();break;default:r.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},s);return void 0!==e.key&&null!==e.key&&(t.key=u(e.key)),t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.key&&(t.key=f(void 0!==e.key?e.key:new Uint8Array)),t}};var a=(()=>{if(void 0!==a)return a;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const c=a.atob||(e=>a.Buffer.from(e,"base64").toString("binary"));function u(e){const t=c(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}const l=a.btoa||(e=>a.Buffer.from(e,"binary").toString("base64"));function f(e){const t=[];for(let r=0;r<e.byteLength;++r)t.push(String.fromCharCode(e[r]));return l(t.join(""))}}).call(this,r(12))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOfflineDirectSigner=void 0,t.isOfflineDirectSigner=function(e){return void 0!==e.signDirect}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(191),o=r(353),i=r(729);t.init=function(e,t){e.registerMessage(n.RestoreKeyRingMsg),e.registerMessage(n.DeleteKeyRingMsg),e.registerMessage(n.UpdateNameKeyRingMsg),e.registerMessage(n.ShowKeyRingMsg),e.registerMessage(n.CreateMnemonicKeyMsg),e.registerMessage(n.AddMnemonicKeyMsg),e.registerMessage(n.CreatePrivateKeyMsg),e.registerMessage(n.AddPrivateKeyMsg),e.registerMessage(n.CreateLedgerKeyMsg),e.registerMessage(n.AddLedgerKeyMsg),e.registerMessage(n.LockKeyRingMsg),e.registerMessage(n.UnlockKeyRingMsg),e.registerMessage(n.GetKeyMsg),e.registerMessage(n.RequestSignAminoMsg),e.registerMessage(n.RequestSignDirectMsg),e.registerMessage(n.GetKeyRingTypeMsg),e.registerMessage(n.GetMultiKeyStoreInfoMsg),e.registerMessage(n.ChangeKeyRingMsg),e.registerMessage(n.GetIsKeyStoreCoinTypeSetMsg),e.registerMessage(n.SetKeyStoreCoinTypeMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(191),i=r(11),s=r(11);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.RestoreKeyRingMsg:return a(e)(t,r);case o.DeleteKeyRingMsg:return c(e)(t,r);case o.UpdateNameKeyRingMsg:return u(e)(t,r);case o.ShowKeyRingMsg:return l(e)(t,r);case o.CreateMnemonicKeyMsg:return f(e)(t,r);case o.AddMnemonicKeyMsg:return d(e)(t,r);case o.CreatePrivateKeyMsg:return h(e)(t,r);case o.AddPrivateKeyMsg:return p(e)(t,r);case o.CreateLedgerKeyMsg:return g(e)(t,r);case o.AddLedgerKeyMsg:return m(e)(t,r);case o.LockKeyRingMsg:return y(e)(t,r);case o.UnlockKeyRingMsg:return b(e)(t,r);case o.GetKeyMsg:return v(e)(t,r);case o.RequestSignAminoMsg:return w(e)(t,r);case o.RequestSignDirectMsg:return _(e)(t,r);case o.GetKeyRingTypeMsg:return k(e)(t,r);case o.GetMultiKeyStoreInfoMsg:return S(e)(t,r);case o.ChangeKeyRingMsg:return O(e)(t,r);case o.GetIsKeyStoreCoinTypeSetMsg:return j(e)(t,r);case o.SetKeyStoreCoinTypeMsg:return E(e)(t,r);default:throw new Error("Unknown msg type")}};const a=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.restore()})),c=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.deleteKeyRing(r.index,r.password)})),u=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.updateNameKeyRing(r.index,r.name)})),l=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.showKeyRing(r.index,r.password)})),f=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return{status:yield e.createMnemonicKey(r.mnemonic,r.password,r.meta,r.bip44HDPath)}})),d=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.addMnemonicKey(r.mnemonic,r.meta,r.bip44HDPath)})),h=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return{status:yield e.createPrivateKey(r.privateKey,r.password,r.meta)}})),p=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.addPrivateKey(r.privateKey,r.meta)})),g=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return{status:yield e.createLedgerKey(t,r.password,r.meta,r.bip44HDPath)}})),m=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.addLedgerKey(t,r.meta,r.bip44HDPath)})),y=e=>()=>({status:e.lock()}),b=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return{status:yield e.unlock(r.password)}})),v=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin);const n=yield e.getKey(r.chainId);return{name:e.getKeyStoreMeta("name"),algo:"secp256k1",pubKey:n.pubKey,address:n.address,bech32Address:new i.Bech32Address(n.address).toBech32((yield e.chainsService.getChainInfo(r.chainId)).bech32Config.bech32PrefixAccAddr),isNanoLedger:n.isNanoLedger}})),w=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.requestSignAmino(t,r.chainId,r.signer,r.signDoc,r.signOptions)})),_=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin);const n=s.cosmos.tx.v1beta1.SignDoc.decode(r.signDocBytes),o=yield e.requestSignDirect(t,r.chainId,r.signer,n,r.signOptions);return{signedBytes:s.cosmos.tx.v1beta1.SignDoc.encode(o.signed).finish(),signature:o.signature}})),k=e=>()=>e.getKeyRingType(),S=e=>()=>e.getMultiKeyStoreInfo(),O=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.changeKeyStoreFromMultiKeyStore(r.index)})),j=e=>(t,r)=>e.getKeyStoreBIP44Selectables(r.chainId,r.paths),E=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.setKeyStoreCoinType(r.chainId,r.coinType),e.keyRingStatus}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(359),t),o(r(803),t)},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(194));t.logs=i;const s=n(r(104));t.types=s;var a=r(737);t.pubkeyToAddress=a.pubkeyToAddress;var c=r(760);t.unmarshalTx=c.unmarshalTx;var u=r(196);t.makeSignBytes=u.makeSignBytes,t.marshalTx=u.marshalTx;var l=r(197);t.BroadcastMode=l.BroadcastMode,t.RestClient=l.RestClient;var f=r(377);t.CosmWasmClient=f.CosmWasmClient;var d=r(799);t.makeCosmoshubPath=d.makeSecretNetworkPath,t.Secp256k1Pen=d.Secp256k1Pen;var h=r(203);t.decodeBech32Pubkey=h.decodeBech32Pubkey,t.encodeBech32Pubkey=h.encodeBech32Pubkey,t.encodeSecp256k1Pubkey=h.encodeSecp256k1Pubkey;var p=r(800);t.findSequenceForSignedTx=p.findSequenceForSignedTx;var g=r(204);t.encodeSecp256k1Signature=g.encodeSecp256k1Signature,t.decodeSignature=g.decodeSignature;var m=r(801);t.SigningCosmWasmClient=m.SigningCosmWasmClient;const y=o(r(368));t.EnigmaUtils=y.default},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(94));t.Bech32=class{static encode(e,t){return o.encode(e,o.toWords(t))}static decode(e){const t=o.decode(e);return{prefix:t.prefix,data:new Uint8Array(o.fromWords(t.words))}}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(6));class i{constructor(e,t){this.data={atomics:new o.default(e),fractionalDigits:t}}static fromUserInput(e,t){i.verifyFractionalDigits(t);const r=e.match(/[^0-9.]/);if(r)throw new Error("Invalid character at position "+(r.index+1));let n,o;if(-1===e.search(/\./))n=e,o="";else{const t=e.split(".");switch(t.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!t[1])throw new Error("Fractional part missing");n=t[0],o=t[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(o.length>t)throw new Error("Got more fractional digits than supported");const s=`${n}${o.padEnd(t,"0")}`;return new i(s,t)}static fromAtomics(e,t){return i.verifyFractionalDigits(t),new i(e,t)}static verifyFractionalDigits(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed 100")}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}toString(){const e=new o.default(10).pow(new o.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),r=this.data.atomics.mod(e);if(r.isZero())return t.toString();{const e=r.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${t.toString()}.${e}`}}toFloatApproximation(){const e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}plus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.add(new o.default(e.atomics));return new i(t.toString(),this.fractionalDigits)}}t.Decimal=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(6)),i=new o.default("18446744073709551615",10,"be");class s{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<0||e>4294967295)throw new Error("Input not in uint32 range: "+e.toString());this.data=e}static fromBigEndianBytes(e){if(4!==e.length)throw new Error("Invalid input length. Expected 4 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);return new s(e[0]*2**24+65536*e[1]+256*e[2]+e[3])}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/2**24),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/2**24)])}toNumber(){return this.data}toString(){return this.data.toString()}}t.Uint32=s;class a{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+e.toString());this.data=e}static fromString(e){if(!e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new a(Number.parseInt(e,10))}toNumber(){return this.data}toString(){return this.data.toString()}}t.Int53=a;class c{constructor(e){const t=new a(e);if(t.toNumber()<0)throw new Error("Input is negative");this.data=t}static fromString(e){const t=a.fromString(e);return new c(t.toNumber())}toNumber(){return this.data.toNumber()}toString(){return this.data.toString()}}t.Uint53=c;class u{constructor(e){if(e.isNeg())throw new Error("Input is negative");if(e.gt(i))throw new Error("Input exceeds uint64 range");this.data=e}static fromBytesBigEndian(e){if(8!==e.length)throw new Error("Invalid input length. Expected 8 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const t=[];for(let r=0;r<e.length;++r)t.push(e[r]);return new u(new o.default([...t]))}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new u(new o.default(e,10,"be"))}static fromNumber(e){if(Number.isNaN(e))throw new Error("Input is not a number");let t;try{t=new o.default(e)}catch(e){throw new Error("Input is not a safe integer")}return new u(t)}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toNumber(){return this.data.toNumber()}}t.Uint64=u},function(e,t,r){"use strict";function n(e){return!("string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&null!==e&&!o(e)&&!i(e))}function o(e){if(!Array.isArray(e))return!1;for(const t of e)if(!n(t))return!1;return!0}function i(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;return Object.getOwnPropertyNames(e).map(t=>e[t]).every(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonCompatibleValue=n,t.isJsonCompatibleArray=o,t.isJsonCompatibleDictionary=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(360),o=r(362),i="string:",s="bytes:";class a{static toJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e)return`${i}${e}`;if(o.isUint8Array(e))return`${s}${n.Encoding.toHex(e)}`;if(Array.isArray(e))return e.map(a.toJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const r of Object.keys(e)){const n=e[r];void 0!==n&&(t[r]=a.toJson(n))}return t}throw new Error("Cannot encode type to JSON")}static fromJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e){if(e.startsWith(i))return e.slice(i.length);if(e.startsWith(s))return n.Encoding.fromHex(e.slice(s.length));throw new Error("Found string with unknown prefix")}if(Array.isArray(e))return e.map(a.fromJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const r of Object.keys(e))t[r]=a.fromJson(e[r]);return t}throw new Error("Cannot decode type from JSON")}}t.TransactionEncoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(105),o=r(42),i=r(104),{fromBase64:s}=o.Encoding;function a(e,t){if(33!==e.length)throw new Error("Invalid Secp256k1 pubkey length (compressed): "+e.length);const r=new n.Sha256(e).digest(),i=new n.Ripemd160(r).digest();return o.Bech32.encode(t,i)}t.rawSecp256k1PubkeyToAddress=a,t.pubkeyToAddress=function(e,t){const r=s(e.value);switch(e.type){case i.pubkeyType.secp256k1:return a(r,t);case i.pubkeyType.ed25519:{if(32!==r.length)throw new Error("Invalid Ed25519 pubkey length: "+r.length);const e=new n.Sha256(r).digest();return o.Bech32.encode(t,e.slice(0,20))}case i.pubkeyType.sr25519:{if(32!==r.length)throw new Error("Invalid Sr25519 pubkey length: "+r.length);const e=new n.Sha256(r).digest();return o.Bech32.encode(t,e.slice(0,20))}default:throw new Error("Unrecognized public key algorithm")}}},function(e,t,r){"use strict";(function(e){var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const o=r(139),i=n(r(69)),s=r(97),a=n(r(311)),c=r(364);t.Bip39=class{static encode(e){if(-1===[16,20,24,28,32].indexOf(e.length))throw new Error("invalid input length");return new c.EnglishMnemonic(i.entropyToMnemonic(o.Encoding.toHex(e)))}static decode(e){return o.Encoding.fromHex(i.mnemonicToEntropy(e.toString()))}static async mnemonicToSeed(t,r){const n=e.from(a.nfkd(t.toString()),"utf8"),o="mnemonic"+(r?a.nfkd(r):""),i=e.from(o,"utf8");return this.pbkdf2(n,i,2048,64,"sha512")}static async pbkdf2(e,t,r,n,o){return new Promise((i,a)=>{s.pbkdf2(e,t,r,n,o,(e,t)=>{e?a(e):i(new Uint8Array(t))})})}}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(740);Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return n.Decimal}});var o=r(741);Object.defineProperty(t,"Int53",{enumerable:!0,get:function(){return o.Int53}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return o.Uint32}}),Object.defineProperty(t,"Uint53",{enumerable:!0,get:function(){return o.Uint53}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return o.Uint64}})},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decimal=void 0;const o=n(r(6));class i{constructor(e,t){this.data={atomics:new o.default(e),fractionalDigits:t}}static fromUserInput(e,t){i.verifyFractionalDigits(t);const r=e.match(/[^0-9.]/);if(r)throw new Error("Invalid character at position "+(r.index+1));let n,o;if(-1===e.search(/\./))n=e,o="";else{const t=e.split(".");switch(t.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!t[1])throw new Error("Fractional part missing");n=t[0],o=t[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(o.length>t)throw new Error("Got more fractional digits than supported");const s=`${n}${o.padEnd(t,"0")}`;return new i(s,t)}static fromAtomics(e,t){return i.verifyFractionalDigits(t),new i(e,t)}static verifyFractionalDigits(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed 100")}static compare(e,t){if(e.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return e.data.atomics.cmp(new o.default(t.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}toString(){const e=new o.default(10).pow(new o.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),r=this.data.atomics.mod(e);if(r.isZero())return t.toString();{const e=r.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${t.toString()}.${e}`}}toFloatApproximation(){const e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}plus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.add(new o.default(e.atomics));return new i(t.toString(),this.fractionalDigits)}equals(e){return 0===i.compare(this,e)}isLessThan(e){return i.compare(this,e)<0}isLessThanOrEqual(e){return i.compare(this,e)<=0}isGreaterThan(e){return i.compare(this,e)>0}isGreaterThanOrEqual(e){return i.compare(this,e)>=0}}t.Decimal=i},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Int53=t.Uint32=void 0;const o=n(r(6)),i=new o.default("18446744073709551615",10,"be");class s{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<0||e>4294967295)throw new Error("Input not in uint32 range: "+e.toString());this.data=e}static fromBigEndianBytes(e){if(4!==e.length)throw new Error("Invalid input length. Expected 4 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);return new s(e[0]*2**24+65536*e[1]+256*e[2]+e[3])}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/2**24),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/2**24)])}toNumber(){return this.data}toString(){return this.data.toString()}}t.Uint32=s;class a{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+e.toString());this.data=e}static fromString(e){if(!e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new a(Number.parseInt(e,10))}toNumber(){return this.data}toString(){return this.data.toString()}}t.Int53=a;class c{constructor(e){const t=new a(e);if(t.toNumber()<0)throw new Error("Input is negative");this.data=t}static fromString(e){const t=a.fromString(e);return new c(t.toNumber())}toNumber(){return this.data.toNumber()}toString(){return this.data.toString()}}t.Uint53=c;class u{constructor(e){if(e.isNeg())throw new Error("Input is negative");if(e.gt(i))throw new Error("Input exceeds uint64 range");this.data=e}static fromBytesBigEndian(e){if(8!==e.length)throw new Error("Invalid input length. Expected 8 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const t=[];for(let r=0;r<e.length;++r)t.push(e[r]);return new u(new o.default([...t]))}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new u(new o.default(e,10,"be"))}static fromNumber(e){if(Number.isNaN(e))throw new Error("Input is not a number");let t;try{t=new o.default(e)}catch(e){throw new Error("Input is not a safe integer")}return new u(t)}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toNumber(){return this.data.toNumber()}}t.Uint64=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromAscii=t.toAscii=void 0,t.toAscii=function(e){return Uint8Array.from(e.split("").map(e=>{const t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t}))},t.fromAscii=function(e){return(t=Array.from(e),t.map(e=>{if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)})).join("");var t}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=t.toBase64=void 0;const s=i(r(117));t.toBase64=function(e){return s.fromByteArray(e)},t.fromBase64=function(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return s.toByteArray(e)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Bech32=void 0;const s=i(r(94));t.Bech32=class{static encode(e,t){return s.encode(e,s.toWords(t))}static decode(e){const t=s.decode(e);return{prefix:t.prefix,data:new Uint8Array(s.fromWords(t.words))}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=void 0,t.toHex=function(e){let t="";for(const r of e)t+=("0"+r.toString(16)).slice(-2);return t},t.fromHex=function(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");const t=[];for(let r=0;r<e.length;r+=2){const n=e.substr(r,2);if(!n.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t.push(parseInt(n,16))}return new Uint8Array(t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRfc3339=t.fromRfc3339=void 0;const n=r(361),o=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function i(e,t=2){const r="00000"+e.toString();return r.substring(r.length-t)}t.fromRfc3339=function(e){const t=o.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const r=+t[1],i=+t[2],s=+t[3],a=+t[4],c=+t[5],u=+t[6],l=t[7]?Math.floor(1e3*+t[7]):0;let f,d,h;"Z"===t[8]?(f=1,d=0,h=0):(f="-"===t[8].substring(0,1)?-1:1,d=+t[8].substring(1,3),h=+t[8].substring(4,6));const p=f*(60*d+h)*60;return new n.ReadonlyDate(n.ReadonlyDate.UTC(r,i-1,s,a,c,u,l)-1e3*p)},t.toRfc3339=function(e){return`${e.getUTCFullYear()}-${i(e.getUTCMonth()+1)}-${i(e.getUTCDate())}T${i(e.getUTCHours())}:${i(e.getUTCMinutes())}:${i(e.getUTCSeconds())}.${i(e.getUTCMilliseconds(),3)}Z`}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=t.toUtf8=void 0,t.toUtf8=function(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):new Uint8Array(e.from(t,"utf8"))},t.fromUtf8=function(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(t);if(!function(t){const r=e.from(e.from(t).toString("utf8"),"utf8");return 0===e.compare(e.from(t),r)}(t))throw new Error("Invalid UTF8 data");return e.from(t).toString("utf8")}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(t||"condition is not truthy")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=async function(e){return new Promise(t=>setTimeout(t,e))}},function(e,t,r){"use strict";(function(e){function r(e){return"object"==typeof e&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=t.isNonNullObject=void 0,t.isNonNullObject=r,t.isUint8Array=function(t){return!!r(t)&&("[object Uint8Array]"===Object.prototype.toString.call(t)&&(void 0===e||void 0===e.isBuffer||!e.isBuffer(t)))}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";function n(e){return!("string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&null!==e&&!o(e)&&!i(e))}function o(e){if(!Array.isArray(e))return!1;for(const t of e)if(!n(t))return!1;return!0}function i(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;return Object.getOwnPropertyNames(e).map(t=>e[t]).every(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonCompatibleValue=n,t.isJsonCompatibleArray=o,t.isJsonCompatibleDictionary=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(195),o=r(363),i="string:",s="bytes:";class a{static toJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e)return`${i}${e}`;if(o.isUint8Array(e))return`${s}${n.toHex(e)}`;if(Array.isArray(e))return e.map(a.toJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const r of Object.keys(e)){const n=e[r];void 0!==n&&(t[r]=a.toJson(n))}return t}throw new Error("Cannot encode type to JSON")}static fromJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e){if(e.startsWith(i))return e.slice(i.length);if(e.startsWith(s))return n.fromHex(e.slice(s.length));throw new Error("Found string with unknown prefix")}if(Array.isArray(e))return e.map(a.fromJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const r of Object.keys(e))t[r]=a.fromJson(e[r]);return t}throw new Error("Cannot decode type from JSON")}}t.TransactionEncoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(195);t.Encoding=class{static toHex(e){return n.toHex(e)}static fromHex(e){return n.fromHex(e)}static toBase64(e){return n.toBase64(e)}static fromBase64(e){return n.fromBase64(e)}static toAscii(e){return n.toAscii(e)}static fromAscii(e){return n.fromAscii(e)}static toUtf8(e){return n.toUtf8(e)}static fromUtf8(e){return n.fromUtf8(e)}static fromRfc3339(e){return n.fromRfc3339(e)}static toRfc3339(e){return n.toRfc3339(e)}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(222));t.Keccak256=class{constructor(e){this.blockSize=64,this.impl=o.default.keccak256.create(),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r(314));t.Argon2id=class{static async execute(e,t,r){return await o.default.ready,o.default.crypto_pwhash(r.outputLength,e,t,r.opsLimit,1024*r.memLimitKib,o.default.crypto_pwhash_ALG_ARGON2ID13)}};class i{constructor(e,t){this.privkey=e,this.pubkey=t}static fromLibsodiumPrivkey(e){if(64!==e.length)throw new Error(`Unexpected key length ${e.length}. Must be 64.`);return new i(e.slice(0,32),e.slice(32,64))}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}t.Ed25519Keypair=i;t.Ed25519=class{static async makeKeypair(e){await o.default.ready;const t=o.default.crypto_sign_seed_keypair(e);return i.fromLibsodiumPrivkey(t.privateKey)}static async createSignature(e,t){return await o.default.ready,o.default.crypto_sign_detached(e,t.toLibsodiumPrivkey())}static async verifySignature(e,t,r){return await o.default.ready,o.default.crypto_sign_verify_detached(e,t,r)}};t.Xchacha20poly1305Ietf=class{static async encrypt(e,t,r){await o.default.ready;return o.default.crypto_aead_xchacha20poly1305_ietf_encrypt(e,null,null,r,t)}static async decrypt(e,t,r){await o.default.ready;return o.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,e,null,r,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Random=class{static getBytes(e){try{const t="object"==typeof window?window:self,r=void 0!==t.crypto?t.crypto:t.msCrypto,n=new Uint8Array(e);return r.getRandomValues(n),n}catch(t){try{const t=r(72);return new Uint8Array([...t.randomBytes(e)])}catch(e){throw new Error("No secure random number generator found")}}}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(139),i=n(r(75)),{toHex:s}=o.Encoding;t.Ripemd160=class{constructor(e){this.blockSize=64,this.impl=new i.default,e&&this.update(e)}update(e){return this.impl.update(s(e),"hex"),this}digest(){return Uint8Array.from(this.impl.digest())}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(139),i=n(r(6)),s=n(r(45)),a=r(366),c=new s.default.ec("secp256k1"),u=new i.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");t.Secp256k1=class{static async makeKeypair(e){if(32!==e.length)throw new Error("input data is not a valid secp256k1 private key");const t=c.keyFromPrivate(e);if(!0!==t.validate().result)throw new Error("input data is not a valid secp256k1 private key");if(new i.default(e).gte(u))throw new Error("input data is not a valid secp256k1 private key");return{privkey:o.Encoding.fromHex(t.getPrivate("hex")),pubkey:o.Encoding.fromHex(t.getPublic().encode("hex"))}}static async createSignature(e,t){if(0===e.length)throw new Error("Message hash must not be empty");if(e.length>32)throw new Error("Message hash length must not exceed 32 bytes");const r=c.keyFromPrivate(t).sign(e,{canonical:!0});return new a.ExtendedSecp256k1Signature(Uint8Array.from(r.r.toArray()),Uint8Array.from(r.s.toArray()),r.recoveryParam)}static async verifySignature(e,t,r){if(0===t.length)throw new Error("Message hash must not be empty");if(t.length>32)throw new Error("Message hash length must not exceed 32 bytes");const n=c.keyFromPublic(r);try{return n.verify(t,e.toDer())}catch(e){return!1}}static recoverPubkey(e,t){const r={r:o.Encoding.toHex(e.r()),s:o.Encoding.toHex(e.s())},n=c.recoverPubKey(t,r,e.recovery),i=c.keyFromPublic(n);return o.Encoding.fromHex(i.getPublic(!1,"hex"))}static compressPubkey(e){switch(e.length){case 33:return e;case 65:return Uint8Array.from(c.keyFromPublic(e).pub.encodeCompressed());default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(e){switch(e.length){case 64:return e;case 65:return e.slice(0,64);default:throw new Error("Invalid signature length")}}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(139),i=n(r(6)),s=n(r(45)),a=r(365),c=r(367);var u;!function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"}(u=t.Slip10Curve||(t.Slip10Curve={})),t.slip10CurveFromString=function(e){switch(e){case u.Ed25519:return u.Ed25519;case u.Secp256k1:return u.Secp256k1;default:throw new Error(`Unknown curve string: '${e}'`)}};class l extends o.Uint32{static hardened(e){return new l(e+2**31)}static normal(e){return new l(e)}isHardened(){return this.data>=2**31}}t.Slip10RawIndex=l;const f=new s.default.ec("secp256k1");class d{static derivePath(e,t,r){let n=this.master(e,t);for(const t of r)n=this.child(e,n.privkey,n.chainCode,t);return n}static master(e,t){const r=new a.Hmac(c.Sha512,o.Encoding.toAscii(e)).update(t).digest(),n=r.slice(0,32),i=r.slice(32,64);return e!==u.Ed25519&&(this.isZero(n)||this.isGteN(e,n))?this.master(e,r):{chainCode:i,privkey:n}}static child(e,t,r,n){let o;if(n.isHardened()){const e=new Uint8Array([0,...t,...n.toBytesBigEndian()]);o=new a.Hmac(c.Sha512,r).update(e).digest()}else{if(e===u.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const s=new Uint8Array([...d.serializedPoint(e,new i.default(t)),...n.toBytesBigEndian()]);o=new a.Hmac(c.Sha512,r).update(s).digest()}}return this.childImpl(e,t,r,n,o)}static serializedPoint(e,t){switch(e){case u.Secp256k1:return o.Encoding.fromHex(f.g.mul(t).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(e,t,r,n,o){const s=o.slice(0,32),l=o.slice(32,64),f=l;if(e===u.Ed25519)return{chainCode:f,privkey:s};const d=this.n(e),h=new i.default(s).add(new i.default(t)).mod(d),p=Uint8Array.from(h.toArray("be",32));if(this.isGteN(e,s)||this.isZero(p)){const o=new a.Hmac(c.Sha512,r).update(new Uint8Array([1,...l,...n.toBytesBigEndian()])).digest();return this.childImpl(e,t,r,n,o)}return{chainCode:f,privkey:p}}static isZero(e){return e.every(e=>0===e)}static isGteN(e,t){return new i.default(t).gte(this.n(e))}static n(e){switch(e){case u.Secp256k1:return new i.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}t.Slip10=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(42),o=r(104);t.unmarshalTx=function(e){const t=JSON.parse(n.Encoding.fromUtf8(e));if(!o.isStdTx(t))throw new Error("Must be json encoded StdTx");return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(198));var n=r(369);t.AEAD=n.AEAD;var o=r(370);t.SIV=o.SIV;var i=r(765);t.StreamEncryptor=i.StreamEncryptor,t.StreamDecryptor=i.StreamDecryptor;var s=r(371);t.CMAC=s.CMAC;var a=r(372);t.PMAC=a.PMAC;var c=r(766);t.PolyfillCryptoProvider=c.PolyfillCryptoProvider;var u=r(140);t.WebCryptoProvider=u.WebCryptoProvider},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(106);class i{constructor(e,t){this._crypto=e,this._key=t,this._iv=new o.default,this._emptyPromise=Promise.resolve(this)}static importKey(e,t){return n(this,void 0,void 0,(function*(){if(16!==t.length&&32!==t.length)throw new Error(`Miscreant: invalid key length: ${t.length} (expected 16 or 32 bytes)`);const r=yield e.subtle.importKey("raw",t,"AES-CBC",!1,["encrypt"]);return new i(e,r)}))}clear(){return this}encryptBlock(e){return n(this,void 0,void 0,(function*(){const t={name:"AES-CBC",iv:this._iv.data},r=yield this._crypto.subtle.encrypt(t,this._key,e.data);return e.data.set(new Uint8Array(r,0,o.default.SIZE)),this._emptyPromise}))}}t.default=i},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});class o{constructor(e,t){this.key=e,this.crypto=t}static importKey(e,t){return n(this,void 0,void 0,(function*(){if(16!==t.length&&32!==t.length)throw new Error(`Miscreant: invalid key length: ${t.length} (expected 16 or 32 bytes)`);const r=yield e.subtle.importKey("raw",t,"AES-CTR",!1,["encrypt"]);return new o(r,e)}))}encryptCtr(e,t){return n(this,void 0,void 0,(function*(){const r=yield this.crypto.subtle.encrypt({name:"AES-CTR",counter:e,length:16},this.key,t);return new Uint8Array(r)}))}clear(){return this}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Uint8Array([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0]);t.ctz=function(e){return n[e]}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(369),i=r(140);t.NONCE_SIZE=8,t.LAST_BLOCK_FLAG=1,t.COUNTER_MAX=4294967295;class s{static importKey(e,t,r,a=new i.WebCryptoProvider){return n(this,void 0,void 0,(function*(){return new s(yield o.AEAD.importKey(e,r,a),t)}))}constructor(e,t){this._aead=e,this._nonce_encoder=new c(t)}seal(e,t=!1,r=new Uint8Array(0)){return n(this,void 0,void 0,(function*(){return this._aead.seal(e,this._nonce_encoder.next(t),r)}))}clear(){return this._aead.clear(),this}}t.StreamEncryptor=s;class a{static importKey(e,t,r,s=new i.WebCryptoProvider){return n(this,void 0,void 0,(function*(){return new a(yield o.AEAD.importKey(e,r,s),t)}))}constructor(e,t){this._aead=e,this._nonce_encoder=new c(t)}open(e,t=!1,r=new Uint8Array(0)){return n(this,void 0,void 0,(function*(){return this._aead.open(e,this._nonce_encoder.next(t),r)}))}clear(){return this._aead.clear(),this}}t.StreamDecryptor=a;class c{constructor(e){if(e.length!==t.NONCE_SIZE)throw new Error("STREAM: nonce must be 8-bits (got "+e.length);this.buffer=new ArrayBuffer(t.NONCE_SIZE+4+1),this.view=new DataView(this.buffer),this.array=new Uint8Array(this.buffer),this.array.set(e),this.counter=0,this.finished=!1}next(e){if(this.finished)throw new Error("STREAM: already finished");if(this.view.setInt32(8,this.counter,!1),e)this.view.setInt8(12,t.LAST_BLOCK_FLAG),this.finished=!0;else if(this.counter+=1,this.counter>t.COUNTER_MAX)throw new Error("STREAM counter overflowed");return this.array}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(767),i=r(768);t.PolyfillCryptoProvider=class{constructor(){}importBlockCipherKey(e){return n(this,void 0,void 0,(function*(){return new o.default(e)}))}importCTRKey(e){return n(this,void 0,void 0,(function*(){return new i.default(new o.default(e))}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(200),o=new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47]),i=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);let a,c,u,l,f,d,h,p,g=!1;function m(e,t=0){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function y(e,t=new Uint8Array(4),r=0){return t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function b(e){return i[e>>>24&255]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[255&e]}t.default=class{constructor(e){if(g||function(){function e(e,t){let r=e,n=t,o=0;for(let e=1;e<256&&0!==n;e<<=1)0!=(n&e)&&(o^=r,n^=e),r<<=1,0!=(256&r)&&(r^=283);return o}const t=e=>e<<24|e>>>8;a=new Uint32Array(256),c=new Uint32Array(256),u=new Uint32Array(256),l=new Uint32Array(256);for(let r=0;r<256;r++){const n=i[r];let o=e(n,2)<<24|n<<16|n<<8|e(n,3);a[r]=o,o=t(o),c[r]=o,o=t(o),u[r]=o,o=t(o),l[r]=o,o=t(o)}f=new Uint32Array(256),d=new Uint32Array(256),h=new Uint32Array(256),p=new Uint32Array(256);for(let r=0;r<256;r++){const n=s[r];let o=e(n,14)<<24|e(n,9)<<16|e(n,13)<<8|e(n,11);f[r]=o,o=t(o),d[r]=o,o=t(o),h[r]=o,o=t(o),p[r]=o,o=t(o)}g=!0}(),16!==e.length&&32!==e.length)throw new Error(`Miscreant: invalid key length: ${e.length} (expected 16 or 32 bytes)`);this._encKey=function(e){const t=new Uint32Array(e.length+28),r=e.length/4|0,n=t.length;for(let n=0;n<r;n++)t[n]=m(e,4*n);for(let e=r;e<n;e++){let n=t[e-1];e%r==0?n=b((i=n)<<8|i>>>24)^o[e/r-1]<<24:r>6&&e%r==4&&(n=b(n)),t[e]=t[e-r]^n}var i;return t}(e),this._emptyPromise=Promise.resolve(this)}clear(){return this._encKey&&n.wipe(this._encKey),this}encryptBlock(e){const t=e.data,r=e.data;let n=m(t,0),o=m(t,4),s=m(t,8),f=m(t,12);n^=this._encKey[0],o^=this._encKey[1],s^=this._encKey[2],f^=this._encKey[3];let d=0,h=0,p=0,g=0;const b=this._encKey.length/4-2;let v=4;for(let e=0;e<b;e++)d=this._encKey[v+0]^a[n>>>24&255]^c[o>>>16&255]^u[s>>>8&255]^l[255&f],h=this._encKey[v+1]^a[o>>>24&255]^c[s>>>16&255]^u[f>>>8&255]^l[255&n],p=this._encKey[v+2]^a[s>>>24&255]^c[f>>>16&255]^u[n>>>8&255]^l[255&o],g=this._encKey[v+3]^a[f>>>24&255]^c[n>>>16&255]^u[o>>>8&255]^l[255&s],v+=4,n=d,o=h,s=p,f=g;return n=i[d>>>24]<<24|i[h>>>16&255]<<16|i[p>>>8&255]<<8|i[255&g],o=i[h>>>24]<<24|i[p>>>16&255]<<16|i[g>>>8&255]<<8|i[255&d],s=i[p>>>24]<<24|i[g>>>16&255]<<16|i[d>>>8&255]<<8|i[255&h],f=i[g>>>24]<<24|i[d>>>16&255]<<16|i[h>>>8&255]<<8|i[255&p],n^=this._encKey[v+0],o^=this._encKey[v+1],s^=this._encKey[v+2],f^=this._encKey[v+3],y(n,r,0),y(o,r,4),y(s,r,8),y(f,r,12),this._emptyPromise}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const o=r(106);function i(e){let t=1;for(let r=o.default.SIZE-1;r>=0;r--)t+=255&e.data[r]|0,e.data[r]=255&t,t>>>=8}t.default=class{constructor(e){this._cipher=e,this._counter=new o.default,this._buffer=new o.default}clear(){return this._buffer.clear(),this._counter.clear(),this._cipher.clear(),this}encryptCtr(e,t){return n(this,void 0,void 0,(function*(){if(e.length!==o.default.SIZE)throw new Error("CTR: iv length must be equal to cipher block size");this._counter.data.set(e);let r=o.default.SIZE;const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r===o.default.SIZE&&(this._buffer.copy(this._counter),this._cipher.encryptBlock(this._buffer),r=0,i(this._counter)),n[e]=t[e]^this._buffer.data[r++];return n}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});new Uint8Array(16);let n=new Uint8Array(32);function o(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r}n[0]=9;const i=o(),s=o([1]),a=o([56129,1]),c=o([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=o([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),l=o([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=o([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=o([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function h(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function p(e,t,r,n){return function(e,t,r,n,o){var i,s=0;for(i=0;i<o;i++)s|=e[t+i]^r[n+i];return(1&s-1>>>8)-1}(e,t,r,n,32)}function g(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function m(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function y(e,t,r){for(var n,o=~(r-1),i=0;i<16;i++)n=o&(e[i]^t[i]),e[i]^=n,t[i]^=n}function b(e,t){var r,n,i,s=o(),a=o();for(r=0;r<16;r++)a[r]=t[r];for(m(a),m(a),m(a),n=0;n<2;n++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,y(a,s,1-i)}for(r=0;r<16;r++)e[2*r]=255&a[r],e[2*r+1]=a[r]>>8}function v(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return b(r,e),b(n,t),p(r,0,n,0)}function w(e){var t=new Uint8Array(32);return b(t,e),1&t[0]}function _(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function k(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function S(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function O(e,t,r){var n,o,i=0,s=0,a=0,c=0,u=0,l=0,f=0,d=0,h=0,p=0,g=0,m=0,y=0,b=0,v=0,w=0,_=0,k=0,S=0,O=0,j=0,E=0,P=0,x=0,A=0,M=0,I=0,C=0,R=0,T=0,N=0,B=r[0],D=r[1],L=r[2],U=r[3],q=r[4],H=r[5],z=r[6],F=r[7],K=r[8],$=r[9],V=r[10],J=r[11],G=r[12],W=r[13],Q=r[14],Z=r[15];i+=(n=t[0])*B,s+=n*D,a+=n*L,c+=n*U,u+=n*q,l+=n*H,f+=n*z,d+=n*F,h+=n*K,p+=n*$,g+=n*V,m+=n*J,y+=n*G,b+=n*W,v+=n*Q,w+=n*Z,s+=(n=t[1])*B,a+=n*D,c+=n*L,u+=n*U,l+=n*q,f+=n*H,d+=n*z,h+=n*F,p+=n*K,g+=n*$,m+=n*V,y+=n*J,b+=n*G,v+=n*W,w+=n*Q,_+=n*Z,a+=(n=t[2])*B,c+=n*D,u+=n*L,l+=n*U,f+=n*q,d+=n*H,h+=n*z,p+=n*F,g+=n*K,m+=n*$,y+=n*V,b+=n*J,v+=n*G,w+=n*W,_+=n*Q,k+=n*Z,c+=(n=t[3])*B,u+=n*D,l+=n*L,f+=n*U,d+=n*q,h+=n*H,p+=n*z,g+=n*F,m+=n*K,y+=n*$,b+=n*V,v+=n*J,w+=n*G,_+=n*W,k+=n*Q,S+=n*Z,u+=(n=t[4])*B,l+=n*D,f+=n*L,d+=n*U,h+=n*q,p+=n*H,g+=n*z,m+=n*F,y+=n*K,b+=n*$,v+=n*V,w+=n*J,_+=n*G,k+=n*W,S+=n*Q,O+=n*Z,l+=(n=t[5])*B,f+=n*D,d+=n*L,h+=n*U,p+=n*q,g+=n*H,m+=n*z,y+=n*F,b+=n*K,v+=n*$,w+=n*V,_+=n*J,k+=n*G,S+=n*W,O+=n*Q,j+=n*Z,f+=(n=t[6])*B,d+=n*D,h+=n*L,p+=n*U,g+=n*q,m+=n*H,y+=n*z,b+=n*F,v+=n*K,w+=n*$,_+=n*V,k+=n*J,S+=n*G,O+=n*W,j+=n*Q,E+=n*Z,d+=(n=t[7])*B,h+=n*D,p+=n*L,g+=n*U,m+=n*q,y+=n*H,b+=n*z,v+=n*F,w+=n*K,_+=n*$,k+=n*V,S+=n*J,O+=n*G,j+=n*W,E+=n*Q,P+=n*Z,h+=(n=t[8])*B,p+=n*D,g+=n*L,m+=n*U,y+=n*q,b+=n*H,v+=n*z,w+=n*F,_+=n*K,k+=n*$,S+=n*V,O+=n*J,j+=n*G,E+=n*W,P+=n*Q,x+=n*Z,p+=(n=t[9])*B,g+=n*D,m+=n*L,y+=n*U,b+=n*q,v+=n*H,w+=n*z,_+=n*F,k+=n*K,S+=n*$,O+=n*V,j+=n*J,E+=n*G,P+=n*W,x+=n*Q,A+=n*Z,g+=(n=t[10])*B,m+=n*D,y+=n*L,b+=n*U,v+=n*q,w+=n*H,_+=n*z,k+=n*F,S+=n*K,O+=n*$,j+=n*V,E+=n*J,P+=n*G,x+=n*W,A+=n*Q,M+=n*Z,m+=(n=t[11])*B,y+=n*D,b+=n*L,v+=n*U,w+=n*q,_+=n*H,k+=n*z,S+=n*F,O+=n*K,j+=n*$,E+=n*V,P+=n*J,x+=n*G,A+=n*W,M+=n*Q,I+=n*Z,y+=(n=t[12])*B,b+=n*D,v+=n*L,w+=n*U,_+=n*q,k+=n*H,S+=n*z,O+=n*F,j+=n*K,E+=n*$,P+=n*V,x+=n*J,A+=n*G,M+=n*W,I+=n*Q,C+=n*Z,b+=(n=t[13])*B,v+=n*D,w+=n*L,_+=n*U,k+=n*q,S+=n*H,O+=n*z,j+=n*F,E+=n*K,P+=n*$,x+=n*V,A+=n*J,M+=n*G,I+=n*W,C+=n*Q,R+=n*Z,v+=(n=t[14])*B,w+=n*D,_+=n*L,k+=n*U,S+=n*q,O+=n*H,j+=n*z,E+=n*F,P+=n*K,x+=n*$,A+=n*V,M+=n*J,I+=n*G,C+=n*W,R+=n*Q,T+=n*Z,w+=(n=t[15])*B,s+=38*(k+=n*L),a+=38*(S+=n*U),c+=38*(O+=n*q),u+=38*(j+=n*H),l+=38*(E+=n*z),f+=38*(P+=n*F),d+=38*(x+=n*K),h+=38*(A+=n*$),p+=38*(M+=n*V),g+=38*(I+=n*J),m+=38*(C+=n*G),y+=38*(R+=n*W),b+=38*(T+=n*Q),v+=38*(N+=n*Z),i=(n=(i+=38*(_+=n*D))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),p=(n=p+o+65535)-65536*(o=Math.floor(n/65536)),g=(n=g+o+65535)-65536*(o=Math.floor(n/65536)),m=(n=m+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),i=(n=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(n/65536)),s=(n=s+o+65535)-65536*(o=Math.floor(n/65536)),a=(n=a+o+65535)-65536*(o=Math.floor(n/65536)),c=(n=c+o+65535)-65536*(o=Math.floor(n/65536)),u=(n=u+o+65535)-65536*(o=Math.floor(n/65536)),l=(n=l+o+65535)-65536*(o=Math.floor(n/65536)),f=(n=f+o+65535)-65536*(o=Math.floor(n/65536)),d=(n=d+o+65535)-65536*(o=Math.floor(n/65536)),h=(n=h+o+65535)-65536*(o=Math.floor(n/65536)),p=(n=p+o+65535)-65536*(o=Math.floor(n/65536)),g=(n=g+o+65535)-65536*(o=Math.floor(n/65536)),m=(n=m+o+65535)-65536*(o=Math.floor(n/65536)),y=(n=y+o+65535)-65536*(o=Math.floor(n/65536)),b=(n=b+o+65535)-65536*(o=Math.floor(n/65536)),v=(n=v+o+65535)-65536*(o=Math.floor(n/65536)),w=(n=w+o+65535)-65536*(o=Math.floor(n/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=c,e[4]=u,e[5]=l,e[6]=f,e[7]=d,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=y,e[13]=b,e[14]=v,e[15]=w}function j(e,t){O(e,t,t)}function E(e,t){var r,n=o();for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)j(n,n),2!==r&&4!==r&&O(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}function P(e,t,r){var n,i,s=new Uint8Array(32),c=new Float64Array(80),u=o(),l=o(),f=o(),d=o(),h=o(),p=o();for(i=0;i<31;i++)s[i]=t[i];for(s[31]=127&t[31]|64,s[0]&=248,_(c,r),i=0;i<16;i++)l[i]=c[i],d[i]=u[i]=f[i]=0;for(u[0]=d[0]=1,i=254;i>=0;--i)y(u,l,n=s[i>>>3]>>>(7&i)&1),y(f,d,n),k(h,u,f),S(u,u,f),k(f,l,d),S(l,l,d),j(d,h),j(p,u),O(u,f,u),O(f,l,h),k(h,u,f),S(u,u,f),j(l,u),S(f,d,p),O(u,f,a),k(u,u,d),O(f,f,u),O(u,d,p),O(d,l,c),j(l,h),y(u,l,n),y(f,d,n);for(i=0;i<16;i++)c[i+16]=u[i],c[i+32]=f[i],c[i+48]=l[i],c[i+64]=d[i];var g=c.subarray(32),m=c.subarray(16);return E(g,g),O(m,m,g),b(e,m),0}var x=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function A(e,t,r,n){for(var o,i,s,a,c,u,l,f,d,h,p,g,m,y,b,v,w,_,k,S,O,j,E,P,A,M,I=new Int32Array(16),C=new Int32Array(16),R=e[0],T=e[1],N=e[2],B=e[3],D=e[4],L=e[5],U=e[6],q=e[7],H=t[0],z=t[1],F=t[2],K=t[3],$=t[4],V=t[5],J=t[6],G=t[7],W=0;n>=128;){for(k=0;k<16;k++)S=8*k+W,I[k]=r[S+0]<<24|r[S+1]<<16|r[S+2]<<8|r[S+3],C[k]=r[S+4]<<24|r[S+5]<<16|r[S+6]<<8|r[S+7];for(k=0;k<80;k++)if(o=R,i=T,s=N,a=B,c=D,u=L,l=U,q,d=H,h=z,p=F,g=K,m=$,y=V,b=J,G,E=65535&(j=G),P=j>>>16,A=65535&(O=q),M=O>>>16,E+=65535&(j=($>>>14|D<<18)^($>>>18|D<<14)^(D>>>9|$<<23)),P+=j>>>16,A+=65535&(O=(D>>>14|$<<18)^(D>>>18|$<<14)^($>>>9|D<<23)),M+=O>>>16,E+=65535&(j=$&V^~$&J),P+=j>>>16,A+=65535&(O=D&L^~D&U),M+=O>>>16,E+=65535&(j=x[2*k+1]),P+=j>>>16,A+=65535&(O=x[2*k]),M+=O>>>16,O=I[k%16],P+=(j=C[k%16])>>>16,A+=65535&O,M+=O>>>16,A+=(P+=(E+=65535&j)>>>16)>>>16,E=65535&(j=_=65535&E|P<<16),P=j>>>16,A=65535&(O=w=65535&A|(M+=A>>>16)<<16),M=O>>>16,E+=65535&(j=(H>>>28|R<<4)^(R>>>2|H<<30)^(R>>>7|H<<25)),P+=j>>>16,A+=65535&(O=(R>>>28|H<<4)^(H>>>2|R<<30)^(H>>>7|R<<25)),M+=O>>>16,P+=(j=H&z^H&F^z&F)>>>16,A+=65535&(O=R&T^R&N^T&N),M+=O>>>16,f=65535&(A+=(P+=(E+=65535&j)>>>16)>>>16)|(M+=A>>>16)<<16,v=65535&E|P<<16,E=65535&(j=g),P=j>>>16,A=65535&(O=a),M=O>>>16,P+=(j=_)>>>16,A+=65535&(O=w),M+=O>>>16,T=o,N=i,B=s,D=a=65535&(A+=(P+=(E+=65535&j)>>>16)>>>16)|(M+=A>>>16)<<16,L=c,U=u,q=l,R=f,z=d,F=h,K=p,$=g=65535&E|P<<16,V=m,J=y,G=b,H=v,k%16==15)for(S=0;S<16;S++)O=I[S],E=65535&(j=C[S]),P=j>>>16,A=65535&O,M=O>>>16,O=I[(S+9)%16],E+=65535&(j=C[(S+9)%16]),P+=j>>>16,A+=65535&O,M+=O>>>16,w=I[(S+1)%16],E+=65535&(j=((_=C[(S+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),P+=j>>>16,A+=65535&(O=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),M+=O>>>16,w=I[(S+14)%16],P+=(j=((_=C[(S+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,A+=65535&(O=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,I[S]=65535&A|M<<16,C[S]=65535&E|P<<16;E=65535&(j=H),P=j>>>16,A=65535&(O=R),M=O>>>16,O=e[0],P+=(j=t[0])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[0]=R=65535&A|M<<16,t[0]=H=65535&E|P<<16,E=65535&(j=z),P=j>>>16,A=65535&(O=T),M=O>>>16,O=e[1],P+=(j=t[1])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[1]=T=65535&A|M<<16,t[1]=z=65535&E|P<<16,E=65535&(j=F),P=j>>>16,A=65535&(O=N),M=O>>>16,O=e[2],P+=(j=t[2])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[2]=N=65535&A|M<<16,t[2]=F=65535&E|P<<16,E=65535&(j=K),P=j>>>16,A=65535&(O=B),M=O>>>16,O=e[3],P+=(j=t[3])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[3]=B=65535&A|M<<16,t[3]=K=65535&E|P<<16,E=65535&(j=$),P=j>>>16,A=65535&(O=D),M=O>>>16,O=e[4],P+=(j=t[4])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[4]=D=65535&A|M<<16,t[4]=$=65535&E|P<<16,E=65535&(j=V),P=j>>>16,A=65535&(O=L),M=O>>>16,O=e[5],P+=(j=t[5])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[5]=L=65535&A|M<<16,t[5]=V=65535&E|P<<16,E=65535&(j=J),P=j>>>16,A=65535&(O=U),M=O>>>16,O=e[6],P+=(j=t[6])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[6]=U=65535&A|M<<16,t[6]=J=65535&E|P<<16,E=65535&(j=G),P=j>>>16,A=65535&(O=q),M=O>>>16,O=e[7],P+=(j=t[7])>>>16,A+=65535&O,M+=O>>>16,M+=(A+=(P+=(E+=65535&j)>>>16)>>>16)>>>16,e[7]=q=65535&A|M<<16,t[7]=G=65535&E|P<<16,W+=128,n-=128}return n}function M(e,t,r){var n,o=new Int32Array(8),i=new Int32Array(8),s=new Uint8Array(256),a=r;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,A(o,i,t,r),r%=128,n=0;n<r;n++)s[n]=t[a-r+n];for(s[r]=128,s[(r=256-128*(r<112?1:0))-9]=0,h(s,r-8,a/536870912|0,a<<3),A(o,i,s,r),n=0;n<8;n++)h(e,8*n,o[n],i[n]);return 0}function I(e,t){var r=o(),n=o(),i=o(),s=o(),a=o(),c=o(),l=o(),f=o(),d=o();S(r,e[1],e[0]),S(d,t[1],t[0]),O(r,r,d),k(n,e[0],e[1]),k(d,t[0],t[1]),O(n,n,d),O(i,e[3],t[3]),O(i,i,u),O(s,e[2],t[2]),k(s,s,s),S(a,n,r),S(c,s,i),k(l,s,i),k(f,n,r),O(e[0],a,c),O(e[1],f,l),O(e[2],l,c),O(e[3],a,f)}function C(e,t,r){var n;for(n=0;n<4;n++)y(e[n],t[n],r)}function R(e,t){var r=o(),n=o(),i=o();E(i,t[2]),O(r,t[0],i),O(n,t[1],i),b(e,n),e[31]^=w(r)<<7}function T(e,t,r){var n,o;for(g(e[0],i),g(e[1],s),g(e[2],s),g(e[3],i),o=255;o>=0;--o)C(e,t,n=r[o/8|0]>>(7&o)&1),I(t,e),I(e,e),C(e,t,n)}function N(e,t){var r=[o(),o(),o(),o()];g(r[0],l),g(r[1],f),g(r[2],s),O(r[3],l,f),T(e,r,t)}var B=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function D(e,t){var r,n,o,i;for(n=63;n>=32;--n){for(r=0,o=n-32,i=n-12;o<i;++o)t[o]+=r-16*t[n]*B[o-(n-32)],r=t[o]+128>>8,t[o]-=256*r;t[o]+=r,t[n]=0}for(r=0,o=0;o<32;o++)t[o]+=r-(t[31]>>4)*B[o],r=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=r*B[o];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function L(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;D(e,r)}function U(e,t,r,n,i){for(var s=new Uint8Array(64),a=[o(),o(),o(),o()],c=0;c<32;c++)s[c]=n[c];s[0]&=248,s[31]&=127,s[31]|=64,N(a,s),R(s.subarray(32),a);var u,l=128&s[63];return u=i?function(e,t,r,n,i){var s,a,c=new Uint8Array(64),u=new Uint8Array(64),l=new Float64Array(64),f=[o(),o(),o(),o()];for(e[0]=254,s=1;s<32;s++)e[s]=255;for(s=0;s<32;s++)e[32+s]=n[s];for(s=0;s<r;s++)e[64+s]=t[s];for(s=0;s<64;s++)e[r+64+s]=i[s];for(M(u,e,r+128),L(u),N(f,u),R(e,f),s=0;s<32;s++)e[s+32]=n[32+s];for(M(c,e,r+64),L(c),s=0;s<64;s++)e[r+64+s]=0;for(s=0;s<64;s++)l[s]=0;for(s=0;s<32;s++)l[s]=u[s];for(s=0;s<32;s++)for(a=0;a<32;a++)l[s+a]+=c[s]*n[a];return D(e.subarray(32,r+64),l),r+64}(e,t,r,s,i):function(e,t,r,n){var i,s,a=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),l=[o(),o(),o(),o()];for(i=0;i<r;i++)e[64+i]=t[i];for(i=0;i<32;i++)e[32+i]=n[i];for(M(c,e.subarray(32),r+32),L(c),N(l,c),R(e,l),i=0;i<32;i++)e[i+32]=n[32+i];for(M(a,e,r+64),L(a),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(s=0;s<32;s++)u[i+s]+=a[i]*n[s];return D(e.subarray(32),u),r+64}(e,t,r,s),e[63]|=l,u}function q(e,t){var r=o(),n=o(),a=o(),u=o(),l=o(),f=o(),h=o();return g(e[2],s),_(e[1],t),j(a,e[1]),O(u,a,c),S(a,a,e[2]),k(u,e[2],u),j(l,u),j(f,l),O(h,f,l),O(r,h,a),O(r,r,u),function(e,t){var r,n=o();for(r=0;r<16;r++)n[r]=t[r];for(r=250;r>=0;r--)j(n,n),1!==r&&O(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}(r,r),O(r,r,a),O(r,r,u),O(r,r,u),O(e[0],r,u),j(n,e[0]),O(n,n,u),v(n,a)&&O(e[0],e[0],d),j(n,e[0]),O(n,n,u),v(n,a)?-1:(w(e[0])===t[31]>>7&&S(e[0],i,e[0]),O(e[3],e[0],e[1]),0)}function H(e,t,r,n){var i=function(e){var t=new Uint8Array(32),r=o(),n=o(),i=o();return _(r,e),k(n,r,s),S(i,r,s),E(n,n),O(n,n,i),b(t,n),t}(n);return i[31]|=128&t[63],t[63]&=127,function(e,t,r,n){var i,s=new Uint8Array(32),a=new Uint8Array(64),c=[o(),o(),o(),o()],u=[o(),o(),o(),o()];if(-1,r<64)return-1;if(q(u,n))return-1;for(i=0;i<r;i++)e[i]=t[i];for(i=0;i<32;i++)e[i+32]=n[i];if(M(a,e,r),L(a),T(c,u,a),N(u,t.subarray(32)),I(c,u),R(s,c),r-=64,p(t,0,s,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=t[i+64];return r}(e,t,r,i)}function z(...e){var t,r;for(r=0;r<arguments.length;r++)if("[object Uint8Array]"!==(t=Object.prototype.toString.call(arguments[r])))throw new TypeError("unexpected type "+t+", use Uint8Array")}t.sharedKey=function(e,t){if(z(t,e),32!==t.length)throw new Error("wrong public key length");if(32!==e.length)throw new Error("wrong secret key length");var r=new Uint8Array(32);return P(r,e,t),r},t.signMessage=function(e,t,r){if(z(t,e),32!==e.length)throw new Error("wrong secret key length");if(r){if(z(r),64!==r.length)throw new Error("wrong random data length");var n=new Uint8Array(128+t.length);return U(n,t,t.length,e,r),new Uint8Array(n.subarray(0,64+t.length))}var o=new Uint8Array(64+t.length);return U(o,t,t.length,e),o},t.openMessage=function(e,t){if(z(t,e),32!==e.length)throw new Error("wrong public key length");var r=new Uint8Array(t.length),n=H(r,t,t.length,e);if(n<0)return null;for(var o=new Uint8Array(n),i=0;i<o.length;i++)o[i]=r[i];return o},t.sign=function(e,t,r){if(z(e,t),32!==e.length)throw new Error("wrong secret key length");if(r&&(z(r),64!==r.length))throw new Error("wrong random data length");var n=new Uint8Array((r?128:64)+t.length);U(n,t,t.length,e,r);for(var o=new Uint8Array(64),i=0;i<o.length;i++)o[i]=n[i];return o},t.verify=function(e,t,r){if(z(t,r,e),64!==r.length)throw new Error("wrong signature length");if(32!==e.length)throw new Error("wrong public key length");var n,o=new Uint8Array(64+t.length),i=new Uint8Array(64+t.length);for(n=0;n<64;n++)o[n]=r[n];for(n=0;n<t.length;n++)o[n+64]=t[n];return H(i,o,o.length,e)>=0},t.generateKeyPair=function(e){if(z(e),32!==e.length)throw new Error("wrong seed length");for(var t=new Uint8Array(32),r=new Uint8Array(32),o=0;o<32;o++)t[o]=e[o];return P(r,t,n),t[0]&=248,t[31]&=127,t[31]|=64,r[31]&=127,{public:r,private:t}},t.default={}},function(e,t,r){(function(n,o){var i;!function(s){"use strict";function a(e,t){if(t=t||{type:"Array"},void 0!==n&&"number"==typeof n.pid&&n.versions&&n.versions.node)return function(e,t){var n=r(771).randomBytes(e);switch(t.type){case"Array":return[].slice.call(n);case"Buffer":return n;case"Uint8Array":for(var o=new Uint8Array(e),i=0;i<e;++i)o[i]=n.readUInt8(i);return o;default:throw new Error(t.type+" is unsupported.")}}(e,t);if(!(window.crypto||window.msCrypto))throw new Error("Your browser does not support window.crypto.");return function(e,t){var r=new Uint8Array(e);switch((window.crypto||window.msCrypto).getRandomValues(r),t.type){case"Array":return[].slice.call(r);case"Buffer":try{new o(1)}catch(e){throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support.")}return new o(r);case"Uint8Array":return r;default:throw new Error(t.type+" is unsupported.")}}(e,t)}void 0===(i=function(){return a}.apply(t,[]))||(e.exports=i),a.randomArray=function(e){return a(e,{type:"Array"})},a.randomUint8Array=function(e){return a(e,{type:"Uint8Array"})},a.randomBuffer=function(e){return a(e,{type:"Buffer"})}}()}).call(this,r(13),r(2).Buffer)},function(e,t){},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(773)),i=n(r(797));t.compute=o.compute,t.nistConcatKdf=i.nistConcatKdf,t.default={compute:t.compute,nistConcatKdf:t.nistConcatKdf}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(373)),c=s(r(141)),u=i(r(774)),l=i(r(776)),f=i(r(794));t.compute=function(e,t,r,i,s){return void 0===t&&(t="SHA-256"),void 0===r&&(r=32),void 0===i&&(i=""),void 0===s&&(s=null),n(void 0,void 0,void 0,(function(){var n,a,l,h;return o(this,(function(o){switch(o.label){case 0:if(n=c.getCrypto(),s||(s=u.default.getRandomBytes(r)),"webCrypto"!==n.name||"function"!=typeof n.crypto.importKey||"function"!=typeof n.crypto.deriveBits)return[3,7];o.label=1;case 1:return o.trys.push([1,4,,6]),[4,n.crypto.importKey("raw",e,{name:"HKDF"},!1,["deriveKey","deriveBits"])];case 2:return l=o.sent(),h={name:"HKDF",salt:s,info:f.default.encoder.stringToArrayBuffer(i),hash:t},[4,n.crypto.deriveBits(h,l,8*r)];case 3:return a=o.sent(),a=new Uint8Array(a),[3,6];case 4:return o.sent(),[4,d(e,t,r,i,s)];case 5:return a=o.sent(),[3,6];case 6:return[3,9];case 7:return[4,d(e,t,r,i,s)];case 8:a=o.sent(),o.label=9;case 9:return[2,{key:a,salt:s}]}}))}))};var d=function(e,t,r,i,s){return n(void 0,void 0,void 0,(function(){var n,c,u,d,h,p,g;return o(this,(function(o){switch(o.label){case 0:return n=a.default.hashes[t].hashSize,[4,l.default.compute(s,e,t)];case 1:c=o.sent(),u=new Uint8Array([]),d=new Uint8Array(Math.ceil(r/n)*n),h=f.default.encoder.stringToArrayBuffer(i),p=0,o.label=2;case 2:return p<Math.ceil(r/n)?((g=new Uint8Array(u.length+h.length+1)).set(u),g.set(h,u.length),g.set(new Uint8Array([p+1]),u.length+h.length),[4,l.default.compute(c,g,t)]):[3,5];case 3:u=o.sent(),d.set(u,n*p),o.label=4;case 4:return p++,[3,2];case 5:return[2,d.slice(0,r)]}}))}))}},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(775));t.getRandomBytes=o.getRandomBytes,t.getRandomAsciiString=o.getRandomAsciiString,t.getRandomString=o.getRandomString,t.getRandomSampledString=o.getRandomSampledString,t.default={getRandomBytes:t.getRandomBytes,getRandomAsciiString:t.getRandomAsciiString,getRandomString:t.getRandomString,getRandomSampledString:t.getRandomSampledString}},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(141));t.getRandomString=function(e){for(var r=t.getRandomBytes(e),n=t.getRandomBytes(e),o="",i=0;i<e;i++)n[i]=n[i]%3,r[i]=0===n[i]?r[i]%10+48:r[i]%26+(1===n[i]?65:97),o+=String.fromCharCode(r[i]);return o},t.getRandomAsciiString=function(e){for(var r=t.getRandomBytes(e),n="",o=0;o<e;o++)r[o]=r[o]%94+32,n+=String.fromCharCode(r[o]);return n},t.getRandomSampledString=function(e,r){var n=r.length;if(0===n)return"";for(var o=t.getRandomBytes(e),i="",s=0;s<e;s++)i+=r[o[s]%n];return i},t.getRandomBytes=function(e){var t=o.getRootWebCryptoAll(),r=o.getNodeCrypto();if(void 0!==t&&"function"==typeof t.getRandomValues){var n=new Uint8Array(e);return t.getRandomValues(n),n}if(void 0!==r)return new Uint8Array(r.randomBytes(e));throw new Error("UnsupportedEnvironment")}},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(777));t.compute=o.compute,t.verify=o.verify,t.default={compute:t.compute,verify:t.verify}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(778)),c=s(r(141)),u=i(r(374));t.compute=function(e,t,r){return void 0===r&&(r="SHA-256"),n(void 0,void 0,void 0,(function(){var n,i,s,u,h,p,g,m;return o(this,(function(o){switch(o.label){case 0:n=c.getCrypto(),u=!0,o.label=1;case 1:return o.trys.push([1,9,,10]),"webCrypto"!==n.name||"function"!=typeof n.crypto.importKey||"function"!=typeof n.crypto.sign?[3,4]:[4,n.crypto.importKey("raw",e,{name:"HMAC",hash:{name:r}},!1,["sign","verify"])];case 2:return h=o.sent(),[4,n.crypto.sign({name:"HMAC",hash:{name:r}},h,t)];case 3:return i=o.sent(),[3,8];case 4:return"msCrypto"!==n.name?[3,7]:[4,f("raw",e,{name:"HMAC",hash:{name:r}},!1,["sign","verify"],n.crypto)];case 5:return h=o.sent(),[4,d(r,h,t,n.crypto)];case 6:return i=o.sent(),[3,8];case 7:"nodeCrypto"===n.name?(p=n.crypto.createHmac(a.default.hashes[r].nodeName,e),i=p.update(t).digest()):u=!1,o.label=8;case 8:return[3,10];case 9:return g=o.sent(),s=g.message,u=!1,[3,10];case 10:if(u)return[3,14];o.label=11;case 11:return o.trys.push([11,13,,14]),[4,l(e,t,r)];case 12:return i=o.sent(),[3,14];case 13:throw m=o.sent(),s=s+" => "+m.message,new Error("UnsupportedEnvironments: "+s);case 14:return[2,new Uint8Array(i)]}}))}))};var l=function(e,t,r){return n(void 0,void 0,void 0,(function(){var n,i,s,c,l,f,d,h;return o(this,(function(o){switch(o.label){case 0:return n=a.default.hashes[r].blockSize,i=a.default.hashes[r].hashSize,e.length>n?[4,u.default.compute(e,r)]:[3,2];case 1:e=o.sent(),o.label=2;case 2:return(s=new Uint8Array(n)).set(e),c=s.map((function(e){return 255&(54^e)})),l=s.map((function(e){return 255&(92^e)})),(f=new Uint8Array(n+t.length)).set(c),f.set(t,n),[4,u.default.compute(f,r)];case 3:return d=o.sent(),(h=new Uint8Array(n+i)).set(l),h.set(d,n),[2,u.default.compute(h,r)]}}))}))};t.verify=function(e,r,i,s){return void 0===s&&(s="SHA-256"),n(void 0,void 0,void 0,(function(){var n;return o(this,(function(o){switch(o.label){case 0:return[4,t.compute(e,r,s)];case 1:return n=o.sent(),[2,i.toString()===n.toString()]}}))}))};var f=function(e,t,r,n,o,i){return new Promise((function(s,a){var c=i.importKey(e,t,r,n,o);c.oncomplete=function(e){s(e.target.result)},c.onerror=function(){a("KeyImportingFailed")}}))},d=function(e,t,r,n){return new Promise((function(o,i){var s=n.sign({name:"HMAC",hash:{name:e}},t,r);s.oncomplete=function(e){o(new Uint8Array(e.target.result))},s.onerror=function(){i("ComputingHMACFailed")}}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64,blockSize:72},"SHA3-384":{nodeName:"sha3-384",hashSize:48,blockSize:104},"SHA3-256":{nodeName:"sha3-256",hashSize:32,blockSize:136},"SHA3-224":{nodeName:"sha3-224",hashSize:28,blockSize:144},"SHA-256":{nodeName:"sha256",hashSize:32,blockSize:64},"SHA-384":{nodeName:"sha384",hashSize:48,blockSize:128},"SHA-512":{nodeName:"sha512",hashSize:64,blockSize:128},"SHA-1":{nodeName:"sha1",hashSize:20,blockSize:64},MD5:{nodeName:"md5",hashSize:16,blockSize:64}}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(r(141)),c=s(r(780)),u=s(r(781)),l=r(784),f=s(r(70));t.compute=function(e,t){return void 0===t&&(t="SHA-256"),n(void 0,void 0,void 0,(function(){var r,n,i,s,c;return o(this,(function(o){switch(o.label){case 0:r=a.getCrypto(),s=!0,o.label=1;case 1:return o.trys.push([1,8,,9]),"webCrypto"!==r.name||"function"!=typeof r.crypto.digest?[3,3]:[4,r.crypto.digest(t,e)];case 2:return n=o.sent(),[3,7];case 3:return"nodeCrypto"!==r.name?[3,4]:(n=h(t,e,r.crypto),[3,7]);case 4:return"msCrypto"!==r.name||"function"!=typeof r.crypto.digest?[3,6]:[4,d(t,e,r.crypto)];case 5:return n=o.sent(),[3,7];case 6:s=!1,o.label=7;case 7:return[3,9];case 8:return c=o.sent(),i=c.message,s=!1,[3,9];case 9:if(!s)try{n=p(t,e)}catch(e){throw i=(void 0===i?"":i)+" => "+e.message,new Error("UnsupportedEnvironment: "+i)}return[2,new Uint8Array(n)]}}))}))};var d=function(e,t,r){return new Promise((function(n,o){var i=r.digest(e,t);i.oncomplete=function(e){n(e.target.result)},i.onerror=function(e){o(e)}}))},h=function(e,t,r){var n=c.default.hashes[e].nodeName,o=r.createHash(n);return o.update(t),o.digest()},p=function(e,t){var n;if("MD5"===e)n=u.default(Array.from(t),{asBytes:!0});else if(["SHA3-512","SHA3-384","SHA3-256","SHA3-224"].indexOf(e)>=0){var o=8*c.default.hashes[e].hashSize,i=new l.SHA3(o),s=r(2).Buffer;i.update(s.from(t)),n=i.digest("binary")}else n=f.default[c.default.hashes[e].nodeName]().update(t).digest();return new Uint8Array(n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64},"SHA3-384":{nodeName:"sha3-384",hashSize:48},"SHA3-256":{nodeName:"sha3-256",hashSize:32},"SHA3-224":{nodeName:"sha3-224",hashSize:28},"SHA-256":{nodeName:"sha256",hashSize:32},"SHA-384":{nodeName:"sha384",hashSize:48},"SHA-512":{nodeName:"sha512",hashSize:64},"SHA-1":{nodeName:"sha1",hashSize:20},MD5:{nodeName:"md5",hashSize:16}}}},function(e,t,r){var n,o,i,s,a;n=r(782),o=r(375).utf8,i=r(783),s=r(375).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?s.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var r=n.bytesToWords(e),c=8*e.length,u=1732584193,l=-271733879,f=-1732584194,d=271733878,h=0;h<r.length;h++)r[h]=16711935&(r[h]<<8|r[h]>>>24)|4278255360&(r[h]<<24|r[h]>>>8);r[c>>>5]|=128<<c%32,r[14+(c+64>>>9<<4)]=c;var p=a._ff,g=a._gg,m=a._hh,y=a._ii;for(h=0;h<r.length;h+=16){var b=u,v=l,w=f,_=d;u=p(u,l,f,d,r[h+0],7,-680876936),d=p(d,u,l,f,r[h+1],12,-389564586),f=p(f,d,u,l,r[h+2],17,606105819),l=p(l,f,d,u,r[h+3],22,-1044525330),u=p(u,l,f,d,r[h+4],7,-176418897),d=p(d,u,l,f,r[h+5],12,1200080426),f=p(f,d,u,l,r[h+6],17,-1473231341),l=p(l,f,d,u,r[h+7],22,-45705983),u=p(u,l,f,d,r[h+8],7,1770035416),d=p(d,u,l,f,r[h+9],12,-1958414417),f=p(f,d,u,l,r[h+10],17,-42063),l=p(l,f,d,u,r[h+11],22,-1990404162),u=p(u,l,f,d,r[h+12],7,1804603682),d=p(d,u,l,f,r[h+13],12,-40341101),f=p(f,d,u,l,r[h+14],17,-1502002290),u=g(u,l=p(l,f,d,u,r[h+15],22,1236535329),f,d,r[h+1],5,-165796510),d=g(d,u,l,f,r[h+6],9,-1069501632),f=g(f,d,u,l,r[h+11],14,643717713),l=g(l,f,d,u,r[h+0],20,-373897302),u=g(u,l,f,d,r[h+5],5,-701558691),d=g(d,u,l,f,r[h+10],9,38016083),f=g(f,d,u,l,r[h+15],14,-660478335),l=g(l,f,d,u,r[h+4],20,-405537848),u=g(u,l,f,d,r[h+9],5,568446438),d=g(d,u,l,f,r[h+14],9,-1019803690),f=g(f,d,u,l,r[h+3],14,-187363961),l=g(l,f,d,u,r[h+8],20,1163531501),u=g(u,l,f,d,r[h+13],5,-1444681467),d=g(d,u,l,f,r[h+2],9,-51403784),f=g(f,d,u,l,r[h+7],14,1735328473),u=m(u,l=g(l,f,d,u,r[h+12],20,-1926607734),f,d,r[h+5],4,-378558),d=m(d,u,l,f,r[h+8],11,-2022574463),f=m(f,d,u,l,r[h+11],16,1839030562),l=m(l,f,d,u,r[h+14],23,-35309556),u=m(u,l,f,d,r[h+1],4,-1530992060),d=m(d,u,l,f,r[h+4],11,1272893353),f=m(f,d,u,l,r[h+7],16,-155497632),l=m(l,f,d,u,r[h+10],23,-1094730640),u=m(u,l,f,d,r[h+13],4,681279174),d=m(d,u,l,f,r[h+0],11,-358537222),f=m(f,d,u,l,r[h+3],16,-722521979),l=m(l,f,d,u,r[h+6],23,76029189),u=m(u,l,f,d,r[h+9],4,-640364487),d=m(d,u,l,f,r[h+12],11,-421815835),f=m(f,d,u,l,r[h+15],16,530742520),u=y(u,l=m(l,f,d,u,r[h+2],23,-995338651),f,d,r[h+0],6,-198630844),d=y(d,u,l,f,r[h+7],10,1126891415),f=y(f,d,u,l,r[h+14],15,-1416354905),l=y(l,f,d,u,r[h+5],21,-57434055),u=y(u,l,f,d,r[h+12],6,1700485571),d=y(d,u,l,f,r[h+3],10,-1894986606),f=y(f,d,u,l,r[h+10],15,-1051523),l=y(l,f,d,u,r[h+1],21,-2054922799),u=y(u,l,f,d,r[h+8],6,1873313359),d=y(d,u,l,f,r[h+15],10,-30611744),f=y(f,d,u,l,r[h+6],15,-1560198380),l=y(l,f,d,u,r[h+13],21,1309151649),u=y(u,l,f,d,r[h+4],6,-145523070),d=y(d,u,l,f,r[h+11],10,-1120210379),f=y(f,d,u,l,r[h+2],15,718787259),l=y(l,f,d,u,r[h+9],21,-343485551),u=u+b>>>0,l=l+v>>>0,f=f+w>>>0,d=d+_>>>0}return n.endian([u,l,f,d])})._ff=function(e,t,r,n,o,i,s){var a=e+(t&r|~t&n)+(o>>>0)+s;return(a<<i|a>>>32-i)+t},a._gg=function(e,t,r,n,o,i,s){var a=e+(t&n|r&~n)+(o>>>0)+s;return(a<<i|a>>>32-i)+t},a._hh=function(e,t,r,n,o,i,s){var a=e+(t^r^n)+(o>>>0)+s;return(a<<i|a>>>32-i)+t},a._ii=function(e,t,r,n,o,i,s){var a=e+(r^(t|~n))+(o>>>0)+s;return(a<<i|a>>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var r=n.wordsToBytes(a(e,t));return t&&t.asBytes?r:t&&t.asString?s.bytesToString(r):n.bytesToHex(r)}},function(e,t){var r,n;r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var o=e[n]<<16|e[n+1]<<8|e[n+2],i=0;i<4;i++)8*n+6*i<=8*e.length?t.push(r.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,o=0;n<e.length;o=++n%4)0!=o&&t.push((r.indexOf(e.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|r.indexOf(e.charAt(n))>>>6-2*o);return t}},e.exports=n},function(e,t){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
70 /*!
71  * Determine if an object is a Buffer
72  *
73  * @author   Feross Aboukhadijeh <https://feross.org>
74  * @license  MIT
75  */
76 e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHAKE=t.SHA3Hash=t.SHA3=t.Keccak=void 0;var n,o=r(2),i=(n=r(785))&&n.__esModule?n:{default:n};var s=function(e){var t=e.allowedSizes,r=e.padding;return function e(){var n=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:512;if(!this||this.constructor!==e)return new e(s);if(t&&!t.includes(s))throw new Error("Unsupported hash length");var a=new i.default({capacity:s});return this.update=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(o.Buffer.isBuffer(e))return a.absorb(e),n;if("string"==typeof e)return n.update(o.Buffer.from(e,t));throw new TypeError("Not a string or buffer")},this.digest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"binary",t="string"==typeof e?{format:e}:e,n=a.squeeze({buffer:t.buffer,padding:t.padding||r});return t.format&&"binary"!==t.format?n.toString(t.format):n},this.reset=function(){return a.reset(),n},this}},a=s({allowedSizes:[224,256,384,512],padding:1});t.Keccak=a;var c=s({allowedSizes:[224,256,384,512],padding:6});t.SHA3=c;var u=s({allowedSizes:[128,256],padding:31});t.SHAKE=u;var l=a;t.SHA3Hash=l,c.SHA3Hash=l;var f=c;t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=r(2),i=(n=r(786))&&n.__esModule?n:{default:n};var s=function(e,t){for(var r=0;r<e.length;r+=8){var n=r/4;t[n]^=e[r+7]<<24|e[r+6]<<16|e[r+5]<<8|e[r+4],t[n+1]^=e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]}return t},a=function(e,t){for(var r=0;r<t.length;r+=8){var n=r/4;t[r]=e[n+1],t[r+1]=e[n+1]>>>8,t[r+2]=e[n+1]>>>16,t[r+3]=e[n+1]>>>24,t[r+4]=e[n],t[r+5]=e[n]>>>8,t[r+6]=e[n]>>>16,t[r+7]=e[n]>>>24}return t},c=function(e){var t=this,r=e.capacity,n=e.padding,c=(0,i.default)(),u=r/8,l=200-r/4,f=0,d=new Uint32Array(50),h=o.Buffer.allocUnsafe(l);return this.absorb=function(e){for(var r=0;r<e.length;r++)h[f]=e[r],(f+=1)>=l&&(s(h,d),c(d),f=0);return t},this.squeeze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={buffer:e.buffer||o.Buffer.allocUnsafe(u),padding:e.padding||n,queue:o.Buffer.allocUnsafe(h.length),state:new Uint32Array(d.length)};h.copy(t.queue);for(var r=0;r<d.length;r++)t.state[r]=d[r];t.queue.fill(0,f),t.queue[f]|=t.padding,t.queue[l-1]|=128,s(t.queue,t.state);for(var i=0;i<t.buffer.length;i+=l)c(t.state),a(t.state,t.buffer.slice(i,i+l));return t.buffer},this.reset=function(){return h.fill(0),d.fill(0),f=0,t},this};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(787)),o=a(r(788)),i=a(r(790)),s=a(r(793));function a(e){return e&&e.__esModule?e:{default:e}}var c=function(){var e=new Uint32Array(10),t=new Uint32Array(10),r=new Uint32Array(2);return function(a){for(var c=0;c<24;c++)(0,s.default)({A:a,C:e,D:t,W:r}),(0,i.default)({A:a,C:e,W:r}),(0,n.default)({A:a,C:e}),(0,o.default)({A:a,roundIndex:c});e.fill(0),t.fill(0),r.fill(0)}};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(202))&&n.__esModule?n:{default:n};var i=function(e){for(var t=e.A,r=e.C,n=0;n<25;n+=5){for(var i=0;i<5;i++)(0,o.default)(t,n+i)(r,i);for(var s=0;s<5;s++){var a=2*(n+s),c=(s+1)%5*2,u=(s+2)%5*2;t[a]^=~r[c]&r[u],t[a+1]^=~r[c+1]&r[u+1]}}};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(789))&&n.__esModule?n:{default:n};var i=function(e){var t=e.A,r=2*e.roundIndex;t[0]^=o.default[r],t[1]^=o.default[r+1]};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=new Uint32Array([0,1,0,32898,2147483648,32906,2147483648,2147516416,0,32907,0,2147483649,2147483648,2147516545,2147483648,32777,0,138,0,136,0,2147516425,0,2147483658,0,2147516555,2147483648,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,0,32778,2147483648,2147483658,2147483648,2147516545,2147483648,32896,0,2147483649,2147483648,2147516424]);t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(791)),o=s(r(792)),i=s(r(202));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){var t=e.A,r=e.C,s=e.W;(0,i.default)(t,1)(s,0);for(var a=0,c=0,u=0,l=32,f=0;f<24;f++){var d=n.default[f],h=o.default[f];(0,i.default)(t,d)(r,0),a=s[0],c=s[1],l=32-h,s[u=h<32?0:1]=a<<h|c>>>l,s[(u+1)%2]=c<<h|a>>>l,(0,i.default)(s,0)(t,d),(0,i.default)(r,0)(s,0)}};t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[10,7,11,17,18,3,5,16,8,21,24,4,15,23,19,13,12,2,20,14,22,9,6,1];t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[1,3,6,10,15,21,28,36,45,55,2,14,27,41,56,8,25,43,62,18,39,61,20,44];t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(202))&&n.__esModule?n:{default:n};var i=function(e){for(var t=e.A,r=e.C,n=e.D,i=e.W,s=0,a=0,c=0;c<5;c++){var u=2*c,l=2*(c+5),f=2*(c+10),d=2*(c+15),h=2*(c+20);r[u]=t[u]^t[l]^t[f]^t[d]^t[h],r[u+1]=t[u+1]^t[l+1]^t[f+1]^t[d+1]^t[h+1]}for(var p=0;p<5;p++){(0,o.default)(r,(p+1)%5)(i,0),s=i[0],a=i[1],i[0]=s<<1|a>>>31,i[1]=a<<1|s>>>31,n[2*p]=r[(p+4)%5*2]^i[0],n[2*p+1]=r[(p+4)%5*2+1]^i[1];for(var g=0;g<25;g+=5)t[2*(g+p)]^=n[2*p],t[2*(g+p)+1]^=n[2*p+1]}};t.default=i},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o,i,s=n(r(376)),a=n(r(796));!function(e){e.encodeBase64=s.encodeBase64,e.decodeBase64=s.decodeBase64,e.encodeBase64Url=s.encodeBase64Url,e.decodeBase64Url=s.decodeBase64Url,e.arrayBufferToHexString=s.arrayBufferToHexString,e.hexStringToArrayBuffer=s.hexStringToArrayBuffer,e.stringToArrayBuffer=s.stringToArrayBuffer,e.arrayBufferToString=s.arrayBufferToString}(o=t.encoder||(t.encoder={})),function(e){e.binToPem=a.binToPem,e.pemToBin=a.pemToBin}(i=t.formatter||(t.formatter={})),t.default={encoder:o,formatter:i}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getEnvBtoa=function(){return"undefined"!=typeof window?window.btoa:r},t.getEnvAtob=function(){return"undefined"!=typeof window?window.atob:n};var r=function(t){if(void 0===e)throw new Error("UnsupportedEnvironment");return e.from(t.toString(),"binary").toString("base64")},n=function(t){if(void 0===e)throw new Error("UnsupportedEnvironment");return e.from(t,"base64").toString("binary")}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(376)),i={public:"PUBLIC KEY",private:"PRIVATE KEY",encryptedPrivate:"ENCRYPTED PRIVATE KEY",certificate:"CERTIFICATE",certRequest:"CERTIFICATE REQUEST"};t.pemToBin=function(e){var t=a(e);return o.decodeBase64(t)},t.binToPem=function(e,t){var r=o.encodeBase64(e);return s(r,t)};var s=function(e,t){for(var r=i[t],n="-----BEGIN "+r+"-----\n";e.length>0;)n+=e.substring(0,64)+"\n",e=e.substring(64);return n=n+"-----END "+r+"-----"},a=function(e){var t=RegExp("^-----[s]*BEGIN[^-]*-----$","gm"),r=RegExp("^-----[s]*END[^-]*-----$","gm");try{var n=e.split(t)[1].split(r)[0];return n=n.replace(/\r?\n/g,"")}catch(e){throw new Error("Invalid format as PEM")}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(r(373)),a=i(r(374));t.nistConcatKdf=function(e,t,r,i){return void 0===r&&(r=32),void 0===i&&(i="SHA-256"),n(void 0,void 0,void 0,(function(){var n,u,l,f,d,h;return o(this,(function(o){switch(o.label){case 0:if((n=Math.ceil(r/s.default.hashes[i].hashSize))>Math.pow(2,32)-1)throw new Error("TooLongKeyDataIndicated");u=new Uint8Array(s.default.hashes[i].hashSize*n),l=new Uint8Array(4),f=0,o.label=1;case 1:return f<n?(l=c(l),(d=new Uint8Array(4+e.length+t.length)).set(l),d.set(e,l.length),d.set(t,l.length+e.length),[4,a.default.compute(d,i)]):[3,4];case 2:h=o.sent(),u.set(h,f*s.default.hashes[i].hashSize),o.label=3;case 3:return f++,[3,1];case 4:return[2,u.slice(0,r)]}}))}))};var c=function(e){e[3]+=1;for(var t=!0,r=3;t&&r>0;)e[r-1]+=t&&0===e[r]?1:0,t=t&&0===e[r],r--;return e}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!=o--;){var s=i[o];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(105),o=r(204);function i(e){return[n.Slip10RawIndex.hardened(44),n.Slip10RawIndex.hardened(529),n.Slip10RawIndex.hardened(0),n.Slip10RawIndex.normal(0),n.Slip10RawIndex.normal(e)]}t.makeSecretNetworkPath=i;class s{constructor(e,t){this.privkey=e,this.pubkey=t}static async fromMnemonic(e,t=i(0)){const r=await n.Bip39.mnemonicToSeed(new n.EnglishMnemonic(e)),{privkey:o}=n.Slip10.derivePath(n.Slip10Curve.Secp256k1,r,t),a=(await n.Secp256k1.makeKeypair(o)).pubkey;return new s(o,n.Secp256k1.compressPubkey(a))}async sign(e,t="sha256"){const r=function(e,t){switch(t){case null:return new Uint8Array([...e]);case"sha256":return new n.Sha256(e).digest();case"sha512":return new n.Sha512(e).digest();default:throw new Error("Unknown prehash type")}}(e,t),i=await n.Secp256k1.createSignature(r,this.privkey),s=new Uint8Array([...i.r(32),...i.s(32)]);return o.encodeSecp256k1Signature(this.pubkey,s)}}t.Secp256k1Pen=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(105),o=r(196),i=r(204);t.findSequenceForSignedTx=async function(e,t,r,s,a=0){const c=e.value.signatures.find(()=>!0);if(!c)throw new Error("Signature missing in tx");const{pubkey:u,signature:l}=i.decodeSignature(c),f=n.Secp256k1Signature.fromFixedLength(l);for(let i=a;i<s;i++){const s=o.makeSignBytes(e.value.msg,e.value.fee,t,e.value.memo||"",r,i),a=new n.Sha256(s).digest();if(await n.Secp256k1.verifySignature(f,a,u))return i}}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(105),i=r(42),s=n(r(411)),a=r(802),c=r(377),u=r(196),l=r(194),f=r(197);function d(e,t){return[{amount:e.toString(),denom:t}]}const h={upload:{amount:d(25e4,"uscrt"),gas:String(1e6)},init:{amount:d(125e3,"uscrt"),gas:String(5e5)},exec:{amount:d(5e4,"uscrt"),gas:String(2e5)},send:{amount:d(2e4,"uscrt"),gas:String(8e4)}};class p extends c.CosmWasmClient{constructor(e,t,r,n,o,i=f.BroadcastMode.Block){n instanceof Uint8Array?super(e,n,i):super(e,void 0,i),this.anyValidAddress=t,this.senderAddress=t,this.signer=r,!n||n instanceof Uint8Array||(this.restClient.enigmautils=n),this.fees=Object.assign(Object.assign({},h),o||{})}async getNonce(e){return super.getNonce(e||this.senderAddress)}async getAccount(e){return super.getAccount(e||this.senderAddress)}async signAdapter(e,t,r,n,o,i){if("sign"in this.signer){const s=await this.signer.sign(this.senderAddress,{chain_id:r,account_number:String(o),sequence:String(i),fee:t,msgs:e,memo:n});return{msg:e,fee:s.signed.fee,memo:s.signed.memo,signatures:[s.signature]}}{const s=u.makeSignBytes(e,t,r,n,o,i);return{msg:e,fee:t,memo:n,signatures:[await this.signer(s)]}}}async upload(e,t={},r="",n=this.fees.upload){const c=t.source||"",u=function(e){if(void 0===e)return"";if(!a.isValidBuilder(e))throw new Error("The builder (Docker Hub image with tag) is not valid");return e}(t.builder),f=s.default.gzip(e,{level:9}),d={type:"wasm/MsgStoreCode",value:{sender:this.senderAddress,wasm_byte_code:i.Encoding.toBase64(f),source:c,builder:u}},{accountNumber:h,sequence:p}=await this.getNonce(),g=await this.getChainId(),m=await this.signAdapter([d],n,g,r,h,p),y=await this.postTx(m),b=l.findAttribute(y.logs,"message","code_id");return{originalSize:e.length,originalChecksum:i.Encoding.toHex(new o.Sha256(e).digest()),compressedSize:f.length,compressedChecksum:i.Encoding.toHex(new o.Sha256(f).digest()),codeId:Number.parseInt(b.value,10),logs:y.logs,transactionHash:y.transactionHash}}async instantiate(e,t,r,n="",o,s=this.fees.init,a){a?this.restClient.codeHashCache.set(e,a):a=await this.restClient.getCodeHashByCodeId(e);const c={type:"wasm/MsgInstantiateContract",value:{sender:this.senderAddress,code_id:e.toString(),label:r,callback_code_hash:"",init_msg:i.Encoding.toBase64(await this.restClient.enigmautils.encrypt(a,t)),init_funds:null!=o?o:[],callback_sig:null}},{accountNumber:u,sequence:f}=await this.getNonce(),d=await this.getChainId(),h=await this.signAdapter([c],s,d,n,u,f),p=i.Encoding.fromBase64(c.value.init_msg).slice(0,32);let g;try{g=await this.postTx(h)}catch(e){try{const t=/contract failed: encrypted: (.+?): failed to execute message; message index: 0/g.exec(e.message);if(null==t||2!=t.length)throw e;const r=t[1],n=i.Encoding.fromBase64(r),o=await this.restClient.enigmautils.decrypt(n,p);e.message=e.message.replace(r,i.Encoding.fromUtf8(o))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}. Decryption error of the error message: ${t.message}`)}throw e}const m=l.findAttribute(g.logs,"message","contract_address"),y=await this.restClient.decryptLogs(g.logs,[p]);return{contractAddress:m.value,logs:y,transactionHash:g.transactionHash,data:g.data}}async multiExecute(e,t="",r){var n;const o=[];for(const t of e){let{contractCodeHash:e}=t;e?this.restClient.codeHashCache.set(t.contractAddress,e):e=await this.restClient.getCodeHashByContractAddr(t.contractAddress);const r={type:"wasm/MsgExecuteContract",value:{sender:this.senderAddress,contract:t.contractAddress,callback_code_hash:"",msg:i.Encoding.toBase64(await this.restClient.enigmautils.encrypt(e,t.handleMsg)),sent_funds:(n=t.transferAmount,null!=n?n:[]),callback_sig:null}};o.push(r)}const{accountNumber:s,sequence:a}=await this.getNonce(),c=null!=r?r:{gas:String(Number(this.fees.exec.gas)*e.length),amount:this.fees.exec.amount},u=await this.getChainId(),l=await this.signAdapter(o,c,u,t,s,a);let f;try{f=await this.postTx(l)}catch(e){try{const t=/contract failed: encrypted: (.+?): failed to execute message; message index: (\d+)/g.exec(e.message);if(null==t||3!=t.length)throw e;const r=t[1],n=i.Encoding.fromBase64(r),s=Number(t[2]),a=i.Encoding.fromBase64(o[s].value.msg).slice(0,32),c=await this.restClient.enigmautils.decrypt(n,a);e.message=e.message.replace(r,i.Encoding.fromUtf8(c))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}. Decryption error of the error message: ${t.message}`)}throw e}const d=o.map(e=>i.Encoding.fromBase64(e.value.msg).slice(0,32)),h=await this.restClient.decryptDataField(f.data,d);return{logs:await this.restClient.decryptLogs(f.logs,d),transactionHash:f.transactionHash,data:h}}async execute(e,t,r="",n,o=this.fees.exec,s){s?this.restClient.codeHashCache.set(e,s):s=await this.restClient.getCodeHashByContractAddr(e);const a={type:"wasm/MsgExecuteContract",value:{sender:this.senderAddress,contract:e,callback_code_hash:"",msg:i.Encoding.toBase64(await this.restClient.enigmautils.encrypt(s,t)),sent_funds:null!=n?n:[],callback_sig:null}},{accountNumber:c,sequence:u}=await this.getNonce(),l=await this.getChainId(),f=await this.signAdapter([a],o,l,r,c,u),d=i.Encoding.fromBase64(a.value.msg).slice(0,32);let h;try{h=await this.postTx(f)}catch(e){try{const t=/contract failed: encrypted: (.+?): failed to execute message; message index: 0/g.exec(e.message);if(null==t||2!=t.length)throw e;const r=t[1],n=i.Encoding.fromBase64(r),o=await this.restClient.enigmautils.decrypt(n,d);e.message=e.message.replace(r,i.Encoding.fromUtf8(o))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}. Decryption error of the error message: ${t.message}`)}throw e}const p=await this.restClient.decryptDataField(h.data,[d]);return{logs:await this.restClient.decryptLogs(h.logs,[d]),transactionHash:h.transactionHash,data:p}}async sendTokens(e,t,r="",n=this.fees.send){const o={type:"cosmos-sdk/MsgSend",value:{from_address:this.senderAddress,to_address:e,amount:t}},{accountNumber:i,sequence:s}=await this.getNonce(),a=await this.getChainId(),c=await this.signAdapter([o],n,a,r,i,s);return this.postTx(c)}}t.SigningCosmWasmClient=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new RegExp("^[a-z0-9][a-z0-9._-]*[a-z0-9](/[a-z0-9][a-z0-9._-]*[a-z0-9])+:[a-zA-Z0-9_][a-zA-Z0-9_.-]{0,127}$");t.isValidBuilder=function(e){return!(e.length>128)&&!!e.match(n)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(205),o=r(378),i=r(804);t.init=function(e,t){e.registerMessage(n.GetPubkeyMsg),e.registerMessage(n.ReqeustEncryptMsg),e.registerMessage(n.RequestDecryptMsg),e.registerMessage(n.GetTxEncryptionKeyMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(205);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.GetPubkeyMsg:return i(e)(t,r);case o.ReqeustEncryptMsg:return s(e)(t,r);case o.RequestDecryptMsg:return a(e)(t,r);case o.GetTxEncryptionKeyMsg:return c(e)(t,r);default:throw new Error("Unknown msg type")}};const i=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.getPubkey(t,r.chainId)})),s=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.encrypt(t,r.chainId,r.contractCodeHash,r.msg)})),a=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.decrypt(t,r.chainId,r.cipherText,r.nonce)})),c=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.getTxEncryptionKey(t,r.chainId,r.nonce)}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(379),t),o(r(806),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(206),o=r(380),i=r(807);t.init=function(e,t){e.registerMessage(n.SendTxMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(206);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.SendTxMsg:return i(e)(t,r);default:throw new Error("Unknown msg type")}};const i=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.sendTx(r.chainId,r.tx,r.mode)}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(335),t),o(r(809),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(178),o=r(337),i=r(810);t.init=function(e,t){e.registerMessage(n.TryUpdateChainMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(178);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.TryUpdateChainMsg:return i(e)(t,r);default:throw new Error("Unknown msg type")}};const i=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){yield e.tryUpdateChain(r.chainId)}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(381),t),o(r(812),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(142),o=r(382),i=r(813);t.init=function(e,t){e.registerMessage(n.GetTokensMsg),e.registerMessage(n.SuggestTokenMsg),e.registerMessage(n.AddTokenMsg),e.registerMessage(n.RemoveTokenMsg),e.registerMessage(n.GetSecret20ViewingKey),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(142);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.GetTokensMsg:return i(e)(t,r);case o.SuggestTokenMsg:return s(e)(t,r);case o.AddTokenMsg:return a(e)(t,r);case o.RemoveTokenMsg:return c(e)(t,r);case o.GetSecret20ViewingKey:return u(e)(t,r);default:throw new Error("Unknown msg type")}};const i=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.getTokens(r.chainId)})),s=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.suggestToken(t,r.chainId,r.contractAddress,r.viewingKey)})),a=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){yield e.addToken(r.chainId,r.currency)})),c=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){yield e.removeToken(r.chainId,r.currency)})),u=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,r.chainId,r.origin),yield e.getSecret20ViewingKey(r.chainId,r.contractAddress)}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(338),t),o(r(815),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(180),o=r(341),i=r(816);t.init=function(e,t){e.registerMessage(n.ApproveInteractionMsg),e.registerMessage(n.RejectInteractionMsg),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const n=r(180);t.getHandler=e=>(t,r)=>{switch(r.constructor){case n.ApproveInteractionMsg:return o(e)(t,r);case n.RejectInteractionMsg:return i(e)(t,r);default:throw new Error("Unknown msg type")}};const o=e=>(t,r)=>e.approve(r.id,r.result),i=e=>(t,r)=>e.reject(r.id)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(351),t),o(r(818),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const n=r(192),o=r(354),i=r(819);t.init=function(e,t){e.registerMessage(n.EnableAccessMsg),e.registerMessage(n.GetPermissionOriginsMsg),e.registerMessage(n.RemovePermissionOrigin),e.addHandler(o.ROUTE,i.getHandler(t))}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const o=r(192);t.getHandler=e=>(t,r)=>{switch(r.constructor){case o.EnableAccessMsg:return i(e)(t,r);case o.GetPermissionOriginsMsg:return s(e)(t,r);case o.RemovePermissionOrigin:return a(e)(t,r);default:throw new Error("Unknown msg type")}};const i=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){return yield e.checkOrGrantBasicAccessPermission(t,r.chainIds,r.origin)})),s=e=>(t,r)=>e.getPermissionOrigins(r.chainId,r.permissionType),a=e=>(t,r)=>n(void 0,void 0,void 0,(function*(){yield e.removePermission(r.chainId,r.permissionType,[r.permissionOrigin])}))},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(330),t),o(r(177),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(359),t),o(r(205),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(379),t),o(r(206),t)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(381),t),o(r(142),t),o(r(383),t)},,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));var n=r(11);const o=[{rpc:"https://rpc-cosmoshub.keplr.app",rpcConfig:void 0,rest:"https://lcd-cosmoshub.keplr.app",restConfig:void 0,chainId:"cosmoshub-4",chainName:"Cosmos",stakeCurrency:{coinDenom:"ATOM",coinMinimalDenom:"uatom",coinDecimals:6,coinGeckoId:"cosmos"},walletUrl:"https://wallet.keplr.app/#/cosmoshub/stake",walletUrlForStaking:"https://wallet.keplr.app/#/cosmoshub/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("cosmos"),currencies:[{coinDenom:"ATOM",coinMinimalDenom:"uatom",coinDecimals:6,coinGeckoId:"cosmos"}],feeCurrencies:[{coinDenom:"ATOM",coinMinimalDenom:"uatom",coinDecimals:6,coinGeckoId:"cosmos"}],coinType:118,features:["stargate","ibc-transfer"]},{rpc:"https://rpc-osmosis.keplr.app",rpcConfig:void 0,rest:"https://lcd-osmosis.keplr.app",restConfig:void 0,chainId:"osmosis-1",chainName:"Osmosis",stakeCurrency:{coinDenom:"OSMO",coinMinimalDenom:"uosmo",coinDecimals:6,coinGeckoId:"osmosis"},walletUrl:"https://app.osmosis.zone",walletUrlForStaking:"https://wallet.keplr.app/#/osmosis/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("osmo"),currencies:[{coinDenom:"OSMO",coinMinimalDenom:"uosmo",coinDecimals:6,coinGeckoId:"osmosis"},{coinDenom:"ION",coinMinimalDenom:"uion",coinDecimals:6,coinGeckoId:"ion"}],feeCurrencies:[{coinDenom:"OSMO",coinMinimalDenom:"uosmo",coinDecimals:6,coinGeckoId:"osmosis"}],gasPriceStep:{low:0,average:.025,high:.035},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-secret.keplr.app",rpcConfig:void 0,rest:"https://lcd-secret.keplr.app",restConfig:void 0,chainId:"secret-2",chainName:"Secret Network",stakeCurrency:{coinDenom:"SCRT",coinMinimalDenom:"uscrt",coinDecimals:6,coinGeckoId:"secret"},walletUrl:"https://wallet.keplr.app/#/secret/stake",walletUrlForStaking:"https://wallet.keplr.app/#/secret/stake",bip44:{coinType:529},alternativeBIP44s:[{coinType:118}],bech32Config:n.Bech32Address.defaultBech32Config("secret"),currencies:[{coinDenom:"SCRT",coinMinimalDenom:"uscrt",coinDecimals:6,coinGeckoId:"secret"}],feeCurrencies:[{coinDenom:"SCRT",coinMinimalDenom:"uscrt",coinDecimals:6,coinGeckoId:"secret"}],coinType:529,gasPriceStep:{low:.1,average:.25,high:.3},features:["secretwasm"]},{rpc:"https://rpc-akash.keplr.app",rpcConfig:void 0,rest:"https://lcd-akash.keplr.app",restConfig:void 0,chainId:"akashnet-2",chainName:"Akash",stakeCurrency:{coinDenom:"AKT",coinMinimalDenom:"uakt",coinDecimals:6,coinGeckoId:"akash-network"},walletUrl:"https://wallet.keplr.app/#/akashnet/stake",walletUrlForStaking:"https://wallet.keplr.app/#/akashnet/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("akash"),currencies:[{coinDenom:"AKT",coinMinimalDenom:"uakt",coinDecimals:6,coinGeckoId:"akash-network"}],feeCurrencies:[{coinDenom:"AKT",coinMinimalDenom:"uakt",coinDecimals:6,coinGeckoId:"akash-network"}],features:["stargate","ibc-transfer"]},{rpc:"https://rpc-crypto-org.keplr.app",rpcConfig:void 0,rest:"https://lcd-crypto-org.keplr.app",restConfig:void 0,chainId:"crypto-org-chain-mainnet-1",chainName:"Crypto.org",stakeCurrency:{coinDenom:"CRO",coinMinimalDenom:"basecro",coinDecimals:8,coinGeckoId:"crypto-com-chain"},walletUrl:"https://wallet.keplr.app/#/crypto-org/stake",walletUrlForStaking:"https://wallet.keplr.app/#/crypto-org/stake",bip44:{coinType:394},bech32Config:n.Bech32Address.defaultBech32Config("cro"),currencies:[{coinDenom:"CRO",coinMinimalDenom:"basecro",coinDecimals:8,coinGeckoId:"crypto-com-chain"}],feeCurrencies:[{coinDenom:"CRO",coinMinimalDenom:"basecro",coinDecimals:8,coinGeckoId:"crypto-com-chain"}],gasPriceStep:{low:.025,average:.03,high:.04},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-iov.keplr.app",rpcConfig:void 0,rest:"https://lcd-iov.keplr.app",restConfig:void 0,chainId:"iov-mainnet-ibc",chainName:"Starname",stakeCurrency:{coinDenom:"IOV",coinMinimalDenom:"uiov",coinDecimals:6,coinGeckoId:"starname"},walletUrl:"https://wallet.keplr.app/#/iov-mainnet/stake",walletUrlForStaking:"https://wallet.keplr.app/#/iov-mainnet/stake",bip44:{coinType:234},bech32Config:n.Bech32Address.defaultBech32Config("star"),currencies:[{coinDenom:"IOV",coinMinimalDenom:"uiov",coinDecimals:6,coinGeckoId:"starname"}],feeCurrencies:[{coinDenom:"IOV",coinMinimalDenom:"uiov",coinDecimals:6,coinGeckoId:"starname"}],gasPriceStep:{low:1,average:2,high:3},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-sifchain.keplr.app",rpcConfig:void 0,rest:"https://lcd-sifchain.keplr.app",restConfig:void 0,chainId:"sifchain-1",chainName:"Sifchain",stakeCurrency:{coinDenom:"ROWAN",coinMinimalDenom:"rowan",coinDecimals:18,coinGeckoId:"sifchain"},walletUrl:"https://wallet.keplr.app/#/sifchain/stake",walletUrlForStaking:"https://wallet.keplr.app/#/sifchain/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("sif"),currencies:[{coinDenom:"ROWAN",coinMinimalDenom:"rowan",coinDecimals:18,coinGeckoId:"sifchain"},{coinDenom:"Tether USDT",coinMinimalDenom:"cusdt",coinDecimals:6},{coinDenom:"Ethereum",coinMinimalDenom:"ceth",coinDecimals:18},{coinDenom:"Basic Attention Token",coinMinimalDenom:"cbat",coinDecimals:18},{coinDenom:"Aragon",coinMinimalDenom:"cant",coinDecimals:18},{coinDenom:"Bancor Network Token",coinMinimalDenom:"cbnt",coinDecimals:18},{coinDenom:"0x",coinMinimalDenom:"czrx",coinDecimals:18},{coinDenom:"Chainlink",coinMinimalDenom:"clink",coinDecimals:18},{coinDenom:"Decentraland",coinMinimalDenom:"cmana",coinDecimals:18},{coinDenom:"Loopring",coinMinimalDenom:"clrc",coinDecimals:18},{coinDenom:"Enjin Coin",coinMinimalDenom:"cenj",coinDecimals:18},{coinDenom:"Synthetix Network Token",coinMinimalDenom:"csnx",coinDecimals:18},{coinDenom:"TrueUSD",coinMinimalDenom:"ctusd",coinDecimals:18},{coinDenom:"Ocean Protocol",coinMinimalDenom:"cocean",coinDecimals:18},{coinDenom:"Fantom",coinMinimalDenom:"cftm",coinDecimals:18},{coinDenom:"sUSD",coinMinimalDenom:"csusd",coinDecimals:18},{coinDenom:"USD Coin",coinMinimalDenom:"cusdc",coinDecimals:6},{coinDenom:"Crypto com Coin",coinMinimalDenom:"ccro",coinDecimals:8},{coinDenom:"Wrapped Bitcoin",coinMinimalDenom:"cwbtc",coinDecimals:8},{coinDenom:"Swipe",coinMinimalDenom:"csxp",coinDecimals:18},{coinDenom:"Band Protocol",coinMinimalDenom:"cband",coinDecimals:18},{coinDenom:"Dai Stablecoin",coinMinimalDenom:"cdai",coinDecimals:18},{coinDenom:"Compound",coinMinimalDenom:"ccomp",coinDecimals:18},{coinDenom:"UMA",coinMinimalDenom:"cuma",coinDecimals:18},{coinDenom:"Balancer",coinMinimalDenom:"cbal",coinDecimals:18},{coinDenom:"Yearn finance",coinMinimalDenom:"cyfi",coinDecimals:18},{coinDenom:"Serum",coinMinimalDenom:"csrm",coinDecimals:6},{coinDenom:"Cream",coinMinimalDenom:"ccream",coinDecimals:18},{coinDenom:"SAND",coinMinimalDenom:"csand",coinDecimals:18},{coinDenom:"Sushi",coinMinimalDenom:"csushi",coinDecimals:18},{coinDenom:"Empty Set Dollar",coinMinimalDenom:"cesd",coinDecimals:18},{coinDenom:"Uniswap",coinMinimalDenom:"cuni",coinDecimals:18},{coinDenom:"Aave",coinMinimalDenom:"caave",coinDecimals:18},{coinDenom:"BarnBridge",coinMinimalDenom:"cbond",coinDecimals:18},{coinDenom:"Wrapped Filecoin",coinMinimalDenom:"cwfil",coinDecimals:18},{coinDenom:"The Graph",coinMinimalDenom:"cgrt",coinDecimals:18},{coinDenom:"Tokenlon",coinMinimalDenom:"clon",coinDecimals:18},{coinDenom:"1inch",coinMinimalDenom:"c1inch",coinDecimals:18},{coinDenom:"THORChain ERC20",coinMinimalDenom:"crune",coinDecimals:18},{coinDenom:"Secret ERC20",coinMinimalDenom:"cwscrt",coinDecimals:6},{coinDenom:"IoTeX",coinMinimalDenom:"ciotx",coinDecimals:18},{coinDenom:"Reef Finance",coinMinimalDenom:"creef",coinDecimals:18},{coinDenom:"COCOS BCX",coinMinimalDenom:"ccocos",coinDecimals:18},{coinDenom:"Keep Network",coinMinimalDenom:"ckeep",coinDecimals:18},{coinDenom:"Origin Protocol",coinMinimalDenom:"cogn",coinDecimals:18},{coinDenom:"ODAOfi",coinMinimalDenom:"cdaofi",coinDecimals:18},{coinDenom:"Linear",coinMinimalDenom:"clina",coinDecimals:18},{coinDenom:"12Ships",coinMinimalDenom:"ctshp",coinDecimals:18},{coinDenom:"B.20",coinMinimalDenom:"cb20",coinDecimals:18},{coinDenom:"Akropolis",coinMinimalDenom:"cakro",coinDecimals:18},{coinDenom:"Rio Fuel Token",coinMinimalDenom:"crfuel",coinDecimals:18},{coinDenom:"Rally",coinMinimalDenom:"crly",coinDecimals:18},{coinDenom:"Convergence",coinMinimalDenom:"cconv",coinDecimals:18},{coinDenom:"Render Token",coinMinimalDenom:"crndr",coinDecimals:18},{coinDenom:"PAID Network",coinMinimalDenom:"cpaid",coinDecimals:18},{coinDenom:"Tidal",coinMinimalDenom:"ctidal",coinDecimals:18}],feeCurrencies:[{coinDenom:"ROWAN",coinMinimalDenom:"rowan",coinDecimals:18,coinGeckoId:"sifchain"}],gasPriceStep:{low:5e11,average:1e12,high:2e12},features:["stargate"]},{rpc:"https://rpc-certik.keplr.app",rpcConfig:void 0,rest:"https://lcd-certik.keplr.app",restConfig:void 0,chainId:"shentu-1",chainName:"Certik",stakeCurrency:{coinDenom:"CTK",coinMinimalDenom:"uctk",coinDecimals:6,coinGeckoId:"certik"},walletUrl:"https://wallet.keplr.app/#/shentu/stake",walletUrlForStaking:"https://wallet.keplr.app/#/shentu/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("certik"),currencies:[{coinDenom:"CTK",coinMinimalDenom:"uctk",coinDecimals:6,coinGeckoId:"certik"}],feeCurrencies:[{coinDenom:"CTK",coinMinimalDenom:"uctk",coinDecimals:6,coinGeckoId:"certik"}]},{rpc:"https://rpc-iris.keplr.app",rpcConfig:void 0,rest:"https://lcd-iris.keplr.app",restConfig:void 0,chainId:"irishub-1",chainName:"IRISnet",stakeCurrency:{coinDenom:"IRIS",coinMinimalDenom:"uiris",coinDecimals:6,coinGeckoId:"iris-network"},walletUrl:"https://wallet.keplr.app/#/irishub/stake",walletUrlForStaking:"https://wallet.keplr.app/#/irishub/stake",bip44:{coinType:118},alternativeBIP44s:[{coinType:566}],bech32Config:n.Bech32Address.defaultBech32Config("iaa"),currencies:[{coinDenom:"IRIS",coinMinimalDenom:"uiris",coinDecimals:6,coinGeckoId:"iris-network"}],feeCurrencies:[{coinDenom:"IRIS",coinMinimalDenom:"uiris",coinDecimals:6,coinGeckoId:"iris-network"}],gasPriceStep:{low:.2,average:.3,high:.4},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-regen.keplr.app",rpcConfig:void 0,rest:"https://lcd-regen.keplr.app",restConfig:void 0,chainId:"regen-1",chainName:"Regen",stakeCurrency:{coinDenom:"REGEN",coinMinimalDenom:"uregen",coinDecimals:6},walletUrl:"https://wallet.keplr.app/#/regen/stake",walletUrlForStaking:"https://wallet.keplr.app/#/regen/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("regen"),currencies:[{coinDenom:"REGEN",coinMinimalDenom:"uregen",coinDecimals:6}],feeCurrencies:[{coinDenom:"REGEN",coinMinimalDenom:"uregen",coinDecimals:6}],gasPriceStep:{low:0,average:.025,high:.04},features:["stargate"]},{rpc:"https://rpc-persistence.keplr.app",rpcConfig:void 0,rest:"https://lcd-persistence.keplr.app",restConfig:void 0,chainId:"core-1",chainName:"Persistence",stakeCurrency:{coinDenom:"XPRT",coinMinimalDenom:"uxprt",coinDecimals:6,coinGeckoId:"persistence"},walletUrl:"https://wallet.keplr.app/#/core/stake",walletUrlForStaking:"https://wallet.keplr.app/#/core/stake",bip44:{coinType:750},bech32Config:n.Bech32Address.defaultBech32Config("persistence"),currencies:[{coinDenom:"XPRT",coinMinimalDenom:"uxprt",coinDecimals:6,coinGeckoId:"persistence"}],feeCurrencies:[{coinDenom:"XPRT",coinMinimalDenom:"uxprt",coinDecimals:6,coinGeckoId:"persistence"}],features:["stargate","ibc-transfer"]},{rpc:"https://rpc-sentinel.keplr.app",rpcConfig:void 0,rest:"https://lcd-sentinel.keplr.app",restConfig:void 0,chainId:"sentinelhub-2",chainName:"Sentinel",stakeCurrency:{coinDenom:"DVPN",coinMinimalDenom:"udvpn",coinDecimals:6,coinGeckoId:"sentinel"},walletUrl:"https://wallet.keplr.app/#/sentinel/stake",walletUrlForStaking:"https://wallet.keplr.app/#/sentinel/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("sent"),currencies:[{coinDenom:"DVPN",coinMinimalDenom:"udvpn",coinDecimals:6,coinGeckoId:"sentinel"}],feeCurrencies:[{coinDenom:"DVPN",coinMinimalDenom:"udvpn",coinDecimals:6,coinGeckoId:"sentinel"}],gasPriceStep:{low:.1,average:.25,high:.4},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-kava.keplr.app",rpcConfig:void 0,rest:"https://lcd-kava.keplr.app",restConfig:void 0,chainId:"kava-7",chainName:"Kava",stakeCurrency:{coinDenom:"KAVA",coinMinimalDenom:"ukava",coinDecimals:6,coinGeckoId:"kava"},walletUrl:"https://wallet.keplr.app/#/kava/stake",walletUrlForStaking:"https://wallet.keplr.app/#/kava/stake",bip44:{coinType:459},alternativeBIP44s:[{coinType:118}],bech32Config:n.Bech32Address.defaultBech32Config("kava"),currencies:[{coinDenom:"KAVA",coinMinimalDenom:"ukava",coinDecimals:6,coinGeckoId:"kava"}],feeCurrencies:[{coinDenom:"KAVA",coinMinimalDenom:"ukava",coinDecimals:6,coinGeckoId:"kava"}],coinType:459},{rpc:"https://rpc-cyber.keplr.app",rpcConfig:void 0,rest:"https://lcd-cyber.keplr.app",restConfig:void 0,chainId:"euler-6",chainName:"Cyber",stakeCurrency:{coinDenom:"EUL",coinMinimalDenom:"eul",coinDecimals:0},walletUrl:"https://wallet.keplr.app/#/euler/stake",walletUrlForStaking:"https://wallet.keplr.app/#/euler/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("cyber"),currencies:[{coinDenom:"EUL",coinMinimalDenom:"eul",coinDecimals:0}],feeCurrencies:[],beta:!0},{rpc:"https://rpc-straightedge.keplr.app",rpcConfig:void 0,rest:"https://lcd-straightedge.keplr.app",restConfig:void 0,chainId:"straightedge-2",chainName:"Straightedge",stakeCurrency:{coinDenom:"STR",coinMinimalDenom:"astr",coinDecimals:18},walletUrl:"https://wallet.keplr.app/#/straightedge/stake",walletUrlForStaking:"https://wallet.keplr.app/#/straightedge/stake",bip44:{coinType:118},bech32Config:n.Bech32Address.defaultBech32Config("str"),currencies:[{coinDenom:"STR",coinMinimalDenom:"astr",coinDecimals:18}],feeCurrencies:[{coinDenom:"STR",coinMinimalDenom:"astr",coinDecimals:18}],coinType:551,gasPriceStep:{low:.01*Math.pow(10,12),average:.025*Math.pow(10,12),high:.04*Math.pow(10,12)},beta:!0}],i=["https://wallet.keplr.app"]},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(911),t),o(r(912),t),o(r(546),t),o(r(913),t),o(r(914),t),o(r(915),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionKVStore=void 0;const n=r(546),o={get:"undefined"!=typeof browser?browser.storage.local.get:void 0,set:"undefined"!=typeof browser?browser.storage.local.set:void 0};class i extends n.BaseKVStore{constructor(e){super(o,e)}}t.ExtensionKVStore=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryKVStore=void 0;const n=r(546);class o{constructor(){this.store={}}get(){return Promise.resolve(this.store)}set(e){return this.store=Object.assign(Object.assign({},this.store),e),Promise.resolve()}}class i extends n.BaseKVStore{constructor(e){super(new o,e)}}t.MemoryKVStore=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalKVStore=void 0;t.LocalKVStore=class{constructor(e){this._prefix=e}get(e){const t=this.prefix()+"/"+e,r=localStorage.getItem(t);return null===r?Promise.resolve(void 0):Promise.resolve(JSON.parse(r))}set(e,t){const r=this.prefix()+"/"+e;return null===t?Promise.resolve(localStorage.removeItem(r)):Promise.resolve(localStorage.setItem(r,JSON.stringify(t)))}prefix(){return this._prefix}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedDBKVStore=void 0;t.IndexedDBKVStore=class{constructor(e){this._prefix=e}get(e){return n(this,void 0,void 0,(function*(){const t=(yield this.getDB()).transaction([this.prefix()],"readonly").objectStore(this.prefix());return new Promise((r,n)=>{const o=t.get(e);o.onerror=e=>{e.stopPropagation(),n(e.target)},o.onsuccess=()=>{o.result?r(o.result.data):r(void 0)}})}))}set(e,t){return n(this,void 0,void 0,(function*(){if(null===t){const t=(yield this.getDB()).transaction([this.prefix()],"readwrite").objectStore(this.prefix());return new Promise((r,n)=>{const o=t.delete(e);o.onerror=e=>{e.stopPropagation(),n(e.target)},o.onsuccess=()=>{r()}})}{const r=(yield this.getDB()).transaction([this.prefix()],"readwrite").objectStore(this.prefix());return new Promise((n,o)=>{const i=r.put({key:e,data:t});i.onerror=e=>{e.stopPropagation(),o(e.target)},i.onsuccess=()=>{n()}})}}))}prefix(){return this._prefix}getDB(){return n(this,void 0,void 0,(function*(){return this.cachedDB?this.cachedDB:new Promise((e,t)=>{const r=window.indexedDB.open(this.prefix());r.onerror=e=>{e.stopPropagation(),t(e.target)},r.onupgradeneeded=e=>{e.target.result.createObjectStore(this.prefix(),{keyPath:"key"})},r.onsuccess=()=>{this.cachedDB=r.result,e(r.result)}})}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DenomHelper=void 0;t.DenomHelper=class{constructor(e){this._denom=e;const t=this.denom.split(/(\w+):(\w+):(.+)/).filter(Boolean);if(1!==t.length&&3!==t.length)throw new Error("Invalid denom: "+this.denom);this._type=3===t.length?t[0]:"",this._contractAddress=3===t.length?t[1]:""}get denom(){return this._denom}get type(){return this._type||"native"}get contractAddress(){return this._contractAddress}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toGenerator=void 0,t.toGenerator=function*(e){return yield e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){e.exports=r(1540)},function(e,t,r){"use strict";r.r(t);var n=r(18),o=r(63),i=r(59),s=r(841);const a=new n.ExtensionRouter(n.ExtensionEnv.produceEnv);a.addGuard(n.ExtensionGuards.checkOriginIsValid),a.addGuard(n.ExtensionGuards.checkMessageIsInternal),Object(i.init)(a,e=>new o.ExtensionKVStore(e),new n.ContentScriptMessageRequester,s.a,s.b,e=>Promise.resolve(crypto.getRandomValues(e))),a.listen(n.BACKGROUND_PORT)}]);