-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlex-web-ui-loader.min.js
More file actions
29 lines (28 loc) · 480 KB
/
lex-web-ui-loader.min.js
File metadata and controls
29 lines (28 loc) · 480 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*!
* lex-web-ui v"0.14.4"
* (c) 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Released under the Amazon Software License.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ChatBotUiLoader=e():t.ChatBotUiLoader=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=236)}([function(t,e,n){var r=n(5),i=n(49),o=n(19),a=n(34),s=n(26),f=function(t,e,n){var c,u,h,d,l=t&f.F,p=t&f.G,b=t&f.S,g=t&f.P,v=t&f.B,y=p?r:b?r[e]||(r[e]={}):(r[e]||{}).prototype,m=p?i:i[e]||(i[e]={}),w=m.prototype||(m.prototype={});p&&(n=e);for(c in n)u=!l&&y&&void 0!==y[c],h=(u?y:n)[c],d=v&&u?s(h,r):g&&"function"==typeof h?s(Function.call,h):h,y&&a(y,c,h,t&f.U),m[c]!=h&&o(m,c,d),g&&w[c]!=h&&(w[c]=h)};r.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return a(t,e,n)}var o=n(3),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=i),r(a,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return a(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=a(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return a(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return a(this,t,e,n)}function a(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?d(t,e,n,r):"string"==typeof e?u(t,e,n):l(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function u(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function h(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=h(t,e),t}function l(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||J(e.length)?i(t,0):h(t,e);if("Buffer"===e.type&&Z(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),o.alloc(+t)}function g(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,f=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,f/=2,n/=2}var c;if(i){var u=-1;for(c=n;c<s;c++)if(o(t,c)===o(e,-1===u?0:c-u)){if(-1===u&&(u=c),c-u+1===f)return u*a}else-1!==u&&(c-=c-u),u=-1}else for(n+f>s&&(n=s-f),c=n;c>=0;c--){for(var h=!0,d=0;d<f;d++)if(o(t,c+d)!==o(e,d)){h=!1;break}if(h)return c}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function S(t,e,n,r){return Y(K(e,t.length-n),t,n,r)}function E(t,e,n,r){return Y(W(e),t,n,r)}function M(t,e,n,r){return E(t,e,n,r)}function k(t,e,n,r){return Y(G(e),t,n,r)}function A(t,e,n,r){return Y(V(e,t.length-n),t,n,r)}function x(t,e,n){return 0===e&&n===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var f,c,u,h;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(f=t[i+1]))&&(h=(31&o)<<6|63&f)>127&&(a=h);break;case 3:f=t[i+1],c=t[i+2],128==(192&f)&&128==(192&c)&&(h=(15&o)<<12|(63&f)<<6|63&c)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:f=t[i+1],c=t[i+2],u=t[i+3],128==(192&f)&&128==(192&c)&&128==(192&u)&&(h=(15&o)<<18|(63&f)<<12|(63&c)<<6|63&u)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return C(r)}function C(t){var e=t.length;if(e<=$)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=$));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function j(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=H(t[o]);return i}function R(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function L(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function U(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,r,i){return i||N(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||N(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,n,r,52,8),n+8}function z(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function V(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function G(t){return X.toByteArray(z(t))}function Y(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function J(t){return t!==t}/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var X=n(413),Q=n(414),Z=n(197);e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return f(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=g,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?I(this,0,t):v.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,f=Math.min(a,s),c=this.slice(r,i),u=t.slice(e,n),h=0;h<f;++h)if(c[h]!==u[h]){a=c[h],s=u[h];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||B(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);B(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):L(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):L(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:K(new o(t,r).toString()),f=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%f]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(30))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}function a(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function s(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function f(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}function c(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,f=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var u=f>>>26,h=67108863&f,d=Math.min(c,e.length-1),l=Math.max(0,c-t.length+1);l<=d;l++){var p=c-l|0;i=0|t.words[p],o=0|e.words[l],a=i*o+h,u+=a/67108864|0,h=67108863&a}n.words[c]=0|h,f=0|u}return 0!==f?n.words[c]=0|f:n.length--,n.strip()}function u(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,f=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=f;c++){var u=o-c,h=0|t.words[u],d=0|e.words[c],l=h*d,p=67108863&l;a=a+(l/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function h(t,e,n){return(new d).mulp(t,e,n)}function d(t,e){this.x=t,this.y=e}function l(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){l.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){l.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){l.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function v(){l.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function m(t){y.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;var w;try{w=n(459).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=a(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=a(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,f=Math.min(o,o-a)+n,c=0,u=n;u<f;u+=r)c=s(t,u,u+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var h=1;for(c=s(t,u,t.length,e),u=0;u<a;u++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","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"],S=[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],E=[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];o.prototype.toString=function(t,e){t=t||10,e=0|e||1;var n;if(16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],f=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,n=0!==o||a!==this.length-1?_[6-f.length]+f+n:f+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=S[t],u=E[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var d=h.modn(u).toString(t);h=h.idivn(u),n=h.isZero()?d+n:_[c-d.length]+d+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==w),this.toArrayLike(w,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===e,c=new t(o),u=this.clone();if(f){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();var n,r;this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=t):(r=t,i=this);for(var o=0,a=0;a<i.length;a++)e=(0|r.words[a])-(0|i.words[a])+o,o=e>>26,this.words[a]=67108863&e;for(;0!==o&&a<r.length;a++)e=(0|r.words[a])+o,o=e>>26,this.words[a]=67108863&e;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var M=function(t,e,n){var r,i,o,a=t.words,s=e.words,f=n.words,c=0,u=0|a[0],h=8191&u,d=u>>>13,l=0|a[1],p=8191&l,b=l>>>13,g=0|a[2],v=8191&g,y=g>>>13,m=0|a[3],w=8191&m,_=m>>>13,S=0|a[4],E=8191&S,M=S>>>13,k=0|a[5],A=8191&k,x=k>>>13,I=0|a[6],C=8191&I,T=I>>>13,O=0|a[7],j=8191&O,R=O>>>13,P=0|a[8],B=8191&P,L=P>>>13,U=0|a[9],N=8191&U,D=U>>>13,F=0|s[0],z=8191&F,q=F>>>13,H=0|s[1],K=8191&H,W=H>>>13,V=0|s[2],G=8191&V,Y=V>>>13,J=0|s[3],X=8191&J,Q=J>>>13,Z=0|s[4],$=8191&Z,tt=Z>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ft=8191&st,ct=st>>>13,ut=0|s[8],ht=8191&ut,dt=ut>>>13,lt=0|s[9],pt=8191<,bt=lt>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,z),i=Math.imul(h,q),i=i+Math.imul(d,z)|0,o=Math.imul(d,q);var gt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(p,z),i=Math.imul(p,q),i=i+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(h,K)|0,i=i+Math.imul(h,W)|0,i=i+Math.imul(d,K)|0,o=o+Math.imul(d,W)|0;var vt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,z),i=Math.imul(v,q),i=i+Math.imul(y,z)|0,o=Math.imul(y,q),r=r+Math.imul(p,K)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(b,K)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(h,G)|0,i=i+Math.imul(h,Y)|0,i=i+Math.imul(d,G)|0,o=o+Math.imul(d,Y)|0;var yt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(w,z),i=Math.imul(w,q),i=i+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(v,K)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(y,K)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,G)|0,i=i+Math.imul(p,Y)|0,i=i+Math.imul(b,G)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(h,X)|0,i=i+Math.imul(h,Q)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Q)|0;var mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(E,z),i=Math.imul(E,q),i=i+Math.imul(M,z)|0,o=Math.imul(M,q),r=r+Math.imul(w,K)|0,i=i+Math.imul(w,W)|0,i=i+Math.imul(_,K)|0,o=o+Math.imul(_,W)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(v,Y)|0,i=i+Math.imul(y,G)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Q)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Q)|0,r=r+Math.imul(h,$)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(d,$)|0,o=o+Math.imul(d,tt)|0;var wt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(A,z),i=Math.imul(A,q),i=i+Math.imul(x,z)|0,o=Math.imul(x,q),r=r+Math.imul(E,K)|0,i=i+Math.imul(E,W)|0,i=i+Math.imul(M,K)|0,o=o+Math.imul(M,W)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(w,Y)|0,i=i+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(v,Q)|0,i=i+Math.imul(y,X)|0,o=o+Math.imul(y,Q)|0,r=r+Math.imul(p,$)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(b,$)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(d,nt)|0,o=o+Math.imul(d,rt)|0;var _t=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(C,z),i=Math.imul(C,q),i=i+Math.imul(T,z)|0,o=Math.imul(T,q),r=r+Math.imul(A,K)|0,i=i+Math.imul(A,W)|0,i=i+Math.imul(x,K)|0,o=o+Math.imul(x,W)|0,r=r+Math.imul(E,G)|0,i=i+Math.imul(E,Y)|0,i=i+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(w,Q)|0,i=i+Math.imul(_,X)|0,o=o+Math.imul(_,Q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(v,tt)|0,i=i+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(d,ot)|0,o=o+Math.imul(d,at)|0;var St=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(j,z),i=Math.imul(j,q),i=i+Math.imul(R,z)|0,o=Math.imul(R,q),r=r+Math.imul(C,K)|0,i=i+Math.imul(C,W)|0,i=i+Math.imul(T,K)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(A,Y)|0,i=i+Math.imul(x,G)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(E,X)|0,i=i+Math.imul(E,Q)|0,i=i+Math.imul(M,X)|0,o=o+Math.imul(M,Q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,$)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(v,nt)|0,i=i+Math.imul(v,rt)|0,i=i+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(h,ft)|0,i=i+Math.imul(h,ct)|0,i=i+Math.imul(d,ft)|0,o=o+Math.imul(d,ct)|0;var Et=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,z),i=Math.imul(B,q),i=i+Math.imul(L,z)|0,o=Math.imul(L,q),r=r+Math.imul(j,K)|0,i=i+Math.imul(j,W)|0,i=i+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(C,G)|0,i=i+Math.imul(C,Y)|0,i=i+Math.imul(T,G)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(A,Q)|0,i=i+Math.imul(x,X)|0,o=o+Math.imul(x,Q)|0,r=r+Math.imul(E,$)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(v,ot)|0,i=i+Math.imul(v,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,r=r+Math.imul(p,ft)|0,i=i+Math.imul(p,ct)|0,i=i+Math.imul(b,ft)|0,o=o+Math.imul(b,ct)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,dt)|0,i=i+Math.imul(d,ht)|0,o=o+Math.imul(d,dt)|0;var Mt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,z),i=Math.imul(N,q),i=i+Math.imul(D,z)|0,o=Math.imul(D,q),r=r+Math.imul(B,K)|0,i=i+Math.imul(B,W)|0,i=i+Math.imul(L,K)|0,o=o+Math.imul(L,W)|0,r=r+Math.imul(j,G)|0,i=i+Math.imul(j,Y)|0,i=i+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(C,X)|0,i=i+Math.imul(C,Q)|0,i=i+Math.imul(T,X)|0,o=o+Math.imul(T,Q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(A,tt)|0,i=i+Math.imul(x,$)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(v,ft)|0,i=i+Math.imul(v,ct)|0,i=i+Math.imul(y,ft)|0,o=o+Math.imul(y,ct)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,dt)|0,i=i+Math.imul(b,ht)|0,o=o+Math.imul(b,dt)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,bt)|0,i=i+Math.imul(d,pt)|0,o=o+Math.imul(d,bt)|0;var kt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(N,K),i=Math.imul(N,W),i=i+Math.imul(D,K)|0,o=Math.imul(D,W),r=r+Math.imul(B,G)|0,i=i+Math.imul(B,Y)|0,i=i+Math.imul(L,G)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(j,X)|0,i=i+Math.imul(j,Q)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,Q)|0,r=r+Math.imul(C,$)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(T,$)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(A,nt)|0,i=i+Math.imul(A,rt)|0,i=i+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,at)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(w,ft)|0,i=i+Math.imul(w,ct)|0,i=i+Math.imul(_,ft)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(v,ht)|0,i=i+Math.imul(v,dt)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,bt)|0,i=i+Math.imul(b,pt)|0,o=o+Math.imul(b,bt)|0;var At=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(N,G),i=Math.imul(N,Y),i=i+Math.imul(D,G)|0,o=Math.imul(D,Y),r=r+Math.imul(B,X)|0,i=i+Math.imul(B,Q)|0,i=i+Math.imul(L,X)|0,o=o+Math.imul(L,Q)|0,r=r+Math.imul(j,$)|0,i=i+Math.imul(j,tt)|0,i=i+Math.imul(R,$)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(A,ot)|0,i=i+Math.imul(A,at)|0,i=i+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(E,ft)|0,i=i+Math.imul(E,ct)|0,i=i+Math.imul(M,ft)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(w,ht)|0,i=i+Math.imul(w,dt)|0,i=i+Math.imul(_,ht)|0,o=o+Math.imul(_,dt)|0,r=r+Math.imul(v,pt)|0,i=i+Math.imul(v,bt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,bt)|0;var xt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,X),i=Math.imul(N,Q),i=i+Math.imul(D,X)|0,o=Math.imul(D,Q),r=r+Math.imul(B,$)|0,i=i+Math.imul(B,tt)|0,i=i+Math.imul(L,$)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(j,nt)|0,i=i+Math.imul(j,rt)|0,i=i+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,r=r+Math.imul(A,ft)|0,i=i+Math.imul(A,ct)|0,i=i+Math.imul(x,ft)|0,o=o+Math.imul(x,ct)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,dt)|0,i=i+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,bt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,bt)|0;var It=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(N,$),i=Math.imul(N,tt),i=i+Math.imul(D,$)|0,o=Math.imul(D,tt),r=r+Math.imul(B,nt)|0,i=i+Math.imul(B,rt)|0,i=i+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(j,ot)|0,i=i+Math.imul(j,at)|0,i=i+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(C,ft)|0,i=i+Math.imul(C,ct)|0,i=i+Math.imul(T,ft)|0,o=o+Math.imul(T,ct)|0,r=r+Math.imul(A,ht)|0,i=i+Math.imul(A,dt)|0,i=i+Math.imul(x,ht)|0,o=o+Math.imul(x,dt)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,bt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,bt)|0;var Ct=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(N,nt),i=Math.imul(N,rt),i=i+Math.imul(D,nt)|0,o=Math.imul(D,rt),r=r+Math.imul(B,ot)|0,i=i+Math.imul(B,at)|0,i=i+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,r=r+Math.imul(j,ft)|0,i=i+Math.imul(j,ct)|0,i=i+Math.imul(R,ft)|0,o=o+Math.imul(R,ct)|0,r=r+Math.imul(C,ht)|0,i=i+Math.imul(C,dt)|0,i=i+Math.imul(T,ht)|0,o=o+Math.imul(T,dt)|0,r=r+Math.imul(A,pt)|0,i=i+Math.imul(A,bt)|0,i=i+Math.imul(x,pt)|0,o=o+Math.imul(x,bt)|0;var Tt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(N,ot),i=Math.imul(N,at),i=i+Math.imul(D,ot)|0,o=Math.imul(D,at),r=r+Math.imul(B,ft)|0,i=i+Math.imul(B,ct)|0,i=i+Math.imul(L,ft)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(j,ht)|0,i=i+Math.imul(j,dt)|0,i=i+Math.imul(R,ht)|0,o=o+Math.imul(R,dt)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,bt)|0,i=i+Math.imul(T,pt)|0,o=o+Math.imul(T,bt)|0;var Ot=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(N,ft),i=Math.imul(N,ct),i=i+Math.imul(D,ft)|0,o=Math.imul(D,ct),r=r+Math.imul(B,ht)|0,i=i+Math.imul(B,dt)|0,i=i+Math.imul(L,ht)|0,o=o+Math.imul(L,dt)|0,r=r+Math.imul(j,pt)|0,i=i+Math.imul(j,bt)|0,i=i+Math.imul(R,pt)|0,o=o+Math.imul(R,bt)|0;var jt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(N,ht),i=Math.imul(N,dt),i=i+Math.imul(D,ht)|0,o=Math.imul(D,dt),r=r+Math.imul(B,pt)|0,i=i+Math.imul(B,bt)|0,i=i+Math.imul(L,pt)|0,o=o+Math.imul(L,bt)|0;var Rt=(c+r|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(N,pt),i=Math.imul(N,bt),i=i+Math.imul(D,pt)|0,o=Math.imul(D,bt);var Pt=(c+r|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,f[0]=gt,f[1]=vt,f[2]=yt,f[3]=mt,f[4]=wt,f[5]=_t,f[6]=St,f[7]=Et,f[8]=Mt,f[9]=kt,f[10]=At,f[11]=xt,f[12]=It,f[13]=Ct,f[14]=Tt,f[15]=Ot,f[16]=jt,f[17]=Rt,f[18]=Pt,0!==c&&(f[19]=c,n.length++),n};Math.imul||(M=c),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?M(this,t,e):n<63?c(this,t,e):n<1024?u(this,t,e):h(this,t,e)},d.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},d.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},d.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},d.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,f=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var h=f,d=c,l=0;l<a;l++){var p=n[u+l],b=r[u+l],g=n[u+l+a],v=r[u+l+a],y=h*g-d*v;v=h*v+d*g,g=y,n[u+l]=p+g,r[u+l]=b+v,n[u+l+a]=p-g,r[u+l+a]=b-v,l!==s&&(y=f*h-c*d,d=f*d+c*h,h=y)}},d.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},d.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},d.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},d.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},d.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},d.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),f=new Array(r),c=new Array(r),u=new Array(r),h=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,c,r),this.transform(a,o,s,f,r,i),this.transform(c,o,u,h,r,i);for(var l=0;l<r;l++){var p=s[l]*u[l]-f[l]*h[l];f[l]=s[l]*h[l]+f[l]*u[l],s[l]=p}return this.conjugate(s,f,r),this.transform(s,f,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),h(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,f=(0|this.words[e])-s<<n;this.words[e]=f|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){r("number"==typeof t&&t>=0);var i;i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,f=n;if(i-=a,i=Math.max(0,i),f){for(var c=0;c<a;c++)f.words[c]=this.words[c];f.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var h=0|this.words[c];this.words[c]=u<<26-o|h>>>o,u=h&s}return f&&0!==u&&(f.words[f.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n||!(this.words[n]&i))},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o=t.length+n;this._expand(o);var a,s=0;for(i=0;i<t.length;i++){a=(0|this.words[i+n])+s;var f=(0|t.words[i])*e;a-=67108863&f,s=(a>>26)-(f/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)a=(0|this.words[i+n])+s,s=a>>26,this.words[i+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)a=-(0|this.words[i])+s,s=a>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,f=r.length-i.length;if("mod"!==e){s=new o(null),s.length=f+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=r.clone()._ishlnsubmul(i,1,f);0===u.negative&&(r=u,s&&(s.words[f]=1));for(var h=f-1;h>=0;h--){var d=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var i,a,s;return 0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),f=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,l=1;0==(e.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(u),f.isub(h)),s.iushrn(1),f.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(f)):(n.isub(e),s.isub(i),f.isub(a))}return{a:s,b:f,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var f=0,c=1;0==(e.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(e.iushrn(f);f-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var u=0,h=1;0==(n.words[0]&h)&&u<26;++u,h<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a)):(n.isub(e),a.isub(i))}var d;return d=0===e.cmpn(1)?i:a,d.cmpn(0)<0&&d.iadd(t),d},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;this.strip();var n;if(this.length>1)n=1;else{e&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];n=i===t?0:i<t?-1:1}return 0!==this.negative?0|-n:n},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new y(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var k={k256:null,p224:null,p192:null,p25519:null};l.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},l.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},l.prototype.split=function(t,e){t.iushrn(this.n,0,e)},l.prototype.imulK=function(t){return t.imul(this.k)},i(p,l),p.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(b,l),i(g,l),i(v,l),v.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(k[t])return k[t];var e;if("k256"===t)e=new p;else if("p224"===t)e=new b;else if("p192"===t)e=new g;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new v}return k[t]=e,e},y.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},y.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},y.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},y.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},y.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},y.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},y.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},y.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},y.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},y.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},y.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},y.prototype.isqr=function(t){return this.imul(t,t.clone())},y.prototype.sqr=function(t){return this.mul(t,t)},y.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),f=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(f);)u.redIAdd(f);for(var h=this.pow(u,i),d=this.pow(t,i.addn(1).iushrn(1)),l=this.pow(t,i),p=a;0!==l.cmp(s);){for(var b=l,g=0;0!==b.cmp(s);g++)b=b.redSqr();r(g<p);var v=this.pow(h,new o(1).iushln(p-g-1));d=d.redMul(v),h=v.redSqr(),l=l.redMul(h),p=g}return d},y.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},y.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,f=e.bitLength()%26;for(0===f&&(f=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],u=f-1;u>=0;u--){var h=c>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}f=26}return i},y.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},y.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new m(t)},i(m,y),m.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},m.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},m.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},m.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},m.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)}).call(e,n(458)(t))},function(t,e,n){var r=n(122)("wks"),i=n(41),o=n(5).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(6),i=n(170),o=n(69),a=Object.defineProperty;e.f=n(16)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(43),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=e;r.version=n(465).version,r.utils=n(466),r.rand=n(219),r.curve=n(97),r.curves=n(471),r.ec=n(479),r.eddsa=n(483)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(106)("wks"),i=n(82),o=n(14).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},function(t,e,n){var r=n(11),i=n(40);t.exports=n(16)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(14),i=n(10),o=n(62),a=n(37),s=function(t,e,n){var f,c,u,h=t&s.F,d=t&s.G,l=t&s.S,p=t&s.P,b=t&s.B,g=t&s.W,v=d?i:i[e]||(i[e]={}),y=v.prototype,m=d?r:l?r[e]:(r[e]||{}).prototype;d&&(n=e);for(f in n)(c=!h&&m&&void 0!==m[f])&&f in v||(u=c?m[f]:n[f],v[f]=d&&"function"!=typeof m[f]?n[f]:b&&c?o(u,r):g&&m[f]==u?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):p&&"function"==typeof u?o(Function.call,u):u,p&&((v.virtual||(v.virtual={}))[f]=u,t&s.R&&y&&!y[f]&&a(y,f,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(119),i=n(44);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(0),i=n(49),o=n(9);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){b&&l&&(b=!1,l.length?p=l.concat(p):g=-1,p.length&&s())}function s(){if(!b){var t=i(a);b=!0;for(var e=p.length;e;){for(l=p,p=[];++g<e;)l&&l[g].run();g=-1,e=p.length}l=null,b=!1,o(t)}}function f(t,e){this.fun=t,this.array=e}function c(){}var u,h,d=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{h="function"==typeof clearTimeout?clearTimeout:r}catch(t){h=r}}();var l,p=[],b=!1,g=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new f(t,e)),1!==p.length||b||i(s)},f.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){"use strict";function r(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for(t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(var r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}else for(r=0;r<t.length;r++)n[r]=0|t[r];return n}function i(t){for(var e="",n=0;n<t.length;n++)e+=s(t[n].toString(16));return e}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=o(i)),n+=f(i.toString(16))}return n}function s(t){return 1===t.length?"0"+t:t}function f(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}function c(t,e,n,r){var i=n-e;I(i%4==0);for(var o=new Array(i/4),a=0,s=e;a<o.length;a++,s+=4){var f;f="big"===r?t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]:t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s],o[a]=f>>>0}return o}function u(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n}function h(t,e){return t>>>e|t<<32-e}function d(t,e){return t<<e|t>>>32-e}function l(t,e){return t+e>>>0}function p(t,e,n){return t+e+n>>>0}function b(t,e,n,r){return t+e+n+r>>>0}function g(t,e,n,r,i){return t+e+n+r+i>>>0}function v(t,e,n,r){var i=t[e],o=t[e+1],a=r+o>>>0,s=(a<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=a}function y(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0}function m(t,e,n,r){return e+r>>>0}function w(t,e,n,r,i,o,a,s){var f=0,c=e;return c=c+r>>>0,f+=c<e?1:0,c=c+o>>>0,f+=c<o?1:0,c=c+s>>>0,f+=c<s?1:0,t+n+i+a+f>>>0}function _(t,e,n,r,i,o,a,s){return e+r+o+s>>>0}function S(t,e,n,r,i,o,a,s,f,c){var u=0,h=e;return h=h+r>>>0,u+=h<e?1:0,h=h+o>>>0,u+=h<o?1:0,h=h+s>>>0,u+=h<s?1:0,h=h+c>>>0,u+=h<c?1:0,t+n+i+a+f+u>>>0}function E(t,e,n,r,i,o,a,s,f,c){return e+r+o+s+c>>>0}function M(t,e,n){return(e<<32-n|t>>>n)>>>0}function k(t,e,n){return(t<<32-n|e>>>n)>>>0}function A(t,e,n){return t>>>n}function x(t,e,n){return(t<<32-n|e>>>n)>>>0}var I=n(18),C=n(1);e.inherits=C,e.toArray=r,e.toHex=i,e.htonl=o,e.toHex32=a,e.zero2=s,e.zero8=f,e.join32=c,e.split32=u,e.rotr32=h,e.rotl32=d,e.sum32=l,e.sum32_3=p,e.sum32_4=b,e.sum32_5=g,e.sum64=v,e.sum64_hi=y,e.sum64_lo=m,e.sum64_4_hi=w,e.sum64_4_lo=_,e.sum64_5_hi=S,e.sum64_5_lo=E,e.rotr64_hi=M,e.rotr64_lo=k,e.shr64_hi=A,e.shr64_lo=x},function(t,e,n){var r=n(32);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var r=n(42);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(44);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";if(n(16)){var r=n(50),i=n(5),o=n(9),a=n(0),s=n(118),f=n(171),c=n(26),u=n(52),h=n(40),d=n(19),l=n(51),p=n(43),b=n(12),g=n(172),v=n(54),y=n(69),m=n(17),w=n(126),_=n(4),S=n(27),E=n(127),M=n(71),k=n(57),A=n(70).f,x=n(128),I=n(41),C=n(8),T=n(72),O=n(120),j=n(125),R=n(129),P=n(56),B=n(88),L=n(87),U=n(124),N=n(178),D=n(11),F=n(29),z=D.f,q=F.f,H=i.RangeError,K=i.TypeError,W=i.Uint8Array,V=Array.prototype,G=f.ArrayBuffer,Y=f.DataView,J=T(0),X=T(2),Q=T(3),Z=T(4),$=T(5),tt=T(6),et=O(!0),nt=O(!1),rt=R.values,it=R.keys,ot=R.entries,at=V.lastIndexOf,st=V.reduce,ft=V.reduceRight,ct=V.join,ut=V.sort,ht=V.slice,dt=V.toString,lt=V.toLocaleString,pt=C("iterator"),bt=C("toStringTag"),gt=I("typed_constructor"),vt=I("def_constructor"),yt=s.CONSTR,mt=s.TYPED,wt=s.VIEW,_t=T(1,function(t,e){return At(j(t,t[vt]),e)}),St=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Et=!!W&&!!W.prototype.set&&o(function(){new W(1).set({})}),Mt=function(t,e){var n=p(t);if(n<0||n%e)throw H("Wrong offset!");return n},kt=function(t){if(_(t)&&mt in t)return t;throw K(t+" is not a typed array!")},At=function(t,e){if(!(_(t)&> in t))throw K("It is not a typed array constructor!");return new t(e)},xt=function(t,e){return It(j(t,t[vt]),e)},It=function(t,e){for(var n=0,r=e.length,i=At(t,r);r>n;)i[n]=e[n++];return i},Ct=function(t,e,n){z(t,e,{get:function(){return this._d[n]}})},Tt=function(t){var e,n,r,i,o,a,s=S(t),f=arguments.length,u=f>1?arguments[1]:void 0,h=void 0!==u,d=x(s);if(void 0!=d&&!E(d)){for(a=d.call(s),r=[],e=0;!(o=a.next()).done;e++)r.push(o.value);s=r}for(h&&f>2&&(u=c(u,arguments[2],2)),e=0,n=b(s.length),i=At(this,n);n>e;e++)i[e]=h?u(s[e],e):s[e];return i},Ot=function(){for(var t=0,e=arguments.length,n=At(this,e);e>t;)n[t]=arguments[t++];return n},jt=!!W&&o(function(){lt.call(new W(1))}),Rt=function(){return lt.apply(jt?ht.call(kt(this)):kt(this),arguments)},Pt={copyWithin:function(t,e){return N.call(kt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return U.apply(kt(this),arguments)},filter:function(t){return xt(this,X(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return $(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(kt(this),arguments)},lastIndexOf:function(t){return at.apply(kt(this),arguments)},map:function(t){return _t(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(kt(this),arguments)},reduceRight:function(t){return ft.apply(kt(this),arguments)},reverse:function(){for(var t,e=this,n=kt(e).length,r=Math.floor(n/2),i=0;i<r;)t=e[i],e[i++]=e[--n],e[n]=t;return e},some:function(t){return Q(kt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(kt(this),t)},subarray:function(t,e){var n=kt(this),r=n.length,i=v(t,r);return new(j(n,n[vt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,b((void 0===e?r:v(e,r))-i))}},Bt=function(t,e){return xt(this,ht.call(kt(this),t,e))},Lt=function(t){kt(this);var e=Mt(arguments[1],1),n=this.length,r=S(t),i=b(r.length),o=0;if(i+e>n)throw H("Wrong length!");for(;o<i;)this[e+o]=r[o++]},Ut={entries:function(){return ot.call(kt(this))},keys:function(){return it.call(kt(this))},values:function(){return rt.call(kt(this))}},Nt=function(t,e){return _(t)&&t[mt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Dt=function(t,e){return Nt(t,e=y(e,!0))?h(2,t[e]):q(t,e)},Ft=function(t,e,n){return!(Nt(t,e=y(e,!0))&&_(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?z(t,e,n):(t[e]=n.value,t)};yt||(F.f=Dt,D.f=Ft),a(a.S+a.F*!yt,"Object",{getOwnPropertyDescriptor:Dt,defineProperty:Ft}),o(function(){dt.call({})})&&(dt=lt=function(){return ct.call(this)});var zt=l({},Pt);l(zt,Ut),d(zt,pt,Ut.values),l(zt,{slice:Bt,set:Lt,constructor:function(){},toString:dt,toLocaleString:Rt}),Ct(zt,"buffer","b"),Ct(zt,"byteOffset","o"),Ct(zt,"byteLength","l"),Ct(zt,"length","e"),z(zt,bt,{get:function(){return this[mt]}}),t.exports=function(t,e,n,f){f=!!f;var c=t+(f?"Clamped":"")+"Array",h="get"+t,l="set"+t,p=i[c],v=p||{},y=p&&k(p),m=!p||!s.ABV,S={},E=p&&p.prototype,x=function(t,n){var r=t._d;return r.v[h](n*e+r.o,St)},I=function(t,n,r){var i=t._d;f&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[l](n*e+i.o,r,St)},C=function(t,e){z(t,e,{get:function(){return x(this,e)},set:function(t){return I(this,e,t)},enumerable:!0})};m?(p=n(function(t,n,r,i){u(t,p,c,"_d");var o,a,s,f,h=0,l=0;if(_(n)){if(!(n instanceof G||"ArrayBuffer"==(f=w(n))||"SharedArrayBuffer"==f))return mt in n?It(p,n):Tt.call(p,n);o=n,l=Mt(r,e);var v=n.byteLength;if(void 0===i){if(v%e)throw H("Wrong length!");if((a=v-l)<0)throw H("Wrong length!")}else if((a=b(i)*e)+l>v)throw H("Wrong length!");s=a/e}else s=g(n),a=s*e,o=new G(a);for(d(t,"_d",{b:o,o:l,l:a,e:s,v:new Y(o)});h<s;)C(t,h++)}),E=p.prototype=M(zt),d(E,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&B(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=n(function(t,n,r,i){u(t,p,c);var o;return _(n)?n instanceof G||"ArrayBuffer"==(o=w(n))||"SharedArrayBuffer"==o?void 0!==i?new v(n,Mt(r,e),i):void 0!==r?new v(n,Mt(r,e)):new v(n):mt in n?It(p,n):Tt.call(p,n):new v(g(n))}),J(y!==Function.prototype?A(v).concat(A(y)):A(v),function(t){t in p||d(p,t,v[t])}),p.prototype=E,r||(E.constructor=p));var T=E[pt],O=!!T&&("values"==T.name||void 0==T.name),j=Ut.values;d(p,gt,!0),d(E,mt,c),d(E,wt,!0),d(E,vt,p),(f?new p(1)[bt]==c:bt in E)||z(E,bt,{get:function(){return c}}),S[c]=p,a(a.G+a.W+a.F*(p!=v),S),a(a.S,c,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*o(function(){v.of.call(p,1)}),c,{from:Tt,of:Ot}),"BYTES_PER_ELEMENT"in E||d(E,"BYTES_PER_ELEMENT",e),a(a.P,c,Pt),L(c),a(a.P+a.F*Et,c,{set:Lt}),a(a.P+a.F*!O,c,Ut),r||E.toString==dt||(E.toString=dt),a(a.P+a.F*o(function(){new p(1).slice()}),c,{slice:Bt}),a(a.P+a.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){E.toLocaleString.call([1,2])})),c,{toLocaleString:Rt}),P[c]=O?T:j,r||O||d(E,pt,j)}}else t.exports=function(){}},function(t,e,n){var r=n(73),i=n(40),o=n(21),a=n(69),s=n(17),f=n(170),c=Object.getOwnPropertyDescriptor;e.f=n(16)?c:function(t,e){if(t=o(t),e=a(e,!0),f)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(25),i=n(151),o=n(102),a=Object.defineProperty;e.f=n(33)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(48)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(5),i=n(19),o=n(17),a=n(41)("src"),s=Function.toString,f=(""+s).split("toString");n(49).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||i(n,a,t[e]?""+t[e]:f.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(41)("meta"),i=n(4),o=n(17),a=n(11).f,s=0,f=Object.isExtensible||function(){return!0},c=!n(9)(function(){return f(Object.preventExtensions({}))}),u=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!f(t))return"F";if(!e)return"E";u(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!f(t))return!0;if(!e)return!1;u(t)}return t[r].w},l=function(t){return c&&p.NEED&&f(t)&&!o(t,r)&&u(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:d,onFreeze:l}},function(t,e,n){function r(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var i=n(2).Buffer,o=n(46).Transform,a=n(142).StringDecoder;n(1)(r,o),r.prototype.update=function(t,e,n){"string"==typeof t&&(t=i.from(t,e));var r=this._update(t);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{n(r)}},r.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},r.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},r.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new a(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r},t.exports=r},function(t,e,n){var r=n(31),i=n(81);t.exports=n(33)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(153),i=n(103);t.exports=function(t){return r(i(t))}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(173),i=n(123);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){function r(){i.call(this)}t.exports=r;var i=n(139).EventEmitter;n(1)(r,i),r.Readable=n(140),r.Writable=n(421),r.Duplex=n(422),r.Transform=n(423),r.PassThrough=n(424),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function o(){u||(u=!0,t.end())}function a(){u||(u=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(f(),0===i.listenerCount(this,"error"))throw t}function f(){c.removeListener("data",n),t.removeListener("drain",r),c.removeListener("end",o),c.removeListener("close",a),c.removeListener("error",s),t.removeListener("error",s),c.removeListener("end",f),c.removeListener("close",f),t.removeListener("close",f)}var c=this;c.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(c.on("end",o),c.on("close",a));var u=!1;return c.on("error",s),t.on("error",s),c.on("end",f),c.on("close",f),t.on("close",f),t.emit("pipe",c),t}},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);c.call(this,t),u.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||a(o,this)}function o(t){t.end()}var a=n(93),s=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=r;var f=n(74);f.inherits=n(1);var c=n(199),u=n(141);f.inherits(r,c);for(var h=s(u.prototype),d=0;d<h.length;d++){var l=h[d];r.prototype[l]||(r.prototype[l]=u.prototype[l])}Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),a(e,t)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=!1},function(t,e,n){var r=n(34);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(43),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(11).f,i=n(17),o=n(8)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(17),i=n(27),o=n(121)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(8)("unscopables"),i=Array.prototype;void 0==i[r]&&n(19)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";(function(e,r){function i(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}function o(t,n){if(t>65536)throw new Error("requested too many random bytes");var i=new e.Uint8Array(t);t>0&&s.getRandomValues(i);var o=a.from(i.buffer);return"function"==typeof n?r.nextTick(function(){n(null,o)}):o}var a=n(2).Buffer,s=e.crypto||e.msCrypto;s&&s.getRandomValues?t.exports=o:t.exports=i}).call(e,n(30),n(23))},function(t,e,n){function r(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}var i=n(2).Buffer;r.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=i.from(t,e));for(var n=this._block,r=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var f=a%r,c=Math.min(o-s,r-f),u=0;u<c;u++)n[f+u]=t[s+u];a+=c,s+=c,a%r==0&&this._update(n)}return this._len+=o,this},r.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=4294967295&n,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,n){var r=n(80);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(152),i=n(107);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(275),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(281),__esModule:!0}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(173),i=n(123).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(6),i=n(301),o=n(123),a=n(121)("IE_PROTO"),s=function(){},f=function(){var t,e=n(117)("iframe"),r=o.length;for(e.style.display="none",n(174).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[o[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=f(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(26),i=n(119),o=n(27),a=n(12),s=n(302);t.exports=function(t,e){var n=1==t,f=2==t,c=3==t,u=4==t,h=6==t,d=5==t||h,l=e||s;return function(e,s,p){for(var b,g,v=o(e),y=i(v),m=r(s,p,3),w=a(y.length),_=0,S=n?l(e,w):f?l(e,0):void 0;w>_;_++)if((d||_ in y)&&(b=y[_],g=m(b,_,v),t))if(n)S[_]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return _;case 2:S.push(b)}else if(u)return!1;return h?-1:c||u?u:S}}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===g(t)}function r(t){return"boolean"==typeof t}function i(t){return null===t}function o(t){return null==t}function a(t){return"number"==typeof t}function s(t){return"string"==typeof t}function f(t){return"symbol"==typeof t}function c(t){return void 0===t}function u(t){return"[object RegExp]"===g(t)}function h(t){return"object"==typeof t&&null!==t}function d(t){return"[object Date]"===g(t)}function l(t){return"[object Error]"===g(t)||t instanceof Error}function p(t){return"function"==typeof t}function b(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function g(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=r,e.isNull=i,e.isNullOrUndefined=o,e.isNumber=a,e.isString=s,e.isSymbol=f,e.isUndefined=c,e.isRegExp=u,e.isObject=h,e.isDate=d,e.isError=l,e.isFunction=p,e.isPrimitive=b,e.isBuffer=t.isBuffer}).call(e,n(3).Buffer)},function(t,e,n){"use strict";(function(e){function r(t){c.call(this,"digest"),this._hash=t,this.buffers=[]}function i(t){c.call(this,"digest"),this._hash=t}var o=n(1),a=n(143),s=n(144),f=n(145),c=n(36);o(r,c),r.prototype._update=function(t){this.buffers.push(t)},r.prototype._final=function(){var t=e.concat(this.buffers),n=this._hash(t);return this.buffers=null,n},o(i,c),i.prototype._update=function(t){this._hash.update(t)},i.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return t=t.toLowerCase(),"md5"===t?new r(a):new i("rmd160"===t||"ripemd160"===t?new s:f(t))}}).call(e,n(3).Buffer)},function(t,e,n){(function(e){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),o=0;o<r;++o)i[o]=t[o]^n[o];return i}}).call(e,n(3).Buffer)},function(t,e,n){"use strict";function r(){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}var i=n(24),o=n(18);e.BlockHash=r,r.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},r.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},r.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(t,e,n){var r=e;r.bignum=n(7),r.define=n(487).define,r.base=n(79),r.constants=n(225),r.decoders=n(493),r.encoders=n(495)},function(t,e,n){var r=e;r.Reporter=n(490).Reporter,r.DecoderBuffer=n(224).DecoderBuffer,r.EncoderBuffer=n(224).EncoderBuffer,r.Node=n(491)},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(103);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=!0},function(t,e,n){var r=n(31).f,i=n(38),o=n(15)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(5),i=n(11),o=n(16),a=n(8)("species");t.exports=function(t){var e=r[t];o&&e&&!e[a]&&i.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(8)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){var r=n(26),i=n(180),o=n(127),a=n(6),s=n(12),f=n(128),c={},u={},e=t.exports=function(t,e,n,h,d){var l,p,b,g,v=d?function(){return t}:f(t),y=r(n,h,e?2:1),m=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(l=s(t.length);l>m;m++)if((g=e?y(a(p=t[m])[0],p[1]):y(t[m]))===c||g===u)return g}else for(b=v.call(t);!(p=b.next()).done;)if((g=i(b,y,p.value,e))===c||g===u)return g};e.BREAK=c,e.RETURN=u},function(t,e,n){"use strict";var r=n(5),i=n(0),o=n(34),a=n(51),s=n(35),f=n(89),c=n(52),u=n(4),h=n(9),d=n(88),l=n(55),p=n(314);t.exports=function(t,e,n,b,g,v){var y=r[t],m=y,w=g?"set":"add",_=m&&m.prototype,S={},E=function(t){var e=_[t];o(_,t,"delete"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof m&&(v||_.forEach&&!h(function(){(new m).entries().next()}))){var M=new m,k=M[w](v?{}:-0,1)!=M,A=h(function(){M.has(1)}),x=d(function(t){new m(t)}),I=!v&&h(function(){for(var t=new m,e=5;e--;)t[w](e,e);return!t.has(-0)});x||(m=e(function(e,n){c(e,m,t);var r=p(new y,e,m);return void 0!=n&&f(n,g,r[w],r),r}),m.prototype=_,_.constructor=m),(A||I)&&(E("delete"),E("has"),g&&E("get")),(I||k)&&E(w),v&&_.clear&&delete _.clear}else m=b.getConstructor(e,t,g,w),a(m.prototype,n),s.NEED=!0;return l(m,t),S[t]=m,i(i.G+i.W+i.F*(m!=y),S),v||b.setStrong(m,t,g),m}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(19),i=n(34),o=n(9),a=n(44),s=n(8);t.exports=function(t,e,n){var f=s(t),c=n(a,f,""[t]),u=c[0],h=c[1];o(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,u),r(RegExp.prototype,f,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}))}},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick(function(){t.apply(null,o)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(e,n(23))},function(t,e,n){(function(t,r){function i(t,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(n)?r.showHidden=n:n&&e._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),f(r,t,r.depth)}function o(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function f(t,n,r){if(t.customInspect&&n&&A(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return m(i)||(i=f(t,i,r)),i}var o=c(t,n);if(o)return o;var a=Object.keys(n),b=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),k(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return u(n);if(0===a.length){if(A(n)){var g=n.name?": "+n.name:"";return t.stylize("[Function"+g+"]","special")}if(S(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return t.stylize(Date.prototype.toString.call(n),"date");if(k(n))return u(n)}var v="",y=!1,w=["{","}"];if(p(n)&&(y=!0,w=["[","]"]),A(n)&&(v=" [Function"+(n.name?": "+n.name:"")+"]"),S(n)&&(v=" "+RegExp.prototype.toString.call(n)),M(n)&&(v=" "+Date.prototype.toUTCString.call(n)),k(n)&&(v=" "+u(n)),0===a.length&&(!y||0==n.length))return w[0]+v+w[1];if(r<0)return S(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var _;return _=y?h(t,n,r,b,a):a.map(function(e){return d(t,n,r,b,e,y)}),t.seen.pop(),l(_,v,w)}function c(t,e){if(_(e))return t.stylize("undefined","undefined");if(m(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):b(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)C(e,String(a))?o.push(d(t,e,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(d(t,e,n,r,i,!0))}),o}function d(t,e,n,r,i,o){var a,s,c;if(c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},c.get?s=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(s=t.stylize("[Setter]","special")),C(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(c.value)<0?(s=g(n)?f(t,c.value,null):f(t,c.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),_(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function l(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function p(t){return Array.isArray(t)}function b(t){return"boolean"==typeof t}function g(t){return null===t}function v(t){return null==t}function y(t){return"number"==typeof t}function m(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function _(t){return void 0===t}function S(t){return E(t)&&"[object RegExp]"===I(t)}function E(t){return"object"==typeof t&&null!==t}function M(t){return E(t)&&"[object Date]"===I(t)}function k(t){return E(t)&&("[object Error]"===I(t)||t instanceof Error)}function A(t){return"function"==typeof t}function x(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function I(t){return Object.prototype.toString.call(t)}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var T=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(i(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,o=r.length,a=String(t).replace(T,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),s=r[n];n<o;s=r[++n])g(s)||!E(s)?a+=" "+s:a+=" "+i(s);return a},e.deprecate=function(n,i){function o(){if(!a){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation,a=!0}return n.apply(this,arguments)}if(_(t.process))return function(){return e.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var a=!1;return o};var O,j={};e.debuglog=function(t){return _(O)&&(O=r.env.NODE_DEBUG||""),t=t.toUpperCase(),j[t]||(new RegExp("\\b"+t+"\\b","i").test(O)?(r.pid,j[t]=function(){e.format.apply(e,arguments)}):j[t]=function(){}),j[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=b,e.isNull=g,e.isNullOrUndefined=v,e.isNumber=y,e.isString=m,e.isSymbol=w,e.isUndefined=_,e.isRegExp=S,e.isObject=E,e.isDate=M,e.isError=k,e.isFunction=A,e.isPrimitive=x,e.isBuffer=n(425),e.log=function(){},e.inherits=n(426),e._extend=function(t,e){if(!e||!E(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(e,n(30),n(23))},function(t,e,n){function r(t,e,n,r){if(i.isBuffer(t)||(t=i.from(t,"binary")),e&&(i.isBuffer(e)||(e=i.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=i.alloc(a),f=i.alloc(r||0),c=i.alloc(0);a>0||r>0;){var u=new o;u.update(c),u.update(t),e&&u.update(e),c=u.digest();var h=0;if(a>0){var d=s.length-a;h=Math.min(a,c.length),c.copy(s,d,0,h),a-=h}if(h<c.length&&r>0){var l=f.length-r,p=Math.min(r,c.length-h);c.copy(f,l,h,h+p),r-=p}}return c.fill(0),{key:s,iv:f}}var i=n(2).Buffer,o=n(439);t.exports=r},function(t,e,n){function r(t){s.isBuffer(t)||(t=s.from(t));for(var e=t.length/4|0,n=new Array(e),r=0;r<e;r++)n[r]=t.readUInt32BE(4*r);return n}function i(t){for(;0<t.length;t++)t[0]=0}function o(t,e,n,r,i){for(var o,a,s,f,c=n[0],u=n[1],h=n[2],d=n[3],l=t[0]^e[0],p=t[1]^e[1],b=t[2]^e[2],g=t[3]^e[3],v=4,y=1;y<i;y++)o=c[l>>>24]^u[p>>>16&255]^h[b>>>8&255]^d[255&g]^e[v++],a=c[p>>>24]^u[b>>>16&255]^h[g>>>8&255]^d[255&l]^e[v++],s=c[b>>>24]^u[g>>>16&255]^h[l>>>8&255]^d[255&p]^e[v++],f=c[g>>>24]^u[l>>>16&255]^h[p>>>8&255]^d[255&b]^e[v++],l=o,p=a,b=s,g=f;return o=(r[l>>>24]<<24|r[p>>>16&255]<<16|r[b>>>8&255]<<8|r[255&g])^e[v++],a=(r[p>>>24]<<24|r[b>>>16&255]<<16|r[g>>>8&255]<<8|r[255&l])^e[v++],s=(r[b>>>24]<<24|r[g>>>16&255]<<16|r[l>>>8&255]<<8|r[255&p])^e[v++],f=(r[g>>>24]<<24|r[l>>>16&255]<<16|r[p>>>8&255]<<8|r[255&b])^e[v++],o>>>=0,a>>>=0,s>>>=0,f>>>=0,[o,a,s,f]}function a(t){this._key=r(t),this._reset()}var s=n(2).Buffer,f=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,f=0;f<256;++f){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var u=t[a],h=t[u],d=t[h],l=257*t[c]^16843008*c;i[0][a]=l<<24|l>>>8,i[1][a]=l<<16|l>>>16,i[2][a]=l<<8|l>>>24,i[3][a]=l,l=16843009*d^65537*h^257*u^16843008*a,o[0][c]=l<<24|l>>>8,o[1][c]=l<<16|l>>>16,o[2][c]=l<<8|l>>>24,o[3][c]=l,0===a?a=s=1:(a=u^t[t[t[d^u]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<r;o++){var a=i[o-1];o%e==0?(a=a<<8|a>>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=f[o/e|0]<<24):e>6&&o%e==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-e]^a}for(var s=[],u=0;u<r;u++){var h=r-u,d=i[h-(u%4?0:4)];s[u]=u<4||h<=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=n,this._keySchedule=i,this._invKeySchedule=s},a.prototype.encryptBlockRaw=function(t){return t=r(t),o(t,this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=s.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},a.prototype.decryptBlock=function(t){t=r(t);var e=t[1];t[1]=t[3],t[3]=e;var n=o(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),i=s.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},a.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},t.exports.AES=a},function(t,e,n){"use strict";var r=e;r.base=n(467),r.short=n(468),r.mont=n(469),r.edwards=n(470)},function(t,e,n){(function(e){function r(t){var n;"object"!=typeof t||e.isBuffer(t)||(n=t.passphrase,t=t.key),"string"==typeof t&&(t=new e(t));var r,a,f=s(t,n),c=f.tag,u=f.data;switch(c){case"CERTIFICATE":a=o.certificate.decode(u,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(a||(a=o.PublicKey.decode(u,"der")),r=a.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(a.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return a.subjectPrivateKey=a.subjectPublicKey,{type:"ec",data:a};case"1.2.840.10040.4.1":return a.algorithm.params.pub_key=o.DSAparam.decode(a.subjectPublicKey.data,"der"),{type:"dsa",data:a.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+c);case"ENCRYPTED PRIVATE KEY":u=o.EncryptedPrivateKey.decode(u,"der"),u=i(u,n);case"PRIVATE KEY":switch(a=o.PrivateKey.decode(u,"der"),r=a.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(a.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:a.algorithm.curve,privateKey:o.ECPrivateKey.decode(a.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return a.algorithm.params.priv_key=o.DSAparam.decode(a.subjectPrivateKey,"der"),{type:"dsa",params:a.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+c);case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(u,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(u,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(u,"der")};case"EC PRIVATE KEY":return u=o.ECPrivateKey.decode(u,"der"),{curve:u.parameters.value,privateKey:u.privateKey};default:throw new Error("unknown key type "+c)}}function i(t,n){var r=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=a[t.algorithm.decrypt.cipher.algo.join(".")],s=t.algorithm.decrypt.cipher.iv,u=t.subjectPrivateKey,h=parseInt(o.split("-")[1],10)/8,d=c.pbkdf2Sync(n,r,i,h),l=f.createDecipheriv(o,d,s),p=[];return p.push(l.update(u)),p.push(l.final()),e.concat(p)}var o=n(486),a=n(498),s=n(499),f=n(146),c=n(208);t.exports=r,r.signature=o.signature}).call(e,n(3).Buffer)},function(t,e){var n=function(t,e){Error.call(this,t),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=t,e&&(this.inner=e)};n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,t.exports=n},function(t,e,n){"use strict";e.__esModule=!0;var r=n(237),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){var r=n(32),i=n(14).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(32);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(106)("keys"),i=n(82);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(14),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(20),i=n(10),o=n(48);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(246),o=r(i),a=n(254),s=r(a),f="function"==typeof s.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===f(o.default)?function(t){return void 0===t?"undefined":f(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":f(t)}},function(t,e,n){var r=n(25),i=n(250),o=n(107),a=n(105)("IE_PROTO"),s=function(){},f=function(){var t,e=n(101)("iframe"),r=o.length;for(e.style.display="none",n(160).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;r--;)delete f.prototype[o[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=f(),void 0===e?n:i(n,e)}},function(t,e,n){e.f=n(15)},function(t,e,n){var r=n(14),i=n(10),o=n(85),a=n(112),s=n(31).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(83),i=n(81),o=n(39),a=n(102),s=n(38),f=n(151),c=Object.getOwnPropertyDescriptor;e.f=n(33)?c:function(t,e){if(t=o(t),e=a(e,!0),f)try{return c(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(80);t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigLoader=void 0;var i=n(110),o=r(i),a=n(100),s=r(a),f=n(295),c=r(f),u=n(68),h=r(u),d=n(66),l=r(d),p=n(67),b=r(p),g=n(164),v=e.ConfigLoader=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.options;(0,l.default)(this,t),this.options=e,this.config={}}return(0,b.default)(t,[{key:"load",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h.default.resolve().then(function(){if(e.options.shouldLoadConfigFromJsonFile){var n=e.options.configUrl.match("^http")?e.options.configUrl:""+e.options.baseUrl+e.options.configUrl;return t.loadJsonFile(n)}return h.default.resolve({})}).then(function(n){return e.options.shouldLoadConfigFromMobileHubFile?t.mergeMobileHubConfig(n):h.default.resolve(n)}).then(function(n){return e.options.shouldLoadConfigFromEvent?t.loadConfigFromEvent(n,e.options.configEventTimeoutInMs):h.default.resolve(n)}).then(function(t){return e.filterConfigWhenEmedded(t)}).then(function(e){return t.mergeConfig(e,n)})}},{key:"filterConfigWhenEmedded",value:function(t){var e=window.location.href,n=t.ui&&t.ui.parentOrigin;return this.options&&this.options.shouldIgnoreConfigWhenEmbedded&&-1!==e.indexOf("lexWebUiEmbed=true")?{ui:{parentOrigin:n}}:t}}],[{key:"loadJsonFile",value:function(t){return new h.default(function(e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="json",r.onerror=function(){return n(new Error("error getting chatbot UI config from url: "+t))},r.onload=function(){if(200!==r.status){var t="failed to get chatbot config with status: "+r.status;return n(new Error(t))}if("string"==typeof r.response)try{var i=JSON.parse(r.response);return e(i)}catch(t){return n(new Error("failed to decode chatbot UI config object"))}return e(r.response)},r.send()})}},{key:"mergeMobileHubConfig",value:function(e){return aws_cognito_identity_pool_id&&aws_bots_config?new h.default(function(n,r){var i="",o="";try{var a=JSON.parse(aws_bots_config);i=a[0].name,o=a[0].region}catch(t){return r(new Error("failed to parse mobile hub aws_bots_config"))}var s={cognito:{poolId:aws_cognito_identity_pool_id,region:aws_cognito_region||"us-east-1"},lex:{botName:i},region:o||"us-east-1"};return n(t.mergeConfig(e,s))}):h.default.resolve(e)}},{key:"loadConfigFromEvent",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4,r={intervalId:null,timeoutId:null,onConfigEventLoaded:null,onConfigEventTimeout:null};return new h.default(function(i,o){r.onConfigEventLoaded=function(n){if(clearTimeout(r.timeoutId),clearInterval(r.intervalId),document.removeEventListener("loadlexconfig",r.onConfigEventLoaded,!1),n&&"detail"in n&&n.detail&&"config"in n.detail){var a=n.detail.config,s=t.mergeConfig(e,a);return i(s)}return o(new Error("malformed config in event"))},r.onConfigEventTimeout=function(){return clearInterval(r.intervalId),document.removeEventListener("loadlexconfig",r.onConfigEventLoaded,!1),o(new Error("config event timed out"))},r.timeoutId=setTimeout(r.onConfigEventTimeout,n),document.addEventListener("loadlexconfig",r.onConfigEventLoaded,!1),r.intervalId=setInterval(function(){return document.dispatchEvent(new CustomEvent("receivelexconfig"))},500)})}},{key:"mergeConfig",value:function(e){function n(t){return"number"!=typeof t&&"boolean"!=typeof t&&(void 0===t||null===t||(void 0!==t.length?0===t.length:0===(0,c.default)(t).length))}var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(r)?(0,s.default)({},e):(0,c.default)(e).map(function(i){var a={},f=e[i];return i in r&&!n(r[i])&&(f="object"===(0,o.default)(e[i])?(0,s.default)({},t.mergeConfig(r[i],e[i]),t.mergeConfig(e[i],r[i])):r[i]),a[i]=f,a}).reduce(function(t,e){return(0,s.default)({},t,e)},{})}}]),t}();e.default=v},function(t,e,n){var r=n(4),i=n(5).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){for(var r,i=n(5),o=n(19),a=n(41),s=a("typed_array"),f=a("view"),c=!(!i.ArrayBuffer||!i.DataView),u=c,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(r=i[d[h++]])?(o(r.prototype,s,!0),o(r.prototype,f,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:f}},function(t,e,n){var r=n(53);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(21),i=n(12),o=n(54);t.exports=function(t){return function(e,n,a){var s,f=r(e),c=i(f.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=f[u++])!=s)return!0}else for(;c>u;u++)if((t||u in f)&&f[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var r=n(122)("keys"),i=n(41);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(5),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";var r=n(27),i=n(54),o=n(12);t.exports=function(t){for(var e=r(this),n=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),f=a>2?arguments[2]:void 0,c=void 0===f?n:i(f,n);c>s;)e[s++]=t;return e}},function(t,e,n){var r=n(6),i=n(42),o=n(8)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r=n(53),i=n(8)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(56),i=n(8)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(126),i=n(8)("iterator"),o=n(56);t.exports=n(49).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";var r=n(58),i=n(176),o=n(56),a=n(21);t.exports=n(177)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(4),i=n(6),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(26)(Function.call,n(29).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){var r,i,o,a=n(26),s=n(183),f=n(174),c=n(117),u=n(5),h=u.process,d=u.setImmediate,l=u.clearImmediate,p=u.MessageChannel,b=u.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},m=function(t){y.call(t.data)};d&&l||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},l=function(t){delete v[t]},"process"==n(53)(h)?r=function(t){h.nextTick(a(y,t,1))}:b&&b.now?r=function(t){b.now(a(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,r=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",m,!1)):r="onreadystatechange"in c("script")?function(t){f.appendChild(c("script")).onreadystatechange=function(){f.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:l}},function(t,e,n){var r=n(189),i=n(44);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(8)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){"use strict";var r=n(11),i=n(40);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(5),i=r.navigator;t.exports=i&&i.userAgent||""},function(t,e,n){var r=n(412),i=n(508),o=["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","ES512"];e.ALGORITHMS=o,e.sign=r.sign,e.verify=i.verify,e.decode=i.decode,e.isValid=i.isValid,e.createSign=function(t){return new r(t)},e.createVerify=function(t){return new i(t)}},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,s,f,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(n=this._events[t],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,f=0;f<i;f++)c[f].apply(this,s);return!0},n.prototype.addListener=function(t,e){var i;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.trace),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){e=t.exports=n(199),e.Stream=e,e.Readable=e,e.Writable=n(141),e.Duplex=n(47),e.Transform=n(202),e.PassThrough=n(420)},function(t,e,n){"use strict";(function(e,r,i){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){x(e,t)}}function a(t){return P.from(t)}function s(t){return P.isBuffer(t)||t instanceof B}function f(){}function c(t,e){C=C||n(47),t=t||{},this.objectMode=!!t.objectMode,e instanceof C&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,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 a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){y(e,t)},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 o(this)}function u(t){if(C=C||n(47),!(U.call(u,this)||this instanceof C))return new u(t);this._writableState=new c(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),R.call(this)}function h(t,e){var n=new Error("write after end");t.emit("error",n),I(e,n)}function d(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),I(r,o),i=!1),i}function l(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=P.from(e,n)),e}function p(t,e,n,r,i,o){if(!n){var a=l(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var f=e.length<e.highWaterMark;if(f||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,r,i,o);return f}function b(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function g(t,e,n,r,i){--e.pendingcb,n?(I(i,r),I(k,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),k(t,e))}function v(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function y(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(v(n),e)g(t,n,r,e,i);else{var o=S(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),r?T(m,t,n,o,i):m(t,n,o,i)}}function m(t,e,n,r){n||w(t,e),e.pendingcb--,r(),k(t,e)}function w(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,f=!0;n;)i[s]=n,n.isBuf||(f=!1),n=n.next,s+=1;i.allBuffers=f,b(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e)}else{for(;n;){var c=n.chunk,u=n.encoding,h=n.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,u,h),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function E(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),k(t,e)})}function M(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,I(E,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function k(t,e){var n=S(e);return n&&(M(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function A(t,e,n){e.ending=!0,k(t,e),n&&(e.finished?I(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function x(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var I=n(93);t.exports=u;var C,T=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:I;u.WritableState=c;var O=n(74);O.inherits=n(1);var j={deprecate:n(419)},R=n(200),P=n(2).Buffer,B=i.Uint8Array||function(){},L=n(201);O.inherits(u,R),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var U;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(U=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(t){return!!U.call(this,t)||t&&t._writableState instanceof c}})):U=function(t){return t instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=s(t)&&!r.objectMode;return o&&!P.isBuffer(t)&&(t=a(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=f),r.ended?h(this,n):(o||d(this,r,t,n))&&(r.pendingcb++,i=p(this,r,o,t,e,n)),i},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},u.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},u.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||A(this,r,n)},Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),u.prototype.destroy=L.destroy,u.prototype._undestroy=L.undestroy,u.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(23),n(417).setImmediate,n(30))},function(t,e,n){"use strict";function r(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(t){var e=r(t);if("string"!=typeof e&&(y.isEncoding===m||!m(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){this.encoding=i(t);var e;switch(this.encoding){case"utf16le":this.text=d,this.end=l,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=p,this.end=b,e=3;break;default:return this.write=g,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function s(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n?0:(i=a(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n?0:(i=a(e[r]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0)}function f(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�".repeat(n);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�".repeat(n+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�".repeat(n+2)}}function c(t){var e=this.lastTotal-this.lastNeed,n=f(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){var n=s(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�".repeat(this.lastTotal-this.lastNeed):e}function d(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function p(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function b(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function g(t){return t.toString(this.encoding)}function v(t){return t&&t.length?this.write(t):""}var y=n(2).Buffer,m=y.isEncoding||function(t){switch((t=""+t)&&t.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}};e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=h,o.prototype.text=u,o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";function r(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,r=-271733879,i=-1732584194,u=271733878,h=0;h<t.length;h+=16){var d=n,l=r,p=i,b=u;n=o(n,r,i,u,t[h+0],7,-680876936),u=o(u,n,r,i,t[h+1],12,-389564586),i=o(i,u,n,r,t[h+2],17,606105819),r=o(r,i,u,n,t[h+3],22,-1044525330),n=o(n,r,i,u,t[h+4],7,-176418897),u=o(u,n,r,i,t[h+5],12,1200080426),i=o(i,u,n,r,t[h+6],17,-1473231341),r=o(r,i,u,n,t[h+7],22,-45705983),n=o(n,r,i,u,t[h+8],7,1770035416),u=o(u,n,r,i,t[h+9],12,-1958414417),i=o(i,u,n,r,t[h+10],17,-42063),r=o(r,i,u,n,t[h+11],22,-1990404162),n=o(n,r,i,u,t[h+12],7,1804603682),u=o(u,n,r,i,t[h+13],12,-40341101),i=o(i,u,n,r,t[h+14],17,-1502002290),r=o(r,i,u,n,t[h+15],22,1236535329),n=a(n,r,i,u,t[h+1],5,-165796510),u=a(u,n,r,i,t[h+6],9,-1069501632),i=a(i,u,n,r,t[h+11],14,643717713),r=a(r,i,u,n,t[h+0],20,-373897302),n=a(n,r,i,u,t[h+5],5,-701558691),u=a(u,n,r,i,t[h+10],9,38016083),i=a(i,u,n,r,t[h+15],14,-660478335),r=a(r,i,u,n,t[h+4],20,-405537848),n=a(n,r,i,u,t[h+9],5,568446438),u=a(u,n,r,i,t[h+14],9,-1019803690),i=a(i,u,n,r,t[h+3],14,-187363961),r=a(r,i,u,n,t[h+8],20,1163531501),n=a(n,r,i,u,t[h+13],5,-1444681467),u=a(u,n,r,i,t[h+2],9,-51403784),i=a(i,u,n,r,t[h+7],14,1735328473),r=a(r,i,u,n,t[h+12],20,-1926607734),n=s(n,r,i,u,t[h+5],4,-378558),u=s(u,n,r,i,t[h+8],11,-2022574463),i=s(i,u,n,r,t[h+11],16,1839030562),r=s(r,i,u,n,t[h+14],23,-35309556),n=s(n,r,i,u,t[h+1],4,-1530992060),u=s(u,n,r,i,t[h+4],11,1272893353),i=s(i,u,n,r,t[h+7],16,-155497632),r=s(r,i,u,n,t[h+10],23,-1094730640),n=s(n,r,i,u,t[h+13],4,681279174),u=s(u,n,r,i,t[h+0],11,-358537222),i=s(i,u,n,r,t[h+3],16,-722521979),r=s(r,i,u,n,t[h+6],23,76029189),n=s(n,r,i,u,t[h+9],4,-640364487),u=s(u,n,r,i,t[h+12],11,-421815835),i=s(i,u,n,r,t[h+15],16,530742520),r=s(r,i,u,n,t[h+2],23,-995338651),n=f(n,r,i,u,t[h+0],6,-198630844),u=f(u,n,r,i,t[h+7],10,1126891415),i=f(i,u,n,r,t[h+14],15,-1416354905),r=f(r,i,u,n,t[h+5],21,-57434055),n=f(n,r,i,u,t[h+12],6,1700485571),u=f(u,n,r,i,t[h+3],10,-1894986606),i=f(i,u,n,r,t[h+10],15,-1051523),r=f(r,i,u,n,t[h+1],21,-2054922799),n=f(n,r,i,u,t[h+8],6,1873313359),u=f(u,n,r,i,t[h+15],10,-30611744),i=f(i,u,n,r,t[h+6],15,-1560198380),r=f(r,i,u,n,t[h+13],21,1309151649),n=f(n,r,i,u,t[h+4],6,-145523070),u=f(u,n,r,i,t[h+11],10,-1120210379),i=f(i,u,n,r,t[h+2],15,718787259),r=f(r,i,u,n,t[h+9],21,-343485551),n=c(n,d),r=c(r,l),i=c(i,p),u=c(u,b)}return[n,r,i,u]}function i(t,e,n,r,i,o){return c(u(c(c(e,t),c(r,o)),i),n)}function o(t,e,n,r,o,a,s){return i(e&n|~e&r,t,e,o,a,s)}function a(t,e,n,r,o,a,s){return i(e&r|n&~r,t,e,o,a,s)}function s(t,e,n,r,o,a,s){return i(e^n^r,t,e,o,a,s)}function f(t,e,n,r,o,a,s){return i(n^(e|~r),t,e,o,a,s)}function c(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function u(t,e){return t<<e|t>>>32-e}var h=n(429);t.exports=function(t){return h(t,r)}},function(t,e,n){"use strict";(function(e){function r(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(t,e){return t<<e|t>>>32-e}function o(t,e,n,r,o,a,s,f){return i(t+(e^n^r)+a+s|0,f)+o|0}function a(t,e,n,r,o,a,s,f){return i(t+(e&n|~e&r)+a+s|0,f)+o|0}function s(t,e,n,r,o,a,s,f){return i(t+((e|~n)^r)+a+s|0,f)+o|0}function f(t,e,n,r,o,a,s,f){return i(t+(e&r|n&~r)+a+s|0,f)+o|0}function c(t,e,n,r,o,a,s,f){return i(t+(e^(n|~r))+a+s|0,f)+o|0}var u=n(1),h=n(430);u(r,h),r.prototype._update=function(){for(var t=new Array(16),e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,u=this._c,h=this._d,d=this._e;n=o(n,r,u,h,d,t[0],0,11),u=i(u,10),d=o(d,n,r,u,h,t[1],0,14),r=i(r,10),h=o(h,d,n,r,u,t[2],0,15),n=i(n,10),u=o(u,h,d,n,r,t[3],0,12),d=i(d,10),r=o(r,u,h,d,n,t[4],0,5),h=i(h,10),n=o(n,r,u,h,d,t[5],0,8),u=i(u,10),d=o(d,n,r,u,h,t[6],0,7),r=i(r,10),h=o(h,d,n,r,u,t[7],0,9),n=i(n,10),u=o(u,h,d,n,r,t[8],0,11),d=i(d,10),r=o(r,u,h,d,n,t[9],0,13),h=i(h,10),n=o(n,r,u,h,d,t[10],0,14),u=i(u,10),d=o(d,n,r,u,h,t[11],0,15),r=i(r,10),h=o(h,d,n,r,u,t[12],0,6),n=i(n,10),u=o(u,h,d,n,r,t[13],0,7),d=i(d,10),r=o(r,u,h,d,n,t[14],0,9),h=i(h,10),n=o(n,r,u,h,d,t[15],0,8),u=i(u,10),d=a(d,n,r,u,h,t[7],1518500249,7),r=i(r,10),h=a(h,d,n,r,u,t[4],1518500249,6),n=i(n,10),u=a(u,h,d,n,r,t[13],1518500249,8),d=i(d,10),r=a(r,u,h,d,n,t[1],1518500249,13),h=i(h,10),n=a(n,r,u,h,d,t[10],1518500249,11),u=i(u,10),d=a(d,n,r,u,h,t[6],1518500249,9),r=i(r,10),h=a(h,d,n,r,u,t[15],1518500249,7),n=i(n,10),u=a(u,h,d,n,r,t[3],1518500249,15),d=i(d,10),r=a(r,u,h,d,n,t[12],1518500249,7),h=i(h,10),n=a(n,r,u,h,d,t[0],1518500249,12),u=i(u,10),d=a(d,n,r,u,h,t[9],1518500249,15),r=i(r,10),h=a(h,d,n,r,u,t[5],1518500249,9),n=i(n,10),u=a(u,h,d,n,r,t[2],1518500249,11),d=i(d,10),r=a(r,u,h,d,n,t[14],1518500249,7),h=i(h,10),n=a(n,r,u,h,d,t[11],1518500249,13),u=i(u,10),d=a(d,n,r,u,h,t[8],1518500249,12),r=i(r,10),h=s(h,d,n,r,u,t[3],1859775393,11),n=i(n,10),u=s(u,h,d,n,r,t[10],1859775393,13),d=i(d,10),r=s(r,u,h,d,n,t[14],1859775393,6),h=i(h,10),n=s(n,r,u,h,d,t[4],1859775393,7),u=i(u,10),d=s(d,n,r,u,h,t[9],1859775393,14),r=i(r,10),h=s(h,d,n,r,u,t[15],1859775393,9),n=i(n,10),u=s(u,h,d,n,r,t[8],1859775393,13),d=i(d,10),r=s(r,u,h,d,n,t[1],1859775393,15),h=i(h,10),n=s(n,r,u,h,d,t[2],1859775393,14),u=i(u,10),d=s(d,n,r,u,h,t[7],1859775393,8),r=i(r,10),h=s(h,d,n,r,u,t[0],1859775393,13),n=i(n,10),u=s(u,h,d,n,r,t[6],1859775393,6),d=i(d,10),r=s(r,u,h,d,n,t[13],1859775393,5),h=i(h,10),n=s(n,r,u,h,d,t[11],1859775393,12),u=i(u,10),d=s(d,n,r,u,h,t[5],1859775393,7),r=i(r,10),h=s(h,d,n,r,u,t[12],1859775393,5),n=i(n,10),u=f(u,h,d,n,r,t[1],2400959708,11),d=i(d,10),r=f(r,u,h,d,n,t[9],2400959708,12),h=i(h,10),n=f(n,r,u,h,d,t[11],2400959708,14),u=i(u,10),d=f(d,n,r,u,h,t[10],2400959708,15),r=i(r,10),h=f(h,d,n,r,u,t[0],2400959708,14),n=i(n,10),u=f(u,h,d,n,r,t[8],2400959708,15),d=i(d,10),r=f(r,u,h,d,n,t[12],2400959708,9),h=i(h,10),n=f(n,r,u,h,d,t[4],2400959708,8),u=i(u,10),d=f(d,n,r,u,h,t[13],2400959708,9),r=i(r,10),h=f(h,d,n,r,u,t[3],2400959708,14),n=i(n,10),u=f(u,h,d,n,r,t[7],2400959708,5),d=i(d,10),r=f(r,u,h,d,n,t[15],2400959708,6),h=i(h,10),n=f(n,r,u,h,d,t[14],2400959708,8),u=i(u,10),d=f(d,n,r,u,h,t[5],2400959708,6),r=i(r,10),h=f(h,d,n,r,u,t[6],2400959708,5),n=i(n,10),u=f(u,h,d,n,r,t[2],2400959708,12),d=i(d,10),r=c(r,u,h,d,n,t[4],2840853838,9),h=i(h,10),n=c(n,r,u,h,d,t[0],2840853838,15),u=i(u,10),d=c(d,n,r,u,h,t[5],2840853838,5),r=i(r,10),h=c(h,d,n,r,u,t[9],2840853838,11),n=i(n,10),u=c(u,h,d,n,r,t[7],2840853838,6),d=i(d,10),r=c(r,u,h,d,n,t[12],2840853838,8),h=i(h,10),n=c(n,r,u,h,d,t[2],2840853838,13),u=i(u,10),d=c(d,n,r,u,h,t[10],2840853838,12),r=i(r,10),h=c(h,d,n,r,u,t[14],2840853838,5),n=i(n,10),u=c(u,h,d,n,r,t[1],2840853838,12),d=i(d,10),r=c(r,u,h,d,n,t[3],2840853838,13),h=i(h,10),n=c(n,r,u,h,d,t[8],2840853838,14),u=i(u,10),d=c(d,n,r,u,h,t[11],2840853838,11),r=i(r,10),h=c(h,d,n,r,u,t[6],2840853838,8),n=i(n,10),u=c(u,h,d,n,r,t[15],2840853838,5),d=i(d,10),r=c(r,u,h,d,n,t[13],2840853838,6),h=i(h,10);var l=this._a,p=this._b,b=this._c,g=this._d,v=this._e;l=c(l,p,b,g,v,t[5],1352829926,8),b=i(b,10),v=c(v,l,p,b,g,t[14],1352829926,9),p=i(p,10),g=c(g,v,l,p,b,t[7],1352829926,9),l=i(l,10),b=c(b,g,v,l,p,t[0],1352829926,11),v=i(v,10),p=c(p,b,g,v,l,t[9],1352829926,13),g=i(g,10),l=c(l,p,b,g,v,t[2],1352829926,15),b=i(b,10),v=c(v,l,p,b,g,t[11],1352829926,15),p=i(p,10),g=c(g,v,l,p,b,t[4],1352829926,5),l=i(l,10),b=c(b,g,v,l,p,t[13],1352829926,7),v=i(v,10),p=c(p,b,g,v,l,t[6],1352829926,7),g=i(g,10),l=c(l,p,b,g,v,t[15],1352829926,8),b=i(b,10),v=c(v,l,p,b,g,t[8],1352829926,11),p=i(p,10),g=c(g,v,l,p,b,t[1],1352829926,14),l=i(l,10),b=c(b,g,v,l,p,t[10],1352829926,14),v=i(v,10),p=c(p,b,g,v,l,t[3],1352829926,12),g=i(g,10),l=c(l,p,b,g,v,t[12],1352829926,6),b=i(b,10),v=f(v,l,p,b,g,t[6],1548603684,9),p=i(p,10),g=f(g,v,l,p,b,t[11],1548603684,13),l=i(l,10),b=f(b,g,v,l,p,t[3],1548603684,15),v=i(v,10),p=f(p,b,g,v,l,t[7],1548603684,7),g=i(g,10),l=f(l,p,b,g,v,t[0],1548603684,12),b=i(b,10),v=f(v,l,p,b,g,t[13],1548603684,8),p=i(p,10),g=f(g,v,l,p,b,t[5],1548603684,9),l=i(l,10),b=f(b,g,v,l,p,t[10],1548603684,11),v=i(v,10),p=f(p,b,g,v,l,t[14],1548603684,7),g=i(g,10),l=f(l,p,b,g,v,t[15],1548603684,7),b=i(b,10),v=f(v,l,p,b,g,t[8],1548603684,12),p=i(p,10),g=f(g,v,l,p,b,t[12],1548603684,7),l=i(l,10),b=f(b,g,v,l,p,t[4],1548603684,6),v=i(v,10),p=f(p,b,g,v,l,t[9],1548603684,15),g=i(g,10),l=f(l,p,b,g,v,t[1],1548603684,13),b=i(b,10),v=f(v,l,p,b,g,t[2],1548603684,11),p=i(p,10),g=s(g,v,l,p,b,t[15],1836072691,9),l=i(l,10),b=s(b,g,v,l,p,t[5],1836072691,7),v=i(v,10),p=s(p,b,g,v,l,t[1],1836072691,15),g=i(g,10),l=s(l,p,b,g,v,t[3],1836072691,11),b=i(b,10),v=s(v,l,p,b,g,t[7],1836072691,8),p=i(p,10),g=s(g,v,l,p,b,t[14],1836072691,6),l=i(l,10),b=s(b,g,v,l,p,t[6],1836072691,6),v=i(v,10),p=s(p,b,g,v,l,t[9],1836072691,14),g=i(g,10),l=s(l,p,b,g,v,t[11],1836072691,12),b=i(b,10),v=s(v,l,p,b,g,t[8],1836072691,13),p=i(p,10),g=s(g,v,l,p,b,t[12],1836072691,5),l=i(l,10),b=s(b,g,v,l,p,t[2],1836072691,14),v=i(v,10),p=s(p,b,g,v,l,t[10],1836072691,13),g=i(g,10),l=s(l,p,b,g,v,t[0],1836072691,13),b=i(b,10),v=s(v,l,p,b,g,t[4],1836072691,7),p=i(p,10),g=s(g,v,l,p,b,t[13],1836072691,5),l=i(l,10),b=a(b,g,v,l,p,t[8],2053994217,15),v=i(v,10),p=a(p,b,g,v,l,t[6],2053994217,5),g=i(g,10),l=a(l,p,b,g,v,t[4],2053994217,8),b=i(b,10),v=a(v,l,p,b,g,t[1],2053994217,11),p=i(p,10),g=a(g,v,l,p,b,t[3],2053994217,14),l=i(l,10),b=a(b,g,v,l,p,t[11],2053994217,14),v=i(v,10),p=a(p,b,g,v,l,t[15],2053994217,6),g=i(g,10),l=a(l,p,b,g,v,t[0],2053994217,14),b=i(b,10),v=a(v,l,p,b,g,t[5],2053994217,6),p=i(p,10),g=a(g,v,l,p,b,t[12],2053994217,9),l=i(l,10),b=a(b,g,v,l,p,t[2],2053994217,12),v=i(v,10),p=a(p,b,g,v,l,t[13],2053994217,9),g=i(g,10),l=a(l,p,b,g,v,t[9],2053994217,12),b=i(b,10),v=a(v,l,p,b,g,t[7],2053994217,5),p=i(p,10),g=a(g,v,l,p,b,t[10],2053994217,15),l=i(l,10),b=a(b,g,v,l,p,t[14],2053994217,8),v=i(v,10),p=o(p,b,g,v,l,t[12],0,8),g=i(g,10),l=o(l,p,b,g,v,t[15],0,5),b=i(b,10),v=o(v,l,p,b,g,t[10],0,12),p=i(p,10),g=o(g,v,l,p,b,t[4],0,9),l=i(l,10),b=o(b,g,v,l,p,t[1],0,12),v=i(v,10),p=o(p,b,g,v,l,t[5],0,5),g=i(g,10),l=o(l,p,b,g,v,t[8],0,14),b=i(b,10),v=o(v,l,p,b,g,t[7],0,6),p=i(p,10),g=o(g,v,l,p,b,t[6],0,8),l=i(l,10),b=o(b,g,v,l,p,t[2],0,13),v=i(v,10),p=o(p,b,g,v,l,t[13],0,6),g=i(g,10),l=o(l,p,b,g,v,t[14],0,5),b=i(b,10),v=o(v,l,p,b,g,t[0],0,15),p=i(p,10),g=o(g,v,l,p,b,t[3],0,13),l=i(l,10),b=o(b,g,v,l,p,t[9],0,11),v=i(v,10),p=o(p,b,g,v,l,t[11],0,11),g=i(g,10);var y=this._b+u+g|0;this._b=this._c+h+v|0,this._c=this._d+d+l|0,this._d=this._e+n+p|0,this._e=this._a+r+b|0,this._a=y},r.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 t=new e(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=r}).call(e,n(3).Buffer)},function(t,e,n){var e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n};e.sha=n(431),e.sha1=n(432),e.sha224=n(433),e.sha256=n(204),e.sha384=n(434),e.sha512=n(205)},function(t,e,n){function r(){return Object.keys(a)}var i=n(441),o=n(449),a=n(214);e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=r},function(t,e,n){var r={ECB:n(442),CBC:n(443),CFB:n(444),CFB8:n(445),CFB1:n(446),OFB:n(447),CTR:n(212),GCM:n(212)},i=n(214);for(var o in i)i[o].module=r[i[o].mode];t.exports=i},function(t,e,n){"use strict";e.utils=n(451),e.Cipher=n(452),e.DES=n(453),e.CBC=n(454),e.EDE=n(455)},function(t,e,n){(function(e){function r(t){var e=o(t);return{blinder:e.toRed(a.mont(t.modulus)).redPow(new a(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}function i(t,n){var i=r(n),o=n.modulus.byteLength(),s=(a.mont(n.modulus),new a(t).mul(i.blinder).umod(n.modulus)),f=s.toRed(a.mont(n.prime1)),c=s.toRed(a.mont(n.prime2)),u=n.coefficient,h=n.prime1,d=n.prime2,l=f.redPow(n.exponent1),p=c.redPow(n.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(u).umod(h);return b.imul(d),p.iadd(b),new e(p.imul(i.unblinder).umod(n.modulus).toArray(!1,o))}function o(t){for(var e=t.modulus.byteLength(),n=new a(s(e));n.cmp(t.modulus)>=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new a(s(e));return n}var a=n(7),s=n(60);t.exports=i,i.getr=o}).call(e,n(3).Buffer)},function(t,e,n){var r=e;r.utils=n(24),r.common=n(77),r.sha=n(472),r.ripemd=n(476),r.hmac=n(477),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(t,e,n){t.exports=!n(33)&&!n(48)(function(){return 7!=Object.defineProperty(n(101)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(38),i=n(39),o=n(241)(!1),a=n(105)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),f=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>f;)r(s,n=e[f++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(64);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(104),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){t.exports={default:n(243),__esModule:!0}},function(t,e,n){var r=n(38),i=n(84),o=n(105)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var r=n(248)(!0);n(158)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(85),i=n(20),o=n(159),a=n(37),s=n(38),f=n(65),c=n(249),u=n(86),h=n(156),d=n(15)("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,b,g,v,y){c(n,e,b);var m,w,_,S=function(t){if(!l&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",M="values"==g,k=!1,A=t.prototype,x=A[d]||A["@@iterator"]||g&&A[g],I=!l&&x||S(g),C=g?M?S("entries"):I:void 0,T="Array"==e?A.entries||x:x;if(T&&(_=h(T.call(new t)))!==Object.prototype&&_.next&&(u(_,E,!0),r||s(_,d)||a(_,d,p)),M&&x&&"values"!==x.name&&(k=!0,I=function(){return x.call(this)}),r&&!y||!l&&!k&&A[d]||a(A,d,I),f[e]=I,f[E]=p,g)if(m={values:M?I:S("values"),keys:v?I:S("keys"),entries:C},y)for(w in m)w in A||o(A,w,m[w]);else i(i.P+i.F*(l||k),e,m);return m}},function(t,e,n){t.exports=n(37)},function(t,e,n){var r=n(14).document;t.exports=r&&r.documentElement},function(t,e,n){n(251);for(var r=n(14),i=n(37),o=n(65),a=n(15)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<s.length;f++){var c=s[f],u=r[c],h=u&&u.prototype;h&&!h[a]&&i(h,a,c),o[c]=o.Array}},function(t,e,n){var r=n(152),i=n(107).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.optionsIframe=e.optionsFullPage=e.options=void 0;var r=n(100),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=e.options={baseUrl:"/",configEventTimeoutInMs:1e4,configUrl:"./lex-web-ui-loader-config.json",shouldIgnoreConfigWhenEmbedded:!0,shouldLoadConfigFromEvent:!1,shouldLoadConfigFromJsonFile:!0,shouldLoadConfigFromMobileHubFile:!0,shouldLoadMinDeps:!0};e.optionsFullPage=(0,i.default)({},o,{elementId:"lex-web-ui-fullpage"}),e.optionsIframe=(0,i.default)({},o,{elementId:"lex-web-ui-iframe",containerClass:"lex-web-ui-iframe",iframeSrcPath:"/index.html#/?lexWebUiEmbed=true"})},function(t,e,n){var r=n(64),i=n(15)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(25),i=n(80),o=n(15)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r,i,o,a=n(62),s=n(288),f=n(160),c=n(101),u=n(14),h=u.process,d=u.setImmediate,l=u.clearImmediate,p=u.MessageChannel,b=u.Dispatch,g=0,v={},y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},m=function(t){y.call(t.data)};d&&l||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},l=function(t){delete v[t]},"process"==n(64)(h)?r=function(t){h.nextTick(a(y,t,1))}:b&&b.now?r=function(t){b.now(a(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,r=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(t){u.postMessage(t+"","*")},u.addEventListener("message",m,!1)):r="onreadystatechange"in c("script")?function(t){f.appendChild(c("script")).onreadystatechange=function(){f.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:l}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(25),i=n(32),o=n(115);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){t.exports=!n(16)&&!n(9)(function(){return 7!=Object.defineProperty(n(117)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t,e,n){var r,i,o,a=new Array(n),s=8*n-e-1,f=(1<<s)-1,c=f>>1,u=23===e?N(2,-24)-N(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for(t=U(t),t!=t||t===B?(i=t!=t?1:0,r=f):(r=D(F(t)/z),t*(o=N(2,-r))<1&&(r--,o*=2),t+=r+c>=1?u/o:u*N(2,1-c),t*o>=2&&(r++,o/=2),r+c>=f?(i=0,r=f):r+c>=1?(i=(t*o-1)*N(2,e),r+=c):(i=t*N(2,c-1)*N(2,e),r=0));e>=8;a[h++]=255&i,i/=256,e-=8);for(r=r<<e|i,s+=e;s>0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*d,a}function i(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,a=o>>1,s=i-7,f=n-1,c=t[f--],u=127&c;for(c>>=7;s>0;u=256*u+t[f],f--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=e;s>0;r=256*r+t[f],f--,s-=8);if(0===u)u=1-a;else{if(u===o)return r?NaN:c?-B:B;r+=N(2,e),u-=a}return(c?-1:1)*r*N(2,u-e)}function o(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function f(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function c(t){return r(t,52,8)}function u(t){return r(t,23,4)}function h(t,e,n){A(t[C],e,{get:function(){return this[n]}})}function d(t,e,n,r){var i=+n,o=M(i);if(o+e>t[H])throw P(T);var a=t[q]._b,s=o+t[K],f=a.slice(s,s+e);return r?f:f.reverse()}function l(t,e,n,r,i,o){var a=+n,s=M(a);if(s+e>t[H])throw P(T);for(var f=t[q]._b,c=s+t[K],u=r(+i),h=0;h<e;h++)f[c+h]=u[o?h:e-h-1]}var p=n(5),b=n(16),g=n(50),v=n(118),y=n(19),m=n(51),w=n(9),_=n(52),S=n(43),E=n(12),M=n(172),k=n(70).f,A=n(11).f,x=n(124),I=n(55),C="prototype",T="Wrong index!",O=p.ArrayBuffer,j=p.DataView,R=p.Math,P=p.RangeError,B=p.Infinity,L=O,U=R.abs,N=R.pow,D=R.floor,F=R.log,z=R.LN2,q=b?"_b":"buffer",H=b?"_l":"byteLength",K=b?"_o":"byteOffset";if(v.ABV){if(!w(function(){O(1)})||!w(function(){new O(-1)})||w(function(){return new O,new O(1.5),new O(NaN),"ArrayBuffer"!=O.name})){O=function(t){return _(this,O),new L(M(t))};for(var W,V=O[C]=L[C],G=k(L),Y=0;G.length>Y;)(W=G[Y++])in O||y(O,W,L[W]);g||(V.constructor=O)}var J=new j(new O(2)),X=j[C].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||m(j[C],{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else O=function(t){_(this,O,"ArrayBuffer");var e=M(t);this._b=x.call(new Array(e),0),this[H]=e},j=function(t,e,n){_(this,j,"DataView"),_(t,O,"DataView");var r=t[H],i=S(e);if(i<0||i>r)throw P("Wrong offset!");if(n=void 0===n?r-i:E(n),i+n>r)throw P("Wrong length!");this[q]=t,this[K]=i,this[H]=n},b&&(h(O,"byteLength","_l"),h(j,"buffer","_b"),h(j,"byteLength","_l"),h(j,"byteOffset","_o")),m(j[C],{getInt8:function(t){return d(this,1,t)[0]<<24>>24},getUint8:function(t){return d(this,1,t)[0]},getInt16:function(t){var e=d(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=d(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return o(d(this,4,t,arguments[1]))},getUint32:function(t){return o(d(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return i(d(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return i(d(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){l(this,1,t,a,e)},setUint8:function(t,e){l(this,1,t,a,e)},setInt16:function(t,e){l(this,2,t,s,e,arguments[2])},setUint16:function(t,e){l(this,2,t,s,e,arguments[2])},setInt32:function(t,e){l(this,4,t,f,e,arguments[2])},setUint32:function(t,e){l(this,4,t,f,e,arguments[2])},setFloat32:function(t,e){l(this,4,t,u,e,arguments[2])},setFloat64:function(t,e){l(this,8,t,c,e,arguments[2])}});I(O,"ArrayBuffer"),I(j,"DataView"),y(j[C],v.VIEW,!0),e.ArrayBuffer=O,e.DataView=j},function(t,e,n){var r=n(43),i=n(12);t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var r=n(17),i=n(21),o=n(120)(!1),a=n(121)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),f=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>f;)r(s,n=e[f++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(5).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(53);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(50),i=n(0),o=n(34),a=n(19),s=n(17),f=n(56),c=n(304),u=n(55),h=n(57),d=n(8)("iterator"),l=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,b,g,v,y){c(n,e,b);var m,w,_,S=function(t){if(!l&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",M="values"==g,k=!1,A=t.prototype,x=A[d]||A["@@iterator"]||g&&A[g],I=!l&&x||S(g),C=g?M?S("entries"):I:void 0,T="Array"==e?A.entries||x:x;if(T&&(_=h(T.call(new t)))!==Object.prototype&&_.next&&(u(_,E,!0),r||s(_,d)||a(_,d,p)),M&&x&&"values"!==x.name&&(k=!0,I=function(){return x.call(this)}),r&&!y||!l&&!k&&A[d]||a(A,d,I),f[e]=I,f[E]=p,g)if(m={values:M?I:S("values"),keys:v?I:S("keys"),entries:C},y)for(w in m)w in A||o(A,w,m[w]);else i(i.P+i.F*(l||k),e,m);return m}},function(t,e,n){"use strict";var r=n(27),i=n(54),o=n(12);t.exports=[].copyWithin||function(t,e){var n=r(this),a=o(n.length),s=i(t,a),f=i(e,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:i(c,a))-f,a-s),h=1;for(f<s&&s<f+u&&(h=-1,f+=u-1,s+=u-1);u-- >0;)f in n?n[s]=n[f]:delete n[s],s+=h,f+=h;return n}},function(t,e,n){"use strict";var r=n(11).f,i=n(71),o=n(51),a=n(26),s=n(52),f=n(89),c=n(177),u=n(176),h=n(87),d=n(16),l=n(35).fastKey,p=n(59),b=d?"_s":"size",g=function(t,e){var n,r=l(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t(function(t,r){s(t,u,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[b]=0,void 0!=r&&f(r,n,t[c],t)});return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[b]=0},delete:function(t){var n=p(this,e),r=g(n,t);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[b]--}return!!r},forEach:function(t){p(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(p(this,e),t)}}),d&&r(u.prototype,"size",{get:function(){return p(this,e)[b]}}),u},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=l(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[b]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?u(0,n.k):"values"==e?u(0,n.v):u(0,[n.k,n.v]):(t._t=void 0,u(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){var r=n(6);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){"use strict";var r=n(45),i=n(91),o=n(73),a=n(27),s=n(119),f=Object.assign;t.exports=!f||n(9)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=a(t),f=arguments.length,c=1,u=i.f,h=o.f;f>c;)for(var d,l=s(arguments[c++]),p=u?r(l).concat(u(l)):r(l),b=p.length,g=0;b>g;)h.call(l,d=p[g++])&&(n[d]=l[d]);return n}:f},function(t,e,n){"use strict";var r=n(51),i=n(35).getWeak,o=n(6),a=n(4),s=n(52),f=n(89),c=n(72),u=n(17),h=n(59),d=c(5),l=c(6),p=0,b=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},v=function(t,e){return d(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=l(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,r){s(t,c,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=r&&f(r,n,t[o],t)});return r(c.prototype,{delete:function(t){if(!a(t))return!1;var n=i(t);return!0===n?b(h(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=i(t);return!0===n?b(h(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return!0===r?b(t).set(e,n):r[t._i]=n,t},ufstore:b}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(70),i=n(91),o=n(6),a=n(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(42);t.exports.f=function(t){return new r(t)}},function(t,e,n){e.f=n(8)},function(t,e,n){var r=n(21),i=n(70).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){"use strict";var r=n(43),i=n(44);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){var r=n(4),i=n(53),o=n(8)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(4),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){var r=n(45),i=n(21),o=n(73).f;t.exports=function(t){return function(e){for(var n,a=i(e),s=r(a),f=s.length,c=0,u=[];f>c;)o.call(a,n=s[c++])&&u.push(t?[n,a[n]]:a[n]);return u}}},function(t,e,n){var r=n(12),i=n(188),o=n(44);t.exports=function(t,e,n,a){var s=String(o(t)),f=s.length,c=void 0===n?" ":String(n),u=r(e);if(u<=f||""==c)return s;var h=u-f,d=i.call(c,Math.ceil(h/c.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},function(t,e){!function(e){"use strict";function n(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new l(r||[]);return a._invoke=c(t,n,s),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function f(t){function e(n,i,o,a){var s=r(t[n],t,i);if("throw"!==s.type){var f=s.arg,c=f.value;return c&&"object"==typeof c&&y.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(c).then(function(t){f.value=t,o(f)},a)}a(s.arg)}function n(t,n){function r(){return new Promise(function(r,i){e(t,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function c(t,e,n){var i=k;return function(o,a){if(i===x)throw new Error("Generator is already running");if(i===I){if("throw"===o)throw a;return b()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var f=u(s,n);if(f){if(f===C)continue;return f}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===k)throw i=I,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=x;var c=r(t,e,n);if("normal"===c.type){if(i=n.done?I:A,c.arg===C)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=I,n.method="throw",n.arg=c.arg)}}}function u(t,e){var n=t.iterator[e.method];if(n===g){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=g,u(t,e),"throw"===e.method))return C;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var i=r(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,C;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=g),e.delegate=null,C):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,C)}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function d(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function l(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(y.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=g,e.done=!0,e};return r.next=r}}return{next:b}}function b(){return{value:g,done:!0}}var g,v=Object.prototype,y=v.hasOwnProperty,m="function"==typeof Symbol?Symbol:{},w=m.iterator||"@@iterator",_=m.asyncIterator||"@@asyncIterator",S=m.toStringTag||"@@toStringTag",E="object"==typeof t,M=e.regeneratorRuntime;if(M)return void(E&&(t.exports=M));M=e.regeneratorRuntime=E?t.exports:{},M.wrap=n;var k="suspendedStart",A="suspendedYield",x="executing",I="completed",C={},T={};T[w]=function(){return this};var O=Object.getPrototypeOf,j=O&&O(O(p([])));j&&j!==v&&y.call(j,w)&&(T=j);var R=a.prototype=i.prototype=Object.create(T);o.prototype=R.constructor=a,a.constructor=o,a[S]=o.displayName="GeneratorFunction",M.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},M.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,S in t||(t[S]="GeneratorFunction")),t.prototype=Object.create(R),t},M.awrap=function(t){return{__await:t}},s(f.prototype),f.prototype[_]=function(){return this},M.AsyncIterator=f,M.async=function(t,e,r,i){var o=new f(n(t,e,r,i));return M.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},s(R),R[S]="Generator",R[w]=function(){return this},R.toString=function(){return"[object Generator]"},M.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},M.values=p,l.prototype={constructor:l,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(d),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,C):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),C},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),C}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;d(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=g),C}}}(function(){return this}()||Function("return this")())},function(t,e,n){"use strict";function r(t){var e=window.location.protocol+"//"+window.location.hostname+window.location.pathname+"?loggedin=yes",n=window.location.protocol+"//"+window.location.hostname+window.location.pathname+"?loggedout=yes",r={ClientId:t.appUserPoolClientId,AppWebDomain:t.appDomainName,TokenScopesArray:["email","openid","profile"],RedirectUriSignIn:e,RedirectUriSignOut:n};t.appUserPoolIdentityProvider&&t.appUserPoolIdentityProvider.length>0&&(r.IdentityProvider=t.appUserPoolIdentityProvider);var i=new h.CognitoAuth(r);return i.useCodeGrantFlow(),i.userhandler={onSuccess:function(t){localStorage.setItem("idtokenjwt",t.getIdToken().getJwtToken()),localStorage.setItem("accesstokenjwt",t.getAccessToken().getJwtToken()),localStorage.setItem("refreshtoken",t.getRefreshToken().getToken());var e=new CustomEvent("tokensavailable",{detail:"initialLogin"});document.dispatchEvent(e)},onFailure:function(t){}},i}function i(t){var e=r(t),n=window.location.href;n.split("?")[1];try{return e.parseCognitoWebResponse(n),!0}catch(t){return!1}}function o(){return localStorage.removeItem("idtokenjwt"),localStorage.removeItem("accesstokenjwt"),localStorage.removeItem("refreshtoken"),localStorage.removeItem("cognitoid"),!0}function a(t){r(t).signOut()}function s(t){var e=r(t);e.getSignInUserSession().isValid()||e.getSession()}function f(t,e,n){var i=r(t);i.userhandler={onSuccess:function(t){localStorage.setItem("idtokenjwt",t.getIdToken().getJwtToken()),localStorage.setItem("accesstokenjwt",t.getAccessToken().getJwtToken()),localStorage.setItem("refreshtoken",t.getRefreshToken().getToken());var e=new CustomEvent("tokensavailable",{detail:"refreshLogin"});document.dispatchEvent(e),n(t)},onFailure:function(t){n(t)}},i.refreshSession(e)}function c(t){var e=d.decode(t,{complete:!0});return!!(e&&Date.now()>1e3*e.payload.exp)}Object.defineProperty(e,"__esModule",{value:!0}),e.isTokenExpired=e.refreshLogin=e.getAuth=e.completeLogout=e.completeLogin=e.login=e.logout=void 0;var u=n(408),h=(function(t){t&&t.__esModule}(u),n(410)),d=n(411);e.logout=a,e.login=s,e.completeLogin=i,e.completeLogout=o,e.getAuth=r,e.refreshLogin=f,e.isTokenExpired=c},function(t,e,n){var r=n(138);t.exports=function(t,e){e=e||{};var n=r.decode(t,e);if(!n)return null;var i=n.payload;if("string"==typeof i)try{var o=JSON.parse(i);null!==o&&"object"==typeof o&&(i=o)}catch(t){}return!0===e.complete?{header:n.header,payload:i,signature:n.signature}:i}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(e){function r(t){if(this.buffer=null,this.writable=!0,this.readable=!0,!t)return this.buffer=i.alloc(0),this;if("function"==typeof t.pipe)return this.buffer=i.alloc(0),t.pipe(this),this;if(t.length||"object"==typeof t)return this.buffer=t,this.writable=!1,e.nextTick(function(){this.emit("end",t),this.readable=!1,this.emit("close")}.bind(this)),this;throw new TypeError("Unexpected data type ("+typeof t+")")}var i=n(2).Buffer,o=n(46);n(94).inherits(r,o),r.prototype.write=function(t){this.buffer=i.concat([this.buffer,i.from(t)]),this.emit("data",t)},r.prototype.end=function(t){t&&this.write(t),this.emit("end",t),this.emit("close"),this.writable=!1,this.readable=!1},t.exports=r}).call(e,n(23))},function(t,e,n){"use strict";(function(e,r){function i(t){return U.from(t)}function o(t){return U.isBuffer(t)||t instanceof N}function a(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?P(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function s(t,e){R=R||n(47),t=t||{},this.objectMode=!!t.objectMode,e instanceof R&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,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=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(q||(q=n(142).StringDecoder),this.decoder=new q(t.encoding),this.encoding=t.encoding)}function f(t){if(R=R||n(47),!(this instanceof f))return new f(t);this._readableState=new s(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),L.call(this)}function c(t,e,n,r,o){var a=t._readableState;if(null===e)a.reading=!1,b(t,a);else{var s;o||(s=h(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===U.prototype||(e=i(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):u(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?u(t,a,e,!1):y(t,a)):u(t,a,e,!1))):r||(a.reading=!1)}return d(a)}function u(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&g(t)),y(t,e)}function h(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function d(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function l(t){return t>=V?t=V:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function p(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=l(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function b(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,g(t)}}function g(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(z("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?j(v,t):v(t))}function v(t){z("emit readable"),t.emit("readable"),M(t)}function y(t,e){e.readingMore||(e.readingMore=!0,j(m,t,e))}function m(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(z("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function w(t){return function(){var e=t._readableState;z("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&B(t,"data")&&(e.flowing=!0,M(t))}}function _(t){z("readable nexttick read 0"),t.read(0)}function S(t,e){e.resumeScheduled||(e.resumeScheduled=!0,j(E,t,e))}function E(t,e){e.reading||(z("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),M(t),e.flowing&&!e.reading&&t.read(0)}function M(t){var e=t._readableState;for(z("flow",e.flowing);e.flowing&&null!==t.read(););}function k(t,e){if(0===e.length)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=A(t,e.buffer,e.decoder),n}function A(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?x(t,e):I(t,e),r}function x(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0==(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}function I(t,e){var n=U.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0==(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}function C(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,j(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}var j=n(93);t.exports=f;var R,P=n(197);f.ReadableState=s;var B=(n(139).EventEmitter,function(t,e){return t.listeners(e).length}),L=n(200),U=n(2).Buffer,N=e.Uint8Array||function(){},D=n(74);D.inherits=n(1);var F=n(415),z=void 0;z=F&&F.debuglog?F.debuglog("stream"):function(){};var q,H=n(416),K=n(201);D.inherits(f,L);var W=["error","close","destroy","pause","resume"];Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),f.prototype.destroy=K.destroy,f.prototype._undestroy=K.undestroy,f.prototype._destroy=function(t,e){this.push(null),e(t)},f.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=U.from(t,e),e=""),n=!0),c(this,t,e,!1,n)},f.prototype.unshift=function(t){return c(this,t,null,!0,!1)},f.prototype.isPaused=function(){return!1===this._readableState.flowing},f.prototype.setEncoding=function(t){return q||(q=n(142).StringDecoder),this._readableState.decoder=new q(t),this._readableState.encoding=t,this};var V=8388608;f.prototype.read=function(t){z("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return z("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?C(this):g(this),null;if(0===(t=p(t,e))&&e.ended)return 0===e.length&&C(this),null;var r=e.needReadable;z("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,z("length less than watermark",r)),e.ended||e.reading?(r=!1,z("reading or ended",r)):r&&(z("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=p(n,e)));var i;return i=t>0?k(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&C(this)),null!==i&&this.emit("data",i),i},f.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},f.prototype.pipe=function(t,e){function n(t,e){z("onunpipe"),t===d&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){z("onend"),t.end()}function o(){z("cleanup"),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("drain",g),t.removeListener("error",f),t.removeListener("unpipe",n),d.removeListener("end",i),d.removeListener("end",h),d.removeListener("data",s),v=!0,!l.awaitDrain||t._writableState&&!t._writableState.needDrain||g()}function s(e){z("ondata"),y=!1,!1!==t.write(e)||y||((1===l.pipesCount&&l.pipes===t||l.pipesCount>1&&-1!==O(l.pipes,t))&&!v&&(z("false write response, pause",d._readableState.awaitDrain),d._readableState.awaitDrain++,y=!0),d.pause())}function f(e){z("onerror",e),h(),t.removeListener("error",f),0===B(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",u),h()}function u(){z("onfinish"),t.removeListener("close",c),h()}function h(){z("unpipe"),d.unpipe(t)}var d=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=t;break;case 1:l.pipes=[l.pipes,t];break;default:l.pipes.push(t)}l.pipesCount+=1,z("pipe count=%d opts=%j",l.pipesCount,e);var p=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,b=p?i:h;l.endEmitted?j(b):d.once("end",b),t.on("unpipe",n);var g=w(d);t.on("drain",g);var v=!1,y=!1;return d.on("data",s),a(t,"error",f),t.once("close",c),t.once("finish",u),t.emit("pipe",d),l.flowing||(z("pipe resume"),d.resume()),t},f.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=O(e.pipes,t);return-1===a?this:(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},f.prototype.on=function(t,e){var n=L.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&g(this):j(_,this))}return n},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var t=this._readableState;return t.flowing||(z("resume"),t.flowing=!0,S(this,t)),this},f.prototype.pause=function(){return z("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(z("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;t.on("end",function(){if(z("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(i){z("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void 0!==i)&&(e.objectMode||i&&i.length)&&(r.push(i)||(n=!0,t.pause()))});for(var i in t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<W.length;o++)t.on(W[o],r.emit.bind(r,W[o]));return r._read=function(e){z("wrapped _read",e),n&&(n=!1,t.resume())},r},f._fromList=k}).call(e,n(30),n(23))},function(t,e,n){t.exports=n(139).EventEmitter},function(t,e,n){"use strict";function r(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(r||i)return void(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||a(o,this,t));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(a(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})}function i(){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 o(t,e){t.emit("error",e)}var a=n(93);t.exports={destroy:r,undestroy:i}},function(t,e,n){"use strict";function r(t){this.afterTransform=function(e,n){return i(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&t.push(n),i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);s.call(this,t),this._transformState=new r(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t,n){a(e,t,n)}):a(e)})}function a(t,e,n){if(e)return t.emit("error",e);null!==n&&void 0!==n&&t.push(n);var r=t._writableState,i=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=o;var s=n(47),f=n(74);f.inherits=n(1),f.inherits(o,s),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;s.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},function(t,e,n){function r(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function i(t){t=t.toString();var e=4-t.length%4;if(4!==e)for(var n=0;n<e;++n)t+="=";return t.replace(/\-/g,"+").replace(/_/g,"/")}function o(t){var e=[].slice.call(arguments,1),n=w.format.bind(w,t).apply(null,e);return new TypeError(n)}function a(t){return v.isBuffer(t)||"string"==typeof t}function s(t){return a(t)||(t=JSON.stringify(t)),t}function f(t){return function(e,n){if(!a(n))throw o(_);e=s(e);var i=y.createHmac("sha"+t,n);return r((i.update(e),i.digest("base64")))}}function c(t){return function(e,n,r){var i=f(t)(e,r);return g(v.from(n),v.from(i))}}function u(t){return function(e,n){if(!a(n)&&"object"!=typeof n)throw o(E);e=s(e);var i=y.createSign("RSA-SHA"+t);return r((i.update(e),i.sign(n,"base64")))}}function h(t){return function(e,n,r){if(!a(r))throw o(S);e=s(e),n=i(n);var f=y.createVerify("RSA-SHA"+t);return f.update(e),f.verify(r,n,"base64")}}function d(t){var e=u(t);return function(){var n=e.apply(null,arguments);return n=m.derToJose(n,"ES"+t)}}function l(t){var e=h(t);return function(n,r,i){return r=m.joseToDer(r,"ES"+t).toString("base64"),e(n,r,i)}}function p(){return function(){return""}}function b(){return function(t,e){return""===e}}var g=n(427),v=n(2).Buffer,y=n(428),m=n(506),w=n(94),_="secret must be a string or buffer",S="key must be a string or a buffer",E="key must be a string, a buffer or an object";t.exports=function(t){var e={hs:f,rs:u,es:d,none:p},n={hs:c,rs:h,es:l,none:b},r=t.match(/^(RS|ES|HS)(256|384|512)$|^(none)$/i);if(!r)throw o('"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512" and "none".',t);var i=(r[1]||r[3]).toLowerCase(),a=r[2];return{sign:e[i](a),verify:n[i](a)}}},function(t,e,n){function r(){this.init(),this._w=p,h.call(this,64,56)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function a(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function s(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function c(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}var u=n(1),h=n(61),d=n(2).Buffer,l=[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],p=new Array(64);u(r,h),r.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},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,u=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,b=0|this._g,g=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=c(e[v-2])+e[v-7]+f(e[v-15])+e[v-16]|0;for(var y=0;y<64;++y){var m=g+s(d)+i(d,p,b)+l[y]+e[y]|0,w=a(n)+o(n,r,u)|0;g=b,b=p,p=d,d=h+m|0,h=u,u=r,r=n,n=m+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=u+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},r.prototype._hash=function(){var t=d.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=r},function(t,e,n){function r(){this.init(),this._w=v,p.call(this,128,112)}function i(t,e,n){return n^t&(e^n)}function o(t,e,n){return t&e|n&(t|e)}function a(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function s(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function c(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function u(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function h(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function d(t,e){return t>>>0<e>>>0?1:0}var l=n(1),p=n(61),b=n(2).Buffer,g=[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],v=new Array(160);l(r,p),r.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},r.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,l=0|this._ch,p=0|this._dh,b=0|this._eh,v=0|this._fh,y=0|this._gh,m=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,E=0|this._dl,M=0|this._el,k=0|this._fl,A=0|this._gl,x=0|this._hl,I=0;I<32;I+=2)e[I]=t.readInt32BE(4*I),e[I+1]=t.readInt32BE(4*I+4);for(;I<160;I+=2){var C=e[I-30],T=e[I-30+1],O=f(C,T),j=c(T,C);C=e[I-4],T=e[I-4+1];var R=u(C,T),P=h(T,C),B=e[I-14],L=e[I-14+1],U=e[I-32],N=e[I-32+1],D=j+L|0,F=O+B+d(D,j)|0;D=D+P|0,F=F+R+d(D,P)|0,D=D+N|0,F=F+U+d(D,N)|0,e[I]=F,e[I+1]=D}for(var z=0;z<160;z+=2){F=e[z],D=e[z+1];var q=o(n,r,l),H=o(w,_,S),K=a(n,w),W=a(w,n),V=s(b,M),G=s(M,b),Y=g[z],J=g[z+1],X=i(b,v,y),Q=i(M,k,A),Z=x+G|0,$=m+V+d(Z,x)|0;Z=Z+Q|0,$=$+X+d(Z,Q)|0,Z=Z+J|0,$=$+Y+d(Z,J)|0,Z=Z+D|0,$=$+F+d(Z,D)|0;var tt=W+H|0,et=K+q+d(tt,W)|0;m=y,x=A,y=v,A=k,v=b,k=M,M=E+Z|0,b=p+$+d(M,E)|0,p=l,E=S,l=r,S=_,r=n,_=w,w=Z+tt|0,n=$+et+d(w,Z)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+M|0,this._fl=this._fl+k|0,this._gl=this._gl+A|0,this._hl=this._hl+x|0,this._ah=this._ah+n+d(this._al,w)|0,this._bh=this._bh+r+d(this._bl,_)|0,this._ch=this._ch+l+d(this._cl,S)|0,this._dh=this._dh+p+d(this._dl,E)|0,this._eh=this._eh+b+d(this._el,M)|0,this._fh=this._fh+v+d(this._fl,k)|0,this._gh=this._gh+y+d(this._gl,A)|0,this._hh=this._hh+m+d(this._hl,x)|0},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=b.allocUnsafe(64);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},t.exports=r},function(t,e,n){"use strict";function r(t,e){a.call(this,"digest"),"string"==typeof e&&(e=s.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>n?e=("rmd160"===t?new c:u(t)).update(e).digest():e.length<n&&(e=s.concat([e,h],n));for(var r=this._ipad=s.allocUnsafe(n),i=this._opad=s.allocUnsafe(n),o=0;o<n;o++)r[o]=54^e[o],i[o]=92^e[o];this._hash="rmd160"===t?new c:u(t),this._hash.update(r)}var i=n(1),o=n(435),a=n(36),s=n(2).Buffer,f=n(143),c=n(144),u=n(145),h=s.alloc(128);i(r,a),r.prototype._update=function(t){this._hash.update(t)},r.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return t=t.toLowerCase(),"rmd160"===t||"ripemd160"===t?new r("rmd160",e):"md5"===t?new o(f,e):new r(t,e)}},function(t,e){t.exports={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(t,e,n){e.pbkdf2=n(437),e.pbkdf2Sync=n(211)},function(t,e){var n=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>n||e!==e)throw new TypeError("Bad key length")}},function(t,e,n){(function(e){var n;n=e.browser?"utf-8":parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",t.exports=n}).call(e,n(23))},function(t,e,n){function r(t,e,n){var r=i(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=r(e):e.length<o&&(e=h.concat([e,d],o));for(var a=h.allocUnsafe(o+l[t]),s=h.allocUnsafe(o+l[t]),f=0;f<o;f++)a[f]=54^e[f],s[f]=92^e[f];var c=h.allocUnsafe(o+n+4);a.copy(c,0,0,o),this.ipad1=c,this.ipad2=a,this.opad=s,this.alg=t,this.blocksize=o,this.hash=r,this.size=l[t]}function i(t){function e(e){return f(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?s:"md5"===t?a:e}function o(t,e,n,i,o){h.isBuffer(t)||(t=h.from(t,u)),h.isBuffer(e)||(e=h.from(e,u)),c(n,i),o=o||"sha1";var a=new r(o,t,e.length),s=h.allocUnsafe(i),f=h.allocUnsafe(e.length+4);e.copy(f,0,0,e.length);for(var d=0,p=l[o],b=Math.ceil(i/p),g=1;g<=b;g++){f.writeUInt32BE(g,e.length);for(var v=a.run(f,a.ipad1),y=v,m=1;m<n;m++){y=a.run(y,a.ipad2);for(var w=0;w<p;w++)v[w]^=y[w]}v.copy(s,d),d+=p}return s}var a=n(143),s=n(144),f=n(145),c=n(209),u=n(210),h=n(2).Buffer,d=h.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};r.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=o},function(t,e,n){function r(t){var e=t._cipher.encryptBlockRaw(t._prev);return a(t._prev),e}var i=n(76),o=n(2).Buffer,a=n(213);e.encrypt=function(t,e){var n=Math.ceil(e.length/16),a=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var f=r(t),c=a+16*s;t._cache.writeUInt32BE(f[0],c+0),t._cache.writeUInt32BE(f[1],c+4),t._cache.writeUInt32BE(f[2],c+8),t._cache.writeUInt32BE(f[3],c+12)}var u=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,u)}},function(t,e){function n(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}t.exports=n},function(t,e){t.exports={"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(t,e,n){function r(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;i<r;++i)n+=t[i]^e[i];return n}function i(t,e,n){if(12===e.length)return t._finID=s.concat([e,s.from([0,0,0,1])]),s.concat([e,s.from([0,0,0,2])]);var r=new u(n),i=e.length,o=i%16;r.update(e),o&&(o=16-o,r.update(s.alloc(o,0))),r.update(s.alloc(8,0));var a=8*i,f=s.alloc(8);f.writeUIntBE(a,0,8),r.update(f),t._finID=r.state;var c=s.from(t._finID);return d(c),c}function o(t,e,n,r){f.call(this);var o=s.alloc(4,0);this._cipher=new a.AES(e);var c=this._cipher.encryptBlock(o);this._ghash=new u(c),n=i(this,n,c),this._prev=s.from(n),this._cache=s.allocUnsafe(0),this._secCache=s.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}var a=n(96),s=n(2).Buffer,f=n(36),c=n(1),u=n(448),h=n(76),d=n(213);c(o,f),o.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=s.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=h(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&r(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!s.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},o.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=o},function(t,e,n){function r(t,e,n,r){a.call(this),this._cipher=new i.AES(e),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=r,this._mode=t}var i=n(96),o=n(2).Buffer,a=n(36);n(1)(r,a),r.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},t.exports=r},function(t,e,n){function r(){if(null!==m)return m;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<e&&t[i]<=r&&n%t[i]!=0;i++);e!==i&&t[i]<=r||(t[e++]=n)}return m=t,t}function i(t){for(var e=r(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function o(t){var e=f.mont(t);return 0===l.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function a(t,e){if(t<16)return new f(2===e||5===e?[140,123]:[140,39]);e=new f(e);for(var n,r;;){for(n=new f(s(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(d),n.testn(1)||n.iadd(l),e.cmp(l)){if(!e.cmp(p))for(;n.mod(b).cmp(g);)n.iadd(y)}else for(;n.mod(c).cmp(v);)n.iadd(y);if(r=n.shrn(1),i(r)&&i(n)&&o(r)&&o(n)&&h.test(r)&&h.test(n))return n}}var s=n(60);t.exports=a,a.simpleSieve=i,a.fermatTest=o;var f=n(7),c=new f(24),u=n(218),h=new u,d=new f(1),l=new f(2),p=new f(5),b=(new f(16),new f(8),new f(10)),g=new f(3),v=(new f(7),new f(11)),y=new f(4),m=(new f(12),null)},function(t,e,n){function r(t){this.rand=t||new o.Rand}var i=n(7),o=n(219);t.exports=r,r.create=function(t){return new r(t)},r.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var r=new i(this.rand.generate(n))}while(r.cmp(t)>=0);return r},r.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},r.prototype.test=function(t,e,n){var r=t.bitLength(),o=i.mont(t),a=new i(1).toRed(o);e||(e=Math.max(1,r/48|0));for(var s=t.subn(1),f=0;!s.testn(f);f++);for(var c=t.shrn(f),u=s.toRed(o);e>0;e--){var h=this._randrange(new i(2),s);n&&n(h);var d=h.toRed(o).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(u)){for(var l=1;l<f;l++){if(d=d.redSqr(),0===d.cmp(a))return!1;if(0===d.cmp(u))break}if(l===f)return!1}}return!0},r.prototype.getDivisor=function(t,e){var n=t.bitLength(),r=i.mont(t),o=new i(1).toRed(r);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var f=t.shrn(s),c=a.toRed(r);e>0;e--){var u=this._randrange(new i(2),a),h=t.gcd(u);if(0!==h.cmpn(1))return h;var d=u.toRed(r).redPow(f);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var l=1;l<s;l++){if(d=d.redSqr(),0===d.cmp(o))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(c))break}if(l===s)return d=d.redSqr(),d.fromRed().subn(1).gcd(t)}}return!1}},function(t,e,n){function r(t){this.rand=t}var i;if(t.exports=function(t){return i||(i=new r(null)),i.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(460);if("function"!=typeof o.randomBytes)throw new Error("Not supported");r.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,n){"use strict";function r(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var r=0;r<t.length;r++)n[r]=0|t[r];return n}if("hex"===e){t=t.replace(/[^a-z0-9]+/gi,""),t.length%2!=0&&(t="0"+t);for(var r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(var r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n}function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",n=0;n<t.length;n++)e+=i(t[n].toString(16));return e}var a=e;a.toArray=r,a.zero2=i,a.toHex=o,a.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,n){"use strict";function r(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?a(e,n,r):2===t?o(e,n,r):void 0}function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function a(t,e,n){return t^e^n}function s(t){return d(t,2)^d(t,13)^d(t,22)}function f(t){return d(t,6)^d(t,11)^d(t,25)}function c(t){return d(t,7)^d(t,18)^t>>>3}function u(t){return d(t,17)^d(t,19)^t>>>10}var h=n(24),d=h.rotr32;e.ft_1=r,e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=s,e.s1_256=f,e.g0_256=c,e.g1_256=u},function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}var i=n(24),o=n(77),a=n(221),s=n(18),f=i.sum32,c=i.sum32_4,u=i.sum32_5,h=a.ch32,d=a.maj32,l=a.s0_256,p=a.s1_256,b=a.g0_256,g=a.g1_256,v=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];i.inherits(r,v),t.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=c(g(n[r-2]),n[r-7],b(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],a=this.h[2],v=this.h[3],y=this.h[4],m=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var S=u(_,p(y),h(y,m,w),this.k[r],n[r]),E=f(l(i),d(i,o,a));_=w,w=m,m=y,y=f(v,S),v=a,a=o,o=i,i=f(S,E)}this.h[0]=f(this.h[0],i),this.h[1]=f(this.h[1],o),this.h[2]=f(this.h[2],a),this.h[3]=f(this.h[3],v),this.h[4]=f(this.h[4],y),this.h[5]=f(this.h[5],m),this.h[6]=f(this.h[6],w),this.h[7]=f(this.h[7],_)},r.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;T.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=O,this.W=new Array(160)}function i(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function o(t,e,n,r,i,o){var a=e&r^~e&o;return a<0&&(a+=4294967296),a}function a(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function s(t,e,n,r,i,o){var a=e&r^e&o^r&o;return a<0&&(a+=4294967296),a}function f(t,e){var n=m(t,e,28),r=m(e,t,2),i=m(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function c(t,e){var n=w(t,e,28),r=w(e,t,2),i=w(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function u(t,e){var n=m(t,e,14),r=m(t,e,18),i=m(e,t,9),o=n^r^i;return o<0&&(o+=4294967296),o}function h(t,e){var n=w(t,e,14),r=w(t,e,18),i=w(e,t,9),o=n^r^i;return o<0&&(o+=4294967296),o}function d(t,e){var n=m(t,e,1),r=m(t,e,8),i=_(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function l(t,e){var n=w(t,e,1),r=w(t,e,8),i=S(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function p(t,e){var n=m(t,e,19),r=m(e,t,29),i=_(t,e,6),o=n^r^i;return o<0&&(o+=4294967296),o}function b(t,e){var n=w(t,e,19),r=w(e,t,29),i=S(t,e,6),o=n^r^i;return o<0&&(o+=4294967296),o}var g=n(24),v=n(77),y=n(18),m=g.rotr64_hi,w=g.rotr64_lo,_=g.shr64_hi,S=g.shr64_lo,E=g.sum64,M=g.sum64_hi,k=g.sum64_lo,A=g.sum64_4_hi,x=g.sum64_4_lo,I=g.sum64_5_hi,C=g.sum64_5_lo,T=v.BlockHash,O=[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];g.inherits(r,T),t.exports=r,r.blockSize=1024,r.outSize=512,r.hmacStrength=192,r.padLength=128,r.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=p(n[r-4],n[r-3]),o=b(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],f=d(n[r-30],n[r-29]),c=l(n[r-30],n[r-29]),u=n[r-32],h=n[r-31];n[r]=A(i,o,a,s,f,c,u,h),n[r+1]=x(i,o,a,s,f,c,u,h)}},r.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],d=this.h[1],l=this.h[2],p=this.h[3],b=this.h[4],g=this.h[5],v=this.h[6],m=this.h[7],w=this.h[8],_=this.h[9],S=this.h[10],A=this.h[11],x=this.h[12],T=this.h[13],O=this.h[14],j=this.h[15];y(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var P=O,B=j,L=u(w,_),U=h(w,_),N=i(w,_,S,A,x),D=o(w,_,S,A,x,T),F=this.k[R],z=this.k[R+1],q=n[R],H=n[R+1],K=I(P,B,L,U,N,D,F,z,q,H),W=C(P,B,L,U,N,D,F,z,q,H);P=f(r,d),B=c(r,d),L=a(r,d,l,p,b),U=s(r,d,l,p,b,g);var V=M(P,B,L,U),G=k(P,B,L,U);O=x,j=T,x=S,T=A,S=w,A=_,w=M(v,m,K,W),_=k(m,m,K,W),v=b,m=g,b=l,g=p,l=r,p=d,r=M(K,W,V,G),d=k(K,W,V,G)}E(this.h,0,r,d),E(this.h,2,l,p),E(this.h,4,b,g),E(this.h,6,v,m),E(this.h,8,w,_),E(this.h,10,S,A),E(this.h,12,x,T),E(this.h,14,O,j)},r.prototype._digest=function(t){return"hex"===t?g.toHex32(this.h,"big"):g.split32(this.h,"big")}},function(t,e,n){function r(t,e){if(a.call(this,e),!s.isBuffer(t))return void this.error("Input not Buffer");this.base=t,this.offset=0,this.length=t.length}function i(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return t instanceof i||(t=new i(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}var o=n(1),a=n(79).Reporter,s=n(3).Buffer;o(r,a),e.DecoderBuffer=r,r.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},r.prototype.restore=function(t){var e=new r(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,a.prototype.restore.call(this,t.reporter),e},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},r.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var n=new r(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},r.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=i,i.prototype.join=function(t,e){return t||(t=new s(this.length)),e||(e=0),0===this.length?t:(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,e),e+=n.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length),t)}},function(t,e,n){var r=e;r._reverse=function(t){var e={};return Object.keys(t).forEach(function(n){(0|n)==n&&(n|=0);var r=t[n];e[r]=n}),e},r.der=n(492)},function(t,e,n){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new i,this.tree._init(t.body)}function i(t){c.Node.call(this,"der",t)}function o(t,e){var n=t.readUInt8(e);if(t.isError(n))return n;var r=h.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){var o=n;for(n=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:h.tag[n]}}function a(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o<i;o++){r<<=8;var a=t.readUInt8(n);if(t.isError(a))return a;r|=a}return r}var s=n(1),f=n(78),c=f.base,u=f.bignum,h=f.constants.der;t.exports=r,r.prototype.decode=function(t,e){return t instanceof c.DecoderBuffer||(t=new c.DecoderBuffer(t,e)),this.tree._decode(t,e)},s(i,c.Node),i.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;var r=t.save(),i=o(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(r),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||n)},i.prototype._decodeTag=function(t,e,n){var r=o(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var i=a(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!n&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');var s=t.save(),f=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(f)?f:(i=t.offset-s.offset,t.restore(s),t.skip(i,'Failed to match body of: "'+e+'"'))},i.prototype._skipUntilEnd=function(t,e){for(;;){var n=o(t,e);if(t.isError(n))return n;var r=a(t,n.primitive,e);if(t.isError(r))return r;var i;if(i=n.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===n.tagStr)break}},i.prototype._decodeList=function(t,e,n,r){for(var i=[];!t.isEmpty();){var o=this._peekTag(t,"end");if(t.isError(o))return o;var a=n.decode(t,"der",r);if(t.isError(a)&&o)break;i.push(a)}return i},i.prototype._decodeStr=function(t,e){if("bitstr"===e){var n=t.readUInt8();return t.isError(n)?n:{unused:n,data:t.raw()}}if("bmpstr"===e){var r=t.raw();if(r.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<r.length/2;o++)i+=String.fromCharCode(r.readUInt16BE(2*o));return i}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},i.prototype._decodeObjid=function(t,e,n){for(var r,i=[],o=0;!t.isEmpty();){var a=t.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,f=i[0]%40;if(r=n?i:[s,f].concat(i.slice(1)),e){var c=e[r.join(" ")];void 0===c&&(c=e[r.join(".")]),void 0!==c&&(r=c)}return r},i.prototype._decodeTime=function(t,e){var n=t.raw().toString();if("gentime"===e)var r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),f=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");var r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),f=0|n.slice(10,12);r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,a,s,f,0)},i.prototype._decodeNull=function(t){return null},i.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},i.prototype._decodeInt=function(t,e){var n=t.raw(),r=new u(n);return e&&(r=e[r.toString(10)]||r),r},i.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,n){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new i,this.tree._init(t.body)}function i(t){u.Node.call(this,"der",t)}function o(t){return t<10?"0"+t:t}function a(t,e,n,r){var i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),h.tagByName.hasOwnProperty(t))i=h.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);i=t}return i>=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=h.tagClassByName[n||"universal"]<<6)}var s=n(1),f=n(3).Buffer,c=n(78),u=c.base,h=c.constants.der;t.exports=r,r.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},s(i,u.Node),i.prototype._encodeComposite=function(t,e,n,r){var i=a(t,e,n,this.reporter);if(r.length<128){var o=new f(2);return o[0]=i,o[1]=r.length,this._createEncoderBuffer([o,r])}for(var s=1,c=r.length;c>=256;c>>=8)s++;var o=new f(2+s);o[0]=i,o[1]=128|s;for(var c=1+s,u=r.length;u>0;c--,u>>=8)o[c]=255&u;return this._createEncoderBuffer([o,r])},i.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new f(2*t.length),r=0;r<t.length;r++)n.writeUInt16BE(t.charCodeAt(r),2*r);return this._createEncoderBuffer(n)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):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(e)?this._createEncoderBuffer(t):"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},i.prototype._encodeObjid=function(t,e,n){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s\.]+/g);for(var r=0;r<t.length;r++)t[r]|=0}else if(Array.isArray(t)){t=t.slice();for(var r=0;r<t.length;r++)t[r]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var i=0,r=0;r<t.length;r++){var o=t[r];for(i++;o>=128;o>>=7)i++}for(var a=new f(i),s=a.length-1,r=t.length-1;r>=0;r--){var o=t[r];for(a[s--]=127&o;(o>>=7)>0;)a[s--]=128|127&o}return this._createEncoderBuffer(a)},i.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[o(r.getFullYear()),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[o(r.getFullYear()%100),o(r.getUTCMonth()+1),o(r.getUTCDate()),o(r.getUTCHours()),o(r.getUTCMinutes()),o(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!f.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new f(n)}if(f.isBuffer(t)){var r=t.length;0===t.length&&r++;var i=new f(r);return t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var r=1,o=t;o>=256;o>>=8)r++;for(var i=new Array(r),o=i.length-1;o>=0;o--)i[o]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new f(i))},i.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},i.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},i.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r<o.length;r++)if(o[r]!==i.defaultBuffer[r])return!1;return!0}},function(t,e){t.exports={"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(t,e,n){(function(e){function r(t){var n=new e(4);return n.writeUInt32BE(t,0),n}var i=n(75);t.exports=function(t,n){for(var o,a=new e(""),s=0;a.length<n;)o=r(s++),a=e.concat([a,i("sha1").update(t).update(o).digest()]);return a.slice(0,n)}}).call(e,n(3).Buffer)},function(t,e){t.exports=function(t,e){for(var n=t.length,r=-1;++r<n;)t[r]^=e[r];return t}},function(t,e,n){(function(e){function r(t,n){return new e(t.toRed(i.mont(n.modulus)).redPow(new i(n.publicExponent)).fromRed().toArray())}var i=n(7);t.exports=r}).call(e,n(3).Buffer)},function(t,e,n){var r=n(3).Buffer;t.exports=function(t){return"string"==typeof t?t:"number"==typeof t||r.isBuffer(t)?t.toString():JSON.stringify(t)}},function(t,e,n){var r=n(99),i=function(t,e){r.call(this,t),this.name="NotBeforeError",this.date=e};i.prototype=Object.create(r.prototype),i.prototype.constructor=i,t.exports=i},function(t,e,n){var r=n(99),i=function(t,e){r.call(this,t),this.name="TokenExpiredError",this.expiredAt=e};i.prototype=Object.create(r.prototype),i.prototype.constructor=i,t.exports=i},function(t,e,n){var r=n(510);t.exports=function(t,e){var n=e||Math.floor(Date.now()/1e3);if("string"==typeof t){var i=r(t);if(void 0===i)return;return Math.floor(n+i/1e3)}return"number"==typeof t?n+t:void 0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}return"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t,!0)}Object.defineProperty(e,"__esModule",{value:!0}),e.ChatBotUiLoader=e.IframeLoader=e.FullPageLoader=void 0;var o=n(100),a=r(o),s=n(155),f=r(s),c=n(245),u=r(c),h=n(263),d=r(h),l=n(267),p=r(l),b=n(66),g=r(b),v=n(67),y=r(v),m=n(278),w=n(164),_=n(279),S=n(280),E=n(116),M=n(298),k=n(519);n(523),n(524);var A=function(){function t(e){(0,g.default)(this,t);var n=e.baseUrl;i(),this.options=e,this.options.baseUrl=this.options.baseUrl&&"/"===n[n.length-1]?this.options.baseUrl:this.options.baseUrl+"/",this.confLoader=new E.ConfigLoader(this.options)}return(0,y.default)(t,[{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.config=E.ConfigLoader.mergeConfig(this.config,e),this.depLoader.load().then(function(){return t.confLoader.load(t.config)}).then(function(e){t.config=E.ConfigLoader.mergeConfig(t.config,e)}).then(function(){return t.compLoader.load(t.config)})}}]),t}(),x=e.FullPageLoader=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e);var n=(0,u.default)(this,(e.__proto__||(0,f.default)(e)).call(this,(0,a.default)({},w.optionsFullPage,t)));return n.config=m.configBase,n.depLoader=new S.DependencyLoader({shouldLoadMinDeps:n.options.shouldLoadMinDeps,dependencies:_.dependenciesFullPage,baseUrl:n.options.baseUrl}),n.compLoader=new k.FullPageComponentLoader({elementId:n.options.elementId,config:n.config}),n}return(0,p.default)(e,t),(0,y.default)(e,[{key:"load",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.default)(e.prototype.__proto__||(0,f.default)(e.prototype),"load",this).call(this,t)}}]),e}(A),I=e.IframeLoader=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e);var n=(0,u.default)(this,(e.__proto__||(0,f.default)(e)).call(this,(0,a.default)({},w.optionsIframe,t)));return n.config=m.configBase,n.depLoader=new S.DependencyLoader({shouldLoadMinDeps:n.options.shouldLoadMinDeps,dependencies:_.dependenciesIframe,baseUrl:n.options.baseUrl}),n.compLoader=new M.IframeComponentLoader({config:n.config,containerClass:n.options.containerClass||"lex-web-ui",elementId:n.options.elementId||"lex-web-ui"}),n}return(0,p.default)(e,t),(0,y.default)(e,[{key:"load",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.default)(e.prototype.__proto__||(0,f.default)(e.prototype),"load",this).call(this,n).then(function(){t.api=t.compLoader.api,t.config.iframe=t.config.iframe||{},t.config.iframe.iframeSrcPath=t.config.iframe.iframeSrcPath||t.mergeSrcPath(n)})}},{key:"mergeSrcPath",value:function(t){var e=t.iframe,n=e&&e.iframeSrcPath,r=this.config.iframe,i=r&&r.iframeSrcPath;return n||this.options.iframeSrcPath||i}}]),e}(A),C=e.ChatBotUiLoader={FullPageLoader:x,IframeLoader:I};e.default=C},function(t,e,n){t.exports={default:n(238),__esModule:!0}},function(t,e,n){n(239),t.exports=n(10).Object.assign},function(t,e,n){var r=n(20);r(r.S+r.F,"Object",{assign:n(240)})},function(t,e,n){"use strict";var r=n(63),i=n(108),o=n(83),a=n(84),s=n(153),f=Object.assign;t.exports=!f||n(48)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=a(t),f=arguments.length,c=1,u=i.f,h=o.f;f>c;)for(var d,l=s(arguments[c++]),p=u?r(l).concat(u(l)):r(l),b=p.length,g=0;b>g;)h.call(l,d=p[g++])&&(n[d]=l[d]);return n}:f},function(t,e,n){var r=n(39),i=n(154),o=n(242);t.exports=function(t){return function(e,n,a){var s,f=r(e),c=i(f.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=f[u++])!=s)return!0}else for(;c>u;u++)if((t||u in f)&&f[u]===n)return t||u||0;return!t&&-1}}},function(t,e,n){var r=n(104),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){n(244),t.exports=n(10).Object.getPrototypeOf},function(t,e,n){var r=n(84),i=n(156);n(109)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){"use strict";e.__esModule=!0;var r=n(110),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){t.exports={default:n(247),__esModule:!0}},function(t,e,n){n(157),n(161),t.exports=n(112).f("iterator")},function(t,e,n){var r=n(104),i=n(103);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),f=r(n),c=s.length;return f<0||f>=c?t?"":void 0:(o=s.charCodeAt(f),o<55296||o>56319||f+1===c||(a=s.charCodeAt(f+1))<56320||a>57343?t?s.charAt(f):o:t?s.slice(f,f+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){"use strict";var r=n(111),i=n(81),o=n(86),a={};n(37)(a,n(15)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(31),i=n(25),o=n(63);t.exports=n(33)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,f=0;s>f;)r.f(t,n=a[f++],e[n]);return t}},function(t,e,n){"use strict";var r=n(252),i=n(253),o=n(65),a=n(39);t.exports=n(158)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(255),__esModule:!0}},function(t,e,n){n(256),n(163),n(261),n(262),t.exports=n(10).Symbol},function(t,e,n){"use strict";var r=n(14),i=n(38),o=n(33),a=n(20),s=n(159),f=n(257).KEY,c=n(48),u=n(106),h=n(86),d=n(82),l=n(15),p=n(112),b=n(113),g=n(258),v=n(259),y=n(25),m=n(32),w=n(39),_=n(102),S=n(81),E=n(111),M=n(260),k=n(114),A=n(31),x=n(63),I=k.f,C=A.f,T=M.f,O=r.Symbol,j=r.JSON,R=j&&j.stringify,P=l("_hidden"),B=l("toPrimitive"),L={}.propertyIsEnumerable,U=u("symbol-registry"),N=u("symbols"),D=u("op-symbols"),F=Object.prototype,z="function"==typeof O,q=r.QObject,H=!q||!q.prototype||!q.prototype.findChild,K=o&&c(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=I(F,e);r&&delete F[e],C(t,e,n),r&&t!==F&&C(F,e,r)}:C,W=function(t){var e=N[t]=E(O.prototype);return e._k=t,e},V=z&&"symbol"==typeof O.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof O},G=function(t,e,n){return t===F&&G(D,e,n),y(t),e=_(e,!0),y(n),i(N,e)?(n.enumerable?(i(t,P)&&t[P][e]&&(t[P][e]=!1),n=E(n,{enumerable:S(0,!1)})):(i(t,P)||C(t,P,S(1,{})),t[P][e]=!0),K(t,e,n)):C(t,e,n)},Y=function(t,e){y(t);for(var n,r=g(e=w(e)),i=0,o=r.length;o>i;)G(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?E(t):Y(E(t),e)},X=function(t){var e=L.call(this,t=_(t,!0));return!(this===F&&i(N,t)&&!i(D,t))&&(!(e||!i(this,t)||!i(N,t)||i(this,P)&&this[P][t])||e)},Q=function(t,e){if(t=w(t),e=_(e,!0),t!==F||!i(N,e)||i(D,e)){var n=I(t,e);return!n||!i(N,e)||i(t,P)&&t[P][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=T(w(t)),r=[],o=0;n.length>o;)i(N,e=n[o++])||e==P||e==f||r.push(e);return r},$=function(t){for(var e,n=t===F,r=T(n?D:w(t)),o=[],a=0;r.length>a;)!i(N,e=r[a++])||n&&!i(F,e)||o.push(N[e]);return o};z||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(D,n),i(this,P)&&i(this[P],t)&&(this[P][t]=!1),K(this,t,S(1,n))};return o&&H&&K(F,t,{configurable:!0,set:e}),W(t)},s(O.prototype,"toString",function(){return this._k}),k.f=Q,A.f=G,n(162).f=M.f=Z,n(83).f=X,n(108).f=$,o&&!n(85)&&s(F,"propertyIsEnumerable",X,!0),p.f=function(t){return W(l(t))}),a(a.G+a.W+a.F*!z,{Symbol:O});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)l(tt[et++]);for(var nt=x(l.store),rt=0;nt.length>rt;)b(nt[rt++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=O(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!z,"Object",{create:J,defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),j&&a(a.S+a.F*(!z||c(function(){var t=O();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(m(e)||void 0!==t)&&!V(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,R.apply(j,r)}}),O.prototype[B]||n(37)(O.prototype,B,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e,n){var r=n(82)("meta"),i=n(32),o=n(38),a=n(31).f,s=0,f=Object.isExtensible||function(){return!0},c=!n(48)(function(){return f(Object.preventExtensions({}))}),u=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!f(t))return"F";if(!e)return"E";u(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!f(t))return!0;if(!e)return!1;u(t)}return t[r].w},l=function(t){return c&&p.NEED&&f(t)&&!o(t,r)&&u(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:d,onFreeze:l}},function(t,e,n){var r=n(63),i=n(108),o=n(83);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),f=o.f,c=0;s.length>c;)f.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(64);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(39),i=n(162).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},function(t,e,n){n(113)("asyncIterator")},function(t,e,n){n(113)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(155),o=r(i),a=n(264),s=r(a);e.default=function t(e,n,r){null===e&&(e=Function.prototype);var i=(0,s.default)(e,n);if(void 0===i){var a=(0,o.default)(e);return null===a?void 0:t(a,n,r)}if("value"in i)return i.value;var f=i.get;return void 0!==f?f.call(r):void 0}},function(t,e,n){t.exports={default:n(265),__esModule:!0}},function(t,e,n){n(266);var r=n(10).Object;t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)}},function(t,e,n){var r=n(39),i=n(114).f;n(109)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(268),o=r(i),a=n(272),s=r(a),f=n(110),c=r(f);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,s.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(269),__esModule:!0}},function(t,e,n){n(270),t.exports=n(10).Object.setPrototypeOf},function(t,e,n){var r=n(20);r(r.S,"Object",{setPrototypeOf:n(271).set})},function(t,e,n){var r=n(32),i=n(25),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(62)(Function.call,n(114).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(273),__esModule:!0}},function(t,e,n){n(274);var r=n(10).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(20);r(r.S,"Object",{create:n(111)})},function(t,e,n){t.exports={default:n(276),__esModule:!0}},function(t,e,n){n(277);var r=n(10).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(20);r(r.S+r.F*!n(33),"Object",{defineProperty:n(31).f})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=e.configBase={lex:{botName:""},cognito:{poolId:""},ui:{parentOrigin:""},polly:{},recorder:{},iframe:{iframeOrigin:"",iframeSrcPath:""}};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dependenciesFullPage={script:[{name:"AWS",url:"https://sdk.amazonaws.com/js/aws-sdk-2.332.0.js",canUseMin:!0},{name:"aws_bots_config",url:"./aws-config.js",optional:!0},{name:"Vue",url:"https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.js",canUseMin:!0},{name:"Vuex",url:"https://unpkg.com/vuex@3.0.1/dist/vuex.js",canUseMin:!0},{name:"Vuetify",url:"https://unpkg.com/vuetify@0.17.6/dist/vuetify.js",canUseMin:!0},{name:"LexWebUi",url:"./lex-web-ui.js",canUseMin:!0}],css:[{name:"roboto-material-icons",url:"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons"},{name:"vuetify",url:"https://unpkg.com/vuetify@0.17.6/dist/vuetify.css",canUseMin:!0},{name:"lex-web-ui",url:"./lex-web-ui.css",canUseMin:!0},{name:"lex-web-ui-loader",url:"./lex-web-ui-loader.css"}]},e.dependenciesIframe={script:[{name:"AWS",url:"https://sdk.amazonaws.com/js/aws-sdk-2.176.0.js",canUseMin:!0},{name:"aws_bots_config",url:"./aws-config.js",optional:!0}],css:[{name:"lex-web-ui-loader",url:"./lex-web-ui-loader.css"}]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.DependencyLoader=void 0;var i=n(68),o=r(i),a=n(66),s=r(a),f=n(67),c=r(f),u=e.DependencyLoader=function(){function t(e){var n=e.shouldLoadMinDeps,r=void 0===n||n,i=e.dependencies,o=e.baseUrl,a=void 0===o?"/":o;if((0,s.default)(this,t),"boolean"!=typeof r)throw new Error("useMin paramenter should be a boolean");if(!("css"in i&&Array.isArray(i.css)))throw new Error("missing or invalid css field in dependency parameter");if(!("script"in i&&Array.isArray(i.script)))throw new Error("missing or invalid script field in dependency parameter");this.useMin=r,this.dependencies=i,this.baseUrl=a}return(0,c.default)(t,[{key:"load",value:function(){var e=this;return["css","script"].reduce(function(n,r){return e.dependencies[r].reduce(function(n,i){return n.then(function(){return t.addDependency(e.useMin,e.baseUrl,r,i)})},n)},o.default.resolve())}}],[{key:"getMinUrl",value:function(t){var e=t.lastIndexOf(".");return-1===e?t+".min":t.substring(0,e)+".min"+t.substring(e)}},{key:"getTypeAttributes",value:function(t){switch(t){case"script":return{elAppend:document.body,tag:"script",typeAttrib:"text/javascript",srcAttrib:"src"};case"css":return{elAppend:document.head,tag:"link",typeAttrib:"text/css",srcAttrib:"href"};default:return{}}}},{key:"addDependency",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",r=arguments[2],i=arguments[3];if(-1===["script","css"].indexOf(r))return o.default.reject(new Error("invalid dependency type: "+r));if(!i||!i.name||!i.url)return o.default.reject(new Error("invalid dependency parameter: "+i));var a=i.name;if("script"===r&&a in window)return o.default.resolve();var s=e&&i.canUseMin?t.getMinUrl(i.url):i.url,f=s.match("^http")?s:""+n+s,c=String(a).toLowerCase()+"-"+r;if(document.getElementById(c))return o.default.resolve();var u=t.getTypeAttributes(r),h=u.elAppend,d=u.typeAttrib,l=u.srcAttrib,p=u.tag;return h&&h.appendChild?new o.default(function(t,e){var n=document.createElement(p);n.setAttribute("id",c),n.setAttribute("type",d);var o=setTimeout(function(){return e(new Error("timed out loading "+a+" dependency link: "+f))},1e4);n.onerror=function(){return i.optional?t(n):e(new Error("failed to load "+a+" dependency link: "+f))},n.onload=function(){return clearTimeout(o),t(n)};try{if("css"===r&&n.setAttribute("rel","stylesheet"),n.setAttribute(l,f),"script"===r)h.appendChild(n);else if("css"===r){var s=h.querySelector("link");h.insertBefore(n,s)}}catch(t){return e(new Error("failed to add "+a+" dependency: "+t))}return n}):o.default.reject(new Error("invalid append element"))}}]),t}();e.default=u},function(t,e,n){n(163),n(157),n(161),n(282),n(293),n(294),t.exports=n(10).Promise},function(t,e,n){"use strict";var r,i,o,a,s=n(85),f=n(14),c=n(62),u=n(165),h=n(20),d=n(32),l=n(80),p=n(283),b=n(284),g=n(166),v=n(167).set,y=n(289)(),m=n(115),w=n(168),_=n(169),S=f.TypeError,E=f.process,M=f.Promise,k="process"==u(E),A=function(){},x=i=m.f,I=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n(15)("species")]=function(t){t(A,A)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e}catch(t){}}(),C=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},T=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,f=e.reject,c=e.domain;try{a?(i||(2==t._h&&R(t),t._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?f(S("Promise-chain cycle")):(o=C(n))?o.call(n,s,f):s(n)):f(r)}catch(t){f(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&O(t)})}},O=function(t){v.call(f,function(){var e,n,r,i=t._v,o=j(t);if(o&&(e=w(function(){k?E.emit("unhandledRejection",i,t):(n=f.onunhandledrejection)?n({promise:t,reason:i}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=k||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){v.call(f,function(){var e;k?E.emit("rejectionHandled",t):(e=f.onrejectionhandled)&&e({promise:t,reason:t._v})})},P=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),T(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=C(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(B,r,1),c(P,r,1))}catch(t){P.call(r,t)}}):(n._v=t,n._s=1,T(n,!1))}catch(t){P.call({_w:n,_d:!1},t)}}};I||(M=function(t){p(this,M,"Promise","_h"),l(t),r.call(this);try{t(c(B,this,1),c(P,this,1))}catch(t){P.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(290)(M.prototype,{then:function(t,e){var n=x(g(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(B,t,1),this.reject=c(P,t,1)},m.f=x=function(t){return t===M||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!I,{Promise:M}),n(86)(M,"Promise"),n(291)("Promise"),a=n(10).Promise,h(h.S+h.F*!I,"Promise",{reject:function(t){var e=x(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!I),"Promise",{resolve:function(t){return _(s&&this===a?M:this,t)}}),h(h.S+h.F*!(I&&n(292)(function(t){M.all(t).catch(A)})),"Promise",{all:function(t){var e=this,n=x(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;b(t,!1,function(t){var s=o++,f=!1;n.push(void 0),a++,e.resolve(t).then(function(t){f||(f=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=x(e),r=n.reject,i=w(function(){b(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(62),i=n(285),o=n(286),a=n(25),s=n(154),f=n(287),c={},u={},e=t.exports=function(t,e,n,h,d){var l,p,b,g,v=d?function(){return t}:f(t),y=r(n,h,e?2:1),m=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(l=s(t.length);l>m;m++)if((g=e?y(a(p=t[m])[0],p[1]):y(t[m]))===c||g===u)return g}else for(b=v.call(t);!(p=b.next()).done;)if((g=i(b,y,p.value,e))===c||g===u)return g};e.BREAK=c,e.RETURN=u},function(t,e,n){var r=n(25);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(65),i=n(15)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(165),i=n(15)("iterator"),o=n(65);t.exports=n(10).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(14),i=n(167).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,f="process"==n(64)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(f&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(f)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve();n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(37);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(14),i=n(10),o=n(31),a=n(33),s=n(15)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(15)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(20),i=n(10),o=n(14),a=n(166),s=n(169);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(20),i=n(115),o=n(168);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){t.exports={default:n(296),__esModule:!0}},function(t,e,n){n(297),t.exports=n(10).Object.keys},function(t,e,n){var r=n(84),i=n(63);n(109)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.IframeComponentLoader=void 0;var i=n(68),o=r(i),a=n(66),s=r(a),f=n(67),c=r(f);n(299),n(300),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(315),n(316),n(317),n(318),n(319),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(336),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(352),n(353),n(354),n(355),n(356),n(358),n(359),n(360),n(361),n(362),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(129),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(194);var u=n(116),h=n(195),d=e.IframeComponentLoader=function(){function t(e){var n=e.config,r=void 0===n?{}:n,i=e.containerClass,o=void 0===i?"lex-web-ui":i,a=e.elementId,f=void 0===a?"lex-web-ui":a;(0,s.default)(this,t),this.elementId=f,this.config=r,this.containerClass=o,this.iframeElement=null,this.containerElement=null,this.credentials=null,this.isChatBotReady=!1,this.initIframeMessageHandlers()}return(0,c.default)(t,[{key:"load",value:function(e){var n=this;this.config=u.ConfigLoader.mergeConfig(this.config,e),"iframe"in this.config||(this.config.iframe={});var r=this.config.iframe;return"iframeOrigin"in r&&r.iframeOrigin||(this.config.iframe.iframeOrigin=this.config.parentOrigin||window.location.origin),void 0===r.shouldLoadIframeMinimized&&(this.config.iframe.shouldLoadIframeMinimized=!0),this.config.parentOrigin||(this.config.parentOrigin=this.config.iframe.iframeOrigin||window.location.origin),t.validateConfig(this.config)?o.default.all([this.initContainer(),this.initCognitoCredentials(),this.setupIframeMessageListener()]).then(function(){return n.initIframe()}).then(function(){return n.initParentToIframeApi()}).then(function(){return n.showIframe()}):o.default.reject(new Error("config object is missing required fields"))}},{key:"initContainer",value:function(){var t=this;return new o.default(function(e,n){if(!t.elementId||!t.containerClass)return n(new Error("invalid chatbot container parameters"));var r=document.getElementById(t.elementId);if(r)return e(r);try{r=document.createElement("div"),r.classList.add(t.containerClass),r.setAttribute("id",t.elementId),document.body.appendChild(r)}catch(t){return n(new Error("error initializing container: "+t))}return t.containerElement=r,e()})}},{key:"generateConfigObj",value:function(){return{appUserPoolClientId:this.config.cognito.appUserPoolClientId,appDomainName:this.config.cognito.appDomainName,appUserPoolIdentityProvider:this.config.cognito.appUserPoolIdentityProvider}}},{key:"updateCredentials",value:function(){var t=this.config.cognito.poolId,e=this.config.cognito.region||this.config.region||"us-east-1",n="cognito-idp.us-east-1.amazonaws.com/"+this.config.cognito.appUserPoolName,r=void 0,i=localStorage.getItem("idtokenjwt");if(i)try{var o={};o[n]=i,r=new AWS.CognitoIdentityCredentials({IdentityPoolId:t,Logins:o},{region:e})}catch(t){}else try{r=new AWS.CognitoIdentityCredentials({IdentityPoolId:t},{region:e})}catch(t){}var a=this;r.getPromise().then(function(){a.credentials=r})}},{key:"validateIdToken",value:function(){var t=this;return new o.default(function(e,n){var r=localStorage.getItem("idtokenjwt");if((0,h.isTokenExpired)(r)){var i=localStorage.getItem("refreshtoken");i&&!(0,h.isTokenExpired)(i)?(0,h.refreshLogin)(t.generateConfigObj(),i,function(t){t.isValid()?(r=localStorage.getItem("idtokenjwt"),e(r)):n(new Error("failed to refresh tokens"))}):n(new Error("token could not be refreshed"))}else e(r)})}},{key:"initCognitoCredentials",value:function(){var t=this;return document.addEventListener("tokensavailable",this.updateCredentials.bind(this),!1),new o.default(function(e,n){var r=window.location.href;r.indexOf("loggedin")>=0?(0,h.completeLogin)(t.generateConfigObj())&&history.replaceState(null,"",window.location.pathname):r.indexOf("loggedout")>=0&&(0,h.completeLogout)(t.generateConfigObj())&&history.replaceState(null,"",window.location.pathname);var i=t.config.cognito.poolId,o=t.config.cognito.region||t.config.region||"us-east-1",a="cognito-idp.us-east-1.amazonaws.com/"+t.config.cognito.appUserPoolName;if(!i)return n(new Error("missing cognito poolId config"));if(!("AWS"in window&&"CognitoIdentityCredentials"in window.AWS))return n(new Error("unable to find AWS SDK global object"));var s=void 0;if(localStorage.getItem("idtokenjwt"))return t.validateIdToken().then(function(n){var r={};r[a]=n,s=new AWS.CognitoIdentityCredentials({IdentityPoolId:i,Logins:r},{region:o});var f=t;return s.getPromise().then(function(){f.credentials=s,e()})},function(e){(0,h.logout)(t.generateConfigObj()),n(e)});s=new AWS.CognitoIdentityCredentials({IdentityPoolId:i},{region:o}),s.clearCachedId();var f=t;return s.getPromise().then(function(){f.credentials=s,e()})})}},{key:"setupIframeMessageListener",value:function(){try{window.addEventListener("message",this.onMessageFromIframe.bind(this),!1)}catch(t){return o.default.reject(new Error("could not add iframe message listener "+t))}return o.default.resolve()}},{key:"onMessageFromIframe",value:function(t){var e="iframe"in this.config&&"string"==typeof this.config.iframe.iframeOrigin?this.config.iframe.iframeOrigin:window.location.origin;t.origin===e&&t.ports&&Array.isArray(t.ports)&&t.ports.length&&this.iframeMessageHandlers&&t.data.event&&Object.prototype.hasOwnProperty.call(this.iframeMessageHandlers,t.data.event)&&this.iframeMessageHandlers[t.data.event].call(this,t)}},{key:"initIframe",value:function(){var t=this,e=this.config.iframe,n=e.iframeOrigin,r=e.iframeSrcPath;if(!n||!r)return o.default.reject(new Error("invalid iframe url fields"));var i=""+n+r;if(!i)return o.default.reject(new Error("invalid iframe url"));if(!(this.containerElement&&"appendChild"in this.containerElement))return o.default.reject(new Error("invalid node element to append iframe"));var a=this.containerElement.querySelector("iframe");if(a)return o.default.resolve(a);try{a=document.createElement("iframe"),a.setAttribute("src",i),a.setAttribute("frameBorder","0"),a.setAttribute("scrolling","no"),a.setAttribute("title","chatbot"),a.setAttribute("allow","microphone"),this.containerElement.appendChild(a)}catch(t){return o.default.reject(new Error("failed to initialize iframe element "+t))}return this.iframeElement=a,this.waitForIframe(a).then(function(){return t.waitForChatBotReady()})}},{key:"waitForIframe",value:function(){var t=this,e={timeoutInMs:2e4,timeoutId:null,onIframeLoaded:null,onIframeTimeout:null};return new o.default(function(n,r){e.onIframeLoaded=function(){return clearTimeout(e.timeoutId),t.iframeElement.removeEventListener("load",e.onIframeLoaded,!1),n()},e.onIframeTimeout=function(){return t.iframeElement.removeEventListener("load",e.onIframeLoaded,!1),r(new Error("iframe load timeout"))},e.timeoutId=setTimeout(e.onIframeTimeout,e.timeoutInMs),t.iframeElement.addEventListener("load",e.onIframeLoaded,!1)})}},{key:"waitForChatBotReady",value:function(){var t=this,e={timeoutId:null,intervalId:null,checkIsChtBotReady:null,onConfigEventTimeout:null};return new o.default(function(n,r){e.checkIsChatBotReady=function(){if(t.isChatBotReady){if(clearTimeout(e.timeoutId),clearInterval(e.intervalId),t.config.ui.enableLogin&&!0===t.config.ui.enableLogin)if((0,h.getAuth)(t.generateConfigObj()).getSignInUserSession().isValid()){var r={};r.idtokenjwt=localStorage.getItem("idtokenjwt"),r.accesstokenjwt=localStorage.getItem("accesstokenjwt"),r.refreshtoken=localStorage.getItem("refreshtoken"),t.sendMessageToIframe({event:"confirmLogin",data:r})}else{var i=localStorage.getItem("refreshtoken");i&&(0,h.refreshLogin)(t.generateConfigObj(),i,function(e){if(e.isValid()){var n={};n.idtokenjwt=localStorage.getItem("idtokenjwt"),n.accesstokenjwt=localStorage.getItem("accesstokenjwt"),n.refreshtoken=localStorage.getItem("refreshtoken"),t.sendMessageToIframe({event:"confirmLogin",data:n})}})}n()}},e.onConfigEventTimeout=function(){return clearInterval(e.intervalId),r(new Error("chatbot loading time out"))},e.timeoutId=setTimeout(e.onConfigEventTimeout,15e3),e.intervalId=setInterval(e.checkIsChatBotReady,500)})}},{key:"getCredentials",value:function(){var t=this;return this.credentials&&"getPromise"in this.credentials?this.credentials.getPromise().then(function(){return t.credentials}):o.default.reject(new Error("invalid credentials"))}},{key:"initIframeMessageHandlers",value:function(){this.iframeMessageHandlers={ready:function(t){this.isChatBotReady=!0,t.ports[0].postMessage({event:"resolve",type:t.data.event})},getCredentials:function(t){return this.getCredentials().then(function(e){return t.ports[0].postMessage({event:"resolve",type:t.data.event,data:e})}).catch(function(e){t.ports[0].postMessage({event:"reject",type:t.data.event,error:"failed to get credentials"})})},initIframeConfig:function(t){t.ports[0].postMessage({event:"resolve",type:t.data.event,data:this.config})},toggleMinimizeUi:function(t){this.toggleMinimizeUiClass().then(function(){return t.ports[0].postMessage({event:"resolve",type:t.data.event})}).catch(function(e){t.ports[0].postMessage({event:"reject",type:t.data.event,error:"failed to toggleMinimizeUi"})})},requestLogin:function(t){t.ports[0].postMessage({event:"resolve",type:t.data.event}),(0,h.login)(this.generateConfigObj())},requestLogout:function(t){(0,h.logout)(this.generateConfigObj()),t.ports[0].postMessage({event:"resolve",type:t.data.event}),this.sendMessageToIframe({event:"confirmLogout"})},refreshAuthTokens:function(t){var e=localStorage.getItem("refreshtoken");e?(0,h.refreshLogin)(this.generateConfigObj(),e,function(e){if(e.isValid()){var n={};n.idtokenjwt=localStorage.getItem("idtokenjwt"),n.accesstokenjwt=localStorage.getItem("accesstokenjwt"),n.refreshtoken=localStorage.getItem("refreshtoken"),t.ports[0].postMessage({event:"resolve",type:t.data.event,data:n})}else t.ports[0].postMessage({event:"reject",type:t.data.event,error:"failed to refresh tokens"})}):t.ports[0].postMessage({event:"reject",type:t.data.event,error:"no refresh token available for use"})},updateLexState:function(t){t.ports[0].postMessage({event:"resolve",type:t.data.event});var e=new CustomEvent("updatelexstate",{detail:t.data});document.dispatchEvent(e)}}}},{key:"sendMessageToIframe",value:function(t){var e=this;if(!(this.iframeElement&&"contentWindow"in this.iframeElement&&"postMessage"in this.iframeElement.contentWindow))return o.default.reject(new Error("invalid iframe element"));var n=this.config.iframe.iframeOrigin;return n?new o.default(function(r,i){var o=new MessageChannel;o.port1.onmessage=function(t){o.port1.close(),o.port2.close(),"resolve"===t.data.event?r(t.data):i(new Error("iframe failed to handle message - "+t.data.error))},e.iframeElement.contentWindow.postMessage(t,n,[o.port2])}):o.default.reject(new Error("invalid iframe origin"))}},{key:"toggleShowUiClass",value:function(){try{return this.containerElement.classList.toggle(this.containerClass+"--show"),o.default.resolve()}catch(t){return o.default.reject(new Error("failed to toggle show UI "+t))}}},{key:"toggleMinimizeUiClass",value:function(){try{return this.containerElement.classList.toggle(this.containerClass+"--minimize"),this.containerElement.classList.contains(this.containerClass+"--minimize")?localStorage.setItem("lastUiIsMinimized","true"):localStorage.setItem("lastUiIsMinimized","false"),o.default.resolve()}catch(t){return o.default.reject(new Error("failed to toggle minimize UI "+t))}}},{key:"showIframe",value:function(){var t=this;return o.default.resolve().then(function(){localStorage.getItem("lastUiIsMinimized")&&"true"===localStorage.getItem("lastUiIsMinimized")?t.api.toggleMinimizeUi():localStorage.getItem("lastUiIsMinimized")&&"false"===localStorage.getItem("lastUiIsMinimized")?t.api.ping():t.config.iframe.shouldLoadIframeMinimized&&t.api.toggleMinimizeUi()}).then(function(){return t.toggleShowUiClass()})}},{key:"onMessageToIframe",value:function(t){return t&&"detail"in t&&t.detail&&"message"in t.detail?this.sendMessageToIframe(t.detail.message):o.default.reject(new Error("malformed message to iframe event"))}},{key:"initParentToIframeApi",value:function(){var t=this;return this.api={ping:function(){return t.sendMessageToIframe({event:"ping"})},sendParentReady:function(){return t.sendMessageToIframe({event:"parentReady"})},toggleMinimizeUi:function(){return t.sendMessageToIframe({event:"toggleMinimizeUi"})},postText:function(e){return t.sendMessageToIframe({event:"postText",message:e})}},o.default.resolve().then(function(){document.addEventListener("lexWebUiMessage",t.onMessageToIframe.bind(t),!1)}).then(function(){return t.api.sendParentReady()}).then(function(){document.dispatchEvent(new CustomEvent("lexWebUiReady"))})}}],[{key:"validateConfig",value:function(t){var e=t.iframe;return!!e&&!!("iframeOrigin"in e&&e.iframeOrigin)&&!!("iframeSrcPath"in e&&e.iframeSrcPath)&&!!("parentOrigin"in t&&t.parentOrigin)&&"shouldLoadIframeMinimized"in e}}]),t}();e.default=d},function(t,e,n){"use strict";var r=n(0),i=n(118),o=n(171),a=n(6),s=n(54),f=n(12),c=n(4),u=n(5).ArrayBuffer,h=n(125),d=o.ArrayBuffer,l=o.DataView,p=i.ABV&&u.isView,b=d.prototype.slice,g=i.VIEW;r(r.G+r.W+r.F*(u!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||c(t)&&g in t}}),r(r.P+r.U+r.F*n(9)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==b&&void 0===e)return b.call(a(this),t);for(var n=a(this).byteLength,r=s(t,n),i=s(void 0===e?n:e,n),o=new(h(this,d))(f(i-r)),c=new l(this),u=new l(o),p=0;r<i;)u.setUint8(p++,c.getUint8(r++));return o}}),n(87)("ArrayBuffer")},function(t,e,n){n(28)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(11),i=n(6),o=n(45);t.exports=n(16)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,f=0;s>f;)r.f(t,n=a[f++],e[n]);return t}},function(t,e,n){var r=n(303);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(4),i=n(175),o=n(8)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(71),i=n(40),o=n(55),a={};n(19)(a,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){n(28)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(28)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(28)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";var r=n(179),i=n(59);t.exports=n(90)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(i(this,"Map"),0===t?0:t,e)}},r,!0)},function(t,e,n){var r=n(4),i=n(130).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(179),i=n(59);t.exports=n(90)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(72)(0),o=n(34),a=n(35),s=n(181),f=n(182),c=n(4),u=n(9),h=n(59),d=a.getWeak,l=Object.isExtensible,p=f.ufstore,b={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(c(t)){var e=d(t);return!0===e?p(h(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return f.def(h(this,"WeakMap"),t,e)}},y=t.exports=n(90)("WeakMap",g,v,f,!0,!0);u(function(){return 7!=(new y).set((Object.freeze||Object)(b),7).get(b)})&&(r=f.getConstructor(g,"WeakMap"),s(r.prototype,v),a.NEED=!0,i(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!l(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(182),i=n(59);n(90)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,e,n){var r=n(0),i=n(42),o=n(6),a=(n(5).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(9)(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),f=o(n);return a?a(r,e,f):s.call(r,e,f)}})},function(t,e,n){var r=n(0),i=n(71),o=n(42),a=n(6),s=n(4),f=n(9),c=n(320),u=(n(5).Reflect||{}).construct,h=f(function(){function t(){}return!(u(function(){},[],t)instanceof t)}),d=!f(function(){u(function(){})});r(r.S+r.F*(h||d),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(d&&!h)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var f=n.prototype,l=i(s(f)?f:Object.prototype),p=Function.apply.call(t,l,e);return s(p)?p:l}})},function(t,e,n){"use strict";var r=n(42),i=n(4),o=n(183),a=[].slice,s={},f=function(t,e,n){if(!(e in s)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";s[e]=Function("F,a","return new F("+r.join(",")+")")}return s[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?f(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(s.prototype=e.prototype),s}},function(t,e,n){var r=n(11),i=n(0),o=n(6),a=n(69);i(i.S+i.F*n(9)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(0),i=n(29).f,o=n(6);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){function r(t,e){var n,s,u=arguments.length<3?t:arguments[2];return c(t)===u?t[e]:(n=i.f(t,e))?a(n,"value")?n.value:void 0!==n.get?n.get.call(u):void 0:f(s=o(t))?r(s,e,u):void 0}var i=n(29),o=n(57),a=n(17),s=n(0),f=n(4),c=n(6);s(s.S,"Reflect",{get:r})},function(t,e,n){var r=n(29),i=n(0),o=n(6);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(0),i=n(57),o=n(6);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(0),i=n(6),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(184)})},function(t,e,n){var r=n(0),i=n(6),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){function r(t,e,n){var f,d,l=arguments.length<4?t:arguments[3],p=o.f(u(t),e);if(!p){if(h(d=a(t)))return r(d,e,n,l);p=c(0)}return s(p,"value")?!(!1===p.writable||!h(l)||(f=o.f(l,e)||c(0),f.value=n,i.f(l,e,f),0)):void 0!==p.set&&(p.set.call(l,n),!0)}var i=n(11),o=n(29),a=n(57),s=n(17),f=n(0),c=n(40),u=n(6),h=n(4);f(f.S,"Reflect",{set:r})},function(t,e,n){var r=n(0),i=n(130);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){"use strict";var r,i,o,a,s=n(50),f=n(5),c=n(26),u=n(126),h=n(0),d=n(4),l=n(42),p=n(52),b=n(89),g=n(125),v=n(131).set,y=n(333)(),m=n(185),w=n(334),_=n(335),S=f.TypeError,E=f.process,M=f.Promise,k="process"==u(E),A=function(){},x=i=m.f,I=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n(8)("species")]=function(t){t(A,A)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e}catch(t){}}(),C=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},T=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,f=e.reject,c=e.domain;try{a?(i||(2==t._h&&R(t),t._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===e.promise?f(S("Promise-chain cycle")):(o=C(n))?o.call(n,s,f):s(n)):f(r)}catch(t){f(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&O(t)})}},O=function(t){v.call(f,function(){var e,n,r,i=t._v,o=j(t);if(o&&(e=w(function(){k?E.emit("unhandledRejection",i,t):(n=f.onunhandledrejection)?n({promise:t,reason:i}):(r=f.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=k||j(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},R=function(t){v.call(f,function(){var e;k?E.emit("rejectionHandled",t):(e=f.onrejectionhandled)&&e({promise:t,reason:t._v})})},P=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),T(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=C(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(B,r,1),c(P,r,1))}catch(t){P.call(r,t)}}):(n._v=t,n._s=1,T(n,!1))}catch(t){P.call({_w:n,_d:!1},t)}}};I||(M=function(t){p(this,M,"Promise","_h"),l(t),r.call(this);try{t(c(B,this,1),c(P,this,1))}catch(t){P.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(51)(M.prototype,{then:function(t,e){var n=x(g(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=k?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=c(B,t,1),this.reject=c(P,t,1)},m.f=x=function(t){return t===M||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!I,{Promise:M}),n(55)(M,"Promise"),n(87)("Promise"),a=n(49).Promise,h(h.S+h.F*!I,"Promise",{reject:function(t){var e=x(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!I),"Promise",{resolve:function(t){return _(s&&this===a?M:this,t)}}),h(h.S+h.F*!(I&&n(88)(function(t){M.all(t).catch(A)})),"Promise",{all:function(t){var e=this,n=x(e),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;b(t,!1,function(t){var s=o++,f=!1;n.push(void 0),a++,e.resolve(t).then(function(t){f||(f=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=x(e),r=n.reject,i=w(function(){b(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e,n){var r=n(5),i=n(131).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,f="process"==n(53)(a);t.exports=function(){var t,e,n,c=function(){var r,i;for(f&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(f)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve();n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(6),i=n(4),o=n(185);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(5),i=n(17),o=n(16),a=n(0),s=n(34),f=n(35).KEY,c=n(9),u=n(122),h=n(55),d=n(41),l=n(8),p=n(186),b=n(337),g=n(338),v=n(175),y=n(6),m=n(4),w=n(21),_=n(69),S=n(40),E=n(71),M=n(187),k=n(29),A=n(11),x=n(45),I=k.f,C=A.f,T=M.f,O=r.Symbol,j=r.JSON,R=j&&j.stringify,P=l("_hidden"),B=l("toPrimitive"),L={}.propertyIsEnumerable,U=u("symbol-registry"),N=u("symbols"),D=u("op-symbols"),F=Object.prototype,z="function"==typeof O,q=r.QObject,H=!q||!q.prototype||!q.prototype.findChild,K=o&&c(function(){return 7!=E(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=I(F,e);r&&delete F[e],C(t,e,n),r&&t!==F&&C(F,e,r)}:C,W=function(t){var e=N[t]=E(O.prototype);return e._k=t,e},V=z&&"symbol"==typeof O.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof O},G=function(t,e,n){return t===F&&G(D,e,n),y(t),e=_(e,!0),y(n),i(N,e)?(n.enumerable?(i(t,P)&&t[P][e]&&(t[P][e]=!1),n=E(n,{enumerable:S(0,!1)})):(i(t,P)||C(t,P,S(1,{})),t[P][e]=!0),K(t,e,n)):C(t,e,n)},Y=function(t,e){y(t);for(var n,r=g(e=w(e)),i=0,o=r.length;o>i;)G(t,n=r[i++],e[n]);return t},J=function(t,e){return void 0===e?E(t):Y(E(t),e)},X=function(t){var e=L.call(this,t=_(t,!0));return!(this===F&&i(N,t)&&!i(D,t))&&(!(e||!i(this,t)||!i(N,t)||i(this,P)&&this[P][t])||e)},Q=function(t,e){if(t=w(t),e=_(e,!0),t!==F||!i(N,e)||i(D,e)){var n=I(t,e);return!n||!i(N,e)||i(t,P)&&t[P][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=T(w(t)),r=[],o=0;n.length>o;)i(N,e=n[o++])||e==P||e==f||r.push(e);return r},$=function(t){for(var e,n=t===F,r=T(n?D:w(t)),o=[],a=0;r.length>a;)!i(N,e=r[a++])||n&&!i(F,e)||o.push(N[e]);return o};z||(O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(D,n),i(this,P)&&i(this[P],t)&&(this[P][t]=!1),K(this,t,S(1,n))};return o&&H&&K(F,t,{configurable:!0,set:e}),W(t)},s(O.prototype,"toString",function(){return this._k}),k.f=Q,A.f=G,n(70).f=M.f=Z,n(73).f=X,n(91).f=$,o&&!n(50)&&s(F,"propertyIsEnumerable",X,!0),p.f=function(t){return W(l(t))}),a(a.G+a.W+a.F*!z,{Symbol:O});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)l(tt[et++]);for(var nt=x(l.store),rt=0;nt.length>rt;)b(nt[rt++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=O(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),a(a.S+a.F*!z,"Object",{create:J,defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),j&&a(a.S+a.F*(!z||c(function(){var t=O();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(m(e)||void 0!==t)&&!V(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!V(e))return e}),r[1]=e,R.apply(j,r)}}),O.prototype[B]||n(19)(O.prototype,B,O.prototype.valueOf),h(O,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e,n){var r=n(5),i=n(49),o=n(50),a=n(186),s=n(11).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(45),i=n(91),o=n(73);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),f=o.f,c=0;s.length>c;)f.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var r=n(4),i=n(35).onFreeze;n(22)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(4),i=n(35).onFreeze;n(22)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(4),i=n(35).onFreeze;n(22)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(4);n(22)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(22)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(4);n(22)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(21),i=n(29).f;n(22)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(27),i=n(57);n(22)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(27),i=n(45);n(22)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(22)("getOwnPropertyNames",function(){return n(187).f})},function(t,e,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(181)})},function(t,e,n){var r=n(0);r(r.S,"Object",{is:n(351)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(130).set})},function(t,e,n){var r=n(11).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(16)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){var r=n(0),i=n(21),o=n(12);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,n){var r=n(0),i=n(54),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,a=0;r>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){"use strict";var r=n(0),i=n(357)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(43),i=n(44);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),f=r(n),c=s.length;return f<0||f>=c?t?"":void 0:(o=s.charCodeAt(f),o<55296||o>56319||f+1===c||(a=s.charCodeAt(f+1))<56320||a>57343?t?s.charAt(f):o:t?s.slice(f,f+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){var r=n(0);r(r.P,"String",{repeat:n(188)})},function(t,e,n){"use strict";var r=n(0),i=n(12),o=n(132),a="".startsWith;r(r.P+r.F*n(133)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(0),i=n(12),o=n(132),a="".endsWith;r(r.P+r.F*n(133)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),s=void 0===n?r:Math.min(i(n),r),f=String(t);return a?a.call(e,f,s):e.slice(s-f.length,s)===f}})},function(t,e,n){"use strict";var r=n(0),i=n(132);r(r.P+r.F*n(133)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){n(16)&&"g"!=/./g.flags&&n(11).f(RegExp.prototype,"flags",{configurable:!0,get:n(363)})},function(t,e,n){"use strict";var r=n(6);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){n(92)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(92)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),a=void 0==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(92)("split",2,function(t,e,r){"use strict";var i=n(189),o=r,a=[].push,s="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[s]||2!="ab".split(/(?:ab)*/)[s]||4!=".".split(/(.?)(.?)/)[s]||".".split(/()()/)[s]>1||"".split(/.?/)[s]){var f=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,c,u,h,d,l=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),b=0,g=void 0===e?4294967295:e>>>0,v=new RegExp(t.source,p+"g");for(f||(r=new RegExp("^"+v.source+"$(?!\\s)",p));(c=v.exec(n))&&!((u=c.index+c[0][s])>b&&(l.push(n.slice(b,c.index)),!f&&c[s]>1&&c[0].replace(r,function(){for(d=1;d<arguments[s]-2;d++)void 0===arguments[d]&&(c[d]=void 0)}),c[s]>1&&c.index<n[s]&&a.apply(l,c.slice(1)),h=c[0][s],b=u,l[s]>=g));)v.lastIndex===c.index&&v.lastIndex++;return b===n[s]?!h&&v.test("")||l.push(""):l.push(n.slice(b)),l[s]>g?l.slice(0,g):l}}else"0".split(void 0,0)[s]&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){n(92)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){"use strict";var r=n(26),i=n(0),o=n(27),a=n(180),s=n(127),f=n(12),c=n(134),u=n(128);i(i.S+i.F*!n(88)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,h,d=o(t),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,g=void 0!==b,v=0,y=u(d);if(g&&(b=r(b,p>2?arguments[2]:void 0,2)),void 0==y||l==Array&&s(y))for(e=f(d.length),n=new l(e);e>v;v++)c(n,v,g?b(d[v],v):d[v]);else for(h=y.call(d),n=new l;!(i=h.next()).done;v++)c(n,v,g?a(h,b,[i.value,v],!0):i.value);return n.length=v,n}})},function(t,e,n){"use strict";var r=n(0),i=n(134);r(r.S+r.F*n(9)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){var r=n(0);r(r.P,"Array",{copyWithin:n(178)}),n(58)("copyWithin")},function(t,e,n){"use strict";var r=n(0),i=n(72)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(58)("find")},function(t,e,n){"use strict";var r=n(0),i=n(72)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(58)(o)},function(t,e,n){var r=n(0);r(r.P,"Array",{fill:n(124)}),n(58)("fill")},function(t,e,n){var r=n(0),i=n(5).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isInteger:n(190)})},function(t,e,n){var r=n(0),i=n(190),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(0),i=n(191),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(0),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(0),i=n(135);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(0),i=n(136);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e,n){var r=n(0);r(r.S,"Math",{fround:n(389)})},function(t,e,n){var r=n(135),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),f=i(2,-126),c=function(t){return t+1/o-1/o};t.exports=Math.fround||function(t){var e,n,i=Math.abs(t),u=r(t);return i<f?u*c(i/f/a)*f*a:(e=(1+a/o)*i,n=e-(e-i),n>s||n!=n?u*(1/0):u*n)}},function(t,e,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,a=0,s=arguments.length,f=0;a<s;)n=i(arguments[a++]),f<n?(r=f/n,o=o*r*r+1,f=n):n>0?(r=n/f,o+=r*r):o+=n;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,e,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(9)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=+t,r=+e,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log1p:n(191)})},function(t,e,n){var r=n(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var r=n(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(0);r(r.S,"Math",{sign:n(135)})},function(t,e,n){var r=n(0),i=n(136),o=Math.exp;r(r.S+r.F*n(9)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(0),i=n(136),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){"use strict";var r=n(0),i=n(120)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(58)("includes")},function(t,e,n){var r=n(0),i=n(192)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){var r=n(0),i=n(192)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){var r=n(0),i=n(184),o=n(21),a=n(29),s=n(134);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),f=a.f,c=i(r),u={},h=0;c.length>h;)void 0!==(n=f(r,e=c[h++]))&&s(u,e,n);return u}})},function(t,e,n){"use strict";var r=n(0),i=n(193),o=n(137);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){"use strict";var r=n(0),i=n(193),o=n(137);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(o),"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){var r=n(5),i=n(0),o=n(137),a=[].slice,s=/MSIE .\./.test(o),f=function(t){return function(e,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return t(r?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,n)}};i(i.G+i.B+i.F*s,{setTimeout:f(r.setTimeout),setInterval:f(r.setInterval)})},function(t,e,n){var r=n(0),i=n(131);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(129),i=n(45),o=n(34),a=n(5),s=n(19),f=n(56),c=n(8),u=c("iterator"),h=c("toStringTag"),d=f.Array,l={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(l),b=0;b<p.length;b++){var g,v=p[b],y=l[v],m=a[v],w=m&&m.prototype;if(w&&(w[u]||s(w,u,d),w[h]||s(w,h,v),f[v]=d,y))for(g in r)w[g]||o(w,g,r[g],!0)}},function(t,e,n){t.exports={default:n(409),__esModule:!0}},function(t,e,n){var r=n(10),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});/*!
* Amazon Cognito Auth SDK for JavaScript
* Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" file accompanying this file.
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions
* and limitations under the License.
*/
var h=function(){function t(e){r(this,t),this.jwtToken=e||"",this.payload=this.decodePayload()}return t.prototype.getJwtToken=function(){return this.jwtToken},t.prototype.setJwtToken=function(t){this.jwtToken=t},t.prototype.getExpiration=function(){if(null!==this.jwtToken){var t=this.jwtToken.split(".")[1];return JSON.parse(atob(t)).exp}},t.prototype.getUsername=function(){if(null!==this.jwtToken){var t=this.jwtToken.split(".")[1];return JSON.parse(atob(t)).username}},t.prototype.decodePayload=function(){var t=this.jwtToken.split(".")[1];try{return JSON.parse(atob(t))}catch(t){return{}}},t}(),d=h,l=function(){function t(e){i(this,t),this.jwtToken=e||"",this.payload=this.decodePayload()}return t.prototype.getJwtToken=function(){return this.jwtToken},t.prototype.setJwtToken=function(t){this.jwtToken=t},t.prototype.getExpiration=function(){if(null!==this.jwtToken){var t=this.jwtToken.split(".")[1];return JSON.parse(atob(t)).exp}},t.prototype.decodePayload=function(){var t=this.jwtToken.split(".")[1];try{return JSON.parse(atob(t))}catch(t){return{}}},t}(),p=l,b=function(){function t(e){o(this,t),this.refreshToken=e||""}return t.prototype.getToken=function(){return this.refreshToken},t.prototype.setToken=function(t){this.refreshToken=t},t}(),g=b,v=function(){function t(e){a(this,t),this.tokenScopes=e||[]}return t.prototype.getScopes=function(){return this.tokenScopes},t.prototype.setTokenScopes=function(t){this.tokenScopes=t},t}(),y=v,m=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.IdToken,r=e.RefreshToken,i=e.AccessToken,o=e.TokenScopes,a=e.State;s(this,t),this.idToken=n||new p,this.refreshToken=r||new g,this.accessToken=i||new d,this.tokenScopes=o||new y,this.state=a||null}return t.prototype.getIdToken=function(){return this.idToken},t.prototype.setIdToken=function(t){this.idToken=t},t.prototype.getRefreshToken=function(){return this.refreshToken},t.prototype.setRefreshToken=function(t){this.refreshToken=t},t.prototype.getAccessToken=function(){return this.accessToken},t.prototype.setAccessToken=function(t){this.accessToken=t},t.prototype.getTokenScopes=function(){return this.tokenScopes},t.prototype.setTokenScopes=function(t){this.tokenScopes=t},t.prototype.getState=function(){return this.state},t.prototype.setState=function(t){this.state=t},t.prototype.isValid=function(){var t=Math.floor(new Date/1e3);try{return null!=this.accessToken?t<this.accessToken.getExpiration():null!=this.idToken&&t<this.idToken.getExpiration()}catch(t){return!1}},t}(),w=m,_={},S=function(){function t(){f(this,t)}return t.setItem=function(t,e){return _[t]=e,_[t]},t.getItem=function(t){return Object.prototype.hasOwnProperty.call(_,t)?_[t]:void 0},t.removeItem=function(t){return delete _[t]},t.clear=function(){return _={}},t}(),E=function(){function t(){f(this,t);try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(t){this.storageWindow=S}}return t.prototype.getStorage=function(){return this.storageWindow},t}(),M=E,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A=function(){function t(e){c(this,t);var n=e||{},r=n.ClientId,i=n.AppWebDomain,o=n.TokenScopesArray,a=n.RedirectUriSignIn,s=n.RedirectUriSignOut,f=n.IdentityProvider,u=n.UserPoolId,h=n.AdvancedSecurityDataCollectionFlag,d=n.Storage;if(!(null!=e&&r&&i&&a&&s))throw new Error(this.getCognitoConstants().PARAMETERERROR);if(this.clientId=r,this.appWebDomain=i,this.TokenScopesArray=o||[],!Array.isArray(o))throw new Error(this.getCognitoConstants().SCOPETYPEERROR);var l=new y(this.TokenScopesArray);this.RedirectUriSignIn=a,this.RedirectUriSignOut=s,this.IdentityProvider=f,this.responseType=this.getCognitoConstants().TOKEN,this.storage=d||(new M).getStorage(),this.username=this.getLastUser(),this.userPoolId=u,this.signInUserSession=this.getCachedSession(),this.signInUserSession.setTokenScopes(l),this.advancedSecurityDataCollectionFlag=!0,h&&(this.advancedSecurityDataCollectionFlag=h)}return t.prototype.getCognitoConstants=function(){return{DOMAIN_SCHEME:"https",DOMAIN_PATH_SIGNIN:"oauth2/authorize",DOMAIN_PATH_TOKEN:"oauth2/token",DOMAIN_PATH_SIGNOUT:"logout",DOMAIN_QUERY_PARAM_REDIRECT_URI:"redirect_uri",DOMAIN_QUERY_PARAM_SIGNOUT_URI:"logout_uri",DOMAIN_QUERY_PARAM_RESPONSE_TYPE:"response_type",DOMAIN_QUERY_PARAM_IDENTITY_PROVIDER:"identity_provider",DOMAIN_QUERY_PARAM_USERCONTEXTDATA:"userContextData",CLIENT_ID:"client_id",STATE:"state",SCOPE:"scope",TOKEN:"token",CODE:"code",POST:"POST",PARAMETERERROR:"The parameters: App client Id, App web domain, the redirect URL when you are signed in and the redirect URL when you are signed out are required.",SCOPETYPEERROR:"Scopes have to be array type. ",QUESTIONMARK:"?",POUNDSIGN:"#",COLONDOUBLESLASH:"://",SLASH:"/",AMPERSAND:"&",EQUALSIGN:"=",SPACE:" ",CONTENTTYPE:"Content-Type",CONTENTTYPEVALUE:"application/x-www-form-urlencoded",AUTHORIZATIONCODE:"authorization_code",IDTOKEN:"id_token",ACCESSTOKEN:"access_token",REFRESHTOKEN:"refresh_token",ERROR:"error",ERROR_DESCRIPTION:"error_description",STRINGTYPE:"string",STATELENGTH:32,STATEORIGINSTRING:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",WITHCREDENTIALS:"withCredentials",UNDEFINED:"undefined",SELF:"_self",HOSTNAMEREGEX:/:\/\/([0-9]?\.)?(.[^\/:]+)/i,QUERYPARAMETERREGEX1:/#(.+)/,QUERYPARAMETERREGEX2:/=(.+)/,HEADER:{"Content-Type":"application/x-www-form-urlencoded"}}},t.prototype.getClientId=function(){return this.clientId},t.prototype.getAppWebDomain=function(){return this.appWebDomain},t.prototype.getCurrentUser=function(){var t="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser";return this.storage.getItem(t)},t.prototype.setUser=function(t){this.username=t},t.prototype.useCodeGrantFlow=function(){this.responseType=this.getCognitoConstants().CODE},t.prototype.useImplicitFlow=function(){this.responseType=this.getCognitoConstants().TOKEN},t.prototype.getSignInUserSession=function(){return this.signInUserSession},t.prototype.getUsername=function(){return this.username},t.prototype.setUsername=function(t){this.username=t},t.prototype.getState=function(){return this.state},t.prototype.setState=function(t){this.state=t},t.prototype.getSession=function(){var t=new Set(this.TokenScopesArray),e=new Set(this.signInUserSession.tokenScopes.getScopes()),n=this.getFQDNSignIn();if(null!=this.signInUserSession&&this.signInUserSession.isValid())return this.userhandler.onSuccess(this.signInUserSession);if(this.signInUserSession=this.getCachedSession(),this.compareSets(t,e)){if(this.signInUserSession.isValid())return this.userhandler.onSuccess(this.signInUserSession);this.signInUserSession.getRefreshToken()&&this.signInUserSession.getRefreshToken().getToken()?this.refreshSession(this.signInUserSession.getRefreshToken().getToken()):this.launchUri(n)}else{var r=new y(this.TokenScopesArray),i=new p,o=new d,a=new g;this.signInUserSession.setTokenScopes(r),this.signInUserSession.setIdToken(i),this.signInUserSession.setAccessToken(o),this.signInUserSession.setRefreshToken(a),this.launchUri(n)}},t.prototype.parseCognitoWebResponse=function(t){var e=void 0;if(t.indexOf(this.getCognitoConstants().QUESTIONMARK)>-1){var n=t.split(this.getCognitoConstants().POUNDSIGN)[0];e=this.getQueryParameters(n,this.getCognitoConstants().QUESTIONMARK),this.getCodeQueryParameter(e)}else if(t.indexOf(this.getCognitoConstants().POUNDSIGN)>-1){if(e=this.getQueryParameters(t,this.getCognitoConstants().QUERYPARAMETERREGEX1),e.has(this.getCognitoConstants().ERROR))return this.userhandler.onFailure(e.get(this.getCognitoConstants().ERROR_DESCRIPTION));this.getTokenQueryParameter(e)}},t.prototype.getCodeQueryParameter=function(t){if(t.has(this.getCognitoConstants().STATE)?this.signInUserSession.setState(t.get(this.getCognitoConstants().STATE)):this.signInUserSession.setState(null),t.has(this.getCognitoConstants().CODE)){var e=t.get(this.getCognitoConstants().CODE),n=this.getCognitoConstants().DOMAIN_SCHEME.concat(this.getCognitoConstants().COLONDOUBLESLASH,this.getAppWebDomain(),this.getCognitoConstants().SLASH,this.getCognitoConstants().DOMAIN_PATH_TOKEN),r=this.getCognitoConstants().HEADER,i={grant_type:this.getCognitoConstants().AUTHORIZATIONCODE,client_id:this.getClientId(),redirect_uri:this.RedirectUriSignIn,code:e},o=this.onSuccessExchangeForToken.bind(this),a=this.onFailure.bind(this);this.makePOSTRequest(r,i,n,o,a)}},t.prototype.getTokenQueryParameter=function(t){var e=new p,n=new d;new g,t.has(this.getCognitoConstants().IDTOKEN)?(e.setJwtToken(t.get(this.getCognitoConstants().IDTOKEN)),this.signInUserSession.setIdToken(e)):this.signInUserSession.setIdToken(e),t.has(this.getCognitoConstants().ACCESSTOKEN)?(n.setJwtToken(t.get(this.getCognitoConstants().ACCESSTOKEN)),this.signInUserSession.setAccessToken(n)):this.signInUserSession.setAccessToken(n),t.has(this.getCognitoConstants().STATE)?this.signInUserSession.setState(t.get(this.getCognitoConstants().STATE)):this.signInUserSession.setState(null),this.cacheTokensScopes(),this.userhandler.onSuccess(this.signInUserSession)},t.prototype.getCachedSession=function(){if(!this.username)return new w;var t="CognitoIdentityServiceProvider."+this.getClientId()+"."+this.username,e=t+".idToken",n=t+".accessToken",r=t+".refreshToken",i=t+".tokenScopesString",o=this.storage.getItem(i),a=[];o&&(a=o.split(" "));var s=new y(a),f=new p(this.storage.getItem(e)),c=new d(this.storage.getItem(n)),u=new g(this.storage.getItem(r));return new w({IdToken:f,AccessToken:c,RefreshToken:u,TokenScopes:s})},t.prototype.getLastUser=function(){var t="CognitoIdentityServiceProvider."+this.getClientId(),e=t+".LastAuthUser",n=this.storage.getItem(e);if(n)return n},t.prototype.cacheTokensScopes=function(){var t="CognitoIdentityServiceProvider."+this.getClientId(),e=this.signInUserSession.getAccessToken().getUsername();this.username=e;var n=t+"."+e+".idToken",r=t+"."+e+".accessToken",i=t+"."+e+".refreshToken",o=t+".LastAuthUser",a=t+"."+e+".tokenScopesString",s=this.signInUserSession.getTokenScopes().getScopes(),f=s.join(" ");this.storage.setItem(n,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(r,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(i,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(o,e),this.storage.setItem(a,f)},t.prototype.compareSets=function(t,e){if(t.size!==e.size)return!1;for(var n=t,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if(i=n.next(),i.done)break;o=i.value}var a=o;if(!e.has(a))return!1}return!0},t.prototype.getHostName=function(t){var e=t.match(this.getCognitoConstants().HOSTNAMEREGEX);if(null!=e&&e.length>2&&k(e[2])===this.getCognitoConstants().STRINGTYPE&&e[2].length>0)return e[2]},t.prototype.getQueryParameters=function(t,e){var n=String(t).split(e),r=n[1],i=String(r).split(this.getCognitoConstants().AMPERSAND),o=i.length,a=new Map,s=void 0;for(s=0;s<o;s++)i[s]=String(i[s]).split(this.getCognitoConstants().QUERYPARAMETERREGEX2),a.set(i[s][0],i[s][1]);return a},t.prototype.generateRandomString=function(t,e){for(var n="",r=t;r>0;--r)n+=e[Math.round(Math.random()*(e.length-1))];return n},t.prototype.clearCachedTokensScopes=function(){var t="CognitoIdentityServiceProvider."+this.getClientId(),e=t+"."+this.username+".idToken",n=t+"."+this.username+".accessToken",r=t+"."+this.username+".refreshToken",i=t+".LastAuthUser",o=t+"."+this.username+".tokenScopesString";this.storage.removeItem(e),this.storage.removeItem(n),this.storage.removeItem(r),this.storage.removeItem(i),this.storage.removeItem(o)},t.prototype.refreshSession=function(t){var e=this.getCognitoConstants().DOMAIN_SCHEME.concat(this.getCognitoConstants().COLONDOUBLESLASH,this.getAppWebDomain(),this.getCognitoConstants().SLASH,this.getCognitoConstants().DOMAIN_PATH_TOKEN),n=this.getCognitoConstants().HEADER,r={grant_type:this.getCognitoConstants().REFRESHTOKEN,client_id:this.getClientId(),redirect_uri:this.RedirectUriSignIn,refresh_token:t},i=this.onSuccessRefreshToken.bind(this),o=this.onFailure.bind(this);this.makePOSTRequest(n,r,e,i,o)},t.prototype.makePOSTRequest=function(t,e,n,r,i){var o=this.createCORSRequest(this.getCognitoConstants().POST,n),a="";if(o){for(var s in t)o.setRequestHeader(s,t[s]);for(var f in e)a=a.concat(f,this.getCognitoConstants().EQUALSIGN,e[f],this.getCognitoConstants().AMPERSAND);a=a.substring(0,a.length-1),o.send(a),o.onreadystatechange=function(){4===o.readyState&&(200===o.status?r(o.responseText):i(o.responseText))}}},t.prototype.createCORSRequest=function(t,e){var n=new XMLHttpRequest;return n.open(t,e,!0),this.getCognitoConstants().WITHCREDENTIALS in n?n.open(t,e,!0):("undefined"==typeof XDomainRequest?"undefined":k(XDomainRequest))!==this.getCognitoConstants().UNDEFINED?(n=new XDomainRequest,n.open(t,e)):n=null,n},t.prototype.onFailure=function(t){this.userhandler.onFailure(t)},t.prototype.onSuccessRefreshToken=function(t){var e=JSON.parse(t);if(Object.prototype.hasOwnProperty.call(e,this.getCognitoConstants().ERROR)){var n=this.getFQDNSignIn();this.launchUri(n)}else Object.prototype.hasOwnProperty.call(e,this.getCognitoConstants().IDTOKEN)&&this.signInUserSession.setIdToken(new p(e.id_token)),Object.prototype.hasOwnProperty.call(e,this.getCognitoConstants().ACCESSTOKEN)&&this.signInUserSession.setAccessToken(new d(e.access_token)),this.cacheTokensScopes(),this.userhandler.onSuccess(this.signInUserSession)},t.prototype.onSuccessExchangeForToken=function(t){var e=JSON.parse(t),n=new g,r=new d,i=new p;if(Object.prototype.hasOwnProperty.call(e,this.getCognitoConstants().ERROR))return this.userhandler.onFailure(t);Object.prototype.hasOwnProperty.call(e,this.getCognitoConstants().IDTOKEN)?this.signInUserSession.setIdToken(new p(e.id_token)):this.signInUserSession.setIdToken(i),Object.prototype.hasOwnProperty.call(e,this.getCognitoConstants().ACCESSTOKEN)?this.signInUserSession.setAccessToken(new d(e.access_token)):this.signInUserSession.setAccessToken(r),Object.prototype.hasOwnProperty.call(e,this.getCognitoConstants().REFRESHTOKEN)?this.signInUserSession.setRefreshToken(new g(e.refresh_token)):this.signInUserSession.setRefreshToken(n),this.cacheTokensScopes(),this.userhandler.onSuccess(this.signInUserSession)},t.prototype.launchUri=function(t){window.open(t,this.getCognitoConstants().SELF)},t.prototype.getSpaceSeperatedScopeString=function(){var t=this.signInUserSession.getTokenScopes().getScopes();return t=t.join(this.getCognitoConstants().SPACE),encodeURIComponent(t)},t.prototype.getFQDNSignIn=function(){null==this.state&&(this.state=this.generateRandomString(this.getCognitoConstants().STATELENGTH,this.getCognitoConstants().STATEORIGINSTRING));var t=this.IdentityProvider?this.getCognitoConstants().AMPERSAND.concat(this.getCognitoConstants().DOMAIN_QUERY_PARAM_IDENTITY_PROVIDER,this.getCognitoConstants().EQUALSIGN,this.IdentityProvider):"",e=this.getSpaceSeperatedScopeString(),n="";return this.getUserContextData()&&(n=this.getCognitoConstants().AMPERSAND+this.getCognitoConstants().DOMAIN_QUERY_PARAM_USERCONTEXTDATA+this.getCognitoConstants().EQUALSIGN+this.getUserContextData()),this.getCognitoConstants().DOMAIN_SCHEME.concat(this.getCognitoConstants().COLONDOUBLESLASH,this.getAppWebDomain(),this.getCognitoConstants().SLASH,this.getCognitoConstants().DOMAIN_PATH_SIGNIN,this.getCognitoConstants().QUESTIONMARK,this.getCognitoConstants().DOMAIN_QUERY_PARAM_REDIRECT_URI,this.getCognitoConstants().EQUALSIGN,encodeURIComponent(this.RedirectUriSignIn),this.getCognitoConstants().AMPERSAND,this.getCognitoConstants().DOMAIN_QUERY_PARAM_RESPONSE_TYPE,this.getCognitoConstants().EQUALSIGN,this.responseType,this.getCognitoConstants().AMPERSAND,this.getCognitoConstants().CLIENT_ID,this.getCognitoConstants().EQUALSIGN,this.getClientId(),this.getCognitoConstants().AMPERSAND,this.getCognitoConstants().STATE,this.getCognitoConstants().EQUALSIGN,this.state,this.getCognitoConstants().AMPERSAND,this.getCognitoConstants().SCOPE,this.getCognitoConstants().EQUALSIGN,e,t,n)},t.prototype.signOut=function(){var t=this.getFQDNSignOut();this.signInUserSession=null,this.clearCachedTokensScopes(),this.launchUri(t)},t.prototype.getFQDNSignOut=function(){return this.getCognitoConstants().DOMAIN_SCHEME.concat(this.getCognitoConstants().COLONDOUBLESLASH,this.getAppWebDomain(),this.getCognitoConstants().SLASH,this.getCognitoConstants().DOMAIN_PATH_SIGNOUT,this.getCognitoConstants().QUESTIONMARK,this.getCognitoConstants().DOMAIN_QUERY_PARAM_SIGNOUT_URI,this.getCognitoConstants().EQUALSIGN,encodeURIComponent(this.RedirectUriSignOut),this.getCognitoConstants().AMPERSAND,this.getCognitoConstants().CLIENT_ID,this.getCognitoConstants().EQUALSIGN,this.getClientId())},t.prototype.getUserContextData=function(){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var t="";this.username&&(t=this.username);var e="";return this.userpoolId&&(e=this.userpoolId),this.advancedSecurityDataCollectionFlag?AmazonCognitoAdvancedSecurityData.getData(t,e,this.clientId):void 0}},t.prototype.isUserSignedIn=function(){return null!=this.signInUserSession&&this.signInUserSession.isValid()||null!=this.getCachedSession()&&this.getCachedSession().isValid()},t}(),x=A,I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],C=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],T=function(){function t(){u(this,t)}return t.prototype.getNowString=function(){var t=new Date,e=C[t.getUTCDay()],n=I[t.getUTCMonth()],r=t.getUTCDate(),i=t.getUTCHours();i<10&&(i="0"+i);var o=t.getUTCMinutes();o<10&&(o="0"+o);var a=t.getUTCSeconds();return a<10&&(a="0"+a),e+" "+n+" "+r+" "+i+":"+o+":"+a+" UTC "+t.getUTCFullYear()},t}(),O=T;n.d(e,"CognitoAccessToken",function(){return d}),n.d(e,"CognitoIdToken",function(){return p}),n.d(e,"CognitoRefreshToken",function(){return g}),n.d(e,"CognitoTokenScopes",function(){return y}),n.d(e,"CognitoAuth",function(){return x}),n.d(e,"CognitoAuthSession",function(){return w}),n.d(e,"DateHelper",function(){return O}),n.d(e,"StorageHelper",function(){return M})},function(t,e,n){t.exports={decode:n(196),verify:n(509),sign:n(511),JsonWebTokenError:n(99),NotBeforeError:n(233),TokenExpiredError:n(234)}},function(t,e,n){function r(t,e){return s.from(t,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function i(t,e,n){n=n||"utf8";var i=r(h(t),"binary"),o=r(h(e),n);return d.format("%s.%s",i,o)}function o(t){var e=t.header,n=t.payload,r=t.secret||t.privateKey,o=t.encoding,a=c(e.alg),s=i(e,n,o),f=a.sign(s,r);return d.format("%s.%s",s,f)}function a(t){var e=t.secret||t.privateKey||t.key,n=new f(e);this.readable=!0,this.header=t.header,this.encoding=t.encoding,this.secret=this.privateKey=this.key=n,this.payload=new f(t.payload),this.secret.once("close",function(){!this.payload.writable&&this.readable&&this.sign()}.bind(this)),this.payload.once("close",function(){!this.secret.writable&&this.readable&&this.sign()}.bind(this))}var s=n(2).Buffer,f=n(198),c=n(203),u=n(46),h=n(232),d=n(94);d.inherits(a,u),a.prototype.sign=function(){try{var t=o({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",t),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(t){this.readable=!1,this.emit("error",t),this.emit("close")}},a.sign=o,t.exports=a},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,a,s=t.length;o=r(t),a=new h(3*s/4-o),n=o>0?s-4:s;var f=0;for(e=0;e<n;e+=4)i=u[t.charCodeAt(e)]<<18|u[t.charCodeAt(e+1)]<<12|u[t.charCodeAt(e+2)]<<6|u[t.charCodeAt(e+3)],a[f++]=i>>16&255,a[f++]=i>>8&255,a[f++]=255&i;return 2===o?(i=u[t.charCodeAt(e)]<<2|u[t.charCodeAt(e+1)]>>4,a[f++]=255&i):1===o&&(i=u[t.charCodeAt(e)]<<10|u[t.charCodeAt(e+1)]<<4|u[t.charCodeAt(e+2)]>>2,a[f++]=i>>8&255,a[f++]=255&i),a}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(a(r));return i.join("")}function f(t){for(var e,n=t.length,r=n%3,i="",o=[],a=0,f=n-r;a<f;a+=16383)o.push(s(t,a,a+16383>f?f:a+16383));return 1===r?(e=t[n-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=f;for(var c=[],u=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,p=d.length;l<p;++l)c[l]=d[l],u[d.charCodeAt(l)]=l;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,f=(1<<s)-1,c=f>>1,u=-7,h=n?i-1:0,d=n?-1:1,l=t[e+h];for(h+=d,o=l&(1<<-u)-1,l>>=-u,u+=s;u>0;o=256*o+t[e+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===f)return a?NaN:1/0*(l?-1:1);a+=Math.pow(2,r),o-=c}return(l?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,f,c=8*o-i-1,u=(1<<c)-1,h=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:o-1,p=r?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-a))<1&&(a--,f*=2),e+=a+h>=1?d/f:d*Math.pow(2,1-h),e*f>=2&&(a++,f/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*f-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+l]=255&s,l+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+l]=255&a,l+=p,a/=256,c-=8);t[n+l-p]|=128*b}},function(t,e){},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=n(2).Buffer;t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},function(t,e,n){function r(t,e){this._id=t,this._clearFn=e}var i=Function.prototype.apply;e.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(418),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[f]=r,s(f),f++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(u)setTimeout(a,0,t);else{var e=c[t];if(e){u=!0;try{o(e)}finally{i(t),u=!1}}}}if(!t.setImmediate){var s,f=1,c={},u=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var t=h.documentElement;s=function(e){var n=h.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(30),n(23))},function(t,e,n){(function(e){function n(t,e){function n(){if(!i){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation"),i=!0}return t.apply(this,arguments)}if(r("noDeprecation"))return t;var i=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(e,n(30))},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}t.exports=r;var i=n(202),o=n(74);o.inherits=n(1),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(141)},function(t,e,n){t.exports=n(47)},function(t,e,n){t.exports=n(140).Transform},function(t,e,n){t.exports=n(140).PassThrough},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";function r(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))return!1;if(t.length!==e.length)return!1;for(var n=0,r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n}var i=n(3).Buffer,o=n(3).SlowBuffer;t.exports=r,r.install=function(){i.prototype.equal=o.prototype.equal=function(t){return r(this,t)}};var a=i.prototype.equal,s=o.prototype.equal;r.restore=function(){i.prototype.equal=a,o.prototype.equal=s}},function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(60),e.createHash=e.Hash=n(75),e.createHmac=e.Hmac=n(206);var r=n(436),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=n(208);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=n(438);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var f=n(457);e.DiffieHellmanGroup=f.DiffieHellmanGroup,e.createDiffieHellmanGroup=f.createDiffieHellmanGroup,e.getDiffieHellman=f.getDiffieHellman,e.createDiffieHellman=f.createDiffieHellman,e.DiffieHellman=f.DiffieHellman;var c=n(463);e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=n(501);var u=n(502);e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var h=n(505);e.randomFill=h.randomFill,e.randomFillSync=h.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.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(t,e,n){"use strict";(function(e){function n(t){if(t.length%r!=0){var n=t.length+(r-t.length%r);t=e.concat([t,i],n)}for(var o=new Array(t.length>>>2),a=0,s=0;a<t.length;a+=r,s++)o[s]=t.readInt32LE(a);return o}var r=4,i=new e(r);i.fill(0),t.exports=function(t,r){var i=r(n(t),8*t.length);t=new e(16);for(var o=0;o<i.length;o++)t.writeInt32LE(i[o],o<<2,!0);return t}}).call(e,n(3).Buffer)},function(t,e,n){"use strict";(function(e){function r(t){i.call(this),this._block=new e(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=n(46).Transform;n(1)(r,i),r.prototype._transform=function(t,n,r){var i=null;try{"buffer"!==n&&(t=new e(t,n)),this.update(t)}catch(t){i=t}r(i)},r.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},r.prototype.update=function(t,n){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");e.isBuffer(t)||(t=new e(t,n||"binary"));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},r.prototype._update=function(t){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=r}).call(e,n(3).Buffer)},function(t,e,n){function r(){this.init(),this._w=h,f.call(this,64,56)}function i(t){return t<<5|t>>>27}function o(t){return t<<30|t>>>2}function a(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var s=n(1),f=n(61),c=n(2).Buffer,u=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);s(r,f),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,s=0|this._c,f=0|this._d,c=0|this._e,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<80;++h)e[h]=e[h-3]^e[h-8]^e[h-14]^e[h-16];for(var d=0;d<80;++d){var l=~~(d/20),p=i(n)+a(l,r,s,f)+c+e[d]+u[l]|0;c=f,f=s,s=o(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=f+this._d|0,this._e=c+this._e|0},r.prototype._hash=function(){var t=c.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=r},function(t,e,n){function r(){this.init(),this._w=d,c.call(this,64,56)}function i(t){return t<<1|t>>>31}function o(t){return t<<5|t>>>27}function a(t){return t<<30|t>>>2}function s(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}var f=n(1),c=n(61),u=n(2).Buffer,h=[1518500249,1859775393,-1894007588,-899497514],d=new Array(80);f(r,c),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,f=0|this._c,c=0|this._d,u=0|this._e,d=0;d<16;++d)e[d]=t.readInt32BE(4*d);for(;d<80;++d)e[d]=i(e[d-3]^e[d-8]^e[d-14]^e[d-16]);for(var l=0;l<80;++l){var p=~~(l/20),b=o(n)+s(p,r,f,c)+u+e[l]+h[p]|0;u=c,c=f,f=a(r),r=n,n=b}this._a=n+this._a|0,this._b=r+this._b|0,this._c=f+this._c|0,this._d=c+this._d|0,this._e=u+this._e|0},r.prototype._hash=function(){var t=u.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=r},function(t,e,n){function r(){this.init(),this._w=f,a.call(this,64,56)}var i=n(1),o=n(204),a=n(61),s=n(2).Buffer,f=new Array(64);i(r,o),r.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},r.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=r},function(t,e,n){function r(){this.init(),this._w=f,a.call(this,128,112)}var i=n(1),o=n(205),a=n(61),s=n(2).Buffer,f=new Array(160);i(r,o),r.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},r.prototype._hash=function(){function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}var e=s.allocUnsafe(48);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},t.exports=r},function(t,e,n){"use strict";function r(t,e){a.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>f?e=t(e):e.length<f&&(e=o.concat([e,s],f));for(var n=this._ipad=o.allocUnsafe(f),r=this._opad=o.allocUnsafe(f),i=0;i<f;i++)n[i]=54^e[i],r[i]=92^e[i];this._hash=[n]}var i=n(1),o=n(2).Buffer,a=n(36),s=o.alloc(128),f=64;i(r,a),r.prototype._update=function(t){this._hash.push(t)},r.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=r},function(t,e,n){t.exports=n(207)},function(t,e,n){(function(e,r){function i(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==p[t])return p[t];s=s||h.alloc(8);var n=o(s,s,10,128,t).then(function(){return!0}).catch(function(){return!1});return p[t]=n,n}function o(t,e,n,r,i){return d.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return d.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)}).then(function(t){return h.from(t)})}function a(t,e){t.then(function(t){r.nextTick(function(){e(null,t)})},function(t){r.nextTick(function(){e(t)})})}var s,f=n(209),c=n(210),u=n(211),h=n(2).Buffer,d=e.crypto&&e.crypto.subtle,l={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"},p=[];t.exports=function(t,n,s,d,p,b){if(h.isBuffer(t)||(t=h.from(t,c)),h.isBuffer(n)||(n=h.from(n,c)),f(s,d),"function"==typeof p&&(b=p,p=void 0),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");p=p||"sha1";var g=l[p.toLowerCase()];if(!g||"function"!=typeof e.Promise)return r.nextTick(function(){var e;try{e=u(t,n,s,d,p)}catch(t){return b(t)}b(null,e)});a(i(g).then(function(e){return e?o(t,n,s,d,g):u(t,n,s,d,p)}),b)}}).call(e,n(30),n(23))},function(t,e,n){function r(t,e){var n,r;if(t=t.toLowerCase(),d[t])n=d[t].key,r=d[t].iv;else{if(!h[t])throw new TypeError("invalid suite type");n=8*h[t].key,r=h[t].iv}var i=f(e,!1,n,r);return o(t,i.key,i.iv)}function i(t,e){var n,r;if(t=t.toLowerCase(),d[t])n=d[t].key,r=d[t].iv;else{if(!h[t])throw new TypeError("invalid suite type");n=8*h[t].key,r=h[t].iv}var i=f(e,!1,n,r);return a(t,i.key,i.iv)}function o(t,e,n){if(t=t.toLowerCase(),d[t])return c.createCipheriv(t,e,n);if(h[t])return new u({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function a(t,e,n){if(t=t.toLowerCase(),d[t])return c.createDecipheriv(t,e,n);if(h[t])return new u({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}function s(){return Object.keys(h).concat(c.getCiphers())}var f=n(95),c=n(146),u=n(450),h=n(456),d=n(147);e.createCipher=e.Cipher=r,e.createCipheriv=e.Cipheriv=o,e.createDecipher=e.Decipher=i,e.createDecipheriv=e.Decipheriv=a,e.listCiphers=e.getCiphers=s},function(t,e,n){"use strict";(function(e){function r(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function i(t,e){return t<<e|t>>>32-e}function o(t,e,n,r,o,a,s){return i(t+(e&n|~e&r)+o+a|0,s)+e|0}function a(t,e,n,r,o,a,s){return i(t+(e&r|n&~r)+o+a|0,s)+e|0}function s(t,e,n,r,o,a,s){return i(t+(e^n^r)+o+a|0,s)+e|0}function f(t,e,n,r,o,a,s){return i(t+(n^(e|~r))+o+a|0,s)+e|0}var c=n(1),u=n(440),h=new Array(16);c(r,u),r.prototype._update=function(){for(var t=h,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,c=this._d;n=o(n,r,i,c,t[0],3614090360,7),c=o(c,n,r,i,t[1],3905402710,12),i=o(i,c,n,r,t[2],606105819,17),r=o(r,i,c,n,t[3],3250441966,22),n=o(n,r,i,c,t[4],4118548399,7),c=o(c,n,r,i,t[5],1200080426,12),i=o(i,c,n,r,t[6],2821735955,17),r=o(r,i,c,n,t[7],4249261313,22),n=o(n,r,i,c,t[8],1770035416,7),c=o(c,n,r,i,t[9],2336552879,12),i=o(i,c,n,r,t[10],4294925233,17),r=o(r,i,c,n,t[11],2304563134,22),n=o(n,r,i,c,t[12],1804603682,7),c=o(c,n,r,i,t[13],4254626195,12),i=o(i,c,n,r,t[14],2792965006,17),r=o(r,i,c,n,t[15],1236535329,22),n=a(n,r,i,c,t[1],4129170786,5),c=a(c,n,r,i,t[6],3225465664,9),i=a(i,c,n,r,t[11],643717713,14),r=a(r,i,c,n,t[0],3921069994,20),n=a(n,r,i,c,t[5],3593408605,5),c=a(c,n,r,i,t[10],38016083,9),i=a(i,c,n,r,t[15],3634488961,14),r=a(r,i,c,n,t[4],3889429448,20),n=a(n,r,i,c,t[9],568446438,5),c=a(c,n,r,i,t[14],3275163606,9),i=a(i,c,n,r,t[3],4107603335,14),r=a(r,i,c,n,t[8],1163531501,20),n=a(n,r,i,c,t[13],2850285829,5),c=a(c,n,r,i,t[2],4243563512,9),i=a(i,c,n,r,t[7],1735328473,14),r=a(r,i,c,n,t[12],2368359562,20),n=s(n,r,i,c,t[5],4294588738,4),c=s(c,n,r,i,t[8],2272392833,11),i=s(i,c,n,r,t[11],1839030562,16),r=s(r,i,c,n,t[14],4259657740,23),n=s(n,r,i,c,t[1],2763975236,4),c=s(c,n,r,i,t[4],1272893353,11),i=s(i,c,n,r,t[7],4139469664,16),r=s(r,i,c,n,t[10],3200236656,23),n=s(n,r,i,c,t[13],681279174,4),c=s(c,n,r,i,t[0],3936430074,11),i=s(i,c,n,r,t[3],3572445317,16),r=s(r,i,c,n,t[6],76029189,23),n=s(n,r,i,c,t[9],3654602809,4),c=s(c,n,r,i,t[12],3873151461,11),i=s(i,c,n,r,t[15],530742520,16),r=s(r,i,c,n,t[2],3299628645,23),n=f(n,r,i,c,t[0],4096336452,6),c=f(c,n,r,i,t[7],1126891415,10),i=f(i,c,n,r,t[14],2878612391,15),r=f(r,i,c,n,t[5],4237533241,21),n=f(n,r,i,c,t[12],1700485571,6),c=f(c,n,r,i,t[3],2399980690,10),i=f(i,c,n,r,t[10],4293915773,15),r=f(r,i,c,n,t[1],2240044497,21),n=f(n,r,i,c,t[8],1873313359,6),c=f(c,n,r,i,t[15],4264355552,10),i=f(i,c,n,r,t[6],2734768916,15),r=f(r,i,c,n,t[13],1309151649,21),n=f(n,r,i,c,t[4],4149444226,6),c=f(c,n,r,i,t[11],3174756917,10),i=f(i,c,n,r,t[2],718787259,15),r=f(r,i,c,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+c|0},r.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 t=new e(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=r}).call(e,n(3).Buffer)},function(t,e,n){"use strict";function r(t,e){if(!o.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}function i(t){a.call(this),this._block=o.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var o=n(2).Buffer,a=n(46).Transform;n(1)(i,a),i.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},i.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},i.prototype.update=function(t,e){if(r(t,"Data"),this._finalized)throw new Error("Digest already called");o.isBuffer(t)||(t=o.from(t,e));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)n[a++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var s=0,f=8*t.length;f>0;++s)this._length[s]+=f,(f=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*f);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},function(t,e,n){function r(t,e,n){h.call(this),this._cache=new i,this._cipher=new d.AES(e),this._prev=c.from(n),this._mode=t,this._autopadding=!0}function i(){this.cache=c.allocUnsafe(0)}function o(t,e,n){var i=s[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=c.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=c.from(n)),"GCM"!==i.mode&&n.length!==i.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===i.type?new u(i.module,e,n):"auth"===i.type?new f(i.module,e,n):new r(i.module,e,n)}function a(t,e){var n=s[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(e,!1,n.key,n.iv);return o(t,r.key,r.iv)}var s=n(147),f=n(215),c=n(2).Buffer,u=n(216),h=n(36),d=n(96),l=n(95);n(1)(r,h),r.prototype._update=function(t){this._cache.add(t);for(var e,n,r=[];e=this._cache.get();)n=this._mode.encrypt(this,e),r.push(n);return c.concat(r)};var p=c.alloc(16,16);r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},i.prototype.add=function(t){this.cache=c.concat([this.cache,t])},i.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},i.prototype.flush=function(){for(var t=16-this.cache.length,e=c.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return c.concat([this.cache,e])},e.createCipheriv=o,e.createCipher=a},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,n){var r=n(76);e.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},function(t,e,n){function r(t,e,n){var r=e.length,a=o(e,t._cache);return t._cache=t._cache.slice(r),t._prev=i.concat([t._prev,n?e:a]),a}var i=n(2).Buffer,o=n(76);e.encrypt=function(t,e,n){for(var o,a=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){a=i.concat([a,r(t,e,n)]);break}o=t._cache.length,a=i.concat([a,r(t,e.slice(0,o),n)]),e=e.slice(o)}return a}},function(t,e,n){function r(t,e,n){var r=t._cipher.encryptBlock(t._prev),o=r[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([n?e:o])]),o}var i=n(2).Buffer;e.encrypt=function(t,e,n){for(var o=e.length,a=i.allocUnsafe(o),s=-1;++s<o;)a[s]=r(t,e[s],n);return a}},function(t,e,n){function r(t,e,n){for(var r,o,a,s=-1,f=0;++s<8;)r=t._cipher.encryptBlock(t._prev),o=e&1<<7-s?128:0,a=r[0]^o,f+=(128&a)>>s%8,t._prev=i(t._prev,n?o:a);return f}function i(t,e){var n=t.length,r=-1,i=o.allocUnsafe(t.length);for(t=o.concat([t,o.from([e])]);++r<n;)i[r]=t[r]<<1|t[r+1]>>7;return i}var o=n(2).Buffer;e.encrypt=function(t,e,n){for(var i=e.length,a=o.allocUnsafe(i),s=-1;++s<i;)a[s]=r(t,e[s],n);return a}},function(t,e,n){(function(t){function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}var i=n(76);e.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,r(e)]);var o=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),i(n,o)}}).call(e,n(3).Buffer)},function(t,e,n){function r(t){return[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)]}function i(t){var e=a.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}var a=n(2).Buffer,s=a.alloc(16,0);o.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},o.prototype._multiply=function(){for(var t,e,n,o=r(this.h),a=[0,0,0,0],s=-1;++s<128;){for(e=0!=(this.state[~~(s/8)]&1<<7-s%8),e&&(a[0]^=o[0],a[1]^=o[1],a[2]^=o[2],a[3]^=o[3]),n=0!=(1&o[3]),t=3;t>0;t--)o[t]=o[t]>>>1|(1&o[t-1])<<31;o[0]=o[0]>>>1,n&&(o[0]=o[0]^225<<24)}this.state=i(a)},o.prototype.update=function(t){this.cache=a.concat([this.cache,t]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(a.concat([this.cache,s],16)),this.ghash(i([0,t,0,e])),this.state},t.exports=o},function(t,e,n){function r(t,e,n){d.call(this),this._cache=new i,this._last=void 0,this._cipher=new l.AES(e),this._prev=c.from(n),this._mode=t,this._autopadding=!0}function i(){this.cache=c.allocUnsafe(0)}function o(t){for(var e=t[15],n=-1;++n<e;)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}function a(t,e,n){var i=u[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=c.from(n)),"GCM"!==i.mode&&n.length!==i.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=c.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===i.type?new h(i.module,e,n,!0):"auth"===i.type?new f(i.module,e,n,!0):new r(i.module,e,n)}function s(t,e){var n=u[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=p(e,!1,n.key,n.iv);return a(t,r.key,r.iv)}var f=n(215),c=n(2).Buffer,u=n(147),h=n(216),d=n(36),l=n(96),p=n(95);n(1)(r,d),r.prototype._update=function(t){this._cache.add(t);for(var e,n,r=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),r.push(n);return c.concat(r)},r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return o(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},i.prototype.add=function(t){this.cache=c.concat([this.cache,t])},i.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},i.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=s,e.createDecipheriv=a},function(t,e,n){(function(e){function r(t){i.call(this);var n,r=t.mode.toLowerCase(),o=s[r];n=t.decrypt?"decrypt":"encrypt";var a=t.key;"des-ede"!==r&&"des-ede-cbc"!==r||(a=e.concat([a,a.slice(0,8)]));var f=t.iv;this._des=o.create({key:a,iv:f,type:n})}var i=n(36),o=n(148),a=n(1),s={"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};s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=r,a(r,i),r.prototype._update=function(t){return new e(this._des.update(t))},r.prototype._final=function(){return new e(this._des.final())}}).call(e,n(3).Buffer)},function(t,e,n){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(var a=6;a>=0;a-=2){for(var s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(var s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(var a=4;a<8;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(var a=1;a<=3;a++){for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(var s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[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];e.pc2=function(t,e,n,i){for(var o=0,a=0,s=r.length>>>1,f=0;f<s;f++)o<<=1,o|=t>>>r[f]&1;for(var f=s;f<r.length;f++)a<<=1,a|=e>>>r[f]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(var o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[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];e.substitute=function(t,e){for(var n=0,r=0;r<4;r++){var o=t>>>18-6*r&63,a=i[64*r+o];n<<=4,n|=a}for(var r=0;r<4;r++){var o=e>>>18-6*r&63,a=i[256+64*r+o];n<<=4,n|=a}return n>>>0};var o=[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];e.permute=function(t){for(var e=0,n=0;n<o.length;n++)e<<=1,e|=t>>>o[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.length<e;)r="0"+r;for(var i=[],o=0;o<e;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},function(t,e,n){"use strict";function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var i=n(18);t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<n;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=n,n},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,n=0,r=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},r.prototype._updateDecrypt=function(t){for(var e=0,n=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},r.prototype.final=function(t){var e;t&&(e=this.update(t));var n;return n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,n){"use strict";function r(){this.tmp=new Array(2),this.keys=null}function i(t){c.call(this,t);var e=new r;this._desState=e,this.deriveKeys(e,t.key)}var o=n(18),a=n(1),s=n(148),f=s.utils,c=s.Cipher;a(i,c),t.exports=i,i.create=function(t){return new i(t)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];i.prototype.deriveKeys=function(t,e){t.keys=new Array(32),o.equal(e.length,this.blockSize,"Invalid key length");var n=f.readUInt32BE(e,0),r=f.readUInt32BE(e,4);f.pc1(n,r,t.tmp,0),n=t.tmp[0],r=t.tmp[1];for(var i=0;i<t.keys.length;i+=2){var a=u[i>>>1];n=f.r28shl(n,a),r=f.r28shl(r,a),f.pc2(n,r,t.keys,i)}},i.prototype._update=function(t,e,n,r){var i=this._desState,o=f.readUInt32BE(t,e),a=f.readUInt32BE(t,e+4);f.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],f.writeUInt32BE(n,o,r),f.writeUInt32BE(n,a,r+4)},i.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r<t.length;r++)t[r]=n;return!0},i.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)o.equal(t[n],e);return t.slice(0,t.length-e)},i.prototype._encrypt=function(t,e,n,r,i){for(var o=e,a=n,s=0;s<t.keys.length;s+=2){var c=t.keys[s],u=t.keys[s+1];f.expand(a,t.tmp,0),c^=t.tmp[0],u^=t.tmp[1];var h=f.substitute(c,u),d=f.permute(h),l=a;a=(o^d)>>>0,o=l}f.rip(a,o,r,i)},i.prototype._decrypt=function(t,e,n,r,i){for(var o=n,a=e,s=t.keys.length-2;s>=0;s-=2){var c=t.keys[s],u=t.keys[s+1];f.expand(o,t.tmp,0),c^=t.tmp[0],u^=t.tmp[1];var h=f.substitute(c,u),d=f.permute(h),l=o;o=(a^d)>>>0,a=l}f.rip(o,a,r,i)}},function(t,e,n){"use strict";function r(t){o.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}function i(t){function e(e){t.call(this,e),this._cbcInit()}a(e,t);for(var n=Object.keys(s),r=0;r<n.length;r++){var i=n[r];e.prototype[i]=s[i]}return e.create=function(t){return new e(t)},e}var o=n(18),a=n(1),s={};e.instantiate=i,s._cbcInit=function(){var t=new r(this.options.iv);this._cbcState=t},s._update=function(t,e,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];o._update.call(this,a,0,n,r);for(var s=0;s<this.blockSize;s++)a[s]=n[r+s]}else{o._update.call(this,t,e,n,r);for(var s=0;s<this.blockSize;s++)n[r+s]^=a[s];for(var s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},function(t,e,n){"use strict";function r(t,e){o.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),r=e.slice(8,16),i=e.slice(16,24);this.ciphers="encrypt"===t?[c.create({type:"encrypt",key:n}),c.create({type:"decrypt",key:r}),c.create({type:"encrypt",key:i})]:[c.create({type:"decrypt",key:i}),c.create({type:"encrypt",key:r}),c.create({type:"decrypt",key:n})]}function i(t){f.call(this,t);var e=new r(this.type,this.options.key);this._edeState=e}var o=n(18),a=n(1),s=n(148),f=s.Cipher,c=s.DES;a(i,f),t.exports=i,i.create=function(t){return new i(t)},i.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},i.prototype._pad=c.prototype._pad,i.prototype._unpad=c.prototype._unpad},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,n){(function(t){function r(e){var n=new t(a[e].prime,"hex"),r=new t(a[e].gen,"hex");return new s(n,r)}function i(e,n,r,a){return t.isBuffer(n)||void 0===f[n]?i(e,"binary",n,r):(n=n||"binary",a=a||"binary",r=r||new t([2]),t.isBuffer(r)||(r=new t(r,a)),"number"==typeof e?new s(o(e,r),r,!0):(t.isBuffer(e)||(e=new t(e,n)),new s(e,r,!0)))}var o=n(217),a=n(461),s=n(462),f={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=r,e.createDiffieHellman=e.DiffieHellman=i}).call(e,n(3).Buffer)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){},function(t,e){},function(t,e){t.exports={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(t,e,n){(function(e){function r(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new f(t),this}function i(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new f(t),this}function o(t,e){var n=e.toString("hex"),r=[n,t.toString(16)].join("_");if(r in y)return y[r];var i=0;if(t.isEven()||!g.simpleSieve||!g.fermatTest(t)||!u.test(t))return i+=1,i+="02"===n||"05"===n?8:4,y[r]=i,i;u.test(t.shrn(1))||(i+=2);var o;switch(n){case"02":t.mod(h).cmp(d)&&(i+=8);break;case"05":o=t.mod(l),o.cmp(p)&&o.cmp(b)&&(i+=8);break;default:i+=4}return y[r]=i,i}function a(t,e,n){this.setGenerator(e),this.__prime=new f(t),this._prime=f.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=r,this.setPrivateKey=i):this._primeCode=8}function s(t,n){var r=new e(t.toArray());return n?r.toString(n):r}var f=n(7),c=n(218),u=new c,h=new f(24),d=new f(11),l=new f(10),p=new f(3),b=new f(7),g=n(217),v=n(60);t.exports=a;var y={};Object.defineProperty(a.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=o(this.__prime,this.__gen)),this._primeCode}}),a.prototype.generateKeys=function(){return this._priv||(this._priv=new f(v(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},a.prototype.computeSecret=function(t){t=new f(t),t=t.toRed(this._prime);var n=t.redPow(this._priv).fromRed(),r=new e(n.toArray()),i=this.getPrime();if(r.length<i.length){var o=new e(i.length-r.length);o.fill(0),r=e.concat([o,r])}return r},a.prototype.getPublicKey=function(t){return s(this._pub,t)},a.prototype.getPrivateKey=function(t){return s(this._priv,t)},a.prototype.getPrime=function(t){return s(this.__prime,t)},a.prototype.getGenerator=function(t){return s(this._gen,t)},a.prototype.setGenerator=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.__gen=t,this._gen=new f(t),this}}).call(e,n(3).Buffer)},function(t,e,n){(function(e){function r(t){f.Writable.call(this);var e=d[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=s(e.hash),this._tag=e.id,this._signType=e.sign}function i(t){f.Writable.call(this);var e=d[t];if(!e)throw new Error("Unknown message digest");this._hash=s(e.hash),this._tag=e.id,this._signType=e.sign}function o(t){return new r(t)}function a(t){return new i(t)}var s=n(75),f=n(46),c=n(1),u=n(464),h=n(500),d=n(207);Object.keys(d).forEach(function(t){d[t].id=new e(d[t].id,"hex"),d[t.toLowerCase()]=d[t]}),c(r,f.Writable),r.prototype._write=function(t,e,n){this._hash.update(t),n()},r.prototype.update=function(t,n){return"string"==typeof t&&(t=new e(t,n)),this._hash.update(t),this},r.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=u(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},c(i,f.Writable),i.prototype._write=function(t,e,n){this._hash.update(t),n()},i.prototype.update=function(t,n){return"string"==typeof t&&(t=new e(t,n)),this._hash.update(t),this},i.prototype.verify=function(t,n,r){"string"==typeof n&&(n=new e(n,r)),this.end();var i=this._hash.digest();return h(n,i,t,this._signType,this._tag)},t.exports={Sign:o,Verify:a,createSign:o,createVerify:a}}).call(e,n(3).Buffer)},function(t,e,n){(function(e){function r(t,n,r,a,s){var f=g(n);if(f.curve){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong private key type");return i(t,f)}if("dsa"===f.type){if("dsa"!==a)throw new Error("wrong private key type");return o(t,f,r)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong private key type");t=e.concat([s,t]);for(var c=f.modulus.byteLength(),u=[0,1];t.length+u.length+1<c;)u.push(255);u.push(0);for(var h=-1;++h<t.length;)u.push(t[h]);return l(u,f)}function i(t,n){var r=v[n.curve.join(".")];if(!r)throw new Error("unknown curve "+n.curve.join("."));var i=new p(r),o=i.keyFromPrivate(n.privateKey),a=o.sign(t);return new e(a.toDER())}function o(t,e,n){for(var r,i=e.params.priv_key,o=e.params.p,c=e.params.q,d=e.params.g,l=new b(0),p=f(t,c).mod(c),g=!1,v=s(i,c,t,n);!1===g;)r=u(c,v,n),l=h(d,r,o,c),g=r.invm(c).imul(p.add(i.mul(l))).mod(c),0===g.cmpn(0)&&(g=!1,l=new b(0));return a(l,g)}function a(t,n){t=t.toArray(),n=n.toArray(),128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n));var r=t.length+n.length+4,i=[48,r,2,t.length];return i=i.concat(t,[2,n.length],n),new e(i)}function s(t,n,r,i){if(t=new e(t.toArray()),t.length<n.byteLength()){var o=new e(n.byteLength()-t.length);o.fill(0),t=e.concat([o,t])}var a=r.length,s=c(r,n),f=new e(a);f.fill(1);var u=new e(a);return u.fill(0),u=d(i,u).update(f).update(new e([0])).update(t).update(s).digest(),f=d(i,u).update(f).digest(),u=d(i,u).update(f).update(new e([1])).update(t).update(s).digest(),f=d(i,u).update(f).digest(),{k:u,v:f}}function f(t,e){var n=new b(t),r=(t.length<<3)-e.bitLength();return r>0&&n.ishrn(r),n}function c(t,n){t=f(t,n),t=t.mod(n);var r=new e(t.toArray());if(r.length<n.byteLength()){var i=new e(n.byteLength()-r.length);i.fill(0),r=e.concat([i,r])}return r}function u(t,n,r){var i,o;do{for(i=new e(0);8*i.length<t.bitLength();)n.v=d(r,n.k).update(n.v).digest(),i=e.concat([i,n.v]);o=f(i,t),n.k=d(r,n.k).update(n.v).update(new e([0])).digest(),n.v=d(r,n.k).update(n.v).digest()}while(-1!==o.cmp(t));return o}function h(t,e,n,r){return t.toRed(b.mont(n)).redPow(e).fromRed().mod(r)}var d=n(206),l=n(149),p=n(13).ec,b=n(7),g=n(98),v=n(228);t.exports=r,t.exports.getKey=s,t.exports.makeKey=u}).call(e,n(3).Buffer)},function(t,e){t.exports={_args:[["elliptic@6.4.0","/home/ec2-user/Source/aws-lex-web-ui"]],_development:!0,_from:"elliptic@6.4.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.0",saveSpec:null,fetchSpec:"6.4.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_spec:"6.4.0",_where:"/home/ec2-user/Source/aws-lex-web-ui",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},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"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","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":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},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",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r=1<<e+1,i=t.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var a=i.andln(r-1);o=a>(r>>1)-1?(r>>1)-a:a,i.isubn(o)}else o=0;n.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(r-1)?e+1:1,f=1;f<s;f++)n.push(0);i.iushrn(s)}return n}function i(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r=0,i=0;t.cmpn(-r)>0||e.cmpn(-i)>0;){var o=t.andln(3)+r&3,a=e.andln(3)+i&3;3===o&&(o=-1),3===a&&(a=-1);var s;if(0==(1&o))s=0;else{var f=t.andln(7)+r&7;s=3!==f&&5!==f||2!==a?o:-o}n[0].push(s);var c;if(0==(1&a))c=0;else{var f=e.andln(7)+i&7;c=3!==f&&5!==f||2!==o?a:-a}n[1].push(c),2*r===s+1&&(r=1-r),2*i===c+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n}function o(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}}function a(t){return"string"==typeof t?f.toArray(t,"hex"):t}function s(t){return new c(t,"hex","le")}var f=e,c=n(7),u=n(18),h=n(220);f.assert=u,f.toArray=h.toArray,f.zero2=h.zero2,f.toHex=h.toHex,f.encode=h.encode,f.getNAF=r,f.getJSF=i,f.cachedProperty=o,f.parseBytes=a,f.intFromLE=s},function(t,e,n){"use strict";function r(t,e){this.type=t,this.p=new o(e.p,16),this.red=e.prime?o.red(e.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=e.n&&new o(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function i(t,e){this.curve=t,this.type=e,this.precomputed=null}var o=n(7),a=n(13),s=a.utils,f=s.getNAF,c=s.getJSF,u=s.assert;t.exports=r,r.prototype.point=function(){throw new Error("Not implemented")},r.prototype.validate=function(){throw new Error("Not implemented")},r.prototype._fixedNafMul=function(t,e){u(t.precomputed);var n=t._getDoubles(),r=f(e,1),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var o=[],a=0;a<r.length;a+=n.step){for(var s=0,e=a+n.step-1;e>=a;e--)s=(s<<1)+r[e];o.push(s)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(var a=0;a<o.length;a++){var s=o[a];s===d?h=h.mixedAdd(n.points[a]):s===-d&&(h=h.mixedAdd(n.points[a].neg()))}c=c.add(h)}return c.toP()},r.prototype._wnafMul=function(t,e){var n=4,r=t._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=f(e,n),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var e=0;s>=0&&0===o[s];s--)e++;if(s>=0&&e++,a=a.dblp(e),s<0)break;var c=o[s];u(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},r.prototype._wnafMulAdd=function(t,e,n,r,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,u=0,h=0;h<r;h++){var d=e[h],l=d._getNAFPoints(t);o[h]=l.wnd,a[h]=l.points}for(var h=r-1;h>=1;h-=2){var p=h-1,b=h;if(1===o[p]&&1===o[b]){var g=[e[p],null,null,e[b]];0===e[p].y.cmp(e[b].y)?(g[1]=e[p].add(e[b]),g[2]=e[p].toJ().mixedAdd(e[b].neg())):0===e[p].y.cmp(e[b].y.redNeg())?(g[1]=e[p].toJ().mixedAdd(e[b]),g[2]=e[p].add(e[b].neg())):(g[1]=e[p].toJ().mixedAdd(e[b]),g[2]=e[p].toJ().mixedAdd(e[b].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],y=c(n[p],n[b]);u=Math.max(y[0].length,u),s[p]=new Array(u),s[b]=new Array(u);for(var m=0;m<u;m++){var w=0|y[0][m],_=0|y[1][m];s[p][m]=v[3*(w+1)+(_+1)],s[b][m]=0,a[p]=g}}else s[p]=f(n[p],o[p]),s[b]=f(n[b],o[b]),u=Math.max(s[p].length,u),u=Math.max(s[b].length,u)}for(var S=this.jpoint(null,null,null),E=this._wnafT4,h=u;h>=0;h--){for(var M=0;h>=0;){for(var k=!0,m=0;m<r;m++)E[m]=0|s[m][h],0!==E[m]&&(k=!1);if(!k)break;M++,h--}if(h>=0&&M++,S=S.dblp(M),h<0)break;for(var m=0;m<r;m++){var d,A=E[m];0!==A&&(A>0?d=a[m][A-1>>1]:A<0&&(d=a[m][-A-1>>1].neg()),S="affine"===d.type?S.mixedAdd(d):S.add(d))}}for(var h=0;h<r;h++)a[h]=null;return i?S:S.toP()},r.BasePoint=i,i.prototype.eq=function(){throw new Error("Not implemented")},i.prototype.validate=function(){return this.curve.validate(this)},r.prototype.decodePoint=function(t,e){t=s.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)return 6===t[0]?u(t[t.length-1]%2==0):7===t[0]&&u(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},i.prototype.encodeCompressed=function(t){return this.encode(t,!0)},i.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},i.prototype.encode=function(t,e){return s.encode(this._encode(e),t)},i.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},i.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},i.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},i.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},i.prototype._getBeta=function(){return null},i.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},function(t,e,n){"use strict";function r(t){u.call(this,"short",t),this.a=new f(t.a,16).toRed(this.red),this.b=new f(t.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(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function i(t,e,n,r){u.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new f(e,16),this.y=new f(n,16),r&&(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 o(t,e,n,r){u.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new f(0)):(this.x=new f(e,16),this.y=new f(n,16),this.z=new f(r,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}var a=n(97),s=n(13),f=n(7),c=n(1),u=a.base,h=s.utils.assert;c(r,u),t.exports=r,r.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new f(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=r[0].cmp(r[1])<0?r[0]:r[1],e=e.toRed(this.red)}if(t.lambda)n=new f(t.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?n=i[0]:(n=i[1],h(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}var o;return o=t.basis?t.basis.map(function(t){return{a:new f(t.a,16),b:new f(t.b,16)}}):this._getEndoBasis(n),{beta:e,lambda:n,basis:o}}},r.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:f.mont(t),n=new f(2).toRed(e).redInvm(),r=n.redNeg(),i=new f(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},r.prototype._getEndoBasis=function(t){for(var e,n,r,i,o,a,s,c,u,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,l=this.n.clone(),p=new f(1),b=new f(0),g=new f(0),v=new f(1),y=0;0!==d.cmpn(0);){var m=l.div(d);c=l.sub(m.mul(d)),u=g.sub(m.mul(p));var w=v.sub(m.mul(b));if(!r&&c.cmp(h)<0)e=s.neg(),n=p,r=c.neg(),i=u;else if(r&&2==++y)break;s=c,l=d,d=c,g=p,p=u,v=b,b=w}o=c.neg(),a=u;var _=r.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(_)>=0&&(o=e,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},r.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),f=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:f.add(c).neg()}},r.prototype.pointFromX=function(t,e){t=new f(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},r.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},r.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],f=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),f=f.neg(!0)),r[2*o]=s,r[2*o+1]=f,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return c},c(i,u.BasePoint),r.prototype.point=function(t,e,n){return new i(this,t,e,n)},r.prototype.pointFromJSON=function(t,e){return i.fromJSON(this,t,e)},i.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,r=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},i.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]},i.fromJSON=function(t,e,n){function r(e){return t.point(e[0],e[1],n)}"string"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],n);if(!e[2])return i;var o=e[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(r))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(r))}},i},i.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)+">"},i.prototype.isInfinity=function(){return this.inf},i.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},i.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(t){return t=new f(t,16),this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},i.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},i.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},i.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},i.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},i.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},c(o,u.BasePoint),r.prototype.jpoint=function(t,e,n){return new o(this,t,e,n)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),f=o.redSub(a);if(0===s.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),h=r.redMul(c),d=f.redSqr().redIAdd(u).redISub(h).redISub(h),l=f.redMul(h.redISub(d)).redISub(o.redMul(u)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,l,p)},o.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),c=f.redMul(a),u=n.redMul(f),h=s.redSqr().redIAdd(c).redISub(u).redISub(u),d=s.redMul(u.redISub(h)).redISub(i.redMul(c)),l=this.z.redMul(a);return this.curve.jpoint(h,d,l)},o.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}for(var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,f=s.redSqr().redSqr(),c=a.redAdd(a),n=0;n<t;n++){var u=o.redSqr(),h=c.redSqr(),d=h.redSqr(),l=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(f)),p=o.redMul(h),b=l.redSqr().redISub(p.redAdd(p)),g=p.redISub(b),v=l.redMul(g);v=v.redIAdd(v).redISub(d);var y=c.redMul(s);n+1<t&&(f=f.redMul(d)),o=b,s=y,c=v}return this.curve.jpoint(o,c.redMul(i),s)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),f=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),t=f,e=s.redMul(a.redISub(f)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),h=this.y.redSqr(),d=h.redSqr(),l=this.x.redAdd(h).redSqr().redISub(u).redISub(d);l=l.redIAdd(l);var p=u.redAdd(u).redIAdd(u),b=p.redSqr(),g=d.redIAdd(d);g=g.redIAdd(g),g=g.redIAdd(g),t=b.redISub(l).redISub(l),e=p.redMul(l.redISub(t)).redISub(g),n=this.y.redMul(this.z),n=n.redIAdd(n)}return this.curve.jpoint(t,e,n)},o.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),f=s.redSqr().redISub(a).redISub(a);t=f;var c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),e=s.redMul(a.redISub(f)).redISub(c),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),h=this.y.redSqr(),d=this.x.redMul(h),l=this.x.redSub(u).redMul(this.x.redAdd(u));l=l.redAdd(l).redIAdd(l);var p=d.redIAdd(d);p=p.redIAdd(p);var b=p.redAdd(p);t=l.redSqr().redISub(b),n=this.y.redAdd(this.z).redSqr().redISub(h).redISub(u);var g=h.redSqr();g=g.redIAdd(g),g=g.redIAdd(g),g=g.redIAdd(g),e=l.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,n)},o.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=e.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),f=e.redAdd(e);f=f.redIAdd(f);var c=f.redMul(a),u=s.redSqr().redISub(c.redAdd(c)),h=c.redISub(u),d=a.redSqr();d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var l=s.redMul(h).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(u,l,p)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(r);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var s=a.redSqr(),f=r.redIAdd(r);f=f.redIAdd(f),f=f.redIAdd(f),f=f.redIAdd(f);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(f),u=e.redMul(c);u=u.redIAdd(u),u=u.redIAdd(u);var h=this.x.redMul(s).redISub(u);h=h.redIAdd(h),h=h.redIAdd(h);var d=this.y.redMul(c.redMul(f.redISub(c)).redISub(a.redMul(s)));d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var l=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(h,d,l)},o.prototype.mul=function(t,e){return t=new f(t,e),this.curve._wnafMul(this,t)},o.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var r=e.redMul(this.z),i=n.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(r)).cmpn(0)},o.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),i=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}return!1},o.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)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,n){"use strict";function r(t){f.call(this,"mont",t),this.a=new a(t.a,16).toRed(this.red),this.b=new a(t.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(t,e,n){f.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(e,16),this.z=new a(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=n(97),a=n(7),s=n(1),f=o.base,c=n(13),u=c.utils;s(r,f),t.exports=r,r.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},s(i,f.BasePoint),r.prototype.decodePoint=function(t,e){return this.point(u.toArray(t,e),1)},r.prototype.point=function(t,e){return new i(this,t,e)},r.prototype.pointFromJSON=function(t){return i.fromJSON(this,t)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(t,e){return new i(t,e[0],e[1]||t.one)},i.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)+">"},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.prototype.dbl=function(){var t=this.x.redAdd(this.z),e=t.redSqr(),n=this.x.redSub(this.z),r=n.redSqr(),i=e.redSub(r),o=e.redMul(r),a=i.redMul(r.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,a)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z),a=o.redMul(n),s=i.redMul(r),f=e.z.redMul(a.redAdd(s).redSqr()),c=e.x.redMul(a.redISub(s).redSqr());return this.curve.point(f,c)},i.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=this,o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(n=n.diffAdd(r,i),r=r.dbl()):(r=n.diffAdd(r,i),n=n.dbl());return r},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,n){"use strict";function r(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,c.call(this,"edwards",t),this.a=new s(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function i(t,e,n,r,i){c.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(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 s(e,16),this.y=new s(n,16),this.z=r?new s(r,16):this.curve.one,this.t=i&&new s(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()))))}var o=n(97),a=n(13),s=n(7),f=n(1),c=o.base,u=a.utils.assert;f(r,c),t.exports=r,r.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},r.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},r.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},r.prototype.pointFromX=function(t,e){t=new s(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var f=a.fromRed().isOdd();return(e&&!f||!e&&f)&&(a=a.redNeg()),this.point(t,a)},r.prototype.pointFromY=function(t,e){t=new s(t,16),t.red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.one),i=n.redMul(this.d).redAdd(this.one),o=r.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},r.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},f(i,c.BasePoint),r.prototype.pointFromJSON=function(t){return i.fromJSON(this,t)},r.prototype.point=function(t,e,n,r){return new i(this,t,e,n,r)},i.fromJSON=function(t,e){return new i(t,e[0],e[1],e[2])},i.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)+">"},i.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},i.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),a=o.redSub(n),s=r.redSub(e),f=i.redMul(a),c=o.redMul(s),u=i.redMul(s),h=a.redMul(o);return this.curve.point(f,c,h,u)},i.prototype._projDbl=function(){var t,e,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),e=s.redMul(a.redSub(o)),n=s.redSqr().redSub(s).redSub(s);else{var f=this.z.redSqr(),c=s.redSub(f).redISub(f);t=r.redSub(i).redISub(o).redMul(c),e=s.redMul(a.redSub(o)),n=s.redMul(c)}}else{var a=i.redAdd(o),f=this.curve._mulC(this.c.redMul(this.z)).redSqr(),c=a.redSub(f).redSub(f);t=this.curve._mulC(r.redISub(a)).redMul(c),e=this.curve._mulC(a).redMul(i.redISub(o)),n=a.redMul(c)}return this.curve.point(t,e,n)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},i.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),a=i.redSub(r),s=i.redAdd(r),f=n.redAdd(e),c=o.redMul(a),u=s.redMul(f),h=o.redMul(f),d=a.redMul(s);return this.curve.point(c,u,d,h)},i.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),f=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),h=r.redMul(f).redMul(u);return this.curve.twisted?(e=r.redMul(c).redMul(a.redSub(this.curve._mulA(o))),n=f.redMul(c)):(e=r.redMul(c).redMul(a.redSub(o)),n=this.curve._mulC(f).redMul(c)),this.curve.point(h,e,n)},i.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},i.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},i.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},i.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},i.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},i.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},i.prototype.getY=function(){return this.normalize(),this.y.fromRed()},i.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},i.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},function(t,e,n){"use strict";function r(t){"short"===t.type?this.curve=new s.curve.short(t):"edwards"===t.type?this.curve=new s.curve.edwards(t):this.curve=new s.curve.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,f(this.g.validate(),"Invalid curve"),f(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var n=new r(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:n}),n}})}var o=e,a=n(150),s=n(13),f=s.utils.assert;o.PresetCurve=r,i("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:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("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:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("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:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("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:a.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"]}),i("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:a.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"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),i("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:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var c;try{c=n(478)}catch(t){c=void 0}i("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:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},function(t,e,n){"use strict";e.sha1=n(473),e.sha224=n(474),e.sha256=n(222),e.sha384=n(475),e.sha512=n(223)},function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var i=n(24),o=n(77),a=n(221),s=i.rotl32,f=i.sum32,c=i.sum32_5,u=a.ft_1,h=o.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];i.inherits(r,h),t.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],h=this.h[3],l=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),b=c(s(i,5),u(p,o,a,h),l,n[r],d[p]);l=h,h=a,a=s(o,30),o=i,i=b}this.h[0]=f(this.h[0],i),this.h[1]=f(this.h[1],o),this.h[2]=f(this.h[2],a),this.h[3]=f(this.h[3],h),this.h[4]=f(this.h[4],l)},r.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var i=n(24),o=n(222);i.inherits(r,o),t.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var i=n(24),o=n(223);i.inherits(r,o),t.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function i(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function o(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function a(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}var s=n(24),f=n(77),c=s.rotl32,u=s.sum32,h=s.sum32_3,d=s.sum32_4,l=f.BlockHash;s.inherits(r,l),e.ripemd160=r,r.blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],s=this.h[2],f=this.h[3],l=this.h[4],y=n,m=r,w=s,_=f,S=l,E=0;E<80;E++){var M=u(c(d(n,i(E,r,s,f),t[p[E]+e],o(E)),g[E]),l);n=l,l=f,f=c(s,10),s=r,r=M,M=u(c(d(y,i(79-E,m,w,_),t[b[E]+e],a(E)),v[E]),S),y=S,S=_,_=c(w,10),w=m,m=M}M=h(this.h[1],s,_),this.h[1]=h(this.h[2],f,S),this.h[2]=h(this.h[3],l,y),this.h[3]=h(this.h[4],n,m),this.h[4]=h(this.h[0],r,w),this.h[0]=M},r.prototype._digest=function(t){return"hex"===t?s.toHex32(this.h,"little"):s.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],b=[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],g=[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],v=[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(t,e,n){"use strict";function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,n))}var i=n(24),o=n(18);t.exports=r,r.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},r.prototype.update=function(t,e){return this.inner.update(t,e),this},r.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.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(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);"string"==typeof t&&(f(a.curves.hasOwnProperty(t),"Unknown curve "+t),t=a.curves[t]),t instanceof a.curves.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var i=n(7),o=n(480),a=n(13),s=a.utils,f=s.assert,c=n(481),u=n(482);t.exports=r,r.prototype.keyPair=function(t){return new c(this,t)},r.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},r.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},r.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a.rand(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i(2));;){var s=new i(e.generate(n));if(!(s.cmp(r)>0))return s.iaddn(1),this.keyFromPrivate(s)}},r.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},r.prototype.sign=function(t,e,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),f=t.toArray("be",a),c=new o({hash:this.hash,entropy:s,nonce:f,pers:r.pers,persEnc:r.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;!0;d++){var l=r.k?r.k(d):new i(c.generate(this.n.byteLength()));if(l=this._truncateToN(l,!0),!(l.cmpn(1)<=0||l.cmp(h)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),g=b.umod(this.n);if(0!==g.cmpn(0)){var v=l.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(v=v.umod(this.n),0!==v.cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(g)?2:0);return r.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new u({r:g,s:v,recoveryParam:y})}}}}}},r.prototype.verify=function(t,e,n,r){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,r),e=new u(e,"hex");var o=e.r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),f=s.mul(t).umod(this.n),c=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var h=this.g.mulAdd(f,n.getPublic(),c);return!h.isInfinity()&&0===h.getX().umod(this.n).cmp(o)}var h=this.g.jmulAdd(f,n.getPublic(),c);return!h.isInfinity()&&h.eqXToP(o)},r.prototype.recoverPubKey=function(t,e,n,r){f((3&n)===n,"The recovery param is more than two bits"),e=new u(e,r);var o=this.n,a=new i(t),s=e.r,c=e.s,h=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),h):this.curve.pointFromX(s,h);var l=e.r.invm(o),p=o.sub(a).mul(l).umod(o),b=c.mul(l).umod(o);return this.g.mulAdd(p,s,b)},r.prototype.getKeyRecoveryParam=function(t,e,n,r){if(e=new u(e,r),null!==e.recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),n=o.toArray(t.nonce,t.nonceEnc||"hex"),i=o.toArray(t.pers,t.persEnc||"hex");a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}var i=n(150),o=n(220),a=n(18);t.exports=r,r.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},r.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(t,e,n,r){"string"!=typeof e&&(r=n,n=e,e=null),t=o.toArray(t,e),n=o.toArray(n,r),a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},r.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=o.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,t);return this._update(n),this._reseed++,o.encode(a,e)}},function(t,e,n){"use strict";function r(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var i=n(7),o=n(13),a=o.utils,s=a.assert;t.exports=r,r.fromPublic=function(t,e,n){return e instanceof r?e:new r(t,{pub:e,pubEnc:n})},r.fromPrivate=function(t,e,n){return e instanceof r?e:new r(t,{priv:e,privEnc:n})},r.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},r.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},r.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?s(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||s(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},r.prototype.derive=function(t){return t.mul(this.priv).getX()},r.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},r.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,n){"use strict";function r(t,e){if(t instanceof r)return t;this._importDER(t,e)||(h(t.r&&t.s,"Signature without r or s"),this.r=new f(t.r,16),this.s=new f(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function i(){this.place=0}function o(t,e){var n=t[e.place++];if(!(128&n))return n;for(var r=15&n,i=0,o=0,a=e.place;o<r;o++,a++)i<<=8,i|=t[a];return e.place=a,i}function a(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function s(t,e){if(e<128)return void t.push(e);var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}var f=n(7),c=n(13),u=c.utils,h=u.assert;t.exports=r,r.prototype._importDER=function(t,e){t=u.toArray(t,e);var n=new i;if(48!==t[n.place++])return!1;if(o(t,n)+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var r=o(t,n),a=t.slice(n.place,r+n.place);if(n.place+=r,2!==t[n.place++])return!1;var s=o(t,n);if(t.length!==s+n.place)return!1;var c=t.slice(n.place,s+n.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new f(a),this.s=new f(c),this.recoveryParam=null,!0},r.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=a(e),n=a(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];s(r,e.length),r=r.concat(e),r.push(2),s(r,n.length);var i=r.concat(n),o=[48];return s(o,i.length),o=o.concat(i),u.encode(o,t)}},function(t,e,n){"use strict";function r(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof r))return new r(t);var t=o.curves[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}var i=n(150),o=n(13),a=o.utils,s=a.assert,f=a.parseBytes,c=n(484),u=n(485);t.exports=r,r.prototype.sign=function(t,e){t=f(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),s=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},r.prototype.verify=function(t,e,n){t=f(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},r.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return a.intFromLE(t.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},r.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},r.prototype.makeSignature=function(t){return t instanceof u?t:new u(this,t)},r.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},r.prototype.decodePoint=function(t){t=a.parseBytes(t);var e=t.length-1,n=t.slice(0,e).concat(-129&t[e]),r=0!=(128&t[e]),i=a.intFromLE(n);return this.curve.pointFromY(i,r)},r.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(t){return a.intFromLE(t)},r.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,n){"use strict";function r(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}var i=n(13),o=i.utils,a=o.assert,s=o.parseBytes,f=o.cachedProperty;r.fromPublic=function(t,e){return e instanceof r?e:new r(t,{pub:e})},r.fromSecret=function(t,e){return e instanceof r?e:new r(t,{secret:e})},r.prototype.secret=function(){return this._secret},f(r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),f(r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),f(r,"privBytes",function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r}),f(r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),f(r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),f(r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),r.prototype.sign=function(t){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},r.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},r.prototype.getSecret=function(t){return a(this._secret,"KeyPair is public only"),o.encode(this.secret(),t)},r.prototype.getPublic=function(t){return o.encode(this.pubBytes(),t)},t.exports=r},function(t,e,n){"use strict";function r(t,e){this.eddsa=t,"object"!=typeof e&&(e=c(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}var i=n(7),o=n(13),a=o.utils,s=a.assert,f=a.cachedProperty,c=a.parseBytes;f(r,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),f(r,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),f(r,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),f(r,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},t.exports=r},function(t,e,n){"use strict";var r=n(78);e.certificate=n(497);var i=r.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())});e.RSAPrivateKey=i;var o=r.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});e.PublicKey=a;var s=r.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())}),f=r.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});e.PrivateKey=f;var c=r.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())});e.EncryptedPrivateKey=c;var u=r.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())});e.DSAPrivateKey=u,e.DSAparam=r.define("DSAparam",function(){this.int()});var h=r.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())});e.ECPrivateKey=h;var d=r.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=r.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(t,e,n){function r(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}var i=n(78),o=n(1);e.define=function(t,e){return new r(t,e)},r.prototype._createNamed=function(t){var e;try{e=n(488).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return o(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},r.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i.decoders[t])),this.decoders[t]},r.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},r.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(i.encoders[t])),this.encoders[t]},r.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(489),Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)e.push(n);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,n){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(t){return function(t,e,n){t[e]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var n=e.contentWindow,r=n.eval,i=n.execScript;!r&&i&&(i.call(n,"null"),r=n.eval),forEach(Object_keys(t),function(e){n[e]=t[e]}),forEach(globals,function(e){t[e]&&(n[e]=t[e])});var o=Object_keys(n),a=r.call(n,this.code);return forEach(Object_keys(n),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=n[e])}),forEach(globals,function(e){e in t||defineProp(t,e,n[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),n=this.runInContext(e);return forEach(Object_keys(e),function(n){t[n]=e[n]}),n},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var n=Script(e);return n[t].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(n){e[n]=t[n]}),e}},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e,n){function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function i(t,e){this.path=t,this.rethrow(e)}var o=n(1);e.Reporter=r,r.prototype.isError=function(t){return t instanceof i},r.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,n){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},r.prototype.error=function(t){var e,n=this._reporterState,r=t instanceof i;if(e=r?t:new i(n.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},r.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},o(i,Error),i.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,n){function r(t,e){var n={};this._baseState=n,n.enc=t,n.parent=e||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())}var i=n(79).Reporter,o=n(79).EncoderBuffer,a=n(79).DecoderBuffer,s=n(18),f=["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(f),u=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];t.exports=r;var h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];r.prototype.clone=function(){var t=this._baseState,e={};h.forEach(function(n){e[n]=t[n]});var n=new this.constructor(e.parent);return n._baseState=e,n},r.prototype._wrap=function(){var t=this._baseState;c.forEach(function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}},this)},r.prototype._init=function(t){var e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),s.equal(e.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(t){var e=this._baseState,n=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==n.length&&(s(null===e.children),e.children=n,n.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach(function(n){n==(0|n)&&(n|=0);var r=t[n];e[r]=n}),e}))},u.forEach(function(t){r.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),f.forEach(function(t){r.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(n),this}}),r.prototype.use=function(t){s(t);var e=this._baseState;return s(null===e.use),e.use=t,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(t){var e=this._baseState;return s(null===e.default),e.default=t,e.optional=!0,this},r.prototype.explicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},r.prototype.implicit=function(t){var e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},r.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},r.prototype.key=function(t){var e=this._baseState;return s(null===e.key),e.key=t,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(t){var e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},r.prototype.contains=function(t){var e=this._baseState;return s(null===e.use),e.contains=t,this},r.prototype._decode=function(t,e){var n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));var r=n.default,i=!0,o=null;if(null!==n.key&&(o=t.enterKey(n.key)),n.optional){var s=null;if(null!==n.explicit?s=n.explicit:null!==n.implicit?s=n.implicit:null!==n.tag&&(s=n.tag),null!==s||n.any){if(i=this._peekTag(t,s,n.any),t.isError(i))return i}else{var f=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),i=!0}catch(t){i=!1}t.restore(f)}}var c;if(n.obj&&i&&(c=t.enterObject()),i){if(null!==n.explicit){var u=this._decodeTag(t,n.explicit);if(t.isError(u))return u;t=u}var h=t.offset;if(null===n.use&&null===n.choice){if(n.any)var f=t.save();var d=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(d))return d;n.any?r=t.raw(f):t=d}if(e&&e.track&&null!==n.tag&&e.track(t.path(),h,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),r=n.any?r:null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),t.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(t,e)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var l=new a(r);r=this._getUse(n.contains,t._reporterState.obj)._decode(l,e)}}return n.obj&&i&&(r=t.leaveObject(c)),null===n.key||null===r&&!0!==i?null!==o&&t.exitKey(o):t.leaveKey(o,n.key,r),r},r.prototype._decodeGeneric=function(t,e,n){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},r.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},r.prototype._decodeChoice=function(t,e){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some(function(o){var a=t.save(),s=n.choice[o];try{var f=s._decode(t,e);if(t.isError(f))return!1;r={type:o,value:f},i=!0}catch(e){return t.restore(a),!1}return!0},this),i?r:t.error("Choice not matched")},r.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},r.prototype._encode=function(t,e,n){var r=this._baseState;if(null===r.default||r.default!==t){var i=this._encodeValue(t,e,n);if(void 0!==i&&!this._skipDefault(i,e,n))return i}},r.prototype._encodeValue=function(t,e,n){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new i);var o=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}var a=null,s=!1;if(r.any)o=this._createEncoderBuffer(t);else if(r.choice)o=this._encodeChoice(t,e);else if(r.contains)a=this._getUse(r.contains,n)._encode(t,e),s=!0;else if(r.children)a=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");var r=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");var i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i},this).filter(function(t){return t}),a=this._createEncoderBuffer(a);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var f=this.clone();f._baseState.implicit=null,a=this._createEncoderBuffer(t.map(function(n){var r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)},f))}else null!==r.use?o=this._getUse(r.use,n)._encode(t,e):(a=this._encodePrimitive(r.tag,t),s=!0);var o;if(!r.any&&null===r.choice){var c=null!==r.implicit?r.implicit:r.tag,u=null===r.implicit?"universal":"context";null===c?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(c,s,u,a))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},r.prototype._encodeChoice=function(t,e){var n=this._baseState,r=n.choice[t.type];return r||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},r.prototype._encodePrimitive=function(t,e){var n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},r.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},r.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,n){var r=n(225);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.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"},e.tagByName=r._reverse(e.tag)},function(t,e,n){var r=e;r.der=n(226),r.pem=n(494)},function(t,e,n){function r(t){a.call(this,t),this.enc="pem"}var i=n(1),o=n(3).Buffer,a=n(226);i(r,a),t.exports=r,r.prototype.decode=function(t,e){for(var n=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,f=-1,c=0;c<n.length;c++){var u=n[c].match(i);if(null!==u&&u[2]===r){if(-1!==s){if("END"!==u[1])break;f=c;break}if("BEGIN"!==u[1])break;s=c}}if(-1===s||-1===f)throw new Error("PEM section not found for: "+r);var h=n.slice(s+1,f).join("");h.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new o(h,"base64");return a.prototype.decode.call(this,d,e)}},function(t,e,n){var r=e;r.der=n(227),r.pem=n(496)},function(t,e,n){function r(t){o.call(this,t),this.enc="pem"}var i=n(1),o=n(227);i(r,o),t.exports=r,r.prototype.encode=function(t,e){for(var n=o.prototype.encode.call(this,t),r=n.toString("base64"),i=["-----BEGIN "+e.label+"-----"],a=0;a<r.length;a+=64)i.push(r.slice(a,a+64));return i.push("-----END "+e.label+"-----"),i.join("\n")}},function(t,e,n){"use strict";var r=n(78),i=r.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=r.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=r.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=r.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),f=r.define("RelativeDistinguishedName",function(){this.setof(o)}),c=r.define("RDNSequence",function(){this.seqof(f)}),u=r.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),h=r.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),d=r.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),l=r.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(h),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}),p=r.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(l),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=p},function(t,e){t.exports={"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(t,e,n){(function(e){var r=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,a=n(95),s=n(146);t.exports=function(t,n){var f,c=t.toString(),u=c.match(r);if(u){var h="aes"+u[1],d=new e(u[2],"hex"),l=new e(u[3].replace(/\r?\n/g,""),"base64"),p=a(n,d.slice(0,8),parseInt(u[1],10)).key,b=[],g=s.createDecipheriv(h,p,d);b.push(g.update(l)),b.push(g.final()),f=e.concat(b)}else{var v=c.match(o);f=new e(v[2].replace(/\r?\n/g,""),"base64")}return{tag:c.match(i)[1],data:f}}}).call(e,n(3).Buffer)},function(t,e,n){(function(e){function r(t,n,r,a,f){var u=c(r);if("ec"===u.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");return i(t,n,u)}if("dsa"===u.type){if("dsa"!==a)throw new Error("wrong public key type");return o(t,n,u)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");n=e.concat([f,n]);for(var h=u.modulus.byteLength(),d=[1],l=0;n.length+d.length+2<h;)d.push(255),l++;d.push(0);for(var p=-1;++p<n.length;)d.push(n[p]);d=new e(d);var b=s.mont(u.modulus);t=new s(t).toRed(b),t=t.redPow(new s(u.publicExponent)),t=new e(t.fromRed().toArray());var g=l<8?1:0;for(h=Math.min(t.length,d.length),t.length!==d.length&&(g=1),p=-1;++p<h;)g|=t[p]^d[p];return 0===g}function i(t,e,n){var r=u[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new f(r),o=n.data.subjectPrivateKey.data;return i.verify(e,t,o)}function o(t,e,n){var r=n.data.p,i=n.data.q,o=n.data.g,f=n.data.pub_key,u=c.signature.decode(t,"der"),h=u.s,d=u.r;a(h,i),a(d,i);var l=s.mont(r),p=h.invm(i);return 0===o.toRed(l).redPow(new s(e).mul(p).mod(i)).fromRed().mul(f.toRed(l).redPow(d.mul(p).mod(i)).fromRed()).mod(r).mod(i).cmp(d)}function a(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}var s=n(7),f=n(13).ec,c=n(98),u=n(228);t.exports=r}).call(e,n(3).Buffer)},function(t,e,n){(function(e){function r(t){this.curveType=s[t],this.curveType||(this.curveType={name:t}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function i(t,n,r){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(r&&i.length<r){var o=new e(r-i.length);o.fill(0),i=e.concat([o,i])}return n?i.toString(n):i}var o=n(13),a=n(7);t.exports=function(t){return new r(t)};var s={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}};s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,r.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},r.prototype.computeSecret=function(t,n,r){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),i(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[n.length-1]%2?n[0]=7:n[0]=6),i(n,t)},r.prototype.getPrivateKey=function(t){return i(this.keys.getPrivate(),t)},r.prototype.setPublicKey=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.keys._importPublic(t),this},r.prototype.setPrivateKey=function(t,n){n=n||"utf8",e.isBuffer(t)||(t=new e(t,n));var r=new a(t);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(e,n(3).Buffer)},function(t,e,n){e.publicEncrypt=n(503),e.privateDecrypt=n(504),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},function(t,e,n){(function(e){function r(t,n){var r=t.modulus.byteLength(),i=n.length,o=f("sha1").update(new e("")).digest(),a=o.length,d=2*a;if(i>r-d-2)throw new Error("message too long");var l=new e(r-i-d-2);l.fill(0);var p=r-a-1,b=s(a),g=u(e.concat([o,l,new e([1]),n],p),c(b,p)),v=u(b,c(g,a));return new h(e.concat([new e([0]),v,g],r))}function i(t,n,r){var i=n.length,a=t.modulus.byteLength();if(i>a-11)throw new Error("message too long");var s;return r?(s=new e(a-i-3),s.fill(255)):s=o(a-i-3),new h(e.concat([new e([0,r?1:2]),s,new e([0]),n],a))}function o(t,n){for(var r,i=new e(t),o=0,a=s(2*t),f=0;o<t;)f===a.length&&(a=s(2*t),f=0),(r=a[f++])&&(i[o++]=r);return i}var a=n(98),s=n(60),f=n(75),c=n(229),u=n(230),h=n(7),d=n(231),l=n(149);t.exports=function(t,e,n){var o;o=t.padding?t.padding:n?1:4;var s,f=a(t);if(4===o)s=r(f,e);else if(1===o)s=i(f,e,n);else{if(3!==o)throw new Error("unknown padding");if(s=new h(e),s.cmp(f.modulus)>=0)throw new Error("data too long for modulus")}return n?l(s,f):d(s,f)}}).call(e,n(3).Buffer)},function(t,e,n){(function(e){function r(t,n){var r=(t.modulus,t.modulus.byteLength()),i=(n.length,h("sha1").update(new e("")).digest()),a=i.length;if(0!==n[0])throw new Error("decryption error");var c=n.slice(1,a+1),u=n.slice(a+1),d=f(c,s(u,a)),l=f(u,s(d,r-a-1));if(o(i,l.slice(0,a)))throw new Error("decryption error");for(var p=a;0===l[p];)p++;if(1!==l[p++])throw new Error("decryption error");return l.slice(p)}function i(t,e,n){for(var r=e.slice(0,2),i=2,o=0;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);if(e.slice(i-1,i),("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}function o(t,n){t=new e(t),n=new e(n);var r=0,i=t.length;t.length!==n.length&&(r++,i=Math.min(t.length,n.length));for(var o=-1;++o<i;)r+=t[o]^n[o];return r}var a=n(98),s=n(229),f=n(230),c=n(7),u=n(149),h=n(75),d=n(231);t.exports=function(t,n,o){var s;s=t.padding?t.padding:o?1:4;var f=a(t),h=f.modulus.byteLength();if(n.length>h||new c(n).cmp(f.modulus)>=0)throw new Error("decryption error");var l;l=o?d(new c(n),f):u(n,f);var p=new e(h-l.length);if(p.fill(0),l=e.concat([p,l],h),4===s)return r(f,l);if(1===s)return i(f,l,o);if(3===s)return l;throw new Error("unknown padding")}}).call(e,n(3).Buffer)},function(t,e,n){"use strict";(function(t,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function o(t,e){if("number"!=typeof t||t!==t)throw new TypeError("offset must be a number");if(t>b||t<0)throw new TypeError("offset must be a uint32");if(t>l||t>e)throw new RangeError("offset out of range")}function a(t,e,n){if("number"!=typeof t||t!==t)throw new TypeError("size must be a number");if(t>b||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>l)throw new RangeError("buffer too small")}function s(e,n,r,i){if(!(d.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)i=n,n=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-n;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return o(n,e.length),a(r,n,e.length),f(e,n,r,i)}function f(t,e,n,i){if(r.browser){var o=t.buffer,a=new Uint8Array(o,e,n);return p.getRandomValues(a),i?void r.nextTick(function(){i(null,t)}):t}return i?void h(n,function(n,r){if(n)return i(n);r.copy(t,e),i(null,t)}):(h(n).copy(t,e),t)}function c(e,n,r){if(void 0===n&&(n=0),!(d.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return o(n,e.length),void 0===r&&(r=e.length-n),a(r,n,e.length),f(e,n,r)}var u=n(2),h=n(60),d=u.Buffer,l=u.kMaxLength,p=t.crypto||t.msCrypto,b=Math.pow(2,32)-1;p&&p.getRandomValues||!r.browser?(e.randomFill=s,e.randomFillSync=c):(e.randomFill=i,e.randomFillSync=i)}).call(e,n(30),n(23))},function(t,e,n){"use strict";function r(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function i(t){if(f.isBuffer(t))return t;if("string"==typeof t)return f.from(t,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function o(t,e){t=i(t);var n=c(e),o=n+1,a=t.length,s=0;if(t[s++]!==h)throw new Error('Could not find expected "seq"');var l=t[s++];if(l===(1|u)&&(l=t[s++]),a-s<l)throw new Error('"seq" specified length of "'+l+'", only "'+(a-s)+'" remaining');if(t[s++]!==d)throw new Error('Could not find expected "int" for "r"');var p=t[s++];if(a-s-2<p)throw new Error('"r" specified length of "'+p+'", only "'+(a-s-2)+'" available');if(o<p)throw new Error('"r" specified length of "'+p+'", max of "'+o+'" is acceptable');var b=s;if(s+=p,t[s++]!==d)throw new Error('Could not find expected "int" for "s"');var g=t[s++];if(a-s!==g)throw new Error('"s" specified length of "'+g+'", expected "'+(a-s)+'"');if(o<g)throw new Error('"s" specified length of "'+g+'", max of "'+o+'" is acceptable');var v=s;if((s+=g)!==a)throw new Error('Expected to consume entire buffer, but "'+(a-s)+'" bytes remain');var y=n-p,m=n-g,w=f.allocUnsafe(y+p+m+g);for(s=0;s<y;++s)w[s]=0;t.copy(w,s,b+Math.max(-y,0),b+p),s=n;for(var _=s;s<_+m;++s)w[s]=0;return t.copy(w,s,v+Math.max(-m,0),v+g),w=w.toString("base64"),w=r(w)}function a(t,e,n){for(var r=0;e+r<n&&0===t[e+r];)++r;return t[e+r]>=u&&--r,r}function s(t,e){t=i(t);var n=c(e),r=t.length;if(r!==2*n)throw new TypeError('"'+e+'" signatures must be "'+2*n+'" bytes, saw "'+r+'"');var o=a(t,0,n),s=a(t,n,t.length),l=n-o,p=n-s,b=2+l+1+1+p,g=b<u,v=f.allocUnsafe((g?2:3)+b),y=0;return v[y++]=h,g?v[y++]=b:(v[y++]=1|u,v[y++]=255&b),v[y++]=d,v[y++]=l,o<0?(v[y++]=0,y+=t.copy(v,y,0,n)):y+=t.copy(v,y,o,n),v[y++]=d,v[y++]=p,s<0?(v[y++]=0,t.copy(v,y,n)):t.copy(v,y,n+s),v}var f=n(2).Buffer,c=n(507),u=128,h=48,d=2;t.exports={derToJose:o,joseToDer:s}},function(t,e,n){"use strict";function r(t){return(t/8|0)+(t%8==0?0:1)}function i(t){var e=o[t];if(e)return e;throw new Error('Unknown algorithm "'+t+'"')}var o={ES256:r(256),ES384:r(384),ES512:r(521)};t.exports=i},function(t,e,n){function r(t){return"[object Object]"===Object.prototype.toString.call(t)}function i(t){if(r(t))return t;try{return JSON.parse(t)}catch(t){return}}function o(t){var e=t.split(".",1)[0];return i(l.from(e,"base64").toString("binary"))}function a(t){return t.split(".",2).join(".")}function s(t){return t.split(".")[2]}function f(t,e){e=e||"utf8";var n=t.split(".")[1];return l.from(n,"base64").toString(e)}function c(t){return y.test(t)&&!!o(t)}function u(t,e,n){if(!e){var r=new Error("Missing algorithm parameter for jws.verify");throw r.code="MISSING_ALGORITHM",r}t=v(t);var i=s(t),o=a(t);return b(e).verify(o,i,n)}function h(t,e){if(e=e||{},t=v(t),!c(t))return null;var n=o(t);if(!n)return null;var r=f(t);return("JWT"===n.typ||e.json)&&(r=JSON.parse(r,e.encoding)),{header:n,payload:r,signature:s(t)}}function d(t){t=t||{};var e=t.secret||t.publicKey||t.key,n=new p(e);this.readable=!0,this.algorithm=t.algorithm,this.encoding=t.encoding,this.secret=this.publicKey=this.key=n,this.signature=new p(t.signature),this.secret.once("close",function(){!this.signature.writable&&this.readable&&this.verify()}.bind(this)),this.signature.once("close",function(){!this.secret.writable&&this.readable&&this.verify()}.bind(this))}var l=n(2).Buffer,p=n(198),b=n(203),g=n(46),v=n(232),y=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;n(94).inherits(d,g),d.prototype.verify=function(){try{var t=u(this.signature.buffer,this.algorithm,this.key.buffer),e=h(this.signature.buffer,this.encoding);return this.emit("done",t,e),this.emit("data",t),this.emit("end"),this.readable=!1,t}catch(t){this.readable=!1,this.emit("error",t),this.emit("close")}},d.decode=h,d.isValid=c,d.verify=u,t.exports=d},function(t,e,n){var r=n(99),i=n(233),o=n(234),a=n(196),s=n(235),f=n(138);t.exports=function(t,e,n,c){"function"!=typeof n||c||(c=n,n={}),n||(n={}),n=Object.assign({},n);var u;if(u=c||function(t,e){if(t)throw t;return e},n.clockTimestamp&&"number"!=typeof n.clockTimestamp)return u(new r("clockTimestamp must be a number"));var h=n.clockTimestamp||Math.floor(Date.now()/1e3);if(!t)return u(new r("jwt must be provided"));if("string"!=typeof t)return u(new r("jwt must be a string"));var d=t.split(".");if(3!==d.length)return u(new r("jwt malformed"));var l;try{l=a(t,{complete:!0})}catch(t){return u(t)}if(!l)return u(new r("invalid token"));var p,b=l.header;if("function"==typeof e){if(!c)return u(new r("verify must be called asynchronous if secret or public key is provided as a callback"));p=e}else p=function(t,n){return n(null,e)};return p(b,function(e,a){if(e)return u(new r("error in secret or public key callback: "+e.message));var c=""!==d[2].trim();if(!c&&a)return u(new r("jwt signature is required"));if(c&&!a)return u(new r("secret or public key must be provided"));if(c||n.algorithms||(n.algorithms=["none"]),n.algorithms||(n.algorithms=~a.toString().indexOf("BEGIN CERTIFICATE")||~a.toString().indexOf("BEGIN PUBLIC KEY")?["RS256","RS384","RS512","ES256","ES384","ES512"]:~a.toString().indexOf("BEGIN RSA PUBLIC KEY")?["RS256","RS384","RS512"]:["HS256","HS384","HS512"]),!~n.algorithms.indexOf(l.header.alg))return u(new r("invalid algorithm"));var p;try{p=f.verify(t,l.header.alg,a)}catch(t){return u(t)}if(!p)return u(new r("invalid signature"));var b=l.payload;if(void 0!==b.nbf&&!n.ignoreNotBefore){if("number"!=typeof b.nbf)return u(new r("invalid nbf value"));if(b.nbf>h+(n.clockTolerance||0))return u(new i("jwt not active",new Date(1e3*b.nbf)))}if(void 0!==b.exp&&!n.ignoreExpiration){if("number"!=typeof b.exp)return u(new r("invalid exp value"));if(h>=b.exp+(n.clockTolerance||0))return u(new o("jwt expired",new Date(1e3*b.exp)))}if(n.audience){var g=Array.isArray(n.audience)?n.audience:[n.audience];if(!(Array.isArray(b.aud)?b.aud:[b.aud]).some(function(t){return g.some(function(e){return e instanceof RegExp?e.test(t):e===t})}))return u(new r("jwt audience invalid. expected: "+g.join(" or ")))}if(n.issuer&&("string"==typeof n.issuer&&b.iss!==n.issuer||Array.isArray(n.issuer)&&-1===n.issuer.indexOf(b.iss)))return u(new r("jwt issuer invalid. expected: "+n.issuer));if(n.subject&&b.sub!==n.subject)return u(new r("jwt subject invalid. expected: "+n.subject));if(n.jwtid&&b.jti!==n.jwtid)return u(new r("jwt jwtid invalid. expected: "+n.jwtid));if(n.maxAge){if("number"!=typeof b.iat)return u(new r("iat required when maxAge is specified"));var v=s(n.maxAge,b.iat);if(void 0===v)return u(new r('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(h>=v+(n.clockTolerance||0))return u(new o("maxAge exceeded",new Date(1e3*v)))}return u(null,b)})}},function(t,e){function n(t){if(t=String(t),!(t.length>100)){var e=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*h;case"weeks":case"week":case"w":return n*u;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*f;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){var e=Math.abs(t);return e>=c?Math.round(t/c)+"d":e>=f?Math.round(t/f)+"h":e>=s?Math.round(t/s)+"m":e>=a?Math.round(t/a)+"s":t+"ms"}function i(t){var e=Math.abs(t);return e>=c?o(t,e,c,"day"):e>=f?o(t,e,f,"hour"):e>=s?o(t,e,s,"minute"):e>=a?o(t,e,a,"second"):t+" ms"}function o(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}var a=1e3,s=60*a,f=60*s,c=24*f,u=7*c,h=365.25*c;t.exports=function(t,e){e=e||{};var o=typeof t;if("string"===o&&t.length>0)return n(t);if("number"===o&&!1===isNaN(t))return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){(function(e){function r(t,e,n,r){if(!d(n))throw new Error('Expected "'+r+'" to be a plain object.');Object.keys(n).forEach(function(i){var o=t[i];if(o){if(!o.isValid(n[i]))throw new Error(o.message)}else if(!e)throw new Error('"'+i+'" is not allowed in "'+r+'"')})}function i(t){return r(b,!1,t,"options")}function o(t){return r(g,!0,t,"payload")}var a=n(235),s=n(138),f=n(512),c=n(513),u=n(514),h=n(515),d=n(516),l=n(517),p=n(518),b={expiresIn:{isValid:function(t){return u(t)||l(t)},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(t){return u(t)||l(t)},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(t){return l(t)||Array.isArray(t)},message:'"audience" must be a string or array'},algorithm:{isValid:f.bind(null,["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"]),message:'"algorithm" must be a valid string enum value'},header:{isValid:d,message:'"header" must be an object'},encoding:{isValid:l,message:'"encoding" must be a string'},issuer:{isValid:l,message:'"issuer" must be a string'},subject:{isValid:l,message:'"subject" must be a string'},jwtid:{isValid:l,message:'"jwtid" must be a string'},noTimestamp:{isValid:c,message:'"noTimestamp" must be a boolean'},keyid:{isValid:l,message:'"keyid" must be a string'},mutatePayload:{isValid:c,message:'"mutatePayload" must be a boolean'}},g={iat:{isValid:h,message:'"iat" should be a number of seconds'},exp:{isValid:h,message:'"exp" should be a number of seconds'},nbf:{isValid:h,message:'"nbf" should be a number of seconds'}},v={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},y=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];t.exports=function(t,n,r,f){function c(t){if(f)return f(t);throw t}"function"==typeof r?(f=r,r={}):r=r||{};var u="object"==typeof t&&!e.isBuffer(t),h=Object.assign({alg:r.algorithm||"HS256",typ:u?"JWT":void 0,kid:r.keyid},r.header);if(!n&&"none"!==r.algorithm)return c(new Error("secretOrPrivateKey must have a value"));if(void 0===t)return c(new Error("payload is required"));if(u){try{o(t)}catch(t){return c(t)}r.mutatePayload||(t=Object.assign({},t))}else{var d=y.filter(function(t){return void 0!==r[t]});if(d.length>0)return c(new Error("invalid "+d.join(",")+" option for "+typeof t+" payload"))}if(void 0!==t.exp&&void 0!==r.expiresIn)return c(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(void 0!==t.nbf&&void 0!==r.notBefore)return c(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{i(r)}catch(t){return c(t)}var l=t.iat||Math.floor(Date.now()/1e3);if(r.noTimestamp?delete t.iat:t.iat=l,void 0!==r.notBefore&&(t.nbf=a(r.notBefore,l),void 0===t.nbf))return c(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(void 0!==r.expiresIn&&"object"==typeof t&&(t.exp=a(r.expiresIn,l),void 0===t.exp))return c(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));Object.keys(v).forEach(function(e){var n=v[e];if(void 0!==r[e]){if(void 0!==t[n])return c(new Error('Bad "options.'+e+'" option. The payload already has an "'+n+'" property.'));t[n]=r[e]}});var b=r.encoding||"utf8";if("function"!=typeof f)return s.sign({header:h,payload:t,secret:n,encoding:b});f=f&&p(f),s.createSign({header:h,privateKey:n,payload:t,encoding:b}).once("error",f).once("done",function(t){f(null,t)})}}).call(e,n(3).Buffer)},function(t,e){function n(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function r(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function i(t,e,n){if(e!==e)return r(t,o,n);for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}function o(t){return t!==t}function a(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function s(t,e){return n(e,function(e){return t[e]})}function f(t,e){var n=Y(t)||l(t)?a(t.length,String):[],r=n.length,i=!!r;for(var o in t)!e&&!H.call(t,o)||i&&("length"==o||u(o,r))||n.push(o);return n}function c(t){if(!h(t))return V(t);var e=[];for(var n in Object(t))H.call(t,n)&&"constructor"!=n&&e.push(n);return e}function u(t,e){return!!(e=null==e?I:e)&&("number"==typeof t||F.test(t))&&t>-1&&t%1==0&&t<e}function h(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||q)}function d(t,e,n,r){t=p(t)?t:A(t),n=n&&!r?E(n):0;var o=t.length;return n<0&&(n=G(o+n,0)),w(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&i(t,e,n)>-1}function l(t){return b(t)&&H.call(t,"callee")&&(!W.call(t,"callee")||K.call(t)==O)}function p(t){return null!=t&&v(t.length)&&!g(t)}function b(t){return m(t)&&p(t)}function g(t){var e=y(t)?K.call(t):"";return e==j||e==R}function v(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=I}function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){return!!t&&"object"==typeof t}function w(t){return"string"==typeof t||!Y(t)&&m(t)&&K.call(t)==P}function _(t){return"symbol"==typeof t||m(t)&&K.call(t)==B}function S(t){return t?(t=M(t))===x||t===-x?(t<0?-1:1)*C:t===t?t:0:0===t?t:0}function E(t){var e=S(t),n=e%1;return e===e?n?e-n:e:0}function M(t){if("number"==typeof t)return t;if(_(t))return T;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(L,"");var n=N.test(t);return n||D.test(t)?z(t.slice(2),n?2:8):U.test(t)?T:+t}function k(t){return p(t)?f(t):c(t)}function A(t){return t?s(t,k(t)):[]}var x=1/0,I=9007199254740991,C=1.7976931348623157e308,T=NaN,O="[object Arguments]",j="[object Function]",R="[object GeneratorFunction]",P="[object String]",B="[object Symbol]",L=/^\s+|\s+$/g,U=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,D=/^0o[0-7]+$/i,F=/^(?:0|[1-9]\d*)$/,z=parseInt,q=Object.prototype,H=q.hasOwnProperty,K=q.toString,W=q.propertyIsEnumerable,V=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),G=Math.max,Y=Array.isArray;t.exports=d},function(t,e){function n(t){return!0===t||!1===t||r(t)&&a.call(t)==i}function r(t){return!!t&&"object"==typeof t}var i="[object Boolean]",o=Object.prototype,a=o.toString;t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t==s(t)}function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function i(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||i(t)&&m.call(t)==d}function a(t){return t?(t=f(t))===c||t===-c?(t<0?-1:1)*u:t===t?t:0:0===t?t:0}function s(t){var e=a(t),n=e%1;return e===e?n?e-n:e:0}function f(t){if("number"==typeof t)return t;if(o(t))return h;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=b.test(t);return n||g.test(t)?v(t.slice(2),n?2:8):p.test(t)?h:+t}var c=1/0,u=1.7976931348623157e308,h=NaN,d="[object Symbol]",l=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,g=/^0o[0-7]+$/i,v=parseInt,y=Object.prototype,m=y.toString;t.exports=n},function(t,e){function n(t){return!!t&&"object"==typeof t}function r(t){return"number"==typeof t||n(t)&&a.call(t)==i}var i="[object Number]",o=Object.prototype,a=o.toString;t.exports=r},function(t,e){function n(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function r(t){return!!t&&"object"==typeof t}function i(t){if(!r(t)||h.call(t)!=o||n(t))return!1;var e=d(t);if(null===e)return!0;var i=c.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&f.call(i)==u}var o="[object Object]",a=Function.prototype,s=Object.prototype,f=a.toString,c=s.hasOwnProperty,u=f.call(Object),h=s.toString,d=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);t.exports=i},function(t,e){function n(t){return!!t&&"object"==typeof t}function r(t){return"string"==typeof t||!s(t)&&n(t)&&a.call(t)==i}var i="[object String]",o=Object.prototype,a=o.toString,s=Array.isArray;t.exports=r},function(t,e){function n(t,e){var n;if("function"!=typeof e)throw new TypeError(u);return t=f(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}function r(t){return n(2,t)}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function o(t){return!!t&&"object"==typeof t}function a(t){return"symbol"==typeof t||o(t)&&_.call(t)==p}function s(t){return t?(t=c(t))===h||t===-h?(t<0?-1:1)*d:t===t?t:0:0===t?t:0}function f(t){var e=s(t),n=e%1;return e===e?n?e-n:e:0}function c(t){if("number"==typeof t)return t;if(a(t))return l;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(b,"");var n=v.test(t);return n||y.test(t)?m(t.slice(2),n?2:8):g.test(t)?l:+t}var u="Expected a function",h=1/0,d=1.7976931348623157e308,l=NaN,p="[object Symbol]",b=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,y=/^0o[0-7]+$/i,m=parseInt,w=Object.prototype,_=w.toString;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.FullPageComponentLoader=void 0;var i=n(68),o=r(i),a=n(520),s=r(a),f=n(522),c=r(f),u=n(66),h=r(u),d=n(67),l=r(d),p=n(116),b=n(195),g=e.FullPageComponentLoader=function(){function t(e){var n=e.elementId,r=void 0===n?"lex-web-ui":n,i=e.config,o=void 0===i?{}:i;(0,h.default)(this,t),this.elementId=r,this.config=o}return(0,l.default)(t,[{key:"generateConfigObj",value:function(){return{appUserPoolClientId:this.config.cognito.appUserPoolClientId,appDomainName:this.config.cognito.appDomainName,appUserPoolIdentityProvider:this.config.cognito.appUserPoolIdentityProvider}}},{key:"requestTokens",value:function(){function e(){return n.apply(this,arguments)}var n=(0,c.default)(s.default.mark(function e(){var n,r,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=(0,b.getAuth)(this.generateConfigObj()),r=n.getSignInUserSession(),r.isValid()&&(i={},i.idtokenjwt=localStorage.getItem("idtokenjwt"),i.accesstokenjwt=localStorage.getItem("accesstokenjwt"),i.refreshtoken=localStorage.getItem("refreshtoken"),t.sendMessageToComponent({event:"confirmLogin",data:i}));case 3:case"end":return e.stop()}},e,this)}));return e}()},{key:"propagateTokensUpdateCredentials",value:function(){var e=localStorage.getItem("idtokenjwt"),n={};n.idtokenjwt=e,n.accesstokenjwt=localStorage.getItem("accesstokenjwt"),n.refreshtoken=localStorage.getItem("refreshtoken"),t.sendMessageToComponent({event:"confirmLogin",data:n});var r=this.config.cognito.poolId,i=this.config.cognito.region||this.config.region||"us-east-1",o="cognito-idp.us-east-1.amazonaws.com/"+this.config.cognito.appUserPoolName,a=void 0;if(e)try{var s={};s[o]=e,a=new AWS.CognitoIdentityCredentials({IdentityPoolId:r,Logins:s},{region:i})}catch(t){}else try{a=new AWS.CognitoIdentityCredentials({IdentityPoolId:r},{region:i})}catch(t){}var f=this;a.clearCachedId(),a.getPromise().then(function(){f.credentials=a;var e={event:"replaceCreds",creds:a};t.sendMessageToComponent(e)})}},{key:"refreshAuthTokens",value:function(){function t(){return e.apply(this,arguments)}var e=(0,c.default)(s.default.mark(function t(){var e,n=this;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(e=localStorage.getItem("refreshtoken"))&&(0,b.refreshLogin)(this.generateConfigObj(),e,function(t){t.isValid()&&n.propagateTokensUpdateCredentials()});case 2:case"end":return t.stop()}},t,this)}));return t}()},{key:"validateIdToken",value:function(){var t=this;return new o.default(function(e,n){var r=localStorage.getItem("idtokenjwt");if((0,b.isTokenExpired)(r)){var i=localStorage.getItem("refreshtoken");i&&!(0,b.isTokenExpired)(i)?(0,b.refreshLogin)(t.generateConfigObj(),i,function(t){t.isValid()?(r=localStorage.getItem("idtokenjwt"),e(r)):n(new Error("failed to refresh tokens"))}):n(new Error("token could not be refreshed"))}else e(r)})}},{key:"initCognitoCredentials",value:function(){var e=this;return document.addEventListener("tokensavailable",this.propagateTokensUpdateCredentials.bind(this),!1),new o.default(function(n,r){var i=window.location.href;i.indexOf("loggedin")>=0?(0,b.completeLogin)(e.generateConfigObj())&&history.replaceState(null,"",window.location.pathname):i.indexOf("loggedout")>=0&&(0,b.completeLogout)(e.generateConfigObj())&&(history.replaceState(null,"",window.location.pathname),t.sendMessageToComponent({event:"confirmLogout"}));var o=e.config.cognito.poolId,a=e.config.cognito.region||e.config.region||"us-east-1",s="cognito-idp.us-east-1.amazonaws.com/"+e.config.cognito.appUserPoolName;if(!o)return r(new Error("missing cognito poolId config"));if(!("AWS"in window&&"CognitoIdentityCredentials"in window.AWS))return r(new Error("unable to find AWS SDK global object"));var f=void 0;if(localStorage.getItem("idtokenjwt"))return e.validateIdToken().then(function(t){var r={};r[s]=t,f=new AWS.CognitoIdentityCredentials({IdentityPoolId:o,Logins:r},{region:a}),f.clearCachedId();var i=e;return f.getPromise().then(function(){i.credentials=f,i.propagateTokensUpdateCredentials(),n()})},function(t){(0,b.logout)(e.generateConfigObj()),r(t)});f=new AWS.CognitoIdentityCredentials({IdentityPoolId:o},{region:a}),f.clearCachedId();var c=e;return f.getPromise().then(function(){c.credentials=f,n()})})}},{key:"initBotMessageHandlers",value:function(){var t=this;document.addEventListener("fullpagecomponent",function(){var e=(0,c.default)(s.default.mark(function e(n){return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("requestLogin"!==n.detail.event){e.next=4;break}(0,b.login)(t.generateConfigObj()),e.next=19;break;case 4:if("requestLogout"!==n.detail.event){e.next=8;break}(0,b.logout)(t.generateConfigObj()),e.next=19;break;case 8:if("requestTokens"!==n.detail.event){e.next=13;break}return e.next=11,t.requestTokens();case 11:e.next=19;break;case 13:if("refreshAuthTokens"!==n.detail.event){e.next=18;break}return e.next=16,t.refreshAuthTokens();case 16:e.next=19;break;case 18:n.detail.event;case 19:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}(),!1)}},{key:"initPageToComponentApi",value:function(){return this.api={ping:function(){return t.sendMessageToComponent({event:"ping"})},postText:function(e){return t.sendMessageToComponent({event:"postText",message:e})}},o.default.resolve()}},{key:"setupBotMessageListener",value:function(){var t=this;return new o.default(function(e,n){try{t.initBotMessageHandlers(),e()}catch(t){n(t)}})}},{key:"isRunningEmbeded",value:function(){var t=window.location.href;return this.runningEmbeded=-1!==t.indexOf("lexWebUiEmbed=true"),this.runningEmbeded}},{key:"load",value:function(e){var n=this,r=p.ConfigLoader.mergeConfig(this.config,e);return this.config=r,this.isRunningEmbeded()?t.createComponent(r).then(function(e){return t.mountComponent(n.elementId,e)}):o.default.all([this.initPageToComponentApi(),this.initCognitoCredentials(),this.setupBotMessageListener()]).then(function(){t.createComponent(r).then(function(e){t.mountComponent(n.elementId,e)})})}}],[{key:"sendMessageToComponent",value:function(t){return new o.default(function(e,n){try{var r=new CustomEvent("lexwebuicomponent",{detail:t});document.dispatchEvent(r),e()}catch(t){n(t)}})}},{key:"createComponent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new o.default(function(e,n){try{return e(new LexWebUi.Loader(t))}catch(t){return n(new Error("failed to load LexWebUi: "+t))}})}},{key:"mountComponent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lex-web-ui",e=arguments[1];if(!e)throw new Error("lexWebUi not set");return new o.default(function(n,r){var i=document.getElementById(t);i||(i=document.createElement("div"),i.setAttribute("id",t),document.body.appendChild(i));try{var o=Vue.extend({store:e.store,template:'<div id="lex-web-ui"><lex-web-ui/></div>'}),a=(new o).$mount();i.parentNode.replaceChild(a.$el,i),n(a)}catch(t){r(new Error("failed to mount lexWebUi component: "+t))}})}}]),t}();e.default=g},function(t,e,n){t.exports=n(521)},function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(194),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(68),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){function r(o,a){try{var s=e[o](a),f=s.value}catch(t){return void n(t)}if(!s.done)return i.default.resolve(f).then(function(t){r("next",t)},function(t){r("throw",t)});t(f)}return r("next")})}}},function(t,e){},function(t,e){}]).ChatBotUiLoader});
//# sourceMappingURL=lex-web-ui-loader.min.js.map