-
Notifications
You must be signed in to change notification settings - Fork 1
/
22.64093fe025a706093afd.js
1 lines (1 loc) · 288 KB
/
22.64093fe025a706093afd.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{"2EZK":function(e,t,n){"use strict";e.exports=n("rgHO")},"7GRz":function(e,t,n){"use strict";var r=n("MgzW"),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}function _(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||v}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var k=x.prototype=new _;k.constructor=x,r(k,w.prototype),k.isPureReactComponent=!0;var E={current:null},T=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:u,props:i,_owner:E.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var P=/\/+/g,I=[];function B(e,t,n,r){if(I.length){var i=I.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function D(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function O(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return n(r,e,""===t?"."+N(e,0):t),1;if(u=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var s=t+N(i=e[l],l);u+=O(i,s,n,r)}else if("function"==typeof(s=null===e||"object"!=typeof e?null:"function"==typeof(s=m&&e[m]||e["@@iterator"])?s:null))for(e=s.call(e),l=0;!(i=e.next()).done;)u+=O(i=i.value,s=t+N(i,l++),n,r);else if("object"===i)throw n=""+e,Error(y(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return u}function R(e,t,n){return null==e?0:O(e,"",t,n)}function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function U(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,function(e){return e}):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(P,"$&/")+"/"),R(e,U,t=B(t,o,r,i)),D(t)}var z={current:null};function F(){var e=z.current;if(null===e)throw Error(y(321));return e}var j={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,M,t=B(null,null,t,n)),D(t)},count:function(e){return R(e,function(){return null},null)},toArray:function(e){var t=[];return L(e,t,null,function(e){return e}),t},only:function(e){if(!A(e))throw Error(y(143));return e}},t.Component=w,t.Fragment=u,t.Profiler=s,t.PureComponent=x,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var i=r({},e.props),a=e.key,u=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)T.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:u,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return F().useCallback(e,t)},t.useContext=function(e,t){return F().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return F().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return F().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return F().useLayoutEffect(e,t)},t.useMemo=function(e,t){return F().useMemo(e,t)},t.useReducer=function(e,t,n){return F().useReducer(e,t,n)},t.useRef=function(e){return F().useRef(e)},t.useState=function(e){return F().useState(e)},t.version="16.13.1"},"8rhm":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.cborDecode=t.cborEncode=void 0;const r=n("lBiK");t.cborEncode=e=>r.encode(e),t.cborDecode=t=>r.decode(e.isBuffer(t)?t:e.from(t,"hex"))}).call(this,n("tjlA").Buffer)},"9VcJ":function(e,t,n){e.exports=function(){"use strict";var e=Math.imul,t=Math.clz32;function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function l(){return(l=u()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){function n(){return l(e,arguments,o(this).constructor)}if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){var t=u();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var p=function(e){var t=Math.abs,r=Math.max;function o(e,t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),e>o.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return(n=u.call(this,e)).sign=t,n}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,e);var u=f(o);return i(o,[{key:"toDebugString",value:function(){var e,t=["BigInt["],n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(this);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push((r?(r>>>0).toString(16):r)+", ")}}catch(e){n.e(e)}finally{n.f()}return t.push("]"),t.join("")}},{key:"toString",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?o.__toStringBasePowerOfTwo(this,e):o.__toStringGeneric(this,e,!1)}},{key:"__copy",value:function(){for(var e=new o(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return o.__clz32(this[this.length-1])}},{key:"__inplaceMultiplyAdd",value:function(e,t,n){n>this.length&&(n=this.length);for(var r=65535&e,i=e>>>16,a=0,u=65535&t,l=t>>>16,s=0;s<n;s++){var c=this.__digit(s),f=65535&c,d=c>>>16,p=o.__imul(f,r),h=o.__imul(f,i),g=o.__imul(d,r),m=o.__imul(d,i),y=u+(65535&p),v=l+a+(y>>>16)+(p>>>16)+(65535&h)+(65535&g);a=(u=(h>>>16)+(g>>>16)+(65535&m)+(v>>>16))>>>16,u&=65535,l=m>>>16,this.__setDigit(s,65535&y|v<<16)}if(0!==a||0!==u||0!==l)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,n){for(var r,i=0,o=0;o<n;o++)i=(r=this.__halfDigit(t+o)+e.__halfDigit(o)+i)>>>16,this.__setHalfDigit(t+o,r);return i}},{key:"__inplaceSub",value:function(e,t,n){var r=0;if(1&t){for(var i=this.__digit(t>>=1),o=65535&i,a=0;a<n-1>>>1;a++){var u=e.__digit(a),l=(i>>>16)-(65535&u)-r;r=1&l>>>16,this.__setDigit(t+a,l<<16|65535&o),r=1&(o=(65535&(i=this.__digit(t+a+1)))-(u>>>16)-r)>>>16}var s=e.__digit(a),c=(i>>>16)-(65535&s)-r;if(r=1&c>>>16,this.__setDigit(t+a,c<<16|65535&o),t+a+1>=this.length)throw new RangeError("out of bounds");0==(1&n)&&(r=1&(o=(65535&(i=this.__digit(t+a+1)))-(s>>>16)-r)>>>16,this.__setDigit(t+e.length,4294901760&i|65535&o))}else{t>>=1;for(var f=0;f<e.length-1;f++){var d=this.__digit(t+f),p=e.__digit(f),h=(65535&d)-(65535&p)-r,g=(d>>>16)-(p>>>16)-(r=1&h>>>16);r=1&g>>>16,this.__setDigit(t+f,g<<16|65535&h)}var m=this.__digit(t+f),y=e.__digit(f),v=(65535&m)-(65535&y)-r;r=1&v>>>16;var b=0;0==(1&n)&&(r=1&(b=(m>>>16)-(y>>>16)-r)>>>16),this.__setDigit(t+f,b<<16|65535&v)}return r}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t,n=this.__digit(0)>>>e,r=this.length-1,i=0;i<r;i++)t=this.__digit(i+1),this.__setDigit(i,t<<32-e|n),n=t>>>e;this.__setDigit(r,n)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 65535>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 65535&this[e>>>1]>>>((1&e)<<4)}},{key:"__setHalfDigit",value:function(e,t){var n=e>>>1,r=this.__digit(n);this.__setDigit(n,1&e?65535&r|t<<16:4294901760&r|65535&t)}}],[{key:"BigInt",value:function(e){var t=Math.floor,r=Number.isFinite;if("number"==typeof e){if(0===e)return o.__zero();if((0|e)===e)return 0>e?o.__oneDigit(-e,!0):o.__oneDigit(e,!1);if(!r(e)||t(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return o.__fromDouble(e)}if("string"==typeof e){var i=o.__fromString(e);if(null===i)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return i}if("boolean"==typeof e)return!0===e?o.__oneDigit(1,!1):o.__zero();if("object"===n(e)){if(e.constructor===o)return e;var a=o.__toPrimitive(e);return o.BigInt(a)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var n=e.__unsignedDigit(0);return e.sign?-n:n}var r=e.__digit(t-1),i=o.__clz32(r),a=32*t-i;if(1024<a)return e.sign?-1/0:1/0;var u=a-1,l=r,s=t-1,c=i+1,f=32===c?0:l<<c;f>>>=12;var d=c-12,p=12<=c?0:l<<20+c,h=20+c;0<d&&0<s&&(s--,f|=(l=e.__digit(s))>>>32-d,p=l<<d,h=d),0<h&&0<s&&(s--,p|=(l=e.__digit(s))>>>32-h,h-=32);var g=o.__decideRounding(e,h,s,l);return(1===g||0===g&&1==(1&p))&&0==(p=p+1>>>0)&&0!=++f>>>20&&(f=0,1023<++u)?e.sign?-1/0:1/0:(o.__kBitConversionInts[1]=(e.sign?-2147483648:0)|(u=u+1023<<20)|f,o.__kBitConversionInts[0]=p,o.__kBitConversionDouble[0])}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?o.__absoluteSubOne(e).__trim():o.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return o.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?o.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var n=t.__unsignedDigit(0);if(1===n)return e;if(n>=o.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var r=1+(n>>>5),i=new o(r,e.sign&&0!=(1&n));return i.__initializeDigits(),i.__setDigit(r-1,1<<(31&n)),i}var a=null,u=e;for(0!=(1&n)&&(a=e),n>>=1;0!==n;n>>=1)u=o.multiply(u,u),0!=(1&n)&&(a=null===a?u:o.multiply(a,u));return a}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var n=e.length+t.length;32<=e.__clzmsd()+t.__clzmsd()&&n--;var r=new o(n,e.sign!==t.sign);r.__initializeDigits();for(var i=0;i<e.length;i++)o.__multiplyAccumulate(t,e.__digit(i),r,i);return r.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>o.__absoluteCompare(e,t))return o.__zero();var n,r=e.sign!==t.sign,i=t.__unsignedDigit(0);if(1===t.length&&65535>=i){if(1===i)return r===e.sign?e:o.unaryMinus(e);n=o.__absoluteDivSmall(e,i,null)}else n=o.__absoluteDivLarge(e,t,!0,!1);return n.sign=r,n.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>o.__absoluteCompare(e,t))return e;var n=t.__unsignedDigit(0);if(1===t.length&&65535>=n){if(1===n)return o.__zero();var r=o.__absoluteModSmall(e,n);return 0===r?o.__zero():o.__oneDigit(r,e.sign)}var i=o.__absoluteDivLarge(e,t,!1,!0);return i.sign=e.sign,i.__trim()}},{key:"add",value:function(e,t){var n=e.sign;return n===t.sign?o.__absoluteAdd(e,t,n):0<=o.__absoluteCompare(e,t)?o.__absoluteSub(e,t,n):o.__absoluteSub(t,e,!n)}},{key:"subtract",value:function(e,t){var n=e.sign;return n===t.sign?0<=o.__absoluteCompare(e,t)?o.__absoluteSub(e,t,n):o.__absoluteSub(t,e,!n):o.__absoluteAdd(e,t,n)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?o.__rightShiftByAbsolute(e,t):o.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?o.__leftShiftByAbsolute(e,t):o.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>o.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=o.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0<o.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=o.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e.__digit(n)!==t.__digit(n))return!1;return!0}},{key:"notEqual",value:function(e,t){return!o.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){if(!e.sign&&!t.sign)return o.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var n=r(e.length,t.length)+1,i=o.__absoluteSubOne(e,n),a=o.__absoluteSubOne(t);return i=o.__absoluteOr(i,a,i),o.__absoluteAddOne(i,!0,i).__trim()}if(e.sign){var u=[t,e];e=u[0],t=u[1]}return o.__absoluteAndNot(e,o.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){if(!e.sign&&!t.sign)return o.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var n=r(e.length,t.length),i=o.__absoluteSubOne(e,n),a=o.__absoluteSubOne(t);return o.__absoluteXor(i,a,i).__trim()}var u=r(e.length,t.length)+1;if(e.sign){var l=[t,e];e=l[0],t=l[1]}var s=o.__absoluteSubOne(t,u);return s=o.__absoluteXor(s,e,s),o.__absoluteAddOne(s,!0,s).__trim()}},{key:"bitwiseOr",value:function(e,t){var n=r(e.length,t.length);if(!e.sign&&!t.sign)return o.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var i=o.__absoluteSubOne(e,n),a=o.__absoluteSubOne(t);return i=o.__absoluteAnd(i,a,i),o.__absoluteAddOne(i,!0,i).__trim()}if(e.sign){var u=[t,e];e=u[0],t=u[1]}var l=o.__absoluteSubOne(t,n);return l=o.__absoluteAndNot(l,e,l),o.__absoluteAddOne(l,!0,l).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0===e)return o.__zero();if(e>=o.__kMaxLengthBits)return t;var n=e+31>>>5;if(t.length<n)return t;var r=t.__unsignedDigit(n-1),i=1<<(31&e-1);if(t.length===n&&r<i)return t;if((r&i)!==i)return o.__truncateToNBits(e,t);if(!t.sign)return o.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(r&i-1)){for(var a=n-2;0<=a;a--)if(0!==t.__digit(a))return o.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&r===i?t:o.__truncateToNBits(e,t)}return o.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0===e)return o.__zero();if(t.sign){if(e>o.__kMaxLengthBits)throw new RangeError("BigInt too big");return o.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=o.__kMaxLengthBits)return t;var n=e+31>>>5;if(t.length<n)return t;var r=31&e;if(t.length==n){if(0===r)return t;if(0==t.__digit(n-1)>>>r)return t}return o.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=o.__toPrimitive(e),t=o.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=o.__toNumeric(e),t=o.__toNumeric(t),o.__isBigInt(e)&&o.__isBigInt(t))return o.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return o.__compare(e,t,0)}},{key:"LE",value:function(e,t){return o.__compare(e,t,1)}},{key:"GT",value:function(e,t){return o.__compare(e,t,2)}},{key:"GE",value:function(e,t){return o.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(o.__isBigInt(e))return o.__isBigInt(t)?o.equal(e,t):o.EQ(t,e);if("number"==typeof e){if(o.__isBigInt(t))return o.__equalToNumber(t,e);if("object"!==n(t))return e==t;t=o.__toPrimitive(t)}else if("string"==typeof e){if(o.__isBigInt(t))return null!==(e=o.__fromString(e))&&o.equal(e,t);if("object"!==n(t))return e==t;t=o.__toPrimitive(t)}else if("boolean"==typeof e){if(o.__isBigInt(t))return o.__equalToNumber(t,+e);if("object"!==n(t))return e==t;t=o.__toPrimitive(t)}else if("symbol"===n(e)){if(o.__isBigInt(t))return!1;if("object"!==n(t))return e==t;t=o.__toPrimitive(t)}else{if("object"!==n(e))return e==t;if("object"===n(t)&&t.constructor!==o)return e==t;e=o.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!o.EQ(e,t)}},{key:"__zero",value:function(){return new o(0,!1)}},{key:"__oneDigit",value:function(e,t){var n=new o(1,t);return n.__setDigit(0,e),n}},{key:"__decideRounding",value:function(e,t,n,r){if(0<t)return-1;var i;if(0>t)i=-t-1;else{if(0===n)return-1;n--,r=e.__digit(n),i=31}var o=1<<i;if(0==(r&o))return-1;if(0!=(r&(o-=1)))return 1;for(;0<n;)if(n--,0!==e.__digit(n))return 1;return 0}},{key:"__fromDouble",value:function(e){o.__kBitConversionDouble[0]=e;var t,n=(2047&o.__kBitConversionInts[1]>>>20)-1023,r=1+(n>>>5),i=new o(r,0>e),a=1048575&o.__kBitConversionInts[1]|1048576,u=o.__kBitConversionInts[0],l=31&n,s=0;if(l<20){var c=20-l;s=c+32,t=a>>>c,a=a<<32-c|u>>>c,u<<=32-c}else if(20===l)s=32,t=a,a=u;else{var f=l-20;s=32-f,t=a<<f|u>>>32-f,a=u<<f}i.__setDigit(r-1,t);for(var d=r-2;0<=d;d--)0<s?(s-=32,t=a,a=u):t=0,i.__setDigit(d,t);return i.__trim()}},{key:"__isWhitespace",value:function(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=0,r=e.length,i=0;if(i===r)return o.__zero();for(var a=e.charCodeAt(i);o.__isWhitespace(a);){if(++i===r)return o.__zero();a=e.charCodeAt(i)}if(43===a){if(++i===r)return null;a=e.charCodeAt(i),n=1}else if(45===a){if(++i===r)return null;a=e.charCodeAt(i),n=-1}if(0===t){if(t=10,48===a){if(++i===r)return o.__zero();if(88===(a=e.charCodeAt(i))||120===a){if(t=16,++i===r)return null;a=e.charCodeAt(i)}else if(79===a||111===a){if(t=8,++i===r)return null;a=e.charCodeAt(i)}else if(66===a||98===a){if(t=2,++i===r)return null;a=e.charCodeAt(i)}}}else if(16===t&&48===a){if(++i===r)return o.__zero();if(88===(a=e.charCodeAt(i))||120===a){if(++i===r)return null;a=e.charCodeAt(i)}}for(;48===a;){if(++i===r)return o.__zero();a=e.charCodeAt(i)}var u=r-i,l=o.__kMaxBitsPerChar[t],s=o.__kBitsPerCharTableMultiplier-1;if(u>1073741824/l)return null;var c=new o(31+(l*u+s>>>o.__kBitsPerCharTableShift)>>>5,!1),f=10>t?t:10,d=10<t?t-10:0;if(0==(t&t-1)){l>>=o.__kBitsPerCharTableShift;var p=[],h=[],g=!1;do{for(var m,y=0,v=0;;){if(m=void 0,a-48>>>0<f)m=a-48;else{if(!((32|a)-97>>>0<d)){g=!0;break}m=(32|a)-87}if(v+=l,y=y<<l|m,++i===r){g=!0;break}if(a=e.charCodeAt(i),32<v+l)break}p.push(y),h.push(v)}while(!g);o.__fillFromParts(c,p,h)}else{c.__initializeDigits();var b=!1,w=0;do{for(var _,x=0,k=1;;){if(_=void 0,a-48>>>0<f)_=a-48;else{if(!((32|a)-97>>>0<d)){b=!0;break}_=(32|a)-87}var E=k*t;if(4294967295<E)break;if(k=E,x=x*t+_,w++,++i===r){b=!0;break}a=e.charCodeAt(i)}c.__inplaceMultiplyAdd(k,x,l*w+(s=32*o.__kBitsPerCharTableMultiplier-1)>>>o.__kBitsPerCharTableShift+5)}while(!b)}if(i!==r){if(!o.__isWhitespace(a))return null;for(i++;i<r;i++)if(a=e.charCodeAt(i),!o.__isWhitespace(a))return null}return 0!==n&&10!==t?null:(c.sign=-1===n,c.__trim())}},{key:"__fillFromParts",value:function(e,t,n){for(var r=0,i=0,o=0,a=t.length-1;0<=a;a--){var u=t[a],l=n[a];i|=u<<o,32===(o+=l)?(e.__setDigit(r++,i),o=0,i=0):32<o&&(e.__setDigit(r++,i),i=u>>>l-(o-=32))}if(0!==i){if(r>=e.length)throw new Error("implementation bug");e.__setDigit(r++,i)}for(;r<e.length;r++)e.__setDigit(r,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var n=e.length,r=t-1,i=r=(15&(r=(51&(r=(85&r>>>1)+(85&r))>>>2)+(51&r))>>>4)+(15&r),a=t-1,u=e.__digit(n-1),l=0|(32*n-o.__clz32(u)+i-1)/i;if(e.sign&&l++,268435456<l)throw new Error("string too long");for(var s=Array(l),c=l-1,f=0,d=0,p=0;p<n-1;p++){var h=e.__digit(p);s[c--]=o.__kConversionChars[(f|h<<d)&a];var g=i-d;for(f=h>>>g,d=32-g;d>=i;)s[c--]=o.__kConversionChars[f&a],f>>>=i,d-=i}for(s[c--]=o.__kConversionChars[(f|u<<d)&a],f=u>>>i-d;0!==f;)s[c--]=o.__kConversionChars[f&a],f>>>=i;if(e.sign&&(s[c--]="-"),-1!==c)throw new Error("implementation bug");return s.join("")}},{key:"__toStringGeneric",value:function(e,t,n){var r=e.length;if(0===r)return"";if(1===r){var i=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(i="-"+i),i}var a,u,l=32*r-o.__clz32(e.__digit(r-1)),s=o.__kMaxBitsPerChar[t]-1,c=l*o.__kBitsPerCharTableMultiplier,f=1+(c=0|(c+=s-1)/s)>>1,d=o.exponentiate(o.__oneDigit(t,!1),o.__oneDigit(f,!1)),p=d.__unsignedDigit(0);if(1===d.length&&65535>=p){(a=new o(e.length,!1)).__initializeDigits();for(var h,g=0,m=2*e.length-1;0<=m;m--)h=g<<16|e.__halfDigit(m),a.__setHalfDigit(m,0|h/p),g=0|h%p;u=g.toString(t)}else{var y=o.__absoluteDivLarge(e,d,!0,!0);a=y.quotient;var v=y.remainder.__trim();u=o.__toStringGeneric(v,t,!0)}a.__trim();for(var b=o.__toStringGeneric(a,t,!0);u.length<f;)u="0"+u;return!1===n&&e.sign&&(b="-"+b),b+u}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var n=e.sign;if(n!==t.sign)return o.__unequalSign(n);var r=o.__absoluteCompare(e,t);return 0<r?o.__absoluteGreater(n):0>r?o.__absoluteLess(n):0}},{key:"__compareToNumber",value:function(e,n){if(!0|n){var r=e.sign,i=0>n;if(r!==i)return o.__unequalSign(r);if(0===e.length){if(i)throw new Error("implementation bug");return 0===n?0:-1}if(1<e.length)return o.__absoluteGreater(r);var a=t(n),u=e.__unsignedDigit(0);return u>a?o.__absoluteGreater(r):u<a?o.__absoluteLess(r):0}return o.__compareToDouble(e,n)}},{key:"__compareToDouble",value:function(e,t){if(t!=t)return t;if(t===1/0)return-1;if(t===-1/0)return 1;var n=e.sign;if(n!==0>t)return o.__unequalSign(n);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;o.__kBitConversionDouble[0]=t;var r=2047&o.__kBitConversionInts[1]>>>20;if(2047==r)throw new Error("implementation bug: handled elsewhere");var i=r-1023;if(0>i)return o.__absoluteGreater(n);var a=e.length,u=e.__digit(a-1),l=o.__clz32(u),s=32*a-l,c=i+1;if(s<c)return o.__absoluteLess(n);if(s>c)return o.__absoluteGreater(n);var f=1048576|1048575&o.__kBitConversionInts[1],d=o.__kBitConversionInts[0],p=31-l;if(p!==(s-1)%31)throw new Error("implementation bug");var h,g=0;if(p<20){var m=20-p;g=m+32,h=f>>>m,f=f<<32-m|d>>>m,d<<=32-m}else if(20===p)g=32,h=f,f=d;else{var y=p-20;g=32-y,h=f<<y|d>>>32-y,f=d<<y}if((u>>>=0)>(h>>>=0))return o.__absoluteGreater(n);if(u<h)return o.__absoluteLess(n);for(var v=a-2;0<=v;v--){0<g?(g-=32,h=f>>>0,f=d,d=0):h=0;var b=e.__unsignedDigit(v);if(b>h)return o.__absoluteGreater(n);if(b<h)return o.__absoluteLess(n)}if(0!==f||0!==d){if(0===g)throw new Error("implementation bug");return o.__absoluteLess(n)}return 0}},{key:"__equalToNumber",value:function(e,n){return n|0===n?0===n?0===e.length:1===e.length&&e.sign===0>n&&e.__unsignedDigit(0)===t(n):0===o.__compareToDouble(e,n)}},{key:"__comparisonResultToBool",value:function(e,t){switch(t){case 0:return 0>e;case 1:return 0>=e;case 2:return 0<e;case 3:return 0<=e}throw new Error("unreachable")}},{key:"__compare",value:function(e,t,n){if(e=o.__toPrimitive(e),t=o.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(n){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t}if(o.__isBigInt(e)&&"string"==typeof t)return null!==(t=o.__fromString(t))&&o.__comparisonResultToBool(o.__compareToBigInt(e,t),n);if("string"==typeof e&&o.__isBigInt(t))return null!==(e=o.__fromString(e))&&o.__comparisonResultToBool(o.__compareToBigInt(e,t),n);if(e=o.__toNumeric(e),t=o.__toNumeric(t),o.__isBigInt(e)){if(o.__isBigInt(t))return o.__comparisonResultToBool(o.__compareToBigInt(e,t),n);if("number"!=typeof t)throw new Error("implementation bug");return o.__comparisonResultToBool(o.__compareToNumber(e,t),n)}if("number"!=typeof e)throw new Error("implementation bug");if(o.__isBigInt(t))return o.__comparisonResultToBool(o.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw new Error("implementation bug");return 0===n?e<t:1===n?e<=t:2===n?e>t:3===n?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,n){if(e.length<t.length)return o.__absoluteAdd(t,e,n);if(0===e.length)return e;if(0===t.length)return e.sign===n?e:o.unaryMinus(e);var r=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&r++;for(var i=new o(r,n),a=0,u=0;u<t.length;u++){var l=t.__digit(u),s=e.__digit(u),c=(65535&s)+(65535&l)+a,f=(s>>>16)+(l>>>16)+(c>>>16);a=f>>>16,i.__setDigit(u,65535&c|f<<16)}for(;u<e.length;u++){var d=e.__digit(u),p=(65535&d)+a,h=(d>>>16)+(p>>>16);a=h>>>16,i.__setDigit(u,65535&p|h<<16)}return u<i.length&&i.__setDigit(u,a),i.__trim()}},{key:"__absoluteSub",value:function(e,t,n){if(0===e.length)return e;if(0===t.length)return e.sign===n?e:o.unaryMinus(e);for(var r=new o(e.length,n),i=0,a=0;a<t.length;a++){var u=e.__digit(a),l=t.__digit(a),s=(65535&u)-(65535&l)-i,c=(u>>>16)-(l>>>16)-(i=1&s>>>16);i=1&c>>>16,r.__setDigit(a,65535&s|c<<16)}for(;a<e.length;a++){var f=e.__digit(a),d=(65535&f)-i,p=(f>>>16)-(i=1&d>>>16);i=1&p>>>16,r.__setDigit(a,65535&d|p<<16)}return r.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length;null===n?n=new o(r,t):n.sign=t;for(var i,a=!0,u=0;u<r;u++){if(i=e.__digit(u),a){var l=-1===i;i=0|i+1,a=l}n.__setDigit(u,i)}return a&&n.__setDigitGrow(r,1),n}},{key:"__absoluteSubOne",value:function(e,t){for(var n,r=e.length,i=new o(t=t||r,!1),a=!0,u=0;u<r;u++){if(n=e.__digit(u),a){var l=0===n;n=0|n-1,a=l}i.__setDigit(u,n)}if(a)throw new Error("implementation bug");for(var s=r;s<t;s++)i.__setDigit(s,0);return i}},{key:"__absoluteAnd",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,a=i;if(r<i){a=r;var u=e,l=r;e=t,r=i,t=u,i=l}var s=a;null===n?n=new o(s,!1):s=n.length;for(var c=0;c<a;c++)n.__setDigit(c,e.__digit(c)&t.__digit(c));for(;c<s;c++)n.__setDigit(c,0);return n}},{key:"__absoluteAndNot",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,a=i;r<i&&(a=r);var u=r;null===n?n=new o(u,!1):u=n.length;for(var l=0;l<a;l++)n.__setDigit(l,e.__digit(l)&~t.__digit(l));for(;l<r;l++)n.__setDigit(l,e.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteOr",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,a=i;if(r<i){a=r;var u=e,l=r;e=t,r=i,t=u,i=l}var s=r;null===n?n=new o(s,!1):s=n.length;for(var c=0;c<a;c++)n.__setDigit(c,e.__digit(c)|t.__digit(c));for(;c<r;c++)n.__setDigit(c,e.__digit(c));for(;c<s;c++)n.__setDigit(c,0);return n}},{key:"__absoluteXor",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,a=i;if(r<i){a=r;var u=e,l=r;e=t,r=i,t=u,i=l}var s=r;null===n?n=new o(s,!1):s=n.length;for(var c=0;c<a;c++)n.__setDigit(c,e.__digit(c)^t.__digit(c));for(;c<r;c++)n.__setDigit(c,e.__digit(c));for(;c<s;c++)n.__setDigit(c,0);return n}},{key:"__absoluteCompare",value:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var r=e.length-1;0<=r&&e.__digit(r)===t.__digit(r);)r--;return 0>r?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,n,r){if(0!==t){for(var i=65535&t,a=t>>>16,u=0,l=0,s=0,c=0;c<e.length;c++,r++){var f=n.__digit(r),d=65535&f,p=f>>>16,h=e.__digit(c),g=65535&h,m=h>>>16,y=o.__imul(g,i),v=o.__imul(g,a),b=o.__imul(m,i),w=o.__imul(m,a);u=(l=(v>>>16)+(b>>>16)+(65535&w)+(u=(p+=s+u+((d+=l+(65535&y))>>>16)+(y>>>16)+(65535&v)+(65535&b))>>>16))>>>16,l&=65535,s=w>>>16,n.__setDigit(r,f=65535&d|p<<16)}for(;0!==u||0!==l||0!==s;r++){var _=n.__digit(r),x=(65535&_)+l,k=(_>>>16)+(x>>>16)+s+u;l=0,s=0,u=k>>>16,n.__setDigit(r,_=65535&x|k<<16)}}}},{key:"__internalMultiplyAdd",value:function(e,t,n,r,i){for(var a=n,u=0,l=0;l<r;l++){var s=e.__digit(l),c=o.__imul(65535&s,t),f=(65535&c)+u+a;a=f>>>16;var d=o.__imul(s>>>16,t),p=(65535&d)+(c>>>16)+a;a=p>>>16,u=d>>>16,i.__setDigit(l,p<<16|65535&f)}if(i.length>r)for(i.__setDigit(r++,a+u);r<i.length;)i.__setDigit(r++,0);else if(0!==a+u)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t,n){null===n&&(n=new o(e.length,!1));for(var r=0,i=2*e.length-1;0<=i;i-=2){var a=(r<<16|e.__halfDigit(i))>>>0,u=0|a/t;r=0|(a=((r=0|a%t)<<16|e.__halfDigit(i-1))>>>0)%t,n.__setDigit(i>>>1,u<<16|0|a/t)}return n}},{key:"__absoluteModSmall",value:function(e,t){for(var n=0,r=2*e.length-1;0<=r;r--)n=0|((n<<16|e.__halfDigit(r))>>>0)%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,n,r){var i=t.__halfDigitLength(),a=t.length,u=e.__halfDigitLength()-i,l=null;n&&(l=new o(u+2>>>1,!1)).__initializeDigits();var s=new o(i+2>>>1,!1);s.__initializeDigits();var c=o.__clz16(t.__halfDigit(i-1));0<c&&(t=o.__specialLeftShift(t,c,0));for(var f=o.__specialLeftShift(e,c,1),d=t.__halfDigit(i-1),p=0,h=u;0<=h;h--){var g=65535,m=f.__halfDigit(h+i);if(m!==d){var y=(m<<16|f.__halfDigit(h+i-1))>>>0;g=0|y/d;for(var v=0|y%d,b=t.__halfDigit(i-2),w=f.__halfDigit(h+i-2);o.__imul(g,b)>>>0>(v<<16|w)>>>0&&(g--,!(65535<(v+=d))););}o.__internalMultiplyAdd(t,g,0,a,s);var _=f.__inplaceSub(s,h,i+1);0!==_&&(_=f.__inplaceAdd(t,h,i),f.__setHalfDigit(h+i,f.__halfDigit(h+i)+_),g--),n&&(1&h?p=g<<16:l.__setDigit(h>>>1,p|g))}return r?(f.__inplaceRightShift(c),n?{quotient:l,remainder:f}:f):n?l:void 0}},{key:"__clz16",value:function(e){return o.__clz32(e)-16}},{key:"__specialLeftShift",value:function(e,t,n){var r=e.length,i=new o(r+n,!1);if(0===t){for(var a=0;a<r;a++)i.__setDigit(a,e.__digit(a));return 0<n&&i.__setDigit(r,0),i}for(var u,l=0,s=0;s<r;s++)u=e.__digit(s),i.__setDigit(s,u<<t|l),l=u>>>32-t;return 0<n&&i.__setDigit(r,l),i}},{key:"__leftShiftByAbsolute",value:function(e,t){var n=o.__toShiftAmount(t);if(0>n)throw new RangeError("BigInt too big");var r=n>>>5,i=31&n,a=e.length,u=0!==i&&0!=e.__digit(a-1)>>>32-i,l=a+r+(u?1:0),s=new o(l,e.sign);if(0===i){for(var c=0;c<r;c++)s.__setDigit(c,0);for(;c<l;c++)s.__setDigit(c,e.__digit(c-r))}else{for(var f=0,d=0;d<r;d++)s.__setDigit(d,0);for(var p,h=0;h<a;h++)p=e.__digit(h),s.__setDigit(h+r,p<<i|f),f=p>>>32-i;if(u)s.__setDigit(a+r,f);else if(0!==f)throw new Error("implementation bug")}return s.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var n=e.length,r=e.sign,i=o.__toShiftAmount(t);if(0>i)return o.__rightShiftByMaximum(r);var a=i>>>5,u=31&i,l=n-a;if(0>=l)return o.__rightShiftByMaximum(r);var s=!1;if(r)if(0!=(e.__digit(a)&(1<<u)-1))s=!0;else for(var c=0;c<a;c++)if(0!==e.__digit(c)){s=!0;break}s&&0===u&&0==~e.__digit(n-1)&&l++;var f=new o(l,r);if(0===u){f.__setDigit(l-1,0);for(var d=a;d<n;d++)f.__setDigit(d-a,e.__digit(d))}else{for(var p,h=e.__digit(a)>>>u,g=n-a-1,m=0;m<g;m++)p=e.__digit(m+a+1),f.__setDigit(m,p<<32-u|h),h=p>>>u;f.__setDigit(g,h)}return s&&(f=o.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?o.__oneDigit(1,!0):o.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return t>o.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"default";if("object"!==n(e))return e;if(e.constructor===o)return e;var r=e[Symbol.toPrimitive];if(r){var i=r(t);if("object"!==n(i))return i;throw new TypeError("Cannot convert object to primitive value")}var a=e.valueOf;if(a){var u=a.call(e);if("object"!==n(u))return u}var l=e.toString;if(l){var s=l.call(e);if("object"!==n(s))return s}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return o.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(e){return"object"===n(e)&&null!==e&&e.constructor===o}},{key:"__truncateToNBits",value:function(e,t){for(var n=e+31>>>5,r=new o(n,t.sign),i=n-1,a=0;a<i;a++)r.__setDigit(a,t.__digit(a));var u=t.__digit(i);if(0!=(31&e)){var l=32-(31&e);u=u<<l>>>l}return r.__setDigit(i,u),r.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,n){for(var r=Math.min,i=e+31>>>5,a=new o(i,n),u=0,l=i-1,s=0,c=r(l,t.length);u<c;u++){var f=t.__digit(u),d=0-(65535&f)-s,p=0-(f>>>16)-(s=1&d>>>16);s=1&p>>>16,a.__setDigit(u,65535&d|p<<16)}for(;u<l;u++)a.__setDigit(u,0|-s);var h,g=l<t.length?t.__digit(l):0,m=31&e;if(0===m){var y=0-(65535&g)-s;h=65535&y|0-(g>>>16)-(s=1&y>>>16)<<16}else{var v=32-m,b=1<<32-v,w=(65535&b)-(65535&(g=g<<v>>>v))-s;h=65535&w|(b>>>16)-(g>>>16)-(s=1&w>>>16)<<16,h&=b-1}return a.__setDigit(l,h),a.__trim()}},{key:"__digitPow",value:function(e,t){for(var n=1;0<t;)1&t&&(n*=e),t>>>=1,e*=e;return n}}]),o}(s(Array));return p.__kMaxLength=33554432,p.__kMaxLengthBits=p.__kMaxLength<<5,p.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],p.__kBitsPerCharTableShift=5,p.__kBitsPerCharTableMultiplier=1<<p.__kBitsPerCharTableShift,p.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],p.__kBitConversionBuffer=new ArrayBuffer(8),p.__kBitConversionDouble=new Float64Array(p.__kBitConversionBuffer),p.__kBitConversionInts=new Int32Array(p.__kBitConversionBuffer),p.__clz32=t||function(e){var t=Math.LN2,n=Math.log;return 0===e?32:0|31-(0|n(e>>>0)/t)},p.__imul=e||function(e,t){return 0|e*t},p}()},AiOm:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.CryptoKeypath=void 0;const r=n("vfKm"),i=n("jLbD"),o=n("b+ga"),a=n("pmUK");var u;!function(e){e[e.components=1]="components",e[e.source_fingerprint=2]="source_fingerprint",e[e.depth=3]="depth"}(u||(u={}));class l extends o.RegistryItem{constructor(e=[],t,n){super(),this.components=e,this.sourceFingerprint=t,this.depth=n,this.getRegistryType=()=>a.RegistryTypes.CRYPTO_KEYPATH,this.getPath=()=>{if(0!==this.components.length)return this.components.map(e=>`${e.isWildcard()?"*":e.getIndex()}${e.isHardened()?"'":""}`).join("/")},this.getComponents=()=>this.components,this.getSourceFingerprint=()=>this.sourceFingerprint,this.getDepth=()=>this.depth,this.toDataItem=()=>{const e={},t=[];return this.components&&this.components.forEach(e=>{e.isWildcard()?t.push([]):t.push(e.getIndex()),t.push(!!e.isHardened())}),e[u.components]=t,this.sourceFingerprint&&(e[u.source_fingerprint]=this.sourceFingerprint.readUInt32BE(0)),void 0!==this.depth&&(e[u.depth]=this.depth),new r.DataItem(e)}}}t.CryptoKeypath=l,l.fromDataItem=t=>{const n=t.getData(),r=[],o=n[u.components];if(o)for(let e=0;e<o.length;e+=2){const t=o[e+1],n=o[e];r.push(new i.PathComponent("number"==typeof n?{index:n,hardened:t}:{hardened:t}))}const a=n[u.source_fingerprint];let s;return a&&(s=e.alloc(4),s.writeUInt32BE(a,0)),new l(r,s,n[u.depth])},l.fromCBOR=e=>{const t=r.decodeToDataItem(e);return l.fromDataItem(t)}}).call(this,n("tjlA").Buffer)},CPl3:function(e,t,n){"use strict";(function(e){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n("Vm01")),o=n("ZFCF"),a=r(o),u=r(n("9rZX")),l=n("+qE3"),s=n("qCKp"),c=r(n("D1Df")),f=n("NCLm");const d=({size:e=200,data:t="",ecl:n="L"})=>a.createElement(c,{value:t,size:e,level:n});var p,h,g;(p=t.ReadStatus||(t.ReadStatus={})).canceled="canceled",p.success="success",(h=t.PlayStatus||(t.PlayStatus={})).canceled="canceled",h.success="success",(g=t.SupportedResult||(t.SupportedResult={})).UR_BYTES="bytes",g.UR_CRYPTO_HDKEY="crypto-hdkey",g.UR_ETH_SIGN_REQUEST="eth-sign-request",g.UR_ETH_SIGNATURE="eth-signature";const m={minWidth:"16rem",height:"3rem",background:"#784FFE",borderColor:"grey",borderRadius:"8px",borderWidth:1,color:"white",outline:"none",margin:2},y=e=>{const{onClick:t,children:n}=e;return a.createElement("button",{onClick:t,style:m},n)},v=e=>a.createElement("div",{style:{width:"100%",marginTop:"1rem",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"center"}},e.children),b=new f.UR(e.from("NO DATA","utf-8"));class w extends Error{constructor(e){super(e),Object.setPrototypeOf(this,w.prototype)}}const _=()=>a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto",display:"block",shapeRendering:"auto",animationPlayState:"running",animationDelay:"0s"},width:"200px",height:"200px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},a.createElement("circle",{cx:"50",cy:"50",fill:"none",stroke:"#9b9b9b",strokeWidth:"7",r:"35",strokeDasharray:"164.93361431346415 56.97787143782138",style:{animationPlayState:"running",animationDelay:"0s"}},a.createElement("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1",style:{animationPlayState:"running",animationDelay:"0s"}}))),x=a.lazy(()=>new Promise(function(e){e(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}(n("RnoV")))}));let k="";const E=e=>a.createElement("div",{style:{paddingLeft:"1rem"}},a.createElement("div",{style:{display:"flex",alignItems:"center",padding:0}},a.createElement("img",{style:{display:"inline-block"},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAoCAYAAACfKfiZAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAKAAAAACc9ikyAAAD+ElEQVRYCb1WbWiNURw/Z9caY5SyrKzVhuUtZcYoJdZ8kMywGClG+WK+eJsPmogNKfZBxBbmAyPyEgvtA8UUX9inbVeb8AGTd8t2j9/vdp91ntPzPPd57h3/+t1z/uf/ev7nnP9zhUiMsmH2BOgF9ifmIjmrVpgrDWuScxfMeqUW2EqiB2sjgrlJTDsNZmHACqyP2xJzGcyq2iU4E7kTzFVw7fEw+Qbou9bn94K7FCIlgNFh6I7y0E8oAQ9/NlEBuAig71ifv4VspM1iiJnHHsGZyPohjmdzxzeu79acsyFJm8UQMnzbfONmUIvnsRTG4g3DWAM8B24DM4GkaR88WMGcxkYtQr2h+wl8niYPPJ0Aix+AU2Cu8UlmASRe0gHA1L1JYaLUBEPToc7v1hx7XdISTc/3tAiaXs+uE3K2ZdJaQE/MnLdDzvvhm3ij2wDTkc4vj3lLx/gmji7tqmL6voYNcRze17zwv4CemNuc/xt8NSoqsau5OfoD2TSAxDb+EXDTNdeX0igeHYSCaajzfGoWZWDidU90O84XWIZuYw4EvwDT0OK527GG8VUPfcuO4wPAsVvqt/MolIYDbsSmxLPUiS+gEpgBOH1Z+7HOC90MMBFXYnn0jM35S8hDrtZJCFgBluZEHB/bIWenc6XVV1Qo/MCxCoM2ucUi0lwubX4YfBng1TKvQ1426MWY1NSolAs94jJKVoYaOh2DbqGw3ddQqutqkGcooEG5rmHM+8DvMNZs7KVuUaiUWOUjOO0k9HIjSpzOq1RRv0xgus2jnTkONhxbKsZ4A7gFlMbWRChddMLtZ4v3O0YiojZvq8rkEbwCrOai278Dkw98BxYBLYD+anaB58sREzerosiAaMExjCbvl0KpooAV6HIx2IN1Bk8FTgF6cLDiCLCTk86z8mlKSCzBbr6S90NSooumiXYm8MjBgG+3KbZehXGygw6XmAQrEU0C77TETxII3ofA6zrrZR+PIAvoBrhTEnvAPIBJZAIdQLzS8r8BkxGTNqq5AxLHocQY8iYxOIKuwCu4Sxkr8B7g5bLoIiYMTjoExAtOvTqASYiORtmmJCohxRfyBv3GeqkVnDJWgLQQaAV45iw3k5oKsAMySb9UDcVaKuduUYWiX1xDObPJI/AHDBXhBsnvwiBZCXChAuA/nWdkQLxg0bJGOf8/tDtG9fxNKqNfisX4ZKamC/Gw/Zzs9e9GiL1Q5n0ICn6A5gQJ5KY7C4Ig33s90WibdXOsr3ud7wsoshcwiaAUPfegRm76syHgBylINaIX0c1hout8FecB/i/Uy23OedvZP/4Z5cDzSeAnYAZnK54P/BcahygHAD5dNh12tilAIPoLD0OnpwCV000AAAAASUVORK5CYII=",alt:""}),a.createElement("div",{style:{fontSize:"1.25rem",fontWeight:"bold",marginLeft:"1rem"}},"Sync Keystone")),a.createElement("ul",{style:{marginTop:"2rem",listStyleType:"none",padding:0,fontSize:"1rem"}},a.createElement("li",{style:{marginBottom:"0.75rem"}},"1. Turn on your Keystone hardware device"),a.createElement("li",{style:{marginBottom:"0.75rem"}},`2. Select your "${e.walletMode}" as your Watch-only wallet(Companion App)`),a.createElement("li",{style:{marginBottom:"0.75rem"}},' 3. Press the "Scan Keystone" button and scan the QR Code displayed on your Keystone hardware wallet'),a.createElement("li",{style:{marginBottom:"0.75rem"}}," 4. Select account and check your watch-only wallet")),a.createElement("div",{style:{marginBottom:"1rem"}},a.createElement("a",{style:{marginTop:"1.25rem",color:"#784FFE",textDecoration:"none"},href:e.link,target:"_blank"},"Click here to view detailed tutorial")),a.createElement(y,{onClick:e.onButtonClick},"Sync Keystone")),T={overlay:{zIndex:999},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",borderRadius:"10px",width:"37rem",marginRight:"-50%",transform:"translate(-50%, -50%)",postion:"relative"}};var S=()=>{const[e,{read:n,play:r,cameraReady:i}]=(()=>{const e=o.useMemo(()=>new l.EventEmitter,[]),[n,r]=o.useState(!1),[i,c]=o.useState(""),[p,h]=o.useState(""),[g,m]=o.useState(null),[S,{play:C}]=(()=>{const[e,n]=o.useState(b),[r,i]=o.useState(!1),[u,c]=o.useState(100),[p,h]=o.useState(!1),[g,m]=o.useState(null),[w,_]=o.useState(null),x=o.useMemo(()=>new f.UREncoder(e),[e]),[k,E]=o.useState(x.nextPart()),T=o.useMemo(()=>new l.EventEmitter,[]);return o.useEffect(()=>{x.cbor.toString("hex")!==b.cbor.toString("hex")&&i(!0)},[x]),o.useEffect(()=>{const e=s.interval(u).subscribe(()=>{E(x.nextPart())});return()=>{e.unsubscribe()}},[u,x]),[r?a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},g&&a.createElement("p",{style:{fontSize:"1.25rem",fontWeight:"bold"}},g),a.createElement(d,{size:288,data:k}),w&&a.createElement("p",{style:{fontSize:"1rem",textAlign:"center"}},w),a.createElement(v,null,a.createElement(y,{onClick:()=>{T.emit("finish",!0)}},p?"Scan Keystone":"Finish"))):a.createElement("div",null),{play:(e,r)=>new Promise(o=>{n(e),r&&(r.refreshSpeed&&c(r.refreshSpeed),r.hasNext&&h(r.hasNext),r.title&&m(r.title),r.description&&_(r.description)),T.once("finish",()=>{n(b),i(!1),c(100),o(t.PlayStatus.success)})})}]})(),[A,{read:P,cameraReady:I}]=(()=>{const[e,t]=o.useState(!1),[n,r]=o.useState([]),[i,u]=o.useState(new f.URDecoder),[s,c]=o.useState(""),d=o.useMemo(()=>new l.EventEmitter,[]),[p,h]=o.useState(null),[g,m]=o.useState(0),[b,E]=o.useState(null),T=()=>{u(new f.URDecoder),c("")};return[a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},p&&a.createElement("p",{style:{fontSize:"1.25rem",fontWeight:"bold"}},p),b&&a.createElement("p",{style:{fontSize:"1rem",textAlign:"center"}},b),a.createElement(o.Suspense,{fallback:a.createElement("div",null)},a.createElement("div",{style:{position:"relative",width:"100%"}},e?null:a.createElement("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}},a.createElement(_,null)),a.createElement(x,{onScan:e=>{e&&(t(!0),((e,t)=>{try{if(i.isComplete()){const e=i.resultUR();let t=!1;if(n.forEach(n=>{if(n===e.type)return t=!0,void d.emit("read",{result:e,status:"success"})}),!t)throw new w(`received ur type ${e.type}, but expected [${n.join(",")}]`)}else i.receivePart(e),m(i.getProgress())}catch(e){c(e instanceof w?t:e.message)}})(e,k))},delay:100,style:{width:"100%"},onError:e=>{c(e.message)}}))),a.createElement("p",null,(100*g).toFixed(0)," %"),s&&a.createElement("p",{style:{color:"red",fontSize:"1rem"}},s),a.createElement(v,null,a.createElement(y,{onClick:()=>{d.emit("read",{status:"canceled"})}},"Close"),s&&a.createElement(y,{onClick:()=>{T()}},"Retry"))),{read:(e,t)=>new Promise(n=>{r(e),t&&(t.title&&h(t.title),t.description&&E(t.description),k=t.URTypeErrorMessage?t.URTypeErrorMessage:""),d.once("read",e=>{T(),n(e)})}),cameraReady:e}]})(),B=()=>{m(null),h(""),c(""),r(!1)};var D;return[a.createElement(u,{isOpen:n,style:T},a.createElement("div",{onClick:()=>{e.emit("close"),B()}},a.createElement("img",{style:{position:"absolute",top:"1rem",right:"1rem"},src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADKADAAQAAAABAAAADAAAAAATDPpdAAAAmklEQVQoFZWRwQ3DIAwAa4brJPBP80hnaD/lD5N0iYxEfRVBxBGRwsvgO2PZklJaReTrvX/eTk7O+VVKuTtgDRYVPyOeHAysAFV40jCGEB69aHN/YSRZGK4JVuKu5/DrToDoqnI9tOh4vXJ2Qlc96kSY2lTfWs0m9DCT0r3MSkUrXR9r3eBCNbuDrY/td23z7Vg3wQhGIgcD+wPGY2fPvHuWagAAAABJRU5ErkJggg=="})),a.createElement("div",{style:{width:"35rem",padding:18,flex:1,flexDirection:"column",alignItems:"center",justifyContent:"center",color:"#002237"}},"initial"===(D=g)?a.createElement(E,{walletMode:i,link:p,onButtonClick:()=>{m("read")}}):"read"===D?A:"play"===D?S:null)),{play:(n,i)=>new Promise(async o=>{e.once("close",()=>{o(t.PlayStatus.canceled)}),r(!0),m("play"),await C(n,i),B(),o(t.PlayStatus.success)}),read:async(e,t)=>{if(t.renderInitial){c(t.renderInitial.walletMode),h(t.renderInitial.link),m("initial"),r(!0);const n=await P(e,t);return B(),n}{m("read"),r(!0);const n=await P(e,t);return B(),n}},cameraReady:I}]})();return B(n,r,i),e};let C,A,P,I=!1;const B=(e,t,n)=>{I=!0,C=e,A=t,P=n};t.default={bootstrap:()=>{const e=document.getElementsByTagName("body").item(0),t=document.createElement("div");t.id="kv_sdk_container",e.appendChild(t),u.setAppElement("#kv_sdk_container"),i.render(a.createElement(S),t)},getSdk:()=>{if(I)return{read:C,play:A,cameraReady:P};throw new Error("SDK is not initialized")}}}).call(this,n("tjlA").Buffer)},"Fa/S":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.FountainDecoderPart=void 0;const r=n("jQzp"),i=n("gIkM"),o=n("oFZa");class a{constructor(e,t){this._indexes=e,this._fragment=t}get indexes(){return this._indexes}get fragment(){return this._fragment}static fromEncoderPart(e){const t=i.chooseFragments(e.seqNum,e.seqLength,e.checksum);return new a(t,e.fragment)}isSimple(){return 1===this.indexes.length}}t.FountainDecoderPart=a;class u{constructor(){this.result=void 0,this.expectedMessageLength=0,this.expectedChecksum=0,this.expectedFragmentLength=0,this.processedPartsCount=0,this.expectedPartIndexes=[],this.lastPartIndexes=[],this.queuedParts=[],this.receivedPartIndexes=[],this.mixedParts=[],this.simpleParts=[]}validatePart(e){if(0===this.expectedPartIndexes.length)[...new Array(e.seqLength)].forEach((e,t)=>this.expectedPartIndexes.push(t)),this.expectedMessageLength=e.messageLength,this.expectedChecksum=e.checksum,this.expectedFragmentLength=e.fragment.length;else{if(this.expectedPartIndexes.length!==e.seqLength)return!1;if(this.expectedMessageLength!==e.messageLength)return!1;if(this.expectedChecksum!==e.checksum)return!1;if(this.expectedFragmentLength!==e.fragment.length)return!1}return!0}reducePartByPart(e,t){if(r.arrayContains(e.indexes,t.indexes)){const n=r.setDifference(e.indexes,t.indexes),i=r.bufferXOR(e.fragment,t.fragment);return new a(n,i)}return e}reduceMixedBy(e){const t=[];this.mixedParts.map(({value:t})=>this.reducePartByPart(t,e)).forEach(e=>{e.isSimple()?this.queuedParts.push(e):t.push({key:e.indexes,value:e})}),this.mixedParts=t}processSimplePart(e){const t=e.indexes[0];if(!this.receivedPartIndexes.includes(t))if(this.simpleParts.push({key:e.indexes,value:e}),this.receivedPartIndexes.push(t),r.arraysEqual(this.receivedPartIndexes,this.expectedPartIndexes)){const e=this.simpleParts.map(({value:e})=>e).sort((e,t)=>e.indexes[0]-t.indexes[0]),t=u.joinFragments(e.map(e=>e.fragment),this.expectedMessageLength);r.getCRC(t)===this.expectedChecksum?this.result=t:this.error=new o.InvalidChecksumError}else this.reduceMixedBy(e)}processMixedPart(e){if(this.mixedParts.some(({key:t})=>r.arraysEqual(t,e.indexes)))return;let t=this.simpleParts.reduce((e,{value:t})=>this.reducePartByPart(e,t),e);t=this.mixedParts.reduce((e,{value:t})=>this.reducePartByPart(e,t),t),t.isSimple()?this.queuedParts.push(t):(this.reduceMixedBy(t),this.mixedParts.push({key:t.indexes,value:t}))}processQueuedItem(){if(0===this.queuedParts.length)return;const e=this.queuedParts.shift();e.isSimple()?this.processSimplePart(e):this.processMixedPart(e)}receivePart(e){if(this.isComplete())return!1;if(!this.validatePart(e))return!1;const t=a.fromEncoderPart(e);for(this.lastPartIndexes=t.indexes,this.queuedParts.push(t);!this.isComplete()&&this.queuedParts.length>0;)this.processQueuedItem();return this.processedPartsCount+=1,!0}isComplete(){return Boolean(void 0!==this.result&&this.result.length>0)}isSuccess(){return Boolean(void 0===this.error&&this.isComplete())}resultMessage(){return this.isSuccess()?this.result:e.from([])}isFailure(){return void 0!==this.error}resultError(){return this.error?this.error.message:""}expectedPartCount(){return this.expectedPartIndexes.length}getExpectedPartIndexes(){return[...this.expectedPartIndexes]}getReceivedPartIndexes(){return[...this.receivedPartIndexes]}getLastPartIndexes(){return[...this.lastPartIndexes]}estimatedPercentComplete(){if(this.isComplete())return 1;const e=this.expectedPartCount();return 0===e?0:Math.min(.99,this.processedPartsCount/(1.75*e))}getProgress(){if(this.isComplete())return 1;const e=this.expectedPartCount();return 0===e?0:this.receivedPartIndexes.length/e}}t.default=u,u.joinFragments=(t,n)=>e.concat(t).slice(0,n)}).call(this,n("tjlA").Buffer)},GBR3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CryptoPSBT=void 0;const r=n("vfKm"),i=n("b+ga"),o=n("pmUK");class a extends i.RegistryItem{constructor(e){super(),this.psbt=e,this.getRegistryType=()=>o.RegistryTypes.CRYPTO_PSBT,this.getPSBT=()=>this.psbt,this.toDataItem=()=>new r.DataItem(this.psbt)}}t.CryptoPSBT=a,a.fromDataItem=e=>{const t=e.getData();if(!t)throw new Error(`#[ur-registry][CryptoPSBT][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ${e}`);return new a(t)},a.fromCBOR=e=>{const t=r.decodeToDataItem(e);return a.fromDataItem(t)}},Gi0Q:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n("jQzp"),o=r(n("kB5k")),a=r(n("9VcJ")),u=(e,t)=>a.default.bitwiseXor(a.default.asUintN(64,a.default.leftShift(e,a.default.BigInt(t))),a.default.BigInt(a.default.asUintN(64,a.default.signedRightShift(e,a.default.subtract(a.default.BigInt(64),a.default.BigInt(t))))));t.default=class{constructor(e){this.next=()=>new o.default(this.roll().toString()),this.nextDouble=()=>new o.default(this.roll().toString()).div(0x10000000000000000),this.nextInt=(e,t)=>Math.floor(this.nextDouble().toNumber()*(t-e+1)+e),this.nextByte=()=>this.nextInt(0,255),this.nextData=e=>[...new Array(e)].map(()=>this.nextByte());const t=i.sha256Hash(e);this.s=[a.default.BigInt(0),a.default.BigInt(0),a.default.BigInt(0),a.default.BigInt(0)],this.setS(t)}setS(e){for(let t=0;t<4;t++){let n=8*t,r=a.default.BigInt(0);for(let t=0;t<8;t++)r=a.default.asUintN(64,a.default.leftShift(r,a.default.BigInt(8))),r=a.default.asUintN(64,a.default.bitwiseOr(r,a.default.BigInt(e[n+t])));this.s[t]=a.default.asUintN(64,r)}}roll(){const e=a.default.asUintN(64,a.default.multiply(u(a.default.asUintN(64,a.default.multiply(this.s[1],a.default.BigInt(5))),7),a.default.BigInt(9))),t=a.default.asUintN(64,a.default.leftShift(this.s[1],a.default.BigInt(17)));return this.s[2]=a.default.asUintN(64,a.default.bitwiseXor(this.s[2],a.default.BigInt(this.s[0]))),this.s[3]=a.default.asUintN(64,a.default.bitwiseXor(this.s[3],a.default.BigInt(this.s[1]))),this.s[1]=a.default.asUintN(64,a.default.bitwiseXor(this.s[1],a.default.BigInt(this.s[2]))),this.s[0]=a.default.asUintN(64,a.default.bitwiseXor(this.s[0],a.default.BigInt(this.s[3]))),this.s[2]=a.default.asUintN(64,a.default.bitwiseXor(this.s[2],a.default.BigInt(t))),this.s[3]=a.default.asUintN(64,u(this.s[3],45)),e}}},InBf:function(e,t,n){"use strict";n.r(t);var r=n("J6FE"),i=n.n(r);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n,r,i,o,a){try{var u=e[o](a),l=u.value}catch(s){return void n(s)}u.done?t(l):Promise.resolve(l).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){f(o,r,i,a,u,"next",e)}function u(e){f(o,r,i,a,u,"throw",e)}a(void 0)})}}function p(e){return h.apply(this,arguments)}function h(){return(h=d(regeneratorRuntime.mark(function e(t){var r,a,l,c,f,p,h,g,m,y,v,b,w,_,x,k,E,T,S,C,A,P,I,B,D,O,R,N,M,U,L,z,F,j;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return j=function(){return(j=d(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.data,0!==b.length){e.next=4;break}return e.next=4,C();case 4:if(e.prev=4,"string"!=typeof n){e.next=7;break}return e.abrupt("return",y.signTypedData(P(),JSON.parse(n)));case 7:if("object"!==o(n)){e.next=9;break}return e.abrupt("return",y.signTypedData(P(),n));case 9:throw new Error("invalid typed data");case 12:throw e.prev=12,e.t0=e.catch(4),e.t0;case 15:case"end":return e.stop()}},e,null,[[4,12]])}))).apply(this,arguments)},F=function(e){return j.apply(this,arguments)},z=function(){return(z=d(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==b.length){e.next=3;break}return e.next=3,C();case 3:return e.prev=3,e.abrupt("return",y.signPersonalMessage(P(),t.data));case 7:throw e.prev=7,e.t0=e.catch(3),e.t0;case 10:case"end":return e.stop()}},e,null,[[3,7]])}))).apply(this,arguments)},L=function(e){return z.apply(this,arguments)},U=function(){return(U=d(regeneratorRuntime.mark(function e(t){var n,i,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==b.length){e.next=3;break}return e.next=3,C();case 3:return i=new a({chain:m||g(f)}),o=r.fromTxData(u(u({},t),{},{gasLimit:null!==(n=t.gas)&&void 0!==n?n:t.gasLimit}),{common:i,freeze:!1}),e.prev=5,e.next=8,y.signTransaction(P(),o);case 8:return e.abrupt("return","0x".concat(e.sent.serialize().toString("hex")));case 12:throw e.prev=12,e.t0=e.catch(5),e.t0;case 15:case"end":return e.stop()}},e,null,[[5,12]])}))).apply(this,arguments)},M=function(e){return U.apply(this,arguments)},N=function(e){return new Promise(function(t,n){x.sendAsync({jsonrpc:"2.0",method:"eth_getBalance",params:[e,"latest"],id:42},function(e,r){e&&n(e);var i=r&&r.result;t(null!=i?new h(i).toString(10):null)})})},R=function(e){return Promise.all(e.map(function(e){return new Promise(function(){var t=d(regeneratorRuntime.mark(function t(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,N(e);case 2:n({address:e,balance:t.sent});case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())}))},O=function(){return(O=d(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(w){e.next=2;break}return e.abrupt("return",[]);case 2:if(!(b.length>0)||t){e.next=4;break}return e.abrupt("return",b);case 4:return e.prev=4,e.next=7,y.addAccounts(y.getAccounts().length+5);case 7:b=e.sent,n=P(),A(n),e.next=15;break;case 12:throw e.prev=12,e.t0=e.catch(4),e.t0;case 15:return e.abrupt("return",b);case 16:case"end":return e.stop()}},e,null,[[4,12]])}))).apply(this,arguments)},D=function(e){return O.apply(this,arguments)},B=function(){return(B=d(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D(!0);case 2:return e.abrupt("return",(t=e.sent)&&R(t));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},I=function(){return B.apply(this,arguments)},P=function(){return y.getCurrentAddress()},A=function(e){var t=b.findIndex(function(t){return t===e})||0;y.setCurrentAccount(t);var n=s(b);n.unshift(n.splice(t,1)[0]),b=n},C=function(){return w?D():y.readKeyring().then(function(){return w=!0,D()})},S=function(){return _},T=function(){return(T=d(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t===c){e.next=2;break}throw new Error("Keystone only supports standard path: m/44'/0'/0'/0/x");case 2:return _=!1,v=t,e.abrupt("return",!0);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)},E=function(e){return T.apply(this,arguments)},k=function(){v="",w=!1,b=[],x.stop()},e.next=21,Promise.resolve().then(n.t.bind(null,"ztCV",7));case 21:return r=e.sent.Transaction,e.next=25,Promise.resolve().then(n.t.bind(null,"Z6rx",7));case 25:return a=e.sent.default,e.next=29,Promise.all([n.e(1),n.e(2),n.e(3),n.e(4),n.e(5)]).then(n.bind(null,"468V"));case 29:return l=e.sent.default,c="m/44'/60'/0'/0",f=t.networkId,p=t.rpcUrl,h=t.BigNumber,g=t.networkName,m=t.customNetwork,y=i.a.getEmptyKeyring(),v="",b=Array.from([]),w=!1,_=!1,(x=l({getAccounts:function(e){D().then(function(t){return e(null,t)}).catch(function(t){return e(t,null)})},signTransaction:function(e,t){M(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processMessage:function(e,t){L(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processPersonalMessage:function(e,t){L(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signMessage:function(e,t){L(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signPersonalMessage:function(e,t){L(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signTypedMessage:function(e,t){F(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},rpcUrl:p})).setPath=E,x.dPath=v,x.enable=C,x.setPrimaryAccount=A,x.getPrimaryAddress=P,x.getAccounts=D,x.getMoreAccounts=I,x.getBalance=N,x.getBalances=R,x.send=x.sendAsync,x.disconnect=k,x.isCustomPath=S,e.abrupt("return",x);case 52:case"end":return e.stop()}},e)}))).apply(this,arguments)}t.default=function(e){var t,n=e.appName,r=e.rpcUrl,i=e.networkId,o=e.preferred,a=e.customNetwork;return{name:e.label||"Keystone",svg:e.svg,iconSrc:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAKVklEQVR4nO1da0wUWRb+qmy7ERuYkZWe3iUMGlbUxokRY9YNosY2MxMf4CPxETVDjBo1WSFo1JmoMZpMTJzVRJw/42hMJplR8cesIiCIrrrGjaBINKGzEFFxgeEhTeTRBdVnf/Rjqqqrm64uuqthOeaL1ul7T5379bn3VN2yTjMAWCiTWAB/ATAfQDqAFABJAKYAMAKIAaALwW64xQlgCMAAgA8AugD8BuANABuAagCPAfQpNcwGiZUAfgXQD4DGKPrdY1ypgJdhybUCeBYFg4s0nrnHHvJMigdwOQoGojUuu7nwK1KGWbjWtZdR4Hy04KWbEw9XIs6kczoFwOsocDra8FpAomgNFB7EYzzyAuGlmyPZJMJifM0LBpeFxDECAq0AKhAFkpqaisWLF8Nut6OsrAwDAwNauySV5QAqPQeeUIyKS5Vdu3YRx3FEROR0OqmhoYGmT5+uuV8SPIMgCj0XyVo7RRaLxUueUO7fv08Mw2junwSei22wcF19a+0Q3b59m5xOpyw2bNiguX8S/Aq3GBEFt2erVq0ip9PpE30eaWpqotjYWK1JE6LfzR2sWjuj1+vJZrP5jT4PsceOHdOaNCmsAHBIa0cKCwtFRHlEqrPb7WQ0GrUmTYhDAHBJSyeSkpLo/fv3fqeuVD7//HOtSRPikg6u2xPN5MSJE0hISAARBdXeZDKF2SNFkgJoeOs2d+5cGhwcDDr6iIisVqvWUSfESwB4p5UDd+/eDZg4pEmko6ODJk2apDVpQrwDALsWJ1+3bp0oQQSTRAoLC7UmTAo7ADgifWKDwUCNjY2Kpm59fT3p9XqtCZPCAQB8pE98+PDhoKeuBytWrNCaLDnwiPRJzWYz9fT0KIq+W7duaU1UIET2hJcuXfJJDnIJw/Nvh8NBM2fO1Jokv9AhgjJ//nxs3brVR88wjM91oEd3/vx51NfXiz4zmUxYvXo1TCYTbDYbbty4oemeYUS+KYZh6OHDh4qmbltbGyUkJIjs5OXlUW9vr6hdU1MTzZs3b2xP4Y0bNypOHDt37hTZWLJkCQ0NDcm2bWlpocTExLFJYGxsLL1+/VpR9D19+pQmTJjgtaHT6aiuri5gn6KiorFJ4NGjR4NKGEJkZ2eLbOzdu3fYvhzH0Zw5c8YWgcnJyfThwwfZuw5/uitXrohsTJkyhTo6OobtR0RUUVExtgj86aefFE3d3t5e+vTTT0U2zp07F3R/p9NJubm5Y4PAhQsXEs/zihLH8ePHRTYyMjKI4zhFNhoaGshgMIxuAhmGocePHyuKvjdv3vg896ioqFBkwyOHDh0a3QRu27YtqIQh1G3atElkIzc3N+i+Ul1PTw+ZzebRSaDRaKTm5mafAQrXKanuwYMHIhsGg4EaGhoUJR+p7sKFC6OTwJMnTyqabkNDQ5SZmSmyUVBQoMiGnAwMDETiIdTIGkxNTaW+vj5Fi75cpDx8+FDxnYscLBbL6CLw6tWriqKku7ubTCaTj53a2lrVEcjzPE2dOnX0EJidna140d+/f7+sraKiIkUJSE4XoYvqkTHEsizV1NQoWuRtNpvfbXqz2UzNzc0hJ5GWlhZKS0sbPQRu375d0fRyOp20cuXKgDaTk5Pp4sWL9OrVK2praxsWra2tZLPZqKioKFKXMCNDYHx8PLW0tCha3EtLSyM1wOgn8NSpU4qij+M4mjVrltYDjw4C09LSqL+/X9ECf+bMGa0HPWJgPCyGKtevX8fatWtln2kAEOkZhkF7eztmzJiB7u5uRedhDYmIMS0CM8EQkp/EO8B1v8RQz39C6u9PVD1UslgsyM3NBfA7YVKR6o8cOaKYPEPSX/HJ8hKw+o9Cc1Qgjo4n6Px3ARy//Uu1LUDlG5VbtmzxPj0LBrW1tbhw4YLi8yQuOAtWnwCC2B5cGkU6feJ8mL+8i8nTNqoZuldUEbh06VIwDBMUAKCgoAA8zys+jy5uGlxvZDCuP16bIerYifhD1kXo4v+sZvgAVBKYnp7uXeOk0SbVFRcX4969e6L+WVlZ+OWXX/D8+XNUVVVh9+7d0Ol8V5X+ljsumySILvffoeqYCTFIsBSoGT4A11cTchLhed77LQdKIgMDA5g9ezaampq8n+/Zswfnzp0Dy7LedgBQVVWFnJwc9Pb2etuyhkSYv7iDiVM+A+M+DTGM23kKWefofIr//iMz1OG7fFPTube310uU3JT16E+fPi0iz2Kx4OzZs17yhP2XLVuGmzdvYvLkyd7PnI5OtJRZMdhVBzAM4CYAcE3MUHVwDqkZPgCVBDY2Ng6bOJqbm3Hq1ClRvzNnzkCn0/nts3jxYpSUlEhI7EBLmRWOrlpVSUSo62/9p5rhA1BJ4KNHj4ZNHAcPHhRNx5ycHFit1mGTjj8SW8us4N4/V5dEGAb8QAd6Xv5dzfABqCSwsrIyYBJ59OgRfv75Z297g8GA06dPi9r760tEyM7Oxq1bt2A0Gr02nI5OtJZZ4eisDTmJ8I4utN7+Enx/q5rhA1BJYFVVFTiOk/2M53nk5+eLkkt+fj7S0tJ82spdhHt0ixYtQklJiS+J5VZwXbUA44kvAO4IC6Rzcl1oLV8OrrMmxFGLRRWBdrsd5eXlAHyTyOXLl1FdXe1tazab8fXXX/u09Uggnd9ILF8OrrM26CTCu6OX63yqZtgiUV3b5YcffvCZgna7Hd98842o3bfffou4uLig71qkyMrK8kOiFY7Op8MmDH6g/feoHWFRtRvBsiy9ePFCtF114MABUZsFCxYQz/M0EnL//n2fJ22sYQr9cXUNTcsjmpZHlJpHNO0r8h6nbGwj/cefhWtHRv1/Ml+zZk3AbfqbN2+G/FxDDg8ePKC4uDgxifqPyWS9QalfOUX4U85zmpgQtr1HHhih1xx27NhB33//PaWnp4v0er2eHA6Hqgfkcm3kSARA+sR5FD/7b5SQsZ9izMsIDBsu8sjNXXhftDGbzSMydeWktLRU6zfZ7UCYX/USRmA4sHnzZi0JfMfCVcUsbMJxHCorK4Pe9lKKvLy8cLo/nHQBwB2E+ZvKzMwkh8MxYklEiPb2di0j8A4LV/28sEpNTQ22bNmCvr6+gHcd/nTSC2yhTm7/MILyhoWr+GDY5dq1a8jIyMCPP/4IjuMU3YkEaiN9CSfCYgM0KDqRnJxM3333HfX09KhOIvv27dNyClsBDcueJCYm0rFjx6i9vT2ky5i6ujqKiYnRijxv2RNA48I7RqORCgoK6O3bt0EnkcbGRkpJSdEy+ryFd6Km9JNer6ft27dTfX29iESPeI4bGhq0Jo/cnHkJjJriY4Brg2L9+vX05MkT0ZTleZ6Ki4spKSlJax89xcfYqCx/JxSLxQKLxYLBwUFUV1fj7du3WrsE+Cl/N16AMTgICzD67KeOlwANDE8JUJFIWRwvQisPTxFaH87kqnOPl0EWQ1gGedhK5h7leCFuF+QKcctGoPTYg/FS8PK8+BAZSP5ff4xgWGHcDZ0SsiDRQdDOCN+fw/gEwEcYXT+H0Q2gFb4/h/FB0k/Kj0j3Pzn5pcscMHp4AAAAAElFTkSuQmCC",iconSrcSet:e.iconSrc||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAA7EAAAOxAGVKw4bAAASmUlEQVR4nO1de3AU1Z7+umcyeWNCQgAxRZLiMSBCWOBidA1QJF4KZAUJqETELUDZvYoYoBS3pJDyURBTaCniCynRohCFSskrWe6KqYBEQGWBILkmbqKRS2JCEsIkM5OZ+e0fM5PM43SnZ6Z7ugfzVX01031ev3O+Pv34nXO6OcgPA4AsAOMBjAIwEsDtAFIBJAEYBCAOQIwrrh4Ar4AdWoADgA2AFYAZQBeAGwDaAbQAuAqgAUAtgMsAfnHFlQ2cDHnwADIALADwVwB3wyniAALHDQBVAMoBlAKoh/MgUQV6AEsAVACgASrCClcb6yVqIgt4AAUAqmWqxAD7Z7WrzYO6lPEB0AjghAYq/GflCZcGQvqw9JQEHsBqACYNVPLPTpNLi6B7s/vX/T8GwG4NVGyA3tzt0sZXO/SzzysgAcAxDVRmgGwec2nkqZmvhoKIwYC4kcBjLq0COmXzGDgtRxJ3I0CBV2vA6AEGxtUsITn4Kz8GwPdwuhMHEDnoAjAFwD88d7K69U7cYuImJiYiLS0NHCeHZ1aziINTOybcQhdA/VONbMzLy6PTp0+TzWYjh8NBTU1NtGXLFoqJiVHdNgXp9nj5dV49biH34/Lly3uFdTgc5IbD4aATJ06QwWBQ3UaFWA0B3/USDRgnCzMyMujmzZtMcd3cvHmz6nYqyCW+4vK4hUaFPv/8cy8x3SJ7bt+8eZNGjhypuq0KsQI+p+gsDRglC3Nzc/3EZQnscDho3759qturILPc4vIAijRgUMjkeZ7OnTtHUmG32+m+++5T3W6FWOTSFjycMwjUNihkrlixQrK4bpw7d450Op3qtivAcrfABgAdGjAoJA4aNIiuXr0asMBERCtWrFDdfgXY4dIWRg0YEzK3bt0alLhERPX19aTX61WvgwI0AsBDGjAkJI4aNYq6u7uZN1dSOWvWLNXroQAf4uGc2hrRKC4uRnR0dEh5TJ8+XSZrNIVRPJzzliMWs2fPxoMPPhhyPmlpaTJYozmM5OGclB6R0Ov1KCkpkSWvrq4uWfLRGG7Xw7niICKxcuVKTJo0SZa8Ll++LEs+GkMqAFyE+jcDATMpKYmam5u9fM0s9BdORGQ2myk1NVX1OinAi3pE6DKTTZs2YciQISAivzAiAsdxfmGsuBzH4ZNPPkFLS4titqqIQQDwB9Q/0gKi0Wgks9nsN1rk7rG+vmffME+2tbXR0KFDVa+TQvwDADo1YEhAPHz4sJ9grFOyFIHXrVunen0UZCcAWDRgiGTOmTMnYBGFeveVK1du5YF/cmkLuwYMkcSoqCiqrq5mnoL781Sx4sybN0/1OilMOzRghGSuWbOm3ztiqTh69Kjq9QkTVTdAElNSUqi1tVUWcS0WCxmNRtXrNCCwB9955x1ZxCUi2r59u+r1CRc5t8paxoQJE/DDDz8gKioq5Lyam5thNBrR1tYmGCc5ORljxowBz/Ooq6tDc3NzyOWqCdWPsv5YXl4e0lCgJ5988knBcrKzs+nIkSNktVp749tsNqqoqKDc3FzV2yFIqm6AKOfPny+buD/++KPg9JzCwkIv54kvbTYbFRUVqd4et5TA0dHRVFNTI4u4drudZsyYwSwnJyeHLBaLpDwWLlyoervcMgKvW7dOtt67f/9+Zhl6vZ7Onz8vOZ/GxkZKSEhQvW0iXuC0tDRqa2uT5a7ZZDIJTnJfvXq1l7fLE0L7X3nlFdXbJ+IFfv/99/ttaFYYyz25ZcsWZhnJycnU3NwsmFaobJPJRJmZmaq3UcQKnJ2dTT09PZIavb+whoYGio+PZ5bz1ltvSTpYPF2d7t8vv/xS9XaKWIG//vprP/+xWA9lieL+v3TpUmYZ48ePJ4vFIpqWRc+wCJmJqboBXly0aFG/grJEYAleWVlJHMcxyykrKxNNK/WxKwLmU6tuQC9jYmKorq5OsOdI7dHu59apU6cyy/F8thbqwUIi+8Z76qmnVG+3iBF448aNoj1GqAezxNi1axezDN9n60B6LMue5uZmSk5OVr3tNC/w8OHDqaOjg+RAe3s7DRs2jFnOhg0bZCnDExofvFDdAAJAu3fvlq3B169fzyxj2LBhsh1EnrBYLDRu3DjV21CzAk+dOpVsNpssjV1TU0PR0dHMcnbt2iVLGSxoeAKBugZwHEeVlZWyNLLD4aD58+czy5k2bZpsB5FQ2XPnzlVbTO0J/MgjjwR1g8PisWPHBA+ikydPylaOEKuqqtQWU1sCx8XFUUNDgyyNa7FYaPz48cxy5s6dq7i4bo4YMUJtQb2o6tdO1q9fj/T0dFny2rlzp+D6okWLFslShhSMHj06bGVJgWoCp6enY8OGDbLk1dLSgpdfflkwPCsrSzBMbtjt9rCVJQVh/ZqHJ15//XUkJCT0H7EfEBE2bdokOsfKZDIF9Z5Kcq1xkgq73Y6ffvop4HKURtivCzk5OWS3273uQH3vSH29TEI4f/58v2/J2bhxI/Oul7WPZYvUtOXl5apfcxkM80Wf56mqqkpUQJYLkRVut9tp5syZ/ZbpOXmA5eYUs8Mznlhai8VCU6ZMUVtM9QVetmwZU0RWw7Ia03P7iy++kFzuQw891DtbUkxg33BfstJarVZatmyZ2kKqL3BCQgI1NjYye4OQ4EICd3V1UUZGRkDlz5w5ky5evMgUTahcMdrtdjp16hTl5OSoLaIgw3qT9cILL2DEiBGCC7E9QT43OL7bJSUlqK+vD6j8b775BpMmTcLEiRNhNBphMBgCq4AHOjs7ceHCBdTV1QWdR7gQliMpMzOTTCaT6KmP1aNZcX/99ddIm9moJsNT0P79+0kuFBYWqt1okUTlC3G/4lcOnDp1SnAazgBVEFin0wX0il8x2Gw2mjZtmtoNFlFU/CZr+fLlmDJliix57dmzB2fPnpUlLy/wBnCc/F5bctgAssmebyBQdPlodHQ0fv75Z9xxxx0h59XZ2YmxY8fi2rVrMlgGABwSx6zCoAnPISohC1DikzvkgL27Cebm0zD9shddjYcBCu8HvRXtwQUFBbKICwCvvvqqjOICyf+yBbdN/C+AAziC/0pp97bnL/zjiKblAV18OuKz0hGftQTW1h/QcnIFrNf/V7Z69AdFe3BZWRnuv//+kPOpra3FXXfdBYvFIoNVgD4hA3cs+hngdLLkFwjI3oXmEw+ju/FIWMpTbLgwPj4eubm5suS1fv162cQFgJhhM8B5iMuhr4N6/ofAft/wQNLyujikzdoPQ8rkUKogGYoJnJ2djdjYWHAc1+uBcv/3pVjY8ePH8dVXX8lsHQdwHDjXr5sc57ntEsUnHidDWl4XhyH/ujssZxDFrsFjxozx2hYbVxVyU1qtVhQVFQmmS0pKQmFhIWbMmIHU1FS0traisrISn332Ga5fvy6YznytAuSwAzwPgPO4Rjkvtq5DDsSR8xrmMs/93/lLIaWNGjwJcXfMQ9dvch+83lCsBw8dOtRrmxj+5/7C3nvvPVRXVzPDHn74YdTV1eHtt9/G4sWLMWvWLBQUFODNN99EbW0tCgsLBcuz3fw/dFx6AyDX6dPnF+T6TwCIwBHB7Vrp2xd62tj0eYI2ygXFBI6KiuoVjiWgmOCA+DScxx9/HHv37sXgwYOZ4UlJSdizZw+ee+45wfzbvn8RnTXvOTdcvcypg7P1nT3UGUZwbhNHzh7LedyZhpA2KlH5qUSKCSz0BnVfYYUOgk2bNjFPsyNHjsS7774LnucF03IcB57nUVJSInKKd6D19N9w48pOEPU1vudp1+0O8qmBh1DUFyeYtA7lnSCKXYN///13AN6NTwLvcQa8r8MXLlzAhx9+yMx327ZtiIvz/ryx2FBjcXExOI4TePU/ofX03wAQEsf+h6sz+lxVPRTrfRwWPPkElrannX35kROKCXzp0iXmfl/BWeFFRUWw2fyP7pkzZ6KgoEA0rS84jkNxcTEAiIj8NECERON/OtOgz3lBHAeQt3Ce3gOOI8/ggNKa6g8w7JEXijk6dDodmpqakJKSElC6AwcO9Irom9/Zs2cxeXJwz48OhwPPP/883njjDYEYHFLuftspMue+G/Z2Zvmn6IsjtF8obfdvh9D0938LoAbBQQdgsxIZExGmT5+OcePGSU7T3d2NBQsWoL293S9s1apVWLVqVdD2cByH/Px8mEwmfPvtt+zyG49BF5OK6NRpfc/n7vQMQiDMcz8r3NZRg6b/WQCyKf+lF8UEBoCUlBTMmyf9UWDbtm04ePCg3/7k5GQcPHgQ8fHxIdnjFrmrq0tE5DLoYlJhSJ3mckzA3xftu48FAT+2teMKrpXPhqO7KaS6SIWiAl+/fh3PPPOMpMnjjY2NePTRR2G1Wv3CXnvtNeTl5cliE8dxyMvL61/k6BQYhvyl1zPVl4H3r9A4A8uv2dPxE66VzYa9+58y1EQaFBW4ra0NCxcu9HN6sPD000/j3LlzfvuNRiM+/vhj8Ly8T3T5+fno7u7GqVOnmOHdvztFjk79S9/plfNwbLi2IbbtwZ72y7hWPhv2bvlGxKRAUYEBIDExEfn5+aJxqqqqsHbtWmbYnj17MHbsWCVMQ15eHsxms6jIfPRgRA+Zzj4d97oe/fd7/va0V+NaWR7s5vCcln1NUWy4EHC6LOvr6wU/HulwOHDPPffgzJkzfmHz5s3DoUOHlDQPALBx40Zs3bpVIJTD4OlvYtC4Z4LKu6ftIv5Zng+HWZ13Tiveg00mE0aNGoXs7Gxm+KeffoodO3b47TcYDCgtLQ34MSsY5OXlwWKx4OTJk8zw7t/LwUcnI2aI8wulrDto3/8A0NN2wSXuHwpYLQ2KCwwANTU1WL16NXQ6nddQYGdnJxYuXIibN2/6pVm7di2WLl0a0lCjlHA3Z8+e3Y/IZeANyYgeMt2Zxj1sKDBcaL1+HtfK8+GwqPtFNR2ATRC/4Q8ZLS0tyMzM9HNSbN68GWVlZX7x4+LicODAgV6XZDBDjULhQnHdIlutVtGeDI5HzND7en3PHrkBruFC87UKNP39ATgsrYJlhwkOIEwfxho+fDj99ttvvVNgv/vuO8G34RQUFHhNlxWbUy1lhaBQOqHFZy+++KJoXaLT7qGheYcp43EzZT5BlPnvRBlP2GnEgguUOGYlgRNfzhpGWoAwftouJSWFVq5cSY899hjFxsYKxispKZG0ulBIUClpxQSWIjIA4vQJZEieSIbUqaSLZb94TWV2Ahr8OOXevXtFBQ11ZaLU1YUR8B7K/vgHD0Bzn742m82SPg3rBus6LDWtL4ioN/727dsVewYPE7p4ADfUtsIXV65cYe4nCUONQugvjBUeExODzZs3i1iqedwAgEqofyrx4oQJE2RbrBYqzGYz3Xbbbaq3SZCs5AFo7tPXly5dwvHjx9U2A4Bz+U1OTo7aZgSLFh7AVbWtYGHNmjXo7OxU2wwAQGZmptomBIurPIAGta1goaamBosXL2Z6ucINvV6114mFigYeQK3aVgihvLwc9957L86cOdN7I6QGr17V5ElOCmoBwAj1bwZEyXEcPfDAA2F5YyyL6enpqrdBkDQCgAFAhwaMkcTc3Fw6evQo2e32sIhbWVmpep2DZIdLWwBAuQYMCoiTJ0+mffv2UU9Pj6ICz5kzR/W6Bslyt7g8gCINGBQUR48eTR988AF1d3czn2ODfZ52OBz00UcfqV6/EFjk0hY8gCwNGBQSR4wYQcXFxXTjxo2ARBTaPnLkCBkMBtXrFQKz4LE0iQdQoQGjQubgwYPppZde6v3oZKDDhUREhw4dEhzKjBBWgLHubIkGDJON8fHx9Oyzz1JDQwNTVCGBS0tLI11ccmnpBz2Aag0YJyujoqLoiSeeoMuXL4sOF/b09FBxcXEkfIuwP1ZDZM1ZgQYMVIQ6nY4WLFhApaWl1NLSQna7nWw2G9XW1tKOHTvozjvvVN1Gmei/sMsDPIATGjBSccbGxlJUVJTqdsjME/C59nK+OwCMAfA9gDgMIJLQBWAKgH947tTBf0Zlq4sPhMeuAciENQD+mxXA+9C9bzfUP+UMUBp3M/Tz/O3d8GQMgGMaMH6A4jzm0sr3UitptV4CBkTWMo+5NAJCeKFODAZO11rkbpc2soAHsBqASQMV+7PT5NJCkVdgGfEneU7WKE+4NAgIvjdXUliAW9CtqWFWu9o8GK2CSsTD6e9cgltkFEqjrHC1sV5MQDGdPJ0cPJzLDYXO7WJhGQAWAPgrgLsBDBKINwBx3ABQBedsjFIA9XAtAUWfPu7/bvjq4hVf6rpgz8xZhTk8fg1wDjaPBzAKwEgAtwNIBZAEp/hxcN4BGtB3dN6KcACwAbACMMPpTrwBoB3OBQdX4Zy2XAvgMoBfXHH7g6CgvhH/H3k2yZY7G4i5AAAAAElFTkSuQmCC",wallet:(t=d(regeneratorRuntime.mark(function e(t){var o,u,l,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.BigNumber,u=t.networkName,l=t.resetWalletState,e.next=3,p({appName:n,rpcUrl:r,networkId:i,BigNumber:o,networkName:u,resetWalletState:l,customNetwork:a});case 3:return e.abrupt("return",{provider:s=e.sent,interface:{name:"Keystone",connect:s.enable,disconnect:s.disconnect,address:{get:function(){var e=d(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s.getPrimaryAddress());case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},network:{get:function(){var e=d(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i);case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},balance:{get:function(){var e=d(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.getPrimaryAddress(),e.abrupt("return",t&&s.getBalance(t));case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}}});case 5:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),type:"hardware",desktop:!0,mobile:!0,osExclusions:[],preferred:o}}},J6FE:function(e,t,n){"use strict";e.exports=n("mX8b")},KtHe:function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("Fa/S")),o=r(n("cfS2")),a=r(n("9lTW")),u=n("jQzp"),l=n("oFZa"),s=r(n("f+7B")),c=n("nMOx");class f{constructor(e=new i.default,t="bytes"){this.fountainDecoder=e,this.type=t,a.default(u.isURType(t),"Invalid UR type"),this.expected_type=""}static decodeBody(t,n){const r=o.default.decode(n,o.default.STYLES.MINIMAL);return new s.default(e.from(r,"hex"),t)}validatePart(e){return this.expected_type?this.expected_type===e:!!u.isURType(e)&&(this.expected_type=e,!0)}static decode(e){const[t,n]=this.parse(e);if(0===n.length)throw new l.InvalidPathLengthError;return f.decodeBody(t,n[0])}static parse(e){const t=e.toLowerCase();if("ur:"!==t.slice(0,3))throw new l.InvalidSchemeError;const n=t.slice(3).split("/"),r=n[0];if(n.length<2)throw new l.InvalidPathLengthError;if(!u.isURType(r))throw new l.InvalidTypeError;return[r,n.slice(1)]}static parseSequenceComponent(e){const t=e.split("-");if(2!==t.length)throw new l.InvalidSequenceComponentError;const n=u.toUint32(Number(t[0])),r=Number(t[1]);if(n<1||r<1)throw new l.InvalidSequenceComponentError;return[n,r]}receivePart(e){if(void 0!==this.result)return!1;const[t,n]=f.parse(e);if(!this.validatePart(t))return!1;if(1===n.length)return this.result=f.decodeBody(t,n[0]),!0;if(2!==n.length)throw new l.InvalidPathLengthError;const[r,i]=n,[a,u]=f.parseSequenceComponent(r),d=o.default.decode(i,o.default.STYLES.MINIMAL),p=c.FountainEncoderPart.fromCBOR(d);return a===p.seqNum&&u===p.seqLength&&!!this.fountainDecoder.receivePart(p)&&(this.fountainDecoder.isSuccess()?this.result=new s.default(this.fountainDecoder.resultMessage(),t):this.fountainDecoder.isFailure()&&(this.error=new l.InvalidSchemeError),!0)}resultUR(){return this.result?this.result:new s.default(e.from([]))}isComplete(){return this.result&&this.result.cbor.length>0}isSuccess(){return!this.error&&this.isComplete()}isError(){return void 0!==this.error}resultError(){return this.error?this.error.message:""}expectedPartCount(){return this.fountainDecoder.expectedPartCount()}expectedPartIndexes(){return this.fountainDecoder.getExpectedPartIndexes()}receivedPartIndexes(){return this.fountainDecoder.getReceivedPartIndexes()}lastPartIndexes(){return this.fountainDecoder.getLastPartIndexes()}estimatedPercentComplete(){return this.fountainDecoder.estimatedPercentComplete()}getProgress(){return this.fountainDecoder.getProgress()}}t.default=f}).call(this,n("tjlA").Buffer)},MExF:function(e,t,n){"use strict";(function(r){var i,o;void 0===(o="function"==typeof(i=function(){const{DataItem:e}=n("SJn1");var t=function(){function t(e){this.$hex=e}t.prototype={length:function(){return this.$hex.length/2},toString:function(e){if(!e||"hex"===e||16===e)return this.$hex;if("utf-8"===e){for(var t="",n=0;n<this.$hex.length;n+=2)t+="%"+this.$hex.substring(n,n+2);return decodeURIComponent(t)}if("latin"===e){for(t=[],n=0;n<this.$hex.length;n+=2)t.push(parseInt(this.$hex.substring(n,n+2),16));return String.fromCharCode.apply(String,t)}throw new Error("Unrecognised format: "+e)}},t.fromLatinString=function(e){for(var n="",r=0;r<e.length;r++){var i=e.charCodeAt(r).toString(16);1===i.length&&(i="0"+i),n+=i}return new t(n)},t.fromUtf8String=function(e){for(var n=encodeURIComponent(e),r="",i=0;i<n.length;i++)if("%"===n.charAt(i))r+=n.substring(i+1,i+3),i+=2;else{var o=n.charCodeAt(i).toString(16);o.length<2&&(o="0"+o),r+=o}return new t(r)};var n=[],i={},o=function(e){return function(){throw new Error(e+" not implemented")}};function a(){}function u(){}function l(e,t){var n=e.value;return n<24?n:24==n?t.readByte():25==n?t.readUint16():26==n?t.readUint32():27==n?t.readUint64():31==n?null:void o("Additional info: "+n)()}function s(e,t,n){var r=e<<5;t<24?n.writeByte(r|t):t<256?(n.writeByte(24|r),n.writeByte(t)):t<65536?(n.writeByte(25|r),n.writeUint16(t)):t<4294967296?(n.writeByte(26|r),n.writeUint32(t)):(n.writeByte(27|r),n.writeUint64(t))}a.prototype={peekByte:o("peekByte"),readByte:o("readByte"),readChunk:o("readChunk"),readFloat16:function(){var e=this.readUint16(),t=(32767&e)>>10,n=1023&e,r=32768&e;if(31===t)return 0===n?r?-1/0:1/0:NaN;var i=t?Math.pow(2,t-25)*(1024+n):Math.pow(2,-24)*n;return r?-i:i},readFloat32:function(){var e=this.readUint32(),t=(2147483647&e)>>23,n=8388607&e,r=2147483648&e;if(255===t)return 0===n?r?-1/0:1/0:NaN;var i=t?Math.pow(2,t-23-127)*(8388608+n):Math.pow(2,-149)*n;return r?-i:i},readFloat64:function(){var e=this.readUint32(),t=e>>20&2047,n=4294967296*(1048575&e)+this.readUint32(),r=2147483648&e;if(2047===t)return 0===n?r?-1/0:1/0:NaN;var i=t?Math.pow(2,t-52-1023)*(4503599627370496+n):Math.pow(2,-1074)*n;return r?-i:i},readUint16:function(){return 256*this.readByte()+this.readByte()},readUint32:function(){return 65536*this.readUint16()+this.readUint16()},readUint64:function(){return 4294967296*this.readUint32()+this.readUint32()}},u.prototype={writeByte:o("writeByte"),result:o("result"),writeFloat16:o("writeFloat16"),writeFloat32:o("writeFloat32"),writeFloat64:o("writeFloat64"),writeUint16:function(e){this.writeByte(e>>8&255),this.writeByte(255&e)},writeUint32:function(e){this.writeUint16(e>>16&65535),this.writeUint16(65535&e)},writeUint64:function(e){if(e>=9007199254740992||e<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+e+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(e/4294967296)),this.writeUint32(e%4294967296)},writeString:o("writeString"),canWriteBinary:function(e){return!1},writeBinary:o("writeChunk")};var c=new Error;function f(e){var t=function(e){var t=e.readByte();return{type:t>>5,value:31&t}}(e);switch(t.type){case 0:return l(t,e);case 1:return-1-l(t,e);case 2:return e.readChunk(l(t,e));case 3:return e.readChunk(l(t,e)).toString("utf-8");case 4:case 5:var n=l(t,e),r=[];if(null!==n){5===t.type&&(n*=2);for(var o=0;o<n;o++)r[o]=f(e)}else for(var a;(a=f(e))!==c;)r.push(a);if(5===t.type){var u={};for(o=0;o<r.length;o+=2)u[r[o]]=r[o+1];return u}return r;case 6:var s=l(t,e),d=i[s];return r=f(e),d?d(r):r;case 7:if(25===t.value)return e.readFloat16();if(26===t.value)return e.readFloat32();if(27===t.value)return e.readFloat64();switch(l(t,e)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return c;default:throw new Error("Unknown fixed value: "+t.value)}default:throw new Error("Unsupported header: "+JSON.stringify(t))}throw new Error("not implemented yet")}function d(e,t){for(var r=0;r<n.length;r++){var i=n[r].fn(e);if(void 0!==i)return s(6,n[r].tag,t),d(i,t)}if(e&&"function"==typeof e.toCBOR&&(e=e.toCBOR()),!1===e)s(7,20,t);else if(!0===e)s(7,21,t);else if(null===e)s(7,22,t);else if(void 0===e)s(7,23,t);else if("number"==typeof e)Math.floor(e)===e&&e<9007199254740992&&e>-9007199254740992?e<0?s(1,-1-e,t):s(0,e,t):(function(e,t,n){n.writeByte(251)}(0,0,t),t.writeFloat64(e));else if("string"==typeof e)t.writeString(e,function(e){s(3,e,t)});else if(t.canWriteBinary(e))t.writeBinary(e,function(e){s(2,e,t)});else{if("object"!=typeof e)throw new Error("CBOR encoding not supported: "+e);if(g.config.useToJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),Array.isArray(e))for(s(4,e.length,t),r=0;r<e.length;r++)d(e[r],t);else{var o=Object.keys(e);for(s(5,o.length,t),r=0;r<o.length;r++){const n=parseInt(o[r]);isNaN(n)?(d(o[r],t),d(e[o[r]],t)):(d(n,t),d(e[o[r]],t))}}}}var p=[],h=[],g={config:{useToJSON:!0},addWriter:function(e,t){h.push("string"==typeof e?function(n){if(e===n)return t(n)}:e)},addReader:function(e,t){p.push("string"==typeof e?function(n,r){if(e===r)return t(n,r)}:e)},encode:function(e,t){for(var n=0;n<h.length;n++){var r=(0,h[n])(t);if(r)return d(e,r),r.result()}throw new Error("Unsupported output format: "+t)},encodeDataItem:function(e,t){for(var n=0;n<h.length;n++){var r=(0,h[n])(t);if(r)return void 0!==e.getTag()?(d(e,r),r.result()):(d(e.getData(),r),r.result())}throw new Error("Unsupported output format: "+t)},decode:function(e,t){for(var n=0;n<p.length;n++){var r=(0,p[n])(e,t);if(r)return f(r)}throw new Error("Unsupported input format: "+t)},decodeToDataItem:function(t,n){for(var r=0;r<p.length;r++){var i=(0,p[r])(t,n);if(i){const t=f(i);return t instanceof e?t:new e(t)}}throw new Error("Unsupported input format: "+n)},addSemanticEncode:function(e,t){if("number"!=typeof e||e%1!=0||e<0)throw new Error("Tag must be a positive integer");return n.push({tag:e,fn:t}),this},addSemanticDecode:function(e,t){if("number"!=typeof e||e%1!=0||e<0)throw new Error("Tag must be a positive integer");return i[e]=t,this},Reader:a,Writer:u};function m(e){this.buffer=e,this.pos=0}function y(e){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=r.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=e}function v(e){this.hex=e,this.pos=0}function b(e){this.$hex="",this.finalFormat=e||"hex"}return(m.prototype=Object.create(a.prototype)).peekByte=function(){return this.buffer[this.pos]},m.prototype.readByte=function(){return this.buffer[this.pos++]},m.prototype.readUint16=function(){var e=this.buffer.readUInt16BE(this.pos);return this.pos+=2,e},m.prototype.readUint32=function(){var e=this.buffer.readUInt32BE(this.pos);return this.pos+=4,e},m.prototype.readFloat32=function(){var e=this.buffer.readFloatBE(this.pos);return this.pos+=4,e},m.prototype.readFloat64=function(){var e=this.buffer.readDoubleBE(this.pos);return this.pos+=8,e},m.prototype.readChunk=function(e){var t=r.alloc(e);return this.buffer.copy(t,0,this.pos,this.pos+=e),t},(y.prototype=Object.create(u.prototype)).writeByte=function(e){this.latestBuffer[this.latestBufferOffset++]=e,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=r.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},y.prototype.writeFloat32=function(e){var t=r.alloc(4);t.writeFloatBE(e,0),this.writeBuffer(t)},y.prototype.writeFloat64=function(e){var t=r.alloc(8);t.writeDoubleBE(e,0),this.writeBuffer(t)},y.prototype.writeString=function(e,t){var n=r.from(e,"utf-8");t(n.length),this.writeBuffer(n)},y.prototype.canWriteBinary=function(e){return e instanceof r},y.prototype.writeBinary=function(e,t){t(e.length),this.writeBuffer(e)},y.prototype.writeBuffer=function(e){if(!(e instanceof r))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=e.length?(e.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=e.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=r.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(e),this.latestBuffer=r.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(e),this.byteLength+=e.length},y.prototype.result=function(){for(var e=r.alloc(this.byteLength),t=0,n=0;n<this.completeBuffers.length;n++){var i=this.completeBuffers[n];i.copy(e,t,0,i.length),t+=i.length}return this.latestBufferOffset&&this.latestBuffer.copy(e,t,0,this.latestBufferOffset),this.stringFormat?e.toString(this.stringFormat):e},"function"==typeof r&&(g.addReader(function(e,t){return e instanceof r?new m(e):"hex"===t||"base64"===t?new m(r.from(e,t)):void 0}),g.addWriter(function(e){return e&&"buffer"!==e?"hex"===e||"base64"===e?new y(e):void 0:new y})),(v.prototype=Object.create(a.prototype)).peekByte=function(){var e=this.hex.substring(this.pos,2);return parseInt(e,16)},v.prototype.readByte=function(){var e=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(e,16)},v.prototype.readChunk=function(e){var n=this.hex.substring(this.pos,this.pos+2*e);return this.pos+=2*e,"function"==typeof r?r.from(n,"hex"):new t(n)},(b.prototype=Object.create(u.prototype)).writeByte=function(e){if(e<0||e>255)throw new Error("Byte value out of range: "+e);var t=e.toString(16);1==t.length&&(t="0"+t),this.$hex+=t},b.prototype.canWriteBinary=function(e){return e instanceof t||"function"==typeof r&&e instanceof r},b.prototype.writeBinary=function(e,n){if(e instanceof t)n(e.length()),this.$hex+=e.$hex;else{if(!("function"==typeof r&&e instanceof r))throw new TypeError("HexWriter only accepts BinaryHex or Buffers");n(e.length),this.$hex+=e.toString("hex")}},b.prototype.result=function(){return"buffer"===this.finalFormat&&"function"==typeof r?r.from(this.$hex,"hex"):new t(this.$hex).toString(this.finalFormat)},b.prototype.writeString=function(e,n){var r=t.fromUtf8String(e);n(r.length()),this.$hex+=r.$hex},g.addReader(function(e,n){return e instanceof t||e.$hex?new v(e.$hex):"hex"===n?new v(e):void 0}),g.addWriter(function(e){if("hex"===e)return new b}),g}();return t.addSemanticEncode(0,function(e){if(e instanceof Date)return e.toISOString()}).addSemanticDecode(0,function(e){return new Date(e)}).addSemanticDecode(1,function(e){return new Date(e)}),t})?i.apply(t,[]):i)||(e.exports=o)}).call(this,n("tjlA").Buffer)},NC0a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiKey=void 0;const r=n("Ohdr"),i=n("VBov"),o=n("SJn1"),a=n("b+ga"),u=n("pmUK");var l;!function(e){e[e.threshold=1]="threshold",e[e.keys=2]="keys"}(l||(l={}));class s extends a.RegistryItem{constructor(e,t,n){super(),this.threshold=e,this.ecKeys=t,this.hdKeys=n,this.getThreshold=()=>this.threshold,this.getEcKeys=()=>this.ecKeys,this.getHdKeys=()=>this.hdKeys,this.toDataItem=()=>{const e={};e[l.threshold]=this.threshold;const t=[...this.ecKeys,...this.hdKeys].map(e=>{const t=e.toDataItem();return t.setTag(e.getRegistryType().getTag()),t});return e[l.keys]=t,new o.DataItem(e)}}}t.MultiKey=s,s.fromDataItem=e=>{const t=e.getData(),n=t[l.threshold],o=[],a=[];return t[l.keys].forEach(e=>{e.getTag()===u.RegistryTypes.CRYPTO_HDKEY.getTag()?a.push(i.CryptoHDKey.fromDataItem(e)):e.getTag()===u.RegistryTypes.CRYPTO_ECKEY.getTag()&&o.push(r.CryptoECKey.fromDataItem(e))}),new s(n,o,a)}},NCLm:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.URDecoder=t.UREncoder=t.UR=void 0;const i=r(n("f+7B"));t.UR=i.default;const o=r(n("gVWp"));t.UREncoder=o.default;const a=r(n("KtHe"));t.URDecoder=a.default},Ohdr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CryptoECKey=void 0;const r=n("vfKm"),i=n("b+ga"),o=n("pmUK");var a;!function(e){e[e.curve=1]="curve",e[e.private=2]="private",e[e.data=3]="data"}(a||(a={}));class u extends i.RegistryItem{constructor(e){super(),this.getCurve=()=>this.curve||0,this.isPrivateKey=()=>this.privateKey||!1,this.getData=()=>this.data,this.getRegistryType=()=>o.RegistryTypes.CRYPTO_ECKEY,this.toDataItem=()=>{const e={};return this.curve&&(e[a.curve]=this.curve),void 0!==this.privateKey&&(e[a.private]=this.privateKey),e[a.data]=this.data,new r.DataItem(e)},this.data=e.data,this.curve=e.curve,this.privateKey=e.privateKey}}t.CryptoECKey=u,u.fromDataItem=e=>{const t=e.getData(),n=t[a.curve],r=t[a.private],i=t[a.data];if(!i)throw new Error(`#[ur-registry][CryptoECKey][fn.fromDataItem]: decoded [dataItem][#data.data] is undefined: ${e}`);return new u({data:i,curve:n,privateKey:r})},u.fromCBOR=e=>{const t=r.decodeToDataItem(e);return u.fromDataItem(t)}},SJn1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataItem=void 0,t.DataItem=class{constructor(e,t){this.setTag=e=>{this.tag=e},this.clearTag=()=>{this.tag=void 0},this.getTag=()=>this.tag,this.getData=()=>this.data,this.data=e,this.tag=t}}},UVvz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("mDJW"),i=n("pmUK"),o=n("mDrP"),a=Object.values(i.RegistryTypes).filter(e=>!!e.getTag()).map(e=>e.getTag()),u=Object.values(o.ScriptExpressions).map(e=>e.getTag());r.patchTags(a.concat(u))},VBov:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.CryptoHDKey=void 0;const r=n("b3gk"),i=n("ubyp"),o=n("AiOm"),a=n("vfKm"),u=n("b+ga"),l=n("pmUK");var s;!function(e){e[e.is_master=1]="is_master",e[e.is_private=2]="is_private",e[e.key_data=3]="key_data",e[e.chain_code=4]="chain_code",e[e.use_info=5]="use_info",e[e.origin=6]="origin",e[e.children=7]="children",e[e.parent_fingerprint=8]="parent_fingerprint",e[e.name=9]="name",e[e.note=10]="note"}(s||(s={}));class c extends u.RegistryItem{constructor(t){super(),this.getKey=()=>this.key,this.getChainCode=()=>this.chainCode,this.isMaster=()=>this.master,this.isPrivateKey=()=>!!this.privateKey,this.getUseInfo=()=>this.useInfo,this.getOrigin=()=>this.origin,this.getChildren=()=>this.children,this.getParentFingerprint=()=>this.parentFingerprint,this.getName=()=>this.name,this.getNote=()=>this.note,this.getBip32Key=()=>{let t,n,i,o=e.alloc(4).fill(0);if(this.isMaster())t=e.from("0488ADE4","hex"),n=0,i=0;else{n=this.getOrigin().getComponents().length||this.getOrigin().getDepth();const r=this.getOrigin().getComponents(),a=r[r.length-1];a&&(i=a.isHardened()?a.getIndex()+2147483648:a.getIndex(),o=this.getParentFingerprint()),t=this.isPrivateKey()?e.from("0488ADE4","hex"):e.from("0488B21E","hex")}const a=e.alloc(1);a.writeUInt8(n,0);const u=e.alloc(4);u.writeUInt32BE(i,0);const l=this.getChainCode(),s=this.getKey();return r.encode(e.concat([t,a,o,u,l,s]))},this.getRegistryType=()=>l.RegistryTypes.CRYPTO_HDKEY,this.setupMasterKey=e=>{this.master=!0,this.key=e.key,this.chainCode=e.chainCode},this.setupDeriveKey=e=>{this.master=!1,this.privateKey=e.isPrivateKey,this.key=e.key,this.chainCode=e.chainCode,this.useInfo=e.useInfo,this.origin=e.origin,this.children=e.children,this.parentFingerprint=e.parentFingerprint,this.name=e.name,this.note=e.note},this.toDataItem=()=>{const e={};if(this.master)e[s.is_master]=!0,e[s.key_data]=this.key,e[s.chain_code]=this.chainCode;else{if(void 0!==this.privateKey&&(e[s.is_private]=this.privateKey),e[s.key_data]=this.key,this.chainCode&&(e[s.chain_code]=this.chainCode),this.useInfo){const t=this.useInfo.toDataItem();t.setTag(this.useInfo.getRegistryType().getTag()),e[s.use_info]=t}if(this.origin){const t=this.origin.toDataItem();t.setTag(this.origin.getRegistryType().getTag()),e[s.origin]=t}if(this.children){const t=this.children.toDataItem();t.setTag(this.children.getRegistryType().getTag()),e[s.children]=t}this.parentFingerprint&&(e[s.parent_fingerprint]=this.parentFingerprint.readUInt32BE(0)),void 0!==this.name&&(e[s.name]=this.name),void 0!==this.note&&(e[s.note]=this.note)}return new a.DataItem(e)},t.isMaster?this.setupMasterKey(t):this.setupDeriveKey(t)}}t.CryptoHDKey=c,c.fromDataItem=t=>{const n=t.getData(),r=!!n[s.is_master],a=n[s.is_private],u=n[s.key_data],l=n[s.chain_code],f=n[s.use_info]?i.CryptoCoinInfo.fromDataItem(n[s.use_info]):void 0,d=n[s.origin]?o.CryptoKeypath.fromDataItem(n[s.origin]):void 0,p=n[s.children]?o.CryptoKeypath.fromDataItem(n[s.children]):void 0;let h,g=n[s.parent_fingerprint];return g&&(h=e.alloc(4),h.writeUInt32BE(g,0)),new c({isMaster:r,isPrivateKey:a,key:u,chainCode:l,useInfo:f,origin:d,children:p,parentFingerprint:h,name:n[s.name],note:n[s.note]})},c.fromCBOR=e=>{const t=a.decodeToDataItem(e);return c.fromDataItem(t)}}).call(this,n("tjlA").Buffer)},VFUf:function(e,t,n){"use strict";e.exports=n("WRdg")},Vm01:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n("qoC6")},WRdg:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r,i=n("ZM2+"),o=n("z3bg"),a=(r=n("vUa2"))&&"object"==typeof r&&"default"in r?r.default:r,u=n("eIIK");const{RegistryType:l}=i.extend,s={ETH_SIGN_REQUEST:new l("eth-sign-request",401),ETH_SIGNATAURE:new l("eth-signature",402)},{decodeToDataItem:c,RegistryTypes:f}=i.extend;var d,p;!function(e){e[e.requestId=1]="requestId",e[e.signData=2]="signData",e[e.dataType=3]="dataType",e[e.chainId=4]="chainId",e[e.derivationPath=5]="derivationPath",e[e.address=6]="address"}(d||(d={})),(p=t.DataType||(t.DataType={}))[p.transaction=1]="transaction",p[p.typedData=2]="typedData",p[p.personalMessage=3]="personalMessage",p[p.typedTransaction=4]="typedTransaction";class h extends i.RegistryItem{constructor(e){super(),this.getRegistryType=()=>s.ETH_SIGN_REQUEST,this.setupData=e=>{this.requestId=e.requestId,this.signData=e.signData,this.dataType=e.dataType,this.chainId=e.chainId,this.derivationPath=e.derivationPath,this.address=e.address},this.getRequestId=()=>this.requestId,this.getSignData=()=>this.signData,this.getDataType=()=>this.dataType,this.getChainId=()=>this.chainId,this.getDerivationPath=()=>this.derivationPath.getPath(),this.getSignRequestAddress=()=>this.address,this.toDataItem=()=>{const e={};this.requestId&&(e[d.requestId]=new i.DataItem(this.requestId,f.UUID.getTag())),this.address&&(e[d.address]=this.address),this.chainId&&(e[d.chainId]=this.chainId),e[d.signData]=this.signData,e[d.dataType]=this.dataType;const t=this.derivationPath.toDataItem();return t.setTag(this.derivationPath.getRegistryType().getTag()),e[d.derivationPath]=t,new i.DataItem(e)},this.setupData(e)}static constructETHRequest(t,n,r,a,u,l,s){const c=r.replace(/[m|M]\//,"").split("/"),f=new i.CryptoKeypath(c.map(e=>{const t=parseInt(e.replace("'",""));let n=!1;return e.endsWith("'")&&(n=!0),new i.PathComponent({index:t,hardened:n})}),e.from(a,"hex"));return new h({requestId:u?e.from(o.parse(u)):void 0,signData:t,dataType:n,derivationPath:f,chainId:l,address:s?e.from(s.replace("0x",""),"hex"):void 0})}}h.fromDataItem=e=>{const t=e.getData(),n=t[d.signData],r=t[d.dataType],o=i.CryptoKeypath.fromDataItem(t[d.derivationPath]),a=t[d.chainId]?t[d.chainId]:void 0,u=t[d.address]?t[d.address]:void 0,l=t[d.requestId]?t[d.requestId].getData():void 0;return new h({requestId:l,signData:n,dataType:r,chainId:a,derivationPath:o,address:u})},h.fromCBOR=e=>{const t=c(e);return h.fromDataItem(t)};const{RegistryTypes:g,decodeToDataItem:m}=i.extend;var y;!function(e){e[e.requestId=1]="requestId",e[e.signature=2]="signature"}(y||(y={}));class v extends i.RegistryItem{constructor(e,t){super(),this.getRegistryType=()=>s.ETH_SIGNATAURE,this.getRequestId=()=>this.requestId,this.getSignature=()=>this.signature,this.toDataItem=()=>{const e={};return this.requestId&&(e[y.requestId]=new i.DataItem(this.requestId,g.UUID.getTag())),e[y.signature]=this.signature,new i.DataItem(e)},this.signature=e,this.requestId=t}}v.fromDataItem=e=>{const t=e.getData(),n=t[y.signature],r=t[y.requestId]?t[y.requestId].getData():void 0;return new v(n,r)},v.fromCBOR=e=>{const t=m(e);return v.fromDataItem(t)};const b=(e,t)=>{const n=a.fromExtendedKey(e).derive(t),r="0x"+u.publicToAddress(n.publicKey,!0).toString("hex");return u.toChecksumAddress(r)},{cbor:w}=i.extend;w.patchTags(Object.values(s).filter(e=>!!e.getTag()).map(e=>e.getTag())),Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),t.ETHSignature=v,t.EthSignRequest=h,t.findHDpatfromAddress=(e,t,n,r)=>{for(let i=0;i<n;i++){let n=b(t,"M/0/"+i);if(e.toLowerCase()==n.toLowerCase())return`${r}/0/${i}`}return null},t.generateAddressfromXpub=b}).call(this,n("tjlA").Buffer)},Xru3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},Y04X:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0});var o=n("gOmZ");Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return o.default}}),i(n("Xru3"),t)},ZFCF:function(e,t,n){"use strict";e.exports=n("7GRz")},"ZM2+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extend=t.PathComponent=t.ScriptExpressions=t.MultiKey=t.CryptoPSBT=t.CryptoOutput=t.CryptoECKey=t.CryptoCoinInfoNetwork=t.CryptoCoinInfoType=t.CryptoCoinInfo=t.CryptoKeypath=t.CryptoHDKey=t.CryptoAccount=t.Bytes=t.URRegistryDecoder=t.RegistryItem=t.DataItem=void 0,n("UVvz");const r=n("VBov");Object.defineProperty(t,"CryptoHDKey",{enumerable:!0,get:function(){return r.CryptoHDKey}});const i=n("AiOm");Object.defineProperty(t,"CryptoKeypath",{enumerable:!0,get:function(){return i.CryptoKeypath}});const o=n("ubyp");Object.defineProperty(t,"CryptoCoinInfo",{enumerable:!0,get:function(){return o.CryptoCoinInfo}}),Object.defineProperty(t,"CryptoCoinInfoType",{enumerable:!0,get:function(){return o.Type}}),Object.defineProperty(t,"CryptoCoinInfoNetwork",{enumerable:!0,get:function(){return o.Network}});const a=n("Ohdr");Object.defineProperty(t,"CryptoECKey",{enumerable:!0,get:function(){return a.CryptoECKey}});const u=n("aOWW");Object.defineProperty(t,"Bytes",{enumerable:!0,get:function(){return u.Bytes}});const l=n("eYaX");Object.defineProperty(t,"CryptoOutput",{enumerable:!0,get:function(){return l.CryptoOutput}});const s=n("GBR3");Object.defineProperty(t,"CryptoPSBT",{enumerable:!0,get:function(){return s.CryptoPSBT}});const c=n("jNvq");Object.defineProperty(t,"CryptoAccount",{enumerable:!0,get:function(){return c.CryptoAccount}});const f=n("lPzC");Object.defineProperty(t,"URRegistryDecoder",{enumerable:!0,get:function(){return f.URRegistryDecoder}});const d=n("NC0a");Object.defineProperty(t,"MultiKey",{enumerable:!0,get:function(){return d.MultiKey}});const p=n("mDrP");Object.defineProperty(t,"ScriptExpressions",{enumerable:!0,get:function(){return p.ScriptExpressions}});const h=n("jLbD");Object.defineProperty(t,"PathComponent",{enumerable:!0,get:function(){return h.PathComponent}});const g=n("pmUK"),m=n("vfKm");var y=n("vfKm");Object.defineProperty(t,"DataItem",{enumerable:!0,get:function(){return y.DataItem}});var v=n("b+ga");Object.defineProperty(t,"RegistryItem",{enumerable:!0,get:function(){return v.RegistryItem}});const b=n("mDJW"),w={URRegistryDecoder:f.URRegistryDecoder,Bytes:u.Bytes,CryptoAccount:c.CryptoAccount,CryptoHDKey:r.CryptoHDKey,CryptoKeypath:i.CryptoKeypath,CryptoCoinInfo:o.CryptoCoinInfo,CryptoCoinInfoType:o.Type,CryptoCoinInfoNetwork:o.Network,CryptoECKey:a.CryptoECKey,CryptoOutput:l.CryptoOutput,CryptoPSBT:s.CryptoPSBT,MultiKey:d.MultiKey,ScriptExpressions:p.ScriptExpressions,PathComponent:h.PathComponent};t.extend={RegistryTypes:g.RegistryTypes,RegistryType:g.RegistryType,decodeToDataItem:m.decodeToDataItem,encodeDataItem:m.encodeDataItem,cbor:{addReader:m.addReader,addSemanticDecode:m.addSemanticDecode,addSemanticEncode:m.addSemanticEncode,addWriter:m.addWriter,patchTags:b.patchTags}},t.default=w},aOWW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bytes=void 0;const r=n("vfKm"),i=n("b+ga"),o=n("pmUK");class a extends i.RegistryItem{constructor(e){super(),this.bytes=e,this.getRegistryType=()=>o.RegistryTypes.BYTES,this.getData=()=>this.bytes,this.toDataItem=()=>new r.DataItem(this.bytes)}}t.Bytes=a,a.fromDataItem=e=>{const t=e.getData();if(!t)throw new Error(`#[ur-registry][Bytes][fn.fromDataItem]: decoded [dataItem][#data] is undefined: ${e}`);return new a(t)},a.fromCBOR=e=>{const t=r.decodeToDataItem(e);return a.fromDataItem(t)}},"b+ga":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegistryItem=void 0;const r=n("NCLm"),i=n("vfKm");t.RegistryItem=class{constructor(){this.toCBOR=()=>{if(void 0===this.toDataItem())throw new Error(`#[ur-registry][RegistryItem][fn.toCBOR]: registry ${this.getRegistryType()}'s method toDataItem returns undefined`);return i.encodeDataItem(this.toDataItem())},this.toUR=()=>new r.UR(this.toCBOR(),this.getRegistryType().getType()),this.toUREncoder=(e,t,n)=>{const i=this.toUR();return new r.UREncoder(i,e,t,n)}}}},cfS2:function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("9lTW")),o=n("jQzp");let a=[];var u;!function(e){e.STANDARD="standard",e.URI="uri",e.MINIMAL="minimal"}(u||(u={}));const l=e=>"ableacidalsoapexaquaarchatomauntawayaxisbackbaldbarnbeltbetabiasbluebodybragbrewbulbbuzzcalmcashcatschefcityclawcodecolacookcostcruxcurlcuspcyandarkdatadaysdelidicedietdoordowndrawdropdrumdulldutyeacheasyechoedgeepicevenexamexiteyesfactfairfernfigsfilmfishfizzflapflewfluxfoxyfreefrogfuelfundgalagamegeargemsgiftgirlglowgoodgraygrimgurugushgyrohalfhanghardhawkheathelphighhillholyhopehornhutsicedideaidleinchinkyintoirisironitemjadejazzjoinjoltjowljudojugsjumpjunkjurykeepkenokeptkeyskickkilnkingkitekiwiknoblamblavalazyleaflegsliarlimplionlistlogoloudloveluaulucklungmainmanymathmazememomenumeowmildmintmissmonknailnavyneednewsnextnoonnotenumbobeyoboeomitonyxopenovalowlspaidpartpeckplaypluspoempoolposepuffpumapurrquadquizraceramprealredorichroadrockroofrubyruinrunsrustsafesagascarsetssilkskewslotsoapsolosongstubsurfswantacotasktaxitenttiedtimetinytoiltombtoystriptunatwinuglyundouniturgeuservastveryvetovialvibeviewvisavoidvowswallwandwarmwaspwavewaxywebswhatwhenwhizwolfworkyankyawnyellyogayurtzapszerozestzinczonezoom".slice(4*e,4*e+4),s=t=>`${t}${o.getCRCHex(e.from(t,"hex"))}`,c=(t,n)=>{const r=s(t);return e.from(r,"hex").reduce((e,t)=>[...e,l(t)],[]).join(n)},f=(t,n,r)=>{const u=(4==r?t.split(n):o.partition(t,2)).map(t=>((t,n)=>{if(i.default(t.length===n,"Invalid Bytewords: word.length does not match wordLength provided"),0===a.length){a=[...new Array(676)].map(()=>-1);for(let e=0;e<256;e++){const t=l(e);let n=t[0].charCodeAt(0)-"a".charCodeAt(0),r=t[3].charCodeAt(0)-"a".charCodeAt(0);a[26*r+n]=e}}let r=t[0].toLowerCase().charCodeAt(0)-"a".charCodeAt(0),o=t[4==n?3:1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);i.default(0<=r&&r<26&&0<=o&&o<26,"Invalid Bytewords: invalid word");let u=a[26*o+r];if(i.default(-1!==u,"Invalid Bytewords: value not in lookup table"),4==n){const e=l(u);let n=t[1].toLowerCase(),r=t[2].toLowerCase();i.default(n===e[1]&&r===e[2],"Invalid Bytewords: invalid middle letters of word")}return e.from([u]).toString("hex")})(t,r)).join("");i.default(u.length>=5,"Invalid Bytewords: invalid decoded string length");const[s,c]=o.split(e.from(u,"hex"),4),f=o.getCRCHex(s);return i.default(f===c.toString("hex"),"Invalid Checksum"),s.toString("hex")};t.default={decode:(e,t=u.MINIMAL)=>{switch(t){case u.STANDARD:return f(e," ",4);case u.URI:return f(e,"-",4);case u.MINIMAL:return f(e,"",2);default:throw new Error(`Invalid style ${t}`)}},encode:(t,n=u.MINIMAL)=>{switch(n){case u.STANDARD:return c(t," ");case u.URI:return c(t,"-");case u.MINIMAL:return(t=>{const n=s(t);return e.from(n,"hex").reduce((e,t)=>e+(e=>{const t=l(e);return`${t[0]}${t[3]}`})(t),"")})(t);default:throw new Error(`Invalid style ${n}`)}},STYLES:u}}).call(this,n("tjlA").Buffer)},eYaX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CryptoOutput=void 0;const r=n("Ohdr"),i=n("VBov"),o=n("vfKm"),a=n("NC0a"),u=n("b+ga"),l=n("pmUK"),s=n("mDrP");class c extends u.RegistryItem{constructor(e,t){super(),this.scriptExpressions=e,this.cryptoKey=t,this.getRegistryType=()=>l.RegistryTypes.CRYPTO_OUTPUT,this.getCryptoKey=()=>this.cryptoKey,this.getHDKey=()=>this.cryptoKey instanceof i.CryptoHDKey?this.cryptoKey:void 0,this.getECKey=()=>this.cryptoKey instanceof r.CryptoECKey?this.cryptoKey:void 0,this.getMultiKey=()=>this.cryptoKey instanceof a.MultiKey?this.cryptoKey:void 0,this.getScriptExpressions=()=>this.scriptExpressions,this.toDataItem=()=>{let e=this.cryptoKey.toDataItem();return(this.cryptoKey instanceof r.CryptoECKey||this.cryptoKey instanceof i.CryptoHDKey)&&e.setTag(this.cryptoKey.getRegistryType().getTag()),[...this.scriptExpressions].reverse().forEach(t=>{const n=t.getTag();void 0===e.getTag()?e.setTag(n):e=new o.DataItem(e,n)}),e}}}t.CryptoOutput=c,c.fromDataItem=e=>{const t=[];let n=e;for(;;){let e=n.getTag()||void 0;const r=s.ScriptExpression.fromTag(e);if(!r)break;if(t.push(r),!(n.getData()instanceof o.DataItem))break;n=n.getData(),e=n.getTag()}const u=t.length;if(u>0&&(t[u-1].getExpression()===s.ScriptExpressions.MULTISIG.getExpression()||t[u-1].getExpression()===s.ScriptExpressions.SORTED_MULTISIG.getExpression())){const e=a.MultiKey.fromDataItem(n);return new c(t,e)}if(n.getTag()===l.RegistryTypes.CRYPTO_HDKEY.getTag()){const e=i.CryptoHDKey.fromDataItem(n);return new c(t,e)}{const e=r.CryptoECKey.fromDataItem(n);return new c(t,e)}},c.fromCBOR=e=>{const t=o.decodeToDataItem(e);return c.fromDataItem(t)}},"f+7B":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const r=n("oFZa"),i=n("jQzp"),o=n("8rhm");class a{constructor(e,t="bytes"){if(this._cborPayload=e,this._type=t,!i.isURType(this._type))throw new r.InvalidTypeError}static fromBuffer(e){return new a(o.cborEncode(e))}static from(t,n){return a.fromBuffer(e.from(t,n))}decodeCBOR(){return o.cborDecode(this._cborPayload)}get type(){return this._type}get cbor(){return this._cborPayload}equals(e){return this.type===e.type&&this.cbor.equals(e.cbor)}}t.default=a}).call(this,n("tjlA").Buffer)},gIkM:function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.chooseFragments=t.shuffle=t.chooseDegree=void 0;const i=n("jQzp"),o=r(n("Gi0Q")),a=n("lHBl");t.chooseDegree=(e,t)=>{const n=[...new Array(e)].map((e,t)=>1/(t+1));return a(n,null,t.nextDouble).next()+1},t.shuffle=(e,t)=>{let n=[...e],r=[];for(;n.length>0;){let e=t.nextInt(0,n.length-1),i=n[e];n.splice(e,1),r.push(i)}return r},t.chooseFragments=(n,r,a)=>{if(n<=r)return[n-1];{const u=e.concat([i.intToBytes(n),i.intToBytes(a)]),l=new o.default(u),s=t.chooseDegree(r,l),c=[...new Array(r)].map((e,t)=>t);return t.shuffle(c,l).slice(0,s)}}}).call(this,n("tjlA").Buffer)},gOmZ:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("tjlA"),u=n("eIIK"),l=o(n("Z6rx")),s=new u.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),c=function(){function e(e,t){var n,o,a,s=e.gasPrice,c=e.gasLimit,f=e.to,d=e.value,p=e.data,h=e.v,g=e.r,m=e.s;this.nonce=new u.BN(u.toBuffer(e.nonce)),this.gasPrice=new u.BN(u.toBuffer(s)),this.gasLimit=new u.BN(u.toBuffer(c)),this.to=f?new u.Address(u.toBuffer(f)):void 0,this.value=new u.BN(u.toBuffer(d)),this.data=u.toBuffer(p),this.v=new u.BN(u.toBuffer(h)),this.r=new u.BN(u.toBuffer(g)),this.s=new u.BN(u.toBuffer(m));var y={nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,value:this.value,r:this.r,s:this.s};try{for(var v=r(Object.entries(y)),b=v.next();!b.done;b=v.next()){var w=i(b.value,2),_=w[0],x=w[1];if(x&&x.gt(u.MAX_INTEGER))throw new Error(_+" cannot exceed MAX_INTEGER, given "+x)}}catch(k){n={error:k}}finally{try{b&&!b.done&&(o=v.return)&&o.call(v)}finally{if(n)throw n.error}}this.common=(null==t?void 0:t.common)?t.common:new l.default({chain:"mainnet"}),this._validateTxV(this.v),(null===(a=null==t?void 0:t.freeze)||void 0===a||a)&&Object.freeze(this)}return e.fromTxData=function(t,n){return new e(t,n)},e.fromRlpSerializedTx=function(e,t){var n=u.rlp.decode(e);if(!Array.isArray(n))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(n,t)},e.fromValuesArray=function(t,n){if(6!==t.length&&9!==t.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var r=i(t,9),o=r[1],l=r[2],s=r[3],c=r[4],f=r[5],d=r[6],p=r[7],h=r[8];return new e({nonce:new u.BN(r[0]),gasPrice:new u.BN(o),gasLimit:new u.BN(l),to:s&&s.length>0?new u.Address(s):void 0,value:new u.BN(c),data:f||a.Buffer.from([]),v:d?new u.BN(d):void 0,r:p?new u.BN(p):void 0,s:h?new u.BN(h):void 0},n)},e.prototype.toCreationAddress=function(){return void 0===this.to||0===this.to.buf.length},e.prototype.hash=function(){var e=[u.bnToRlp(this.nonce),u.bnToRlp(this.gasPrice),u.bnToRlp(this.gasLimit),void 0!==this.to?this.to.buf:a.Buffer.from([]),u.bnToRlp(this.value),this.data,this.v?u.bnToRlp(this.v):a.Buffer.from([]),this.r?u.bnToRlp(this.r):a.Buffer.from([]),this.s?u.bnToRlp(this.s):a.Buffer.from([])];return u.rlphash(e)},e.prototype.getMessageToSign=function(){return this._getMessageToSign(this._unsignedTxImplementsEIP155())},e.prototype.getMessageToVerifySignature=function(){return this._getMessageToSign(this._signedTxImplementsEIP155())},e.prototype.getChainId=function(){return this.common.chainId()},e.prototype.getSenderAddress=function(){return new u.Address(u.publicToAddress(this.getSenderPublicKey()))},e.prototype.getSenderPublicKey=function(){var e=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&this.s&&this.s.gt(s))throw new Error("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");var t=this,n=t.v,r=t.r,i=t.s;if(!n||!r||!i)throw new Error("Missing values to derive sender public key from signed tx");try{return u.ecrecover(e,n.toNumber(),u.bnToRlp(r),u.bnToRlp(i),this._signedTxImplementsEIP155()?this.getChainId():void 0)}catch(o){throw new Error("Invalid Signature")}},e.prototype.verifySignature=function(){try{var e=this.getSenderPublicKey();return 0!==u.unpadBuffer(e).length}catch(t){return!1}},e.prototype.sign=function(t){if(32!==t.length)throw new Error("Private key must be 32 bytes in length.");var n=this.getMessageToSign(),r=u.ecsign(n,t),i=r.v,o=r.r,a=r.s;this._unsignedTxImplementsEIP155()&&(i+=2*this.getChainId()+8);var l={common:this.common};return new e({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:new u.BN(i),r:new u.BN(o),s:new u.BN(a)},l)},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),n=0,r=0;r<this.data.length;r++)n+=0===this.data[r]?e:t;return new u.BN(n)},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.verifySignature()||t.push("Invalid Signature"),this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given "+this.gasLimit+", need at least "+this.getBaseFee()),e?t:0===t.length},e.prototype.raw=function(){return[u.bnToRlp(this.nonce),u.bnToRlp(this.gasPrice),u.bnToRlp(this.gasLimit),void 0!==this.to?this.to.buf:a.Buffer.from([]),u.bnToRlp(this.value),this.data,void 0!==this.v?u.bnToRlp(this.v):a.Buffer.from([]),void 0!==this.r?u.bnToRlp(this.r):a.Buffer.from([]),void 0!==this.s?u.bnToRlp(this.s):a.Buffer.from([])]},e.prototype.serialize=function(){return u.rlp.encode(this.raw())},e.prototype.toJSON=function(){return{nonce:u.bnToHex(this.nonce),gasPrice:u.bnToHex(this.gasPrice),gasLimit:u.bnToHex(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:u.bnToHex(this.value),data:"0x"+this.data.toString("hex"),v:void 0!==this.v?u.bnToHex(this.v):void 0,r:void 0!==this.r?u.bnToHex(this.r):void 0,s:void 0!==this.s?u.bnToHex(this.s):void 0}},e.prototype.isSigned=function(){var e=this;return!!e.v&&!!e.r&&!!e.s},e.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},e.prototype._signedTxImplementsEIP155=function(){var e;if(!this.isSigned())throw Error("This transaction is not signed");var t=this.common.gteHardfork("spuriousDragon"),n=null===(e=this.v)||void 0===e?void 0:e.toNumber();return(n===2*this.getChainId()+35||n===2*this.getChainId()+36)&&t},e.prototype._getMessageToSign=function(e){var t=[u.bnToRlp(this.nonce),u.bnToRlp(this.gasPrice),u.bnToRlp(this.gasLimit),void 0!==this.to?this.to.buf:a.Buffer.from([]),u.bnToRlp(this.value),this.data];return e&&(t.push(u.toBuffer(this.getChainId())),t.push(u.unpadBuffer(u.toBuffer(0))),t.push(u.unpadBuffer(u.toBuffer(0)))),u.rlphash(t)},e.prototype._validateTxV=function(e){if(void 0!==e&&0!==e.toNumber()&&this.common.gteHardfork("spuriousDragon")){var t=e.toNumber();if(27!==t&&28!==t&&t!==2*this.getChainId()+35&&t!==2*this.getChainId()+36)throw new Error("Incompatible EIP155-based V "+t+" and chain id "+this.getChainId()+". See the Common parameter of the Transaction constructor to set the chain id.")}},e}();t.default=c},gVWp:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n("nMOx")),o=r(n("cfS2"));class a{constructor(e,t,n,r){this.ur=e,this.fountainEncoder=new i.default(e.cbor,t,n,r)}get fragmentsLength(){return this.fountainEncoder.fragmentsLength}get fragments(){return this.fountainEncoder.fragments}get messageLength(){return this.fountainEncoder.messageLength}get cbor(){return this.ur.cbor}encodeWhole(){return[...new Array(this.fragmentsLength)].map(()=>this.nextPart())}nextPart(){const e=this.fountainEncoder.nextPart();return this.fountainEncoder.isSinglePart()?a.encodeSinglePart(this.ur):a.encodePart(this.ur.type,e)}static encodeUri(e,t){return[e,t.join("/")].join(":")}static encodeUR(e){return a.encodeUri("ur",e)}static encodePart(e,t){const n=`${t.seqNum}-${t.seqLength}`,r=o.default.encode(t.cbor().toString("hex"),o.default.STYLES.MINIMAL);return a.encodeUR([e,n,r])}static encodeSinglePart(e){const t=o.default.encode(e.cbor.toString("hex"),o.default.STYLES.MINIMAL);return a.encodeUR([e.type,t])}}t.default=a},hYoi:function(e,t,n){"use strict";e.exports=n("CPl3")},jLbD:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathComponent=void 0;class r{constructor(e){if(this.getIndex=()=>this.index,this.isWildcard=()=>this.wildcard,this.isHardened=()=>this.hardened,this.index=e.index,this.hardened=e.hardened,this.wildcard=void 0===this.index,this.index&&0!=(this.index&r.HARDENED_BIT))throw new Error(`#[ur-registry][PathComponent][fn.constructor]: Invalid index ${this.index} - most significant bit cannot be set`)}}t.PathComponent=r,r.HARDENED_BIT=2147483648},jNvq:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.CryptoAccount=void 0;const r=n("ZM2+"),i=n("vfKm"),o=n("b+ga"),a=n("pmUK");var u;!function(e){e[e.masterFingerprint=1]="masterFingerprint",e[e.outputDescriptors=2]="outputDescriptors"}(u||(u={}));class l extends o.RegistryItem{constructor(e,t){super(),this.masterFingerprint=e,this.outputDescriptors=t,this.getRegistryType=()=>a.RegistryTypes.CRYPTO_ACCOUNT,this.getMasterFingerprint=()=>this.masterFingerprint,this.getOutputDescriptors=()=>this.outputDescriptors,this.toDataItem=()=>{const e={};return this.masterFingerprint&&(e[u.masterFingerprint]=this.masterFingerprint.readUInt32BE(0)),this.outputDescriptors&&(e[u.outputDescriptors]=this.outputDescriptors.map(e=>e.toDataItem())),new i.DataItem(e)}}}t.CryptoAccount=l,l.fromDataItem=t=>{const n=t.getData(),i=e.alloc(4),o=n[u.masterFingerprint];o&&i.writeUInt32BE(o,0);const a=n[u.outputDescriptors].map(e=>r.CryptoOutput.fromDataItem(e));return new l(i,a)},l.fromCBOR=e=>{const t=i.decodeToDataItem(e);return l.fromDataItem(t)}}).call(this,n("tjlA").Buffer)},jQzp:function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferXOR=t.setDifference=t.arrayContains=t.arraysEqual=t.hasPrefix=t.isURType=t.intToBytes=t.toUint32=t.getCRCHex=t.getCRC=t.split=t.partition=t.sha256Hash=void 0;const i=r(n("afKu")),o=n("oUGQ");t.sha256Hash=e=>i.default("sha256").update(e).digest(),t.partition=(e,t)=>e.match(new RegExp(".{1,"+t+"}","g"))||[e],t.split=(e,t)=>[e.slice(0,-t),e.slice(-t)],t.getCRC=e=>o.crc32(e),t.getCRCHex=e=>o.crc32(e).toString(16).padStart(8,"0"),t.toUint32=e=>e>>>0,t.intToBytes=t=>{const n=new ArrayBuffer(4);return new DataView(n).setUint32(0,t,!1),e.from(n)},t.isURType=e=>e.split("").every((t,n)=>{let r=e.charCodeAt(n);return"a".charCodeAt(0)<=r&&r<="z".charCodeAt(0)||"0".charCodeAt(0)<=r&&r<="9".charCodeAt(0)||r==="-".charCodeAt(0)}),t.hasPrefix=(e,t)=>0===e.indexOf(t),t.arraysEqual=(e,t)=>e.length===t.length&&e.every(e=>t.includes(e)),t.arrayContains=(e,t)=>t.every(t=>e.includes(t)),t.setDifference=(e,t)=>e.filter(e=>t.indexOf(e)<0),t.bufferXOR=(t,n)=>{const r=Math.max(t.length,n.length),i=e.allocUnsafe(r);for(let e=0;e<r;++e)i[e]=t[e]^n[e];return i}}).call(this,n("tjlA").Buffer)},lBiK:function(e,t,n){(function(n){var r,i;void 0===(i="function"==typeof(r=function(){var e=function(){function e(e){this.$hex=e}e.prototype={length:function(){return this.$hex.length/2},toString:function(e){if(!e||"hex"===e||16===e)return this.$hex;if("utf-8"===e){for(var t="",n=0;n<this.$hex.length;n+=2)t+="%"+this.$hex.substring(n,n+2);return decodeURIComponent(t)}if("latin"===e){for(t=[],n=0;n<this.$hex.length;n+=2)t.push(parseInt(this.$hex.substring(n,n+2),16));return String.fromCharCode.apply(String,t)}throw new Error("Unrecognised format: "+e)}},e.fromLatinString=function(t){for(var n="",r=0;r<t.length;r++){var i=t.charCodeAt(r).toString(16);1===i.length&&(i="0"+i),n+=i}return new e(n)},e.fromUtf8String=function(t){for(var n=encodeURIComponent(t),r="",i=0;i<n.length;i++)if("%"===n.charAt(i))r+=n.substring(i+1,i+3),i+=2;else{var o=n.charCodeAt(i).toString(16);o.length<2&&(o="0"+o),r+=o}return new e(r)};var t=[],r={},i=function(e){return function(){throw new Error(e+" not implemented")}};function o(){}function a(){}function u(e,t){var n=e.value;return n<24?n:24==n?t.readByte():25==n?t.readUint16():26==n?t.readUint32():27==n?t.readUint64():31==n?null:void i("Additional info: "+n)()}function l(e,t,n){var r=e<<5;t<24?n.writeByte(r|t):t<256?(n.writeByte(24|r),n.writeByte(t)):t<65536?(n.writeByte(25|r),n.writeUint16(t)):t<4294967296?(n.writeByte(26|r),n.writeUint32(t)):(n.writeByte(27|r),n.writeUint64(t))}o.prototype={peekByte:i("peekByte"),readByte:i("readByte"),readChunk:i("readChunk"),readFloat16:function(){var e=this.readUint16(),t=(32767&e)>>10,n=1023&e,r=32768&e;if(31===t)return 0===n?r?-1/0:1/0:NaN;var i=t?Math.pow(2,t-25)*(1024+n):Math.pow(2,-24)*n;return r?-i:i},readFloat32:function(){var e=this.readUint32(),t=(2147483647&e)>>23,n=8388607&e,r=2147483648&e;if(255===t)return 0===n?r?-1/0:1/0:NaN;var i=t?Math.pow(2,t-23-127)*(8388608+n):Math.pow(2,-149)*n;return r?-i:i},readFloat64:function(){var e=this.readUint32(),t=e>>20&2047,n=4294967296*(1048575&e)+this.readUint32(),r=2147483648&e;if(2047===t)return 0===n?r?-1/0:1/0:NaN;var i=t?Math.pow(2,t-52-1023)*(4503599627370496+n):Math.pow(2,-1074)*n;return r?-i:i},readUint16:function(){return 256*this.readByte()+this.readByte()},readUint32:function(){return 65536*this.readUint16()+this.readUint16()},readUint64:function(){return 4294967296*this.readUint32()+this.readUint32()}},a.prototype={writeByte:i("writeByte"),result:i("result"),writeFloat16:i("writeFloat16"),writeFloat32:i("writeFloat32"),writeFloat64:i("writeFloat64"),writeUint16:function(e){this.writeByte(e>>8&255),this.writeByte(255&e)},writeUint32:function(e){this.writeUint16(e>>16&65535),this.writeUint16(65535&e)},writeUint64:function(e){if(e>=9007199254740992||e<=-9007199254740992)throw new Error("Cannot encode Uint64 of: "+e+" magnitude to big (floating point errors)");this.writeUint32(Math.floor(e/4294967296)),this.writeUint32(e%4294967296)},writeString:i("writeString"),canWriteBinary:function(e){return!1},writeBinary:i("writeChunk")};var s=new Error;function c(e){var t=function(e){var t=e.readByte();return{type:t>>5,value:31&t}}(e);switch(t.type){case 0:return u(t,e);case 1:return-1-u(t,e);case 2:return e.readChunk(u(t,e));case 3:return e.readChunk(u(t,e)).toString("utf-8");case 4:case 5:var n=u(t,e),i=[];if(null!==n){5===t.type&&(n*=2);for(var o=0;o<n;o++)i[o]=c(e)}else for(var a;(a=c(e))!==s;)i.push(a);if(5===t.type){var l={};for(o=0;o<i.length;o+=2)l[i[o]]=i[o+1];return l}return i;case 6:var f=u(t,e),d=r[f];return i=c(e),d?d(i):i;case 7:if(25===t.value)return e.readFloat16();if(26===t.value)return e.readFloat32();if(27===t.value)return e.readFloat64();switch(u(t,e)){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;case null:return s;default:throw new Error("Unknown fixed value: "+t.value)}default:throw new Error("Unsupported header: "+JSON.stringify(t))}throw new Error("not implemented yet")}function f(e,n){for(var r=0;r<t.length;r++){var i=t[r].fn(e);if(void 0!==i)return l(6,t[r].tag,n),f(i,n)}if(e&&"function"==typeof e.toCBOR&&(e=e.toCBOR()),!1===e)l(7,20,n);else if(!0===e)l(7,21,n);else if(null===e)l(7,22,n);else if(void 0===e)l(7,23,n);else if("number"==typeof e)Math.floor(e)===e&&e<9007199254740992&&e>-9007199254740992?e<0?l(1,-1-e,n):l(0,e,n):(function(e,t,n){n.writeByte(251)}(0,0,n),n.writeFloat64(e));else if("string"==typeof e)n.writeString(e,function(e){l(3,e,n)});else if(n.canWriteBinary(e))n.writeBinary(e,function(e){l(2,e,n)});else{if("object"!=typeof e)throw new Error("CBOR encoding not supported: "+e);if(h.config.useToJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),Array.isArray(e))for(l(4,e.length,n),r=0;r<e.length;r++)f(e[r],n);else{var o=Object.keys(e);for(l(5,o.length,n),r=0;r<o.length;r++)f(o[r],n),f(e[o[r]],n)}}}var d=[],p=[],h={config:{useToJSON:!0},addWriter:function(e,t){p.push("string"==typeof e?function(n){if(e===n)return t(n)}:e)},addReader:function(e,t){d.push("string"==typeof e?function(n,r){if(e===r)return t(n,r)}:e)},encode:function(e,t){for(var n=0;n<p.length;n++){var r=(0,p[n])(t);if(r)return f(e,r),r.result()}throw new Error("Unsupported output format: "+t)},decode:function(e,t){for(var n=0;n<d.length;n++){var r=(0,d[n])(e,t);if(r)return c(r)}throw new Error("Unsupported input format: "+t)},addSemanticEncode:function(e,n){if("number"!=typeof e||e%1!=0||e<0)throw new Error("Tag must be a positive integer");return t.push({tag:e,fn:n}),this},addSemanticDecode:function(e,t){if("number"!=typeof e||e%1!=0||e<0)throw new Error("Tag must be a positive integer");return r[e]=t,this},Reader:o,Writer:a};function g(e){this.buffer=e,this.pos=0}function m(e){this.byteLength=0,this.defaultBufferLength=16384,this.latestBuffer=n.alloc(this.defaultBufferLength),this.latestBufferOffset=0,this.completeBuffers=[],this.stringFormat=e}function y(e){this.hex=e,this.pos=0}function v(e){this.$hex="",this.finalFormat=e||"hex"}return(g.prototype=Object.create(o.prototype)).peekByte=function(){return this.buffer[this.pos]},g.prototype.readByte=function(){return this.buffer[this.pos++]},g.prototype.readUint16=function(){var e=this.buffer.readUInt16BE(this.pos);return this.pos+=2,e},g.prototype.readUint32=function(){var e=this.buffer.readUInt32BE(this.pos);return this.pos+=4,e},g.prototype.readFloat32=function(){var e=this.buffer.readFloatBE(this.pos);return this.pos+=4,e},g.prototype.readFloat64=function(){var e=this.buffer.readDoubleBE(this.pos);return this.pos+=8,e},g.prototype.readChunk=function(e){var t=n.alloc(e);return this.buffer.copy(t,0,this.pos,this.pos+=e),t},(m.prototype=Object.create(a.prototype)).writeByte=function(e){this.latestBuffer[this.latestBufferOffset++]=e,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=n.alloc(this.defaultBufferLength),this.latestBufferOffset=0),this.byteLength++},m.prototype.writeFloat32=function(e){var t=n.alloc(4);t.writeFloatBE(e,0),this.writeBuffer(t)},m.prototype.writeFloat64=function(e){var t=n.alloc(8);t.writeDoubleBE(e,0),this.writeBuffer(t)},m.prototype.writeString=function(e,t){var r=n.from(e,"utf-8");t(r.length),this.writeBuffer(r)},m.prototype.canWriteBinary=function(e){return e instanceof n},m.prototype.writeBinary=function(e,t){t(e.length),this.writeBuffer(e)},m.prototype.writeBuffer=function(e){if(!(e instanceof n))throw new TypeError("BufferWriter only accepts Buffers");this.latestBufferOffset?this.latestBuffer.length-this.latestBufferOffset>=e.length?(e.copy(this.latestBuffer,this.latestBufferOffset),this.latestBufferOffset+=e.length,this.latestBufferOffset>=this.latestBuffer.length&&(this.completeBuffers.push(this.latestBuffer),this.latestBuffer=n.alloc(this.defaultBufferLength),this.latestBufferOffset=0)):(this.completeBuffers.push(this.latestBuffer.slice(0,this.latestBufferOffset)),this.completeBuffers.push(e),this.latestBuffer=n.alloc(this.defaultBufferLength),this.latestBufferOffset=0):this.completeBuffers.push(e),this.byteLength+=e.length},m.prototype.result=function(){for(var e=n.alloc(this.byteLength),t=0,r=0;r<this.completeBuffers.length;r++){var i=this.completeBuffers[r];i.copy(e,t,0,i.length),t+=i.length}return this.latestBufferOffset&&this.latestBuffer.copy(e,t,0,this.latestBufferOffset),this.stringFormat?e.toString(this.stringFormat):e},"function"==typeof n&&(h.addReader(function(e,t){return e instanceof n?new g(e):"hex"===t||"base64"===t?new g(n.from(e,t)):void 0}),h.addWriter(function(e){return e&&"buffer"!==e?"hex"===e||"base64"===e?new m(e):void 0:new m})),(y.prototype=Object.create(o.prototype)).peekByte=function(){var e=this.hex.substring(this.pos,2);return parseInt(e,16)},y.prototype.readByte=function(){var e=this.hex.substring(this.pos,this.pos+2);return this.pos+=2,parseInt(e,16)},y.prototype.readChunk=function(t){var r=this.hex.substring(this.pos,this.pos+2*t);return this.pos+=2*t,"function"==typeof n?n.from(r,"hex"):new e(r)},(v.prototype=Object.create(a.prototype)).writeByte=function(e){if(e<0||e>255)throw new Error("Byte value out of range: "+e);var t=e.toString(16);1==t.length&&(t="0"+t),this.$hex+=t},v.prototype.canWriteBinary=function(t){return t instanceof e||"function"==typeof n&&t instanceof n},v.prototype.writeBinary=function(t,r){if(t instanceof e)r(t.length()),this.$hex+=t.$hex;else{if(!("function"==typeof n&&t instanceof n))throw new TypeError("HexWriter only accepts BinaryHex or Buffers");r(t.length),this.$hex+=t.toString("hex")}},v.prototype.result=function(){return"buffer"===this.finalFormat&&"function"==typeof n?n.from(this.$hex,"hex"):new e(this.$hex).toString(this.finalFormat)},v.prototype.writeString=function(t,n){var r=e.fromUtf8String(t);n(r.length()),this.$hex+=r.$hex},h.addReader(function(t,n){return t instanceof e||t.$hex?new y(t.$hex):"hex"===n?new y(t):void 0}),h.addWriter(function(e){if("hex"===e)return new v}),h}();return e.addSemanticEncode(0,function(e){if(e instanceof Date)return e.toISOString()}).addSemanticDecode(0,function(e){return new Date(e)}).addSemanticDecode(1,function(e){return new Date(e)}),e})?r.apply(t,[]):r)||(e.exports=i)}).call(this,n("tjlA").Buffer)},lHBl:function(e,t){function n(e,t,n){"use strict";this.alias=[],this.prob=[],this.outcomes=t||this.indexedOutcomes(e.length),this.rng=n||Math.random,this.precomputeAlias(e)}n.prototype.next=function(e){"use strict";var t=e||1,n=[],r=0;do{var i=Math.floor(this.rng()*this.prob.length);n[r]=this.outcomes[this.rng()<this.prob[i]?i:this.alias[i]]}while(++r<t);return t>1?n:n[0]},n.prototype.precomputeAlias=function(e){"use strict";var t,n,r,i=e.length,o=0,a=0,u=0,l=[],s=[],c=[];for(n=0;n<i;++n){if(e[n]<0)throw"Probability must be a positive: p["+n+"]="+e[n];o+=e[n]}if(0===o)throw"Probability cannot be zero.";for(n=0;n<i;++n)l[n]=e[n]*i/o;for(n=i-1;n>=0;--n)l[n]<1?s[a++]=n:c[u++]=n;for(;a&&u;)r=s[--a],t=c[--u],this.prob[r]=l[r],this.alias[r]=t,l[t]=l[t]+l[r]-1,l[t]<1?s[a++]=t:c[u++]=t;for(;u;)this.prob[c[--u]]=1;for(;a;)this.prob[s[--a]]=1},n.prototype.indexedOutcomes=function(e){"use strict";for(var t=[],n=0;n<e;n++)t[n]=n;return t},n.prototype.randomInt=function(e,t){"use strict";return Math.floor(this.rng()*(t-e))+e},e.exports=function(e,t,r){"use strict";return new n(e,t,r)}},lPzC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URRegistryDecoder=void 0;const r=n("NCLm"),i=n("ZM2+"),o=n("pmUK");t.URRegistryDecoder=class extends r.URDecoder{constructor(){super(...arguments),this.resultRegistryType=()=>{const e=this.resultUR();switch(e.type){case o.RegistryTypes.BYTES.getType():return i.Bytes.fromCBOR(e.cbor);case o.RegistryTypes.CRYPTO_HDKEY.getType():return i.CryptoHDKey.fromCBOR(e.cbor);case o.RegistryTypes.CRYPTO_KEYPATH.getType():return i.CryptoKeypath.fromCBOR(e.cbor);case o.RegistryTypes.CRYPTO_COIN_INFO.getType():return i.CryptoCoinInfo.fromCBOR(e.cbor);case o.RegistryTypes.CRYPTO_ECKEY.getType():return i.CryptoECKey.fromCBOR(e.cbor);case o.RegistryTypes.CRYPTO_OUTPUT.getType():return i.CryptoOutput.fromCBOR(e.cbor);case o.RegistryTypes.CRYPTO_PSBT.getType():return i.CryptoPSBT.fromCBOR(e.cbor);case o.RegistryTypes.CRYPTO_ACCOUNT.getType():return i.CryptoAccount.fromCBOR(e.cbor);default:throw new Error(`#[ur-registry][Decoder][fn.resultRegistryType]: registry type ${e.type} is not supported now`)}}}}},mDJW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.patchTags=void 0;const r=n("vfKm"),i=[];t.patchTags=e=>{e.forEach(e=>{i.find(t=>t===e)||(r.addSemanticEncode(e,t=>{if(t instanceof r.DataItem&&t.getTag()===e)return t.getData()}),r.addSemanticDecode(e,t=>new r.DataItem(t,e)),i.push(e))})}},mDrP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptExpressions=t.ScriptExpression=void 0;class r{constructor(e,t){this.tag=e,this.expression=t,this.getTag=()=>this.tag,this.getExpression=()=>this.expression}}t.ScriptExpression=r,r.fromTag=e=>Object.values(t.ScriptExpressions).find(t=>t.getTag()===e),t.ScriptExpressions={SCRIPT_HASH:new r(400,"sh"),WITNESS_SCRIPT_HASH:new r(401,"wsh"),PUBLIC_KEY:new r(402,"pk"),PUBLIC_KEY_HASH:new r(403,"pkh"),WITNESS_PUBLIC_KEY_HASH:new r(404,"wpkh"),COMBO:new r(405,"combo"),MULTISIG:new r(406,"multi"),SORTED_MULTISIG:new r(407,"sorted"),ADDRESS:new r(307,"addr"),RAW_SCRIPT:new r(408,"raw")}},mX8b:function(e,t,n){"use strict";(function(e){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=n("+qE3"),o=r(n("vUa2")),a=n("hYoi"),u=r(a),l=n("eIIK"),s=n("Y04X"),c=n("VFUf"),f=n("z3bg");function d(e,t,n,r,i,o,a){try{var u=e[o](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,i)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){d(o,r,i,a,u,"next",e)}function u(e){d(o,r,i,a,u,"throw",e)}a(void 0)})}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e,t){return function(e){var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=Object.create((t&&t.prototype instanceof f?t:f).prototype),o=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===c)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=s(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,o),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function p(){}var h={};u(h,i,function(){return this});var g=Object.getPrototypeOf,m=g&&g(g(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var y=p.prototype=f.prototype=Object.create(h);function v(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t(function(r,a){!function r(i,o,a,u){var l=s(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then(function(e){r("next",e,a,u)},function(e){r("throw",e,a,u)}):t.resolve(f).then(function(e){c.value=e,a(c)},function(e){return r("throw",e,a,u)})}u(l.arg)}(i,o,r,a)})}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,u(y,"constructor",p),u(p,"constructor",d),d.displayName=u(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},v(b.prototype),u(b.prototype,o,function(){return this}),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},v(y),u(y,a,"Generator"),u(y,i,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(t={exports:{}}),t.exports}();u.bootstrap();var m=u.getSdk(),y=function(){var e=p(g.mark(function e(){var t,n,r,i,o,u;return g.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.read([a.SupportedResult.UR_CRYPTO_HDKEY],{title:"Sync Keystone",description:"Please scan the QR code displayed on your Keystone",renderInitial:{walletMode:"Web3",link:"https://keyst.one/defi"},URTypeErrorMessage:"The scanned QR code is not the sync code from the Keystone hardware wallet. Please verify the code and try again ( Keystone firmware V1.3.0 or newer required)."});case 2:if((t=e.sent).status!==a.ReadStatus.success){e.next=14;break}if(r=c.CryptoHDKey.fromCBOR(t.result.cbor),i="m/"+r.getOrigin().getPath(),o=null==(n=r.getOrigin().getSourceFingerprint())?void 0:n.toString("hex")){e.next=10;break}throw new Error("invalid crypto-hd-key, cannot get source fingerprint");case 10:return u=r.getBip32Key(),e.abrupt("return",{xfp:o,xpub:u,hdPath:i});case 14:throw new Error("Reading canceled");case 15:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),v=function(t){var n,r;function i(e){var n;return(n=t.call(this)||this).xfp="",n.xpub="",n.hdPath="",n.page=0,n.perPage=5,n.accounts=[],n.currentAccount=0,n.paths={},n.latestAccount=0,n.deserialize(e),n}r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,h(n,r),i.getKeyring=function(){var e=p(g.mark(function e(){var t;return g.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y();case 2:return e.abrupt("return",new i({xfp:(t=e.sent).xfp,xpub:t.xpub,hdPath:t.hdPath,perPage:5,page:0,accounts:[],currentAccount:0,paths:{}}));case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),i.getEmptyKeyring=function(){return new i({xfp:"",xpub:"",hdPath:"",perPage:5,page:0,accounts:[],currentAccount:0,paths:{}})};var u=i.prototype;return u.readKeyring=function(){var e=p(g.mark(function e(){var t,n,r;return g.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y();case 2:n=(t=e.sent).xpub,r=t.hdPath,this.xfp=t.xfp,this.xpub=n,this.hdPath=r;case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),u.checkKeyring=function(){if(!this.xfp||!this.xpub||!this.hdPath)throw new Error("keyring not fulfilled, please call function `readKeyring` firstly")},u.serialize=function(){return Promise.resolve({xfp:this.xfp,xpub:this.xpub,hdPath:this.hdPath,accounts:this.accounts,currentAccount:this.currentAccount,page:this.page,perPage:this.perPage,paths:this.paths})},u.deserialize=function(e){this.xfp=e.xfp,this.xpub=e.xpub,this.hdPath=e.hdPath,this.accounts=e.accounts,this.currentAccount=e.currentAccount,this.page=e.page,this.perPage=e.perPage,this.paths=e.paths},u.setCurrentAccount=function(e){this.currentAccount=e},u.getCurrentAccount=function(){return this.currentAccount},u.getCurrentAddress=function(){return this.accounts[this.currentAccount]},u.addAccounts=function(e){var t=this;return void 0===e&&(e=1),new Promise(function(n,r){try{for(var i=t.latestAccount,o=i+e,a=[],u=i;u<o;u++){var l=t._addressFromIndex("m",u);a.push(l),t.page=0,t.latestAccount++}t.accounts=t.accounts.concat(a),n(t.accounts)}catch(e){r(e)}})},u.getFirstPage=function(){return this.page=0,this.__getPage(1)},u.getNextPage=function(){return this.__getPage(1)},u.getPreviousPage=function(){return this.__getPage(-1)},u.__getPage=function(e){var t=this;return this.page+=e,this.page<=0&&(this.page=1),new Promise(function(e,n){try{for(var r=(t.page-1)*t.perPage,i=r+t.perPage,o=[],a=r;a<i;a++){var u=t._addressFromIndex("m",a);o.push({address:u,balance:null,index:a}),t.paths[l.toChecksumAddress(u)]=a}e(o)}catch(e){n(e)}})},u.getAccounts=function(){return this.accounts},u.removeAccount=function(e){if(!this.accounts.map(function(e){return e.toLowerCase()}).includes(e.toLowerCase()))throw new Error("Address "+e+" not found in this keyring");this.accounts=this.accounts.filter(function(t){return t.toLowerCase()!==e.toLowerCase()})},u.readSignature=function(){var e=p(g.mark(function e(t){var n,r,i,o,u,l,s;return g.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.read([a.SupportedResult.UR_ETH_SIGNATURE],{title:"Scan Keystone",description:"Please scan the QR code displayed on your Keystone"});case 2:if((n=e.sent).status!==a.ReadStatus.canceled){e.next=7;break}throw new Error("#ktek_error[read-cancel]: read signature canceled");case 7:if(r=c.ETHSignature.fromCBOR(n.result.cbor),i=r.getRequestId(),o=r.getSignature(),!i){e.next=14;break}if(f.stringify(i)===t){e.next=14;break}throw new Error("read signature error: mismatched requestId");case 14:return u=o.slice(0,32),l=o.slice(32,64),s=o.slice(64,65),e.abrupt("return",{r:u,s:l,v:s});case 18:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),i.serializeTx=function(e){return e.v=new l.BN(e.common.chainId()),e.r=new l.BN(0),e.s=new l.BN(0),e.serialize()},u.signTransaction=function(){var e=p(g.mark(function e(t,n){var r,o,u,l,d,p,h,y,v;return g.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._pathFromAddress(t),o=n.common.chainId(),u=f.v4(),l=c.EthSignRequest.constructETHRequest(i.serializeTx(n),c.DataType.transaction,r,this.xfp,u,o),e.next=6,m.play(l.toUR(),{hasNext:!0,title:"Scan with your Keystone",description:'After your Keystone has signed the transaction, click on "Scan Keystone" to receive the signature'});case 6:if(e.sent!==a.PlayStatus.canceled){e.next=9;break}throw new Error("#ktek_error[play-cancel]: play canceled");case 9:return e.next=11,this.readSignature(u);case 11:return p=(d=e.sent).r,h=d.s,y=d.v,v=n.toJSON(),e.abrupt("return",s.Transaction.fromTxData({to:v.to,gasLimit:v.gasLimit,gasPrice:v.gasPrice,data:v.data,nonce:v.nonce,value:v.value,r:p,s:h,v:y},{common:n.common}));case 17:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}(),u.signMessage=function(e,t){return this.signPersonalMessage(e,t)},u.signPersonalMessage=function(){var t=p(g.mark(function t(n,r){var i,o,u,s,d;return g.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=l.stripHexPrefix(r),o=this._pathFromAddress(n),u=f.v4(),s=c.EthSignRequest.constructETHRequest(e.from(i,"hex"),c.DataType.personalMessage,o,this.xfp,u,void 0,n),t.next=6,m.play(s.toUR(),{hasNext:!0,title:"Scan with your Keystone",description:'After your Keystone has signed this message, click on "Scan Keystone" to receive the signature'});case 6:if(t.sent!==a.PlayStatus.canceled){t.next=9;break}throw new Error("#ktek_error[play-cancel]: play canceled");case 9:return t.next=11,this.readSignature(u);case 11:return t.abrupt("return","0x"+e.concat([(d=t.sent).r,d.s,d.v]).toString("hex"));case 16:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}(),u.signTypedData=function(){var t=p(g.mark(function t(n,r){var i,o,u,l;return g.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._pathFromAddress(n),o=f.v4(),u=c.EthSignRequest.constructETHRequest(e.from(JSON.stringify(r),"utf-8"),c.DataType.typedData,i,this.xfp,o,void 0,n),t.next=5,m.play(u.toUR(),{hasNext:!0,title:"Scan with your Keystone",description:'After your Keystone has signed this data, click on "Scan Keystone" to receive the signature'});case 5:if(t.sent!==a.PlayStatus.canceled){t.next=8;break}throw new Error("#ktek_error[play-cancel]: play canceled");case 8:return t.next=10,this.readSignature(o);case 10:return t.abrupt("return","0x"+e.concat([(l=t.sent).r,l.s,l.v]).toString("hex"));case 15:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}(),u._addressFromIndex=function(e,t){this.checkKeyring(),this.hdk||(this.hdk=o.fromExtendedKey(this.xpub));var n=this.hdk.derive(e+"/0/"+t),r="0x"+l.publicToAddress(n.publicKey,!0).toString("hex");return l.toChecksumAddress(r)},u._pathFromAddress=function(e){var t=l.toChecksumAddress(e),n=this.paths[t];if(void 0===n)for(var r=0;r<1e3;r++)if(t===this._addressFromIndex("m",r)){n=r;break}if(void 0===n)throw new Error("Unknown address");return this.hdPath+"/0/"+n},i}(i.EventEmitter);v.type="Air Gaped Device",t.default=v}).call(this,n("tjlA").Buffer)},nMOx:function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FountainEncoderPart=void 0;const i=r(n("9lTW")),o=n("jQzp"),a=n("gIkM"),u=n("8rhm");class l{constructor(e,t,n,r,i){this._seqNum=e,this._seqLength=t,this._messageLength=n,this._checksum=r,this._fragment=i}get messageLength(){return this._messageLength}get fragment(){return this._fragment}get seqNum(){return this._seqNum}get seqLength(){return this._seqLength}get checksum(){return this._checksum}cbor(){const t=u.cborEncode([this._seqNum,this._seqLength,this._messageLength,this._checksum,this._fragment]);return e.from(t)}description(){return`seqNum:${this._seqNum}, seqLen:${this._seqLength}, messageLen:${this._messageLength}, checksum:${this._checksum}, data:${this._fragment.toString("hex")}`}static fromCBOR(t){const[n,r,o,a,s]=u.cborDecode(t);return i.default("number"==typeof n),i.default("number"==typeof r),i.default("number"==typeof o),i.default("number"==typeof a),i.default(e.isBuffer(s)&&s.length>0),new l(n,r,o,a,e.from(s))}}t.FountainEncoderPart=l;class s{constructor(e,t=100,n=0,r=10){const i=s.findNominalFragmentLength(e.length,r,t);this._messageLength=e.length,this._fragments=s.partitionMessage(e,i),this.fragmentLength=i,this.seqNum=o.toUint32(n),this.checksum=o.getCRC(e)}get fragmentsLength(){return this._fragments.length}get fragments(){return this._fragments}get messageLength(){return this._messageLength}isComplete(){return this.seqNum>=this._fragments.length}isSinglePart(){return 1===this._fragments.length}seqLength(){return this._fragments.length}mix(t){return t.reduce((e,t)=>o.bufferXOR(this._fragments[t],e),e.alloc(this.fragmentLength,0))}nextPart(){this.seqNum=o.toUint32(this.seqNum+1);const e=a.chooseFragments(this.seqNum,this._fragments.length,this.checksum),t=this.mix(e);return new l(this.seqNum,this._fragments.length,this._messageLength,this.checksum,t)}static findNominalFragmentLength(e,t,n){i.default(e>0),i.default(t>0),i.default(n>=t);const r=Math.ceil(e/t);let o=0;for(let i=1;i<=r&&(o=Math.ceil(e/i),!(o<=n));i++);return o}static partitionMessage(t,n){let r,i=e.from(t),a=[];for(;i.length>0;)[r,i]=o.split(i,-n),r=e.alloc(n,0).fill(r,0,r.length),a.push(r);return a}}t.default=s}).call(this,n("tjlA").Buffer)},oFZa:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidChecksumError=t.InvalidSequenceComponentError=t.InvalidTypeError=t.InvalidPathLengthError=t.InvalidSchemeError=void 0;class r extends Error{constructor(){super("Invalid Scheme"),this.name="InvalidSchemeError"}}t.InvalidSchemeError=r;class i extends Error{constructor(){super("Invalid Path"),this.name="InvalidPathLengthError"}}t.InvalidPathLengthError=i;class o extends Error{constructor(){super("Invalid Type"),this.name="InvalidTypeError"}}t.InvalidTypeError=o;class a extends Error{constructor(){super("Invalid Sequence Component"),this.name="InvalidSequenceComponentError"}}t.InvalidSequenceComponentError=a;class u extends Error{constructor(){super("Invalid Checksum"),this.name="InvalidChecksumError"}}t.InvalidChecksumError=u},oUGQ:function(e,t,n){"use strict";n.r(t),n.d(t,"crc1",function(){return a}),n.d(t,"crc8",function(){return l}),n.d(t,"crc81wire",function(){return c}),n.d(t,"crc16",function(){return d}),n.d(t,"crc16ccitt",function(){return h}),n.d(t,"crc16modbus",function(){return m}),n.d(t,"crc16xmodem",function(){return y}),n.d(t,"crc16kermit",function(){return b}),n.d(t,"crc24",function(){return _}),n.d(t,"crc32",function(){return k}),n.d(t,"crcjam",function(){return T});var r=n("tjlA"),i=r.Buffer.from&&r.Buffer.alloc&&r.Buffer.allocUnsafe&&r.Buffer.allocUnsafeSlow?r.Buffer.from:e=>new r.Buffer(e),o=function(e,t){const n=(e,n)=>t(e,n)>>>0;return n.signed=t,n.unsigned=n,n.model=e,n},a=o("crc1",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=~~t,o=0;for(let r=0;r<e.length;r++)o+=e[r];return n+=o%256,n%256});let u=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];"undefined"!=typeof Int32Array&&(u=new Int32Array(u));var l=o("crc-8",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=~~t;for(let r=0;r<e.length;r++)n=255&u[255&(n^e[r])];return n});let s=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];"undefined"!=typeof Int32Array&&(s=new Int32Array(s));var c=o("dallas-1-wire",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=~~t;for(let r=0;r<e.length;r++)n=255&s[255&(n^e[r])];return n});let f=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(f=new Int32Array(f));var d=o("crc-16",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=~~t;for(let r=0;r<e.length;r++)n=65535&(f[255&(n^e[r])]^n>>8);return n});let p=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(p=new Int32Array(p));var h=o("ccitt",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=void 0!==t?~~t:65535;for(let r=0;r<e.length;r++)n=65535&(p[255&(n>>8^e[r])]^n<<8);return n});let g=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(g=new Int32Array(g));var m=o("crc-16-modbus",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=void 0!==t?~~t:65535;for(let r=0;r<e.length;r++)n=65535&(g[255&(n^e[r])]^n>>8);return n}),y=o("xmodem",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=void 0!==t?~~t:0;for(let r=0;r<e.length;r++){let t=n>>>8&255;t^=255&e[r],t^=t>>>4,n=n<<8&65535,n^=t,t=t<<5&65535,n^=t,t=t<<7&65535,n^=t}return n});let v=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(v=new Int32Array(v));var b=o("kermit",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=void 0!==t?~~t:0;for(let r=0;r<e.length;r++)n=65535&(v[255&(n^e[r])]^n>>8);return n});let w=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(w=new Int32Array(w));var _=o("crc-24",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=void 0!==t?~~t:11994318;for(let r=0;r<e.length;r++)n=16777215&(w[255&(n>>16^e[r])]^n<<8);return n});let x=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(x=new Int32Array(x));var k=o("crc-32",function(e,t){r.Buffer.isBuffer(e)||(e=i(e));let n=0===t?0:-1^~~t;for(let r=0;r<e.length;r++)n=x[255&(n^e[r])]^n>>>8;return-1^n});let E=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(E=new Int32Array(E));var T=o("jam",function(e,t=-1){r.Buffer.isBuffer(e)||(e=i(e));let n=0===t?0:~~t;for(let r=0;r<e.length;r++)n=E[255&(n^e[r])]^n>>>8;return n});t.default={crc1:a,crc8:l,crc81wire:c,crc16:d,crc16ccitt:h,crc16modbus:m,crc16xmodem:y,crc16kermit:b,crc24:_,crc32:k,crcjam:T}},pmUK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegistryTypes=t.RegistryType=void 0;class r{constructor(e,t){this.type=e,this.tag=t,this.getTag=()=>this.tag,this.getType=()=>this.type}}t.RegistryType=r,t.RegistryTypes={UUID:new r("uuid",37),BYTES:new r("bytes",void 0),CRYPTO_HDKEY:new r("crypto-hdkey",303),CRYPTO_KEYPATH:new r("crypto-keypath",304),CRYPTO_COIN_INFO:new r("crypto-coin-info",305),CRYPTO_ECKEY:new r("crypto-eckey",306),CRYPTO_OUTPUT:new r("crypto-output",308),CRYPTO_PSBT:new r("crypto-psbt",310),CRYPTO_ACCOUNT:new r("crypto-account",311)}},qoC6:function(e,t,n){"use strict";var r=n("ZFCF"),i=n("MgzW"),o=n("2EZK");function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function u(e,t,n,r,i,o,a,u,l){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(c){this.onError(c)}}var l=!1,s=null,c=!1,f=null,d={onError:function(e){l=!0,s=e}};function p(e,t,n,r,i,o,a,c,f){l=!1,s=null,u.apply(d,arguments)}var h=null,g=null,m=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,o,u,d,h){if(p.apply(this,arguments),l){if(!l)throw Error(a(198));var g=s;l=!1,s=null,c||(c=!0,f=g)}}(r,t,void 0,e),e.currentTarget=null}var v=null,b={};function w(){if(v)for(var e in b){var t=b[e],n=v.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var i=void 0,o=n[r],u=t,l=r;if(k.hasOwnProperty(l))throw Error(a(99,l));k[l]=o;var s=o.phasedRegistrationNames;if(s){for(i in s)s.hasOwnProperty(i)&&_(s[i],u,l);i=!0}else o.registrationName?(_(o.registrationName,u,l),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function _(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,T[e]=t.eventTypes[n].dependencies}var x=[],k={},E={},T={};function S(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),A=null,P=null,I=null;function B(e){if(e=g(e)){if("function"!=typeof A)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),A(e.stateNode,e.type,t))}}function D(e){P?I?I.push(e):I=[e]:P=e}function O(){if(P){var e=P,t=I;if(I=P=null,B(e),t)for(e=0;e<t.length;e++)B(t[e])}}function R(e,t){return e(t)}function N(e,t,n,r,i){return e(t,n,r,i)}function M(){}var U=R,L=!1,z=!1;function F(){null===P&&null===I||(M(),O())}function j(e,t,n){if(z)return e(t,n);z=!0;try{return U(e,t,n)}finally{z=!1,F()}}var K=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,q={},H={};function Y(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){V[e]=new Y(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];V[t]=new Y(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){V[e]=new Y(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){V[e]=new Y(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){V[e]=new Y(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){V[e]=new Y(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){V[e]=new Y(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){V[e]=new Y(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){V[e]=new Y(e,5,!1,e.toLowerCase(),null,!1)});var Q=/[\-:]([a-z])/g;function G(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q,G);V[t]=new Y(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Q,G);V[t]=new Y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Q,G);V[t]=new Y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){V[e]=new Y(e,1,!1,e.toLowerCase(),null,!1)}),V.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){V[e]=new Y(e,1,!1,e.toLowerCase(),null,!0)});var Z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=V.hasOwnProperty(t)?V[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!W.call(H,e)||!W.call(q,e)&&(K.test(e)?H[e]=!0:(q[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Z.hasOwnProperty("ReactCurrentDispatcher")||(Z.ReactCurrentDispatcher={current:null}),Z.hasOwnProperty("ReactCurrentBatchConfig")||(Z.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,$="function"==typeof Symbol&&Symbol.for,ee=$?Symbol.for("react.element"):60103,te=$?Symbol.for("react.portal"):60106,ne=$?Symbol.for("react.fragment"):60107,re=$?Symbol.for("react.strict_mode"):60108,ie=$?Symbol.for("react.profiler"):60114,oe=$?Symbol.for("react.provider"):60109,ae=$?Symbol.for("react.context"):60110,ue=$?Symbol.for("react.concurrent_mode"):60111,le=$?Symbol.for("react.forward_ref"):60112,se=$?Symbol.for("react.suspense"):60113,ce=$?Symbol.for("react.suspense_list"):60120,fe=$?Symbol.for("react.memo"):60115,de=$?Symbol.for("react.lazy"):60116,pe=$?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case se:return"Suspense";case ce:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return me(e.type);case pe:return me(e.render);case de:if(e=1===e._status?e._result:null)return me(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=me(e.type);n=null,r&&(n=me(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ke(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ve(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Te(e,t){Ee(e,t);var n=ve(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(("submit"===r||"reset"===r)&&null==t.value)return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Pe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ve(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Be(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ve(n)}}function De(e,t){var n=ve(t.value),r=ve(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Re(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ne(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,Ue,Le=(Ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Ue(e,t)})}:Ue);function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Fe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var je={animationend:Fe("Animation","AnimationEnd"),animationiteration:Fe("Animation","AnimationIteration"),animationstart:Fe("Animation","AnimationStart"),transitionend:Fe("Transition","TransitionEnd")},Ke={},We={};function qe(e){if(Ke[e])return Ke[e];if(!je[e])return e;var t,n=je[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return Ke[e]=n[t];return e}C&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete je.animationend.animation,delete je.animationiteration.animation,delete je.animationstart.animation),"TransitionEvent"in window||delete je.transitionend.transition);var He=qe("animationend"),Ye=qe("animationiteration"),Ve=qe("animationstart"),Qe=qe("transitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ze=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=Ze.get(e);return void 0===t&&(t=new Map,Ze.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Je(e)!==e)throw Error(a(188))}function tt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return et(i),e;if(o===r)return et(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u){for(l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function ot(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(it=nt(it,e)),e=it,it=null,e){if(rt(e,ot),it)throw Error(a(95));if(c)throw e=f,c=!1,f=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var st=[];function ct(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>st.length&&st.push(e)}function ft(e,t,n,r){if(st.length){var i=st.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Pn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ut(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var u=null,l=0;l<x.length;l++){var s=x[l];s&&(s=s.extractEvents(r,t,o,i,a))&&(u=nt(u,s))}at(u)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Vt(t,"scroll",!0);break;case"focus":case"blur":Vt(t,"focus",!0),Vt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Vt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ge.indexOf(e)&&Yt(e,t)}n.set(e,null)}}var ht,gt,mt,yt=!1,vt=[],bt=null,wt=null,_t=null,xt=new Map,kt=new Map,Et=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),St="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function At(e,t){switch(e){case"focus":case"blur":bt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function Pt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ct(t,n,r,i,o),null!==t&&null!==(t=In(t))&>(t),e):(e.eventSystemFlags|=r,e)}function It(e){var t=Pn(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,function(){mt(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Bt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=In(t);return null!==n&>(n),e.blockedOn=t,!1}return!0}function Dt(e,t,n){Bt(e)&&n.delete(t)}function Ot(){for(yt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&ht(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==bt&&Bt(bt)&&(bt=null),null!==wt&&Bt(wt)&&(wt=null),null!==_t&&Bt(_t)&&(_t=null),xt.forEach(Dt),kt.forEach(Dt)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ot)))}function Nt(e){function t(t){return Rt(t,e)}if(0<vt.length){Rt(vt[0],e);for(var n=1;n<vt.length;n++){var r=vt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bt&&Rt(bt,e),null!==wt&&Rt(wt,e),null!==_t&&Rt(_t,e),xt.forEach(t),kt.forEach(t),n=0;n<Et.length;n++)(r=Et[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&null===(n=Et[0]).blockedOn;)It(n),null===n.blockedOn&&Et.shift()}var Mt={},Ut=new Map,Lt=new Map,zt=["abort","abort",He,"animationEnd",Ye,"animationIteration",Ve,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function Ft(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Lt.set(r,t),Ut.set(r,o),Mt[i]=o}}Ft("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ft("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ft(zt,2);for(var jt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Kt=0;Kt<jt.length;Kt++)Lt.set(jt[Kt],0);var Wt=o.unstable_UserBlockingPriority,qt=o.unstable_runWithPriority,Ht=!0;function Yt(e,t){Vt(t,e,!1)}function Vt(e,t,n){var r=Lt.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Gt.bind(null,t,1,e);break;default:r=Zt.bind(null,t,1,e)}e.addEventListener(t,r,!!n)}function Qt(e,t,n,r){L||M();var i=Zt,o=L;L=!0;try{N(i,e,t,n,r)}finally{(L=o)||F()}}function Gt(e,t,n,r){qt(Wt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){if(Ht)if(0<vt.length&&-1<Tt.indexOf(e))e=Ct(null,e,t,n,r),vt.push(e);else{var i=Xt(e,t,n,r);if(null===i)At(e,r);else if(-1<Tt.indexOf(e))e=Ct(i,e,t,n,r),vt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return bt=Pt(bt,e,t,n,r,i),!0;case"dragenter":return wt=Pt(wt,e,t,n,r,i),!0;case"mouseover":return _t=Pt(_t,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return xt.set(o,Pt(xt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return kt.set(o=i.pointerId,Pt(kt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){At(e,r),e=ft(e,r,null,t);try{j(dt,e)}finally{ct(e)}}}}function Xt(e,t,n,r){if(null!==(n=Pn(n=ut(r)))){var i=Je(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=$e(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ft(e,r,n,t);try{j(dt,e)}finally{ct(e)}return null}var Jt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$t=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Jt.hasOwnProperty(e)&&Jt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Jt).forEach(function(e){$t.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jt[t]=Jt[e]})});var nn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an="http://www.w3.org/1999/xhtml";function un(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=T[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function ln(){}function sn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=cn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cn(r)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pn(){for(var e=window,t=sn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=sn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn="$?",mn="$!",yn=null,vn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var _n="function"==typeof setTimeout?setTimeout:void 0,xn="function"==typeof clearTimeout?clearTimeout:void 0;function kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===mn||n===gn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Tn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+Tn,Cn="__reactEventHandlers$"+Tn,An="__reactContainere$"+Tn;function Pn(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[An]||n[Sn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[Sn])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[Sn]||e[An])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Bn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Dn(e){return e[Cn]||null}function On(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Nn(e,t,n){(t=Rn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Mn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=On(t);for(t=n.length;0<t--;)Nn(n[t],"captured",e);for(t=0;t<n.length;t++)Nn(n[t],"bubbled",e)}}function Un(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Rn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Ln(e){e&&e.dispatchConfig.registrationName&&Un(e._targetInst,null,e)}function zn(e){rt(e,Mn)}var Fn=null,jn=null,Kn=null;function Wn(){if(Kn)return Kn;var e,t,n=jn,r=n.length,i="value"in Fn?Fn.value:Fn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Kn=i.slice(e,1<t?1-t:void 0)}function qn(){return!0}function Hn(){return!1}function Yn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?qn:Hn,this.isPropagationStopped=Hn,this}function Vn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Qn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Vn,e.release=Qn}i(Yn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=qn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=qn)},persist:function(){this.isPersistent=qn},isPersistent:Hn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Hn,this._dispatchInstances=this._dispatchListeners=null}}),Yn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Yn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),(n.prototype=o).constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Yn);var Zn=Yn.extend({data:null}),Xn=Yn.extend({data:null}),Jn=[9,13,27,32],$n=C&&"CompositionEvent"in window,er=null;C&&"documentMode"in document&&(er=document.documentMode);var tr=C&&"TextEvent"in window&&!er,nr=C&&(!$n||er&&8<er&&11>=er),rr=String.fromCharCode(32),ir={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},or=!1;function ar(e,t){switch(e){case"keyup":return-1!==Jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ur(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var lr=!1,sr={eventTypes:ir,extractEvents:function(e,t,n,r){var i;if($n)e:{switch(e){case"compositionstart":var o=ir.compositionStart;break e;case"compositionend":o=ir.compositionEnd;break e;case"compositionupdate":o=ir.compositionUpdate;break e}o=void 0}else lr?ar(e,n)&&(o=ir.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ir.compositionStart);return o?(nr&&"ko"!==n.locale&&(lr||o!==ir.compositionStart?o===ir.compositionEnd&&lr&&(i=Wn()):(jn="value"in(Fn=r)?Fn.value:Fn.textContent,lr=!0)),o=Zn.getPooled(o,t,n,r),(i||null!==(i=ur(n)))&&(o.data=i),zn(o),i=o):i=null,(e=tr?function(e,t){switch(e){case"compositionend":return ur(t);case"keypress":return 32!==t.which?null:(or=!0,rr);case"textInput":return(e=t.data)===rr&&or?null:e;default:return null}}(e,n):function(e,t){if(lr)return"compositionend"===e||!$n&&ar(e,t)?(e=Wn(),Kn=jn=Fn=null,lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Xn.getPooled(ir.beforeInput,t,n,r)).data=e,zn(t)):t=null,null===i?t:null===t?i:[i,t]}},cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!cr[e.type]:"textarea"===t}var dr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=Yn.getPooled(dr.change,e,t,n)).type="change",D(n),zn(e),e}var hr=null,gr=null;function mr(e){at(e)}function yr(e){if(_e(Bn(e)))return e}function vr(e,t){if("change"===e)return t}var br=!1;function wr(){hr&&(hr.detachEvent("onpropertychange",_r),gr=hr=null)}function _r(e){if("value"===e.propertyName&&yr(gr))if(e=pr(gr,e,ut(e)),L)at(e);else{L=!0;try{R(mr,e)}finally{L=!1,F()}}}function xr(e,t,n){"focus"===e?(wr(),gr=n,(hr=t).attachEvent("onpropertychange",_r)):"blur"===e&&wr()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return yr(gr)}function Er(e,t){if("click"===e)return yr(t)}function Tr(e,t){if("input"===e||"change"===e)return yr(t)}C&&(br=lt("input")&&(!document.documentMode||9<document.documentMode));var Sr={eventTypes:dr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var i=t?Bn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=vr;else if(fr(i))if(br)a=Tr;else{a=kr;var u=xr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Er);if(a&&(a=a(e,t)))return pr(a,n,r);u&&u(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Ce(i,"number",i.value)}},Cr=Yn.extend({view:null,detail:null}),Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ar[e])&&!!t[e]}function Ir(){return Pr}var Br=0,Dr=0,Or=!1,Rr=!1,Nr=Cr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Br;return Br=e.screenX,Or?"mousemove"===e.type?e.screenX-t:0:(Or=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Dr;return Dr=e.screenY,Rr?"mousemove"===e.type?e.screenY-t:0:(Rr=!0,0)}}),Mr=Nr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ur={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Ur,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Pn(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var u=Nr,l=Ur.mouseLeave,s=Ur.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=Mr,l=Ur.pointerLeave,s=Ur.pointerEnter,c="pointer");if(e=null==a?o:Bn(a),o=null==t?o:Bn(t),(l=u.getPooled(l,a,n,r)).type=c+"leave",l.target=e,l.relatedTarget=o,(n=u.getPooled(s,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=e,c=t,(r=a)&&c)e:{for(s=c,a=0,e=u=r;e;e=On(e))a++;for(e=0,t=s;t;t=On(t))e++;for(;0<a-e;)u=On(u),a--;for(;0<e-a;)s=On(s),e--;for(;a--;){if(u===s||u===s.alternate)break e;u=On(u),s=On(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(a=r.alternate)||a!==s);)u.push(r),r=On(r);for(r=[];c&&c!==s&&(null===(a=c.alternate)||a!==s);)r.push(c),c=On(c);for(c=0;c<u.length;c++)Un(u[c],"bubbled",l);for(c=r.length;0<c--;)Un(r[c],"captured",n);return 0==(64&i)?[l]:[l,n]}},zr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Fr=Object.prototype.hasOwnProperty;function jr(e,t){if(zr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Fr.call(t,n[r])||!zr(e[n[r]],t[n[r]]))return!1;return!0}var Kr=C&&"documentMode"in document&&11>=document.documentMode,Wr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},qr=null,Hr=null,Yr=null,Vr=!1;function Qr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vr||null==qr||qr!==sn(n)?null:(n="selectionStart"in(n=qr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Yr&&jr(Yr,n)?null:(Yr=n,(e=Yn.getPooled(Wr.select,Hr,e,t)).type="select",e.target=qr,zn(e),e))}var Gr={eventTypes:Wr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Xe(i),o=T.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Bn(t):window,e){case"focus":(fr(i)||"true"===i.contentEditable)&&(qr=i,Hr=t,Yr=null);break;case"blur":Yr=Hr=qr=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,Qr(n,r);case"selectionchange":if(Kr)break;case"keydown":case"keyup":return Qr(n,r)}return null}},Zr=Yn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xr=Yn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jr=Cr.extend({relatedTarget:null});function $r(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ei={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ti={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ni=Cr.extend({key:function(e){if(e.key){var t=ei[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=$r(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ti[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?$r(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?$r(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ri=Nr.extend({dataTransfer:null}),ii=Cr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),oi=Yn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ai=Nr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ui={eventTypes:Mt,extractEvents:function(e,t,n,r){var i=Ut.get(e);if(!i)return null;switch(e){case"keypress":if(0===$r(n))return null;case"keydown":case"keyup":e=ni;break;case"blur":case"focus":e=Jr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Nr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ri;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ii;break;case He:case Ye:case Ve:e=Zr;break;case Qe:e=oi;break;case"scroll":e=Cr;break;case"wheel":e=ai;break;case"copy":case"cut":case"paste":e=Xr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mr;break;default:e=Yn}return zn(t=e.getPooled(i,t,n,r)),t}};if(v)throw Error(a(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Dn,g=In,m=Bn,S({SimpleEventPlugin:ui,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:Sr,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var li=[],si=-1;function ci(e){0>si||(e.current=li[si],li[si]=null,si--)}function fi(e,t){si++,li[si]=e.current,e.current=t}var di={},pi={current:di},hi={current:!1},gi=di;function mi(e,t){var n=e.type.contextTypes;if(!n)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yi(e){return null!=e.childContextTypes}function vi(){ci(hi),ci(pi)}function bi(e,t,n){if(pi.current!==di)throw Error(a(168));fi(pi,t),fi(hi,n)}function wi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,me(t)||"Unknown",o));return i({},n,{},r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,gi=pi.current,fi(pi,e),fi(hi,hi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wi(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,ci(hi),ci(pi),fi(pi,e)):ci(hi),fi(hi,n)}var ki=o.unstable_runWithPriority,Ei=o.unstable_scheduleCallback,Ti=o.unstable_cancelCallback,Si=o.unstable_requestPaint,Ci=o.unstable_now,Ai=o.unstable_getCurrentPriorityLevel,Pi=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Bi=o.unstable_NormalPriority,Di=o.unstable_LowPriority,Oi=o.unstable_IdlePriority,Ri={},Ni=o.unstable_shouldYield,Mi=void 0!==Si?Si:function(){},Ui=null,Li=null,zi=!1,Fi=Ci(),ji=1e4>Fi?Ci:function(){return Ci()-Fi};function Ki(){switch(Ai()){case Pi:return 99;case Ii:return 98;case Bi:return 97;case Di:return 96;case Oi:return 95;default:throw Error(a(332))}}function Wi(e){switch(e){case 99:return Pi;case 98:return Ii;case 97:return Bi;case 96:return Di;case 95:return Oi;default:throw Error(a(332))}}function qi(e,t){return e=Wi(e),ki(e,t)}function Hi(e,t,n){return e=Wi(e),Ei(e,t,n)}function Yi(e){return null===Ui?(Ui=[e],Li=Ei(Pi,Qi)):Ui.push(e),Ri}function Vi(){if(null!==Li){var e=Li;Li=null,Ti(e)}Qi()}function Qi(){if(!zi&&null!==Ui){zi=!0;var e=0;try{var t=Ui;qi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Ui=null}catch(n){throw null!==Ui&&(Ui=Ui.slice(e+1)),Ei(Pi,Vi),n}finally{zi=!1}}}function Gi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Zi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Xi={current:null},Ji=null,$i=null,eo=null;function to(){eo=$i=Ji=null}function no(e){var t=Xi.current;ci(Xi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function io(e,t){Ji=e,eo=$i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Da=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===$i){if(null===Ji)throw Error(a(308));$i=t,Ji.dependencies={expirationTime:0,firstContext:t,responders:null}}else $i=$i.next=t;return e._currentValue}var ao=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function lo(e,t){t.updateQueue===(e=e.updateQueue)&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.alternate;null!==n&&lo(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function po(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.baseQueue,u=o.shared.pending;if(null!==u){if(null!==a){var l=a.next;a.next=u.next,u.next=l}a=u,o.shared.pending=null,null!==(l=e.alternate)&&null!==(l=l.updateQueue)&&(l.baseQueue=u)}if(null!==a){var s=o.baseState,c=0,f=null,d=null,p=null;if(null!==(l=a.next))for(var h=l;;){if((u=h.expirationTime)<r){var g={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=g,f=s):p=p.next=g,u>c&&(c=u)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),sl(u,h.suspenseConfig);e:{var m=e,y=h;switch(u=t,g=n,y.tag){case 1:if("function"==typeof(m=y.payload)){s=m.call(g,s,u);break e}s=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(u="function"==typeof(m=y.payload)?m.call(g,s,u):m))break e;s=i({},s,u);break e;case 2:ao=!0}}null!==h.callback&&(e.effectTag|=32,null===(u=o.effects)?o.effects=[h]:u.push(h))}if(null===(h=h.next)||h===l){if(null===(u=o.shared.pending))break;h=a.next=u.next,u.next=l,o.baseQueue=a=u,o.shared.pending=null}}null===p?f=s:p.next=d,o.baseState=f,o.baseQueue=p,cl(c),e.expirationTime=c,e.memoizedState=s}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var go=Z.ReactCurrentBatchConfig,mo=(new r.Component).refs;function yo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var vo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Zu(),i=go.suspense;(i=so(r=Xu(r,e,i),i)).payload=t,null!=n&&(i.callback=n),co(e,i),Ju(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Zu(),i=go.suspense;(i=so(r=Xu(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),co(e,i),Ju(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Zu(),r=go.suspense;(r=so(n=Xu(n,e,r),r)).tag=2,null!=t&&(r.callback=t),co(e,r),Ju(e,n)}};function bo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&jr(n,r)&&jr(i,o))}function wo(e,t,n){var r=!1,i=di,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=yi(t)?gi:pi.current,o=(r=null!=(r=t.contextTypes))?mi(e,i):di),t=new t(n,o),e.memoizedState=null!=t.state?t.state:null,t.updater=vo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vo.enqueueReplaceState(t,t.state,null)}function xo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mo,uo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=yi(t)?gi:pi.current,i.context=mi(e,o)),po(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(yo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&vo.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var ko=Array.isArray;function Eo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===mo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function To(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)e.set(null!==t.key?t.key:t.index,t),t=t.sibling;return e}function i(e,t){return(e=Il(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ol(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Eo(e,t,n),r.return=e,r):((r=Bl(n.type,n.key,n.props,null,e.mode,r)).ref=Eo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Rl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Dl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ol(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Bl(t.type,t.key,t.props,null,e.mode,n)).ref=Eo(e,null,t),n.return=e,n;case te:return(t=Rl(t,e.mode,n)).return=e,t}if(ko(t)||ge(t))return(t=Dl(t,e.mode,n,null)).return=e,t;To(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):s(e,t,n,r):null;case te:return n.key===i?c(e,t,n,r):null}if(ko(n)||ge(n))return null!==i?null:f(e,t,n,r,null);To(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):s(t,e,r,i);case te:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ko(r)||ge(r))return f(t,e=e.get(n)||null,r,i,null);To(t,r)}return null}function g(i,a,u,l){for(var s=null,c=null,f=a,g=a=0,m=null;null!==f&&g<u.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var y=p(i,f,u[g],l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,g),null===c?s=y:c.sibling=y,c=y,f=m}if(g===u.length)return n(i,f),s;if(null===f){for(;g<u.length;g++)null!==(f=d(i,u[g],l))&&(a=o(f,a,g),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(i,f);g<u.length;g++)null!==(m=h(f,i,g,u[g],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),a=o(m,a,g),null===c?s=m:c.sibling=m,c=m);return e&&f.forEach(function(e){return t(i,e)}),s}function m(i,u,l,s){var c=ge(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,g=u,m=u=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=p(i,g,v.value,s);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(i,g),u=o(b,u,m),null===f?c=b:f.sibling=b,f=b,g=y}if(v.done)return n(i,g),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=d(i,v.value,s))&&(u=o(v,u,m),null===f?c=v:f.sibling=v,f=v);return c}for(g=r(i,g);!v.done;m++,v=l.next())null!==(v=h(g,i,m,v.value,s))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),u=o(v,u,m),null===f?c=v:f.sibling=v,f=v);return e&&g.forEach(function(e){return t(i,e)}),c}return function(e,r,o,l){var s="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;s&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ee:e:{for(c=o.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(o.type===ne){n(e,s.sibling),(r=i(s,o.props.children)).return=e,e=r;break e}break;default:if(s.elementType===o.type){n(e,s.sibling),(r=i(s,o.props)).ref=Eo(e,s,o),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}o.type===ne?((r=Dl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Bl(o.type,o.key,o.props,null,e.mode,l)).ref=Eo(e,r,o),l.return=e,e=l)}return u(e);case te:e:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Rl(o,e.mode,l)).return=e,e=r}return u(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Ol(o,e.mode,l)).return=e,e=r),u(e);if(ko(o))return g(e,r,o,l);if(ge(o))return m(e,r,o,l);if(c&&To(e,o),void 0===o&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Co=So(!0),Ao=So(!1),Po={},Io={current:Po},Bo={current:Po},Do={current:Po};function Oo(e){if(e===Po)throw Error(a(174));return e}function Ro(e,t){switch(fi(Do,t),fi(Bo,e),fi(Io,Po),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,"");break;default:t=Ne(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Io),fi(Io,t)}function No(){ci(Io),ci(Bo),ci(Do)}function Mo(e){Oo(Do.current);var t=Oo(Io.current),n=Ne(t,e.type);t!==n&&(fi(Bo,e),fi(Io,n))}function Uo(e){Bo.current===e&&(ci(Io),ci(Bo))}var Lo={current:0};function zo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===mn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Fo(e,t){return{responder:e,props:t}}var jo=Z.ReactCurrentDispatcher,Ko=Z.ReactCurrentBatchConfig,Wo=0,qo=null,Ho=null,Yo=null,Vo=!1;function Qo(){throw Error(a(321))}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,o){if(Wo=o,qo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,jo.current=null===e||null===e.memoizedState?ba:wa,e=n(r,i),t.expirationTime===Wo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Yo=Ho=null,t.updateQueue=null,jo.current=_a,e=n(r,i)}while(t.expirationTime===Wo)}if(jo.current=va,t=null!==Ho&&null!==Ho.next,Wo=0,Yo=Ho=qo=null,Vo=!1,t)throw Error(a(300));return e}function Xo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yo?qo.memoizedState=Yo=e:Yo=Yo.next=e,Yo}function Jo(){if(null===Ho){var e=qo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Yo?qo.memoizedState:Yo.next;if(null!==t)Yo=t,Ho=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Yo?qo.memoizedState=Yo=e:Yo=Yo.next=e}return Yo}function $o(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Jo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ho,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){r=r.baseState;var l=u=o=null,s=i=i.next;do{var c=s.expirationTime;if(c<Wo){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===l?(u=l=f,o=r):l=l.next=f,c>qo.expirationTime&&(qo.expirationTime=c,cl(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),sl(c,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==i);null===l?o=r:l.next=u,zr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Jo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=e(o,u.action),u=u.next}while(u!==i);zr(o,t.memoizedState)||(Da=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function na(e){var t=Xo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e}).dispatch=ya.bind(null,qo,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=qo.updateQueue)?(qo.updateQueue=t={lastEffect:null},t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ia(){return Jo().memoizedState}function oa(e,t,n,r){var i=Xo();qo.effectTag|=e,i.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var i=Jo();r=void 0===r?null:r;var o=void 0;if(null!==Ho){var a=Ho.memoizedState;if(o=a.destroy,null!==r&&Go(r,a.deps))return void ra(t,n,o,r)}qo.effectTag|=e,i.memoizedState=ra(1|t,n,o,r)}function ua(e,t){return oa(516,4,e,t)}function la(e,t){return aa(516,4,e,t)}function sa(e,t){return aa(4,2,e,t)}function ca(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fa(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,ca.bind(null,t,e),n)}function da(){}function pa(e,t){return Xo().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Jo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=Jo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ma(e,t,n){var r=Ki();qi(98>r?98:r,function(){e(!0)}),qi(97<r?97:r,function(){var r=Ko.suspense;Ko.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ko.suspense=r}})}function ya(e,t,n){var r=Zu(),i=go.suspense;i={expirationTime:r=Xu(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===qo||null!==o&&o===qo)Vo=!0,i.expirationTime=Wo,qo.expirationTime=Wo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=o(a,n);if(i.eagerReducer=o,i.eagerState=u,zr(u,a))return}catch(l){}Ju(e,r)}}var va={readContext:oo,useCallback:Qo,useContext:Qo,useEffect:Qo,useImperativeHandle:Qo,useLayoutEffect:Qo,useMemo:Qo,useReducer:Qo,useRef:Qo,useState:Qo,useDebugValue:Qo,useResponder:Qo,useDeferredValue:Qo,useTransition:Qo},ba={readContext:oo,useCallback:pa,useContext:oo,useEffect:ua,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Xo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ya.bind(null,qo,e),[r.memoizedState,e]},useRef:function(e){return Xo().memoizedState={current:e}},useState:na,useDebugValue:da,useResponder:Fo,useDeferredValue:function(e,t){var n=na(e),r=n[0],i=n[1];return ua(function(){var n=Ko.suspense;Ko.suspense=void 0===t?null:t;try{i(e)}finally{Ko.suspense=n}},[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return[pa(ma.bind(null,t=t[1],e),[t,e]),n]}},wa={readContext:oo,useCallback:ha,useContext:oo,useEffect:la,useImperativeHandle:fa,useLayoutEffect:sa,useMemo:ga,useReducer:ea,useRef:ia,useState:function(){return ea($o)},useDebugValue:da,useResponder:Fo,useDeferredValue:function(e,t){var n=ea($o),r=n[0],i=n[1];return la(function(){var n=Ko.suspense;Ko.suspense=void 0===t?null:t;try{i(e)}finally{Ko.suspense=n}},[e,t]),r},useTransition:function(e){var t=ea($o),n=t[0];return[ha(ma.bind(null,t=t[1],e),[t,e]),n]}},_a={readContext:oo,useCallback:ha,useContext:oo,useEffect:la,useImperativeHandle:fa,useLayoutEffect:sa,useMemo:ga,useReducer:ta,useRef:ia,useState:function(){return ta($o)},useDebugValue:da,useResponder:Fo,useDeferredValue:function(e,t){var n=ta($o),r=n[0],i=n[1];return la(function(){var n=Ko.suspense;Ko.suspense=void 0===t?null:t;try{i(e)}finally{Ko.suspense=n}},[e,t]),r},useTransition:function(e){var t=ta($o),n=t[0];return[ha(ma.bind(null,t=t[1],e),[t,e]),n]}},xa=null,ka=null,Ea=!1;function Ta(e,t){var n=Al(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Sa(e,t){switch(e.tag){case 5:return null!==(t=1!==t.nodeType||e.type.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ca(e){if(Ea){var t=ka;if(t){var n=t;if(!Sa(e,t)){if(!(t=kn(n.nextSibling))||!Sa(e,t))return e.effectTag=-1025&e.effectTag|2,Ea=!1,void(xa=e);Ta(xa,n)}xa=e,ka=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ea=!1,xa=e}}function Aa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;xa=e}function Pa(e){if(e!==xa)return!1;if(!Ea)return Aa(e),Ea=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wn(t,e.memoizedProps))for(t=ka;t;)Ta(e,t),t=kn(t.nextSibling);if(Aa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ka=kn(e.nextSibling);break e}t--}else"$"!==n&&n!==mn&&n!==gn||t++}e=e.nextSibling}ka=null}}else ka=xa?kn(e.stateNode.nextSibling):null;return!0}function Ia(){ka=xa=null,Ea=!1}var Ba=Z.ReactCurrentOwner,Da=!1;function Oa(e,t,n,r){t.child=null===e?Ao(t,null,n,r):Co(t,e.child,n,r)}function Ra(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=Zo(e,t,n,r,o,i),null===e||Da?(t.effectTag|=1,Oa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Za(e,t,i))}function Na(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Pl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Bl(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,i,o))}return a=e.child,i<o&&(n=null!==(n=n.compare)?n:jr)(i=a.memoizedProps,r)&&e.ref===t.ref?Za(e,t,o):(t.effectTag|=1,(e=Il(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,i,o){return null!==e&&jr(e.memoizedProps,r)&&e.ref===t.ref&&(Da=!1,i<o)?(t.expirationTime=e.expirationTime,Za(e,t,o)):La(e,t,n,r,o)}function Ua(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function La(e,t,n,r,i){var o=yi(n)?gi:pi.current;return o=mi(t,o),io(t,i),n=Zo(e,t,n,r,o,i),null===e||Da?(t.effectTag|=1,Oa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Za(e,t,i))}function za(e,t,n,r,i){if(yi(n)){var o=!0;_i(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),wo(t,n,r),xo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var l=a.context,s=n.contextType;s="object"==typeof s&&null!==s?oo(s):mi(t,s=yi(n)?gi:pi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==s)&&_o(t,a,r,s),ao=!1;var d=t.memoizedState;a.state=d,po(t,r,a,i),l=t.memoizedState,u!==r||d!==l||hi.current||ao?("function"==typeof c&&(yo(t,n,c,r),l=t.memoizedState),(u=ao||bo(t,n,u,r,d,l,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=s,r=u):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,lo(e,t),u=t.memoizedProps,a.props=t.type===t.elementType?u:Zi(t.type,u),l=a.context,s="object"==typeof(s=n.contextType)&&null!==s?oo(s):mi(t,s=yi(n)?gi:pi.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u!==r||l!==s)&&_o(t,a,r,s),ao=!1,a.state=l=t.memoizedState,po(t,r,a,i),d=t.memoizedState,u!==r||l!==d||hi.current||ao?("function"==typeof c&&(yo(t,n,c,r),d=t.memoizedState),(c=ao||bo(t,n,u,r,l,d,s))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,s)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Fa(e,t,n,r,o,i)}function Fa(e,t,n,r,i,o){Ua(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&xi(t,n,!1),Za(e,t,o);r=t.stateNode,Ba.current=t;var u=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,u,o)):Oa(e,t,u,o),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function ja(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Ro(e,t.containerInfo)}var Ka,Wa,qa,Ha={dehydrated:null,retryTime:0};function Ya(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Lo.current,u=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),fi(Lo,1&a),null===e){if(void 0!==o.fallback&&Ca(t),u){if(u=o.fallback,(o=Dl(null,i,0,null)).return=t,0==(2&t.mode))for(o.child=e=null!==t.memoizedState?t.child.child:t.child;null!==e;)e.return=o,e=e.sibling;return(n=Dl(u,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ha,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Ao(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,u){if(o=o.fallback,(n=Il(e,e.pendingProps)).return=t,0==(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(i=Il(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ha,t.child=n,i}return n=Co(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=o.fallback,(o=Dl(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(o.child=e=null!==t.memoizedState?t.child.child:t.child;null!==e;)e.return=o,e=e.sibling;return(n=Dl(u,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ha,t.child=o,n}return t.memoizedState=null,t.child=Co(t,e,o.children,n)}function Va(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ro(e.return,t)}function Qa(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ga(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Oa(e,t,r.children,n),0!=(2&(r=Lo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Va(e,n);else if(19===e.tag)Va(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fi(Lo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===zo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qa(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===zo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qa(t,!0,n,null,o,t.lastEffect);break;case"together":Qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Za(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&cl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Il(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)(n=n.sibling=Il(e=e.sibling,e.pendingProps)).return=t;n.sibling=null}return t.child}function Xa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return yi(t.type)&&vi(),null;case 3:return No(),ci(hi),ci(pi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Pa(t)||(t.effectTag|=4),null;case 5:Uo(t),n=Oo(Do.current);var o=t.type;if(null!==e&&null!=t.stateNode)Wa(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Oo(Io.current),Pa(t)){o=t.type;var u=t.memoizedProps;switch((r=t.stateNode)[Sn]=t,r[Cn]=u,o){case"iframe":case"object":case"embed":Yt("load",r);break;case"video":case"audio":for(e=0;e<Ge.length;e++)Yt(Ge[e],r);break;case"source":Yt("error",r);break;case"img":case"image":case"link":Yt("error",r),Yt("load",r);break;case"form":Yt("reset",r),Yt("submit",r);break;case"details":Yt("toggle",r);break;case"input":ke(r,u),Yt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Yt("invalid",r),un(n,"onChange");break;case"textarea":Be(r,u),Yt("invalid",r),un(n,"onChange")}for(var l in rn(o,u),e=null,u)if(u.hasOwnProperty(l)){var s=u[l];"children"===l?"string"==typeof s?r.textContent!==s&&(e=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(e=["children",""+s]):E.hasOwnProperty(l)&&null!=s&&un(n,l)}switch(o){case"input":we(r),Se(r,u,!0);break;case"textarea":we(r),Oe(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=ln)}t.updateQueue=n=e,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Re(o)),e===an?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(o,{is:r.is}):(e=l.createElement(o),"select"===o&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,o),e[Sn]=t,e[Cn]=r,Ka(e,t),t.stateNode=e,l=on(o,r),o){case"iframe":case"object":case"embed":Yt("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ge.length;s++)Yt(Ge[s],e);s=r;break;case"source":Yt("error",e),s=r;break;case"img":case"image":case"link":Yt("error",e),Yt("load",e),s=r;break;case"form":Yt("reset",e),Yt("submit",e),s=r;break;case"details":Yt("toggle",e),s=r;break;case"input":ke(e,r),s=xe(e,r),Yt("invalid",e),un(n,"onChange");break;case"option":s=Ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=i({},r,{value:void 0}),Yt("invalid",e),un(n,"onChange");break;case"textarea":Be(e,r),s=Ie(e,r),Yt("invalid",e),un(n,"onChange");break;default:s=r}rn(o,s);var c=s;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?tn(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Le(e,f):"children"===u?"string"==typeof f?("textarea"!==o||""!==f)&&ze(e,f):"number"==typeof f&&ze(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?null!=f&&un(n,u):null!=f&&X(e,u,f,l))}switch(o){case"input":we(e),Se(e,r,!1);break;case"textarea":we(e),Oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ve(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Pe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Pe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof s.onClick&&(e.onclick=ln)}bn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Oo(Do.current),Oo(Io.current),Pa(t)?(r=t.memoizedProps,(n=t.stateNode)[Sn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=t,t.stateNode=n)}return null;case 13:return ci(Lo),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Pa(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=o,o.nextEffect=u):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Lo.current)?Bu===Eu&&(Bu=Tu):(Bu!==Eu&&Bu!==Tu||(Bu=Su),0!==Mu&&null!==Au&&(Ul(Au,Iu),Ll(Au,Mu)))),(n||r)&&(t.effectTag|=4),null);case 4:return No(),null;case 10:return no(t),null;case 17:return yi(t.type)&&vi(),null;case 19:if(ci(Lo),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(u=r.rendering)){if(o)Xa(r,!1);else if(Bu!==Eu||null!==e&&0!=(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=zo(u))){for(t.effectTag|=64,Xa(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=u,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,o.dependencies=null===(u=e.dependencies)?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return fi(Lo,1&Lo.current|2),t.child}u=u.sibling}}else{if(!o)if(null!==(e=zo(u))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Xa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*ji()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Xa(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=ji()+500),r.rendering=n=r.tail,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ji(),n.sibling=null,t=Lo.current,fi(Lo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function $a(e){switch(e.tag){case 1:yi(e.type)&&vi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(No(),ci(hi),ci(pi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Uo(e),null;case 13:return ci(Lo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ci(Lo),null;case 4:return No(),null;case 10:return no(e),null;default:return null}}function eu(e,t){return{value:e,source:t,stack:ye(t)}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Wa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var u,l,s=t.stateNode;switch(Oo(Io.current),e=null,n){case"input":a=xe(s,a),r=xe(s,r),e=[];break;case"option":a=Ae(s,a),r=Ae(s,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ie(s,a),r=Ie(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=ln)}for(u in rn(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(l in s=a[u])s.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(E.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(e||(e=[]),e.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,null!=(c=c?c.__html:void 0)&&s!==c&&(e=e||[]).push(u,c)):"children"===u?s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(E.hasOwnProperty(u)?(null!=c&&un(o,u),e||s===c||(e=[])):(e=e||[]).push(u,c))}n&&(e=e||[]).push("style",n),(t.updateQueue=o=e)&&(t.effectTag|=4)}},qa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var tu="function"==typeof WeakSet?WeakSet:Set;function nu(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(i){setTimeout(function(){throw i})}}function ru(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){xl(e,n)}else t.current=null}function iu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ou(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function au(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{(n.tag&e)===e&&(n.destroy=(0,n.create)()),n=n.next}while(n!==t)}}function uu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void au(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Zi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Nt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function lu(e,t,n){switch("function"==typeof Sl&&Sl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;qi(97<n?97:n,function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(o){xl(i,o)}}e=e.next}while(e!==r)})}break;case 1:ru(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){xl(e,n)}}(t,n);break;case 5:ru(t);break;case 4:hu(e,t,n)}}function su(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&su(t)}function cu(e){return 5===e.tag||3===e.tag||4===e.tag}function fu(e){e:{for(var t=e.return;null!==t;){if(cu(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?du(e,n,t):pu(e,n,t)}function du(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ln));else if(4!==r&&null!==(e=e.child))for(du(e,t,n),e=e.sibling;null!==e;)du(e,t,n),e=e.sibling}function pu(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(pu(e,t,n),e=e.sibling;null!==e;)pu(e,t,n),e=e.sibling}function hu(e,t,n){for(var r,i,o=t,u=!1;;){if(!u){u=o.return;e:for(;;){if(null===u)throw Error(a(160));switch(r=u.stateNode,u.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}u=u.return}u=!0}if(5===o.tag||6===o.tag){e:for(var l=e,s=o,c=n,f=s;;)if(lu(l,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(s=o.stateNode,8===(l=r).nodeType?l.parentNode.removeChild(s):l.removeChild(s)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(lu(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(u=!1)}o.sibling.return=o.return,o=o.sibling}}function gu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ou(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Cn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),on(e,i),t=on(e,r),i=0;i<o.length;i+=2){var u=o[i],l=o[i+1];"style"===u?tn(n,l):"dangerouslySetInnerHTML"===u?Le(n,l):"children"===u?ze(n,l):X(n,u,l,t)}switch(e){case"input":Te(n,r);break;case"textarea":De(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Pe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Pe(n,!!r.multiple,r.defaultValue,!0):Pe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Nt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Lu=ji()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=en("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void mu(t);case 19:return void mu(t);case 17:return}throw Error(a(163))}function mu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new tu),t.forEach(function(t){var r=El.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var yu="function"==typeof WeakMap?WeakMap:Map;function vu(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fu||(Fu=!0,ju=r),nu(e,t)},n}function bu(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return nu(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ku?Ku=new Set([this]):Ku.add(this),nu(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var wu,_u=Math.ceil,xu=Z.ReactCurrentDispatcher,ku=Z.ReactCurrentOwner,Eu=0,Tu=3,Su=4,Cu=0,Au=null,Pu=null,Iu=0,Bu=Eu,Du=null,Ou=1073741823,Ru=1073741823,Nu=null,Mu=0,Uu=!1,Lu=0,zu=null,Fu=!1,ju=null,Ku=null,Wu=!1,qu=null,Hu=90,Yu=null,Vu=0,Qu=null,Gu=0;function Zu(){return 0!=(48&Cu)?1073741821-(ji()/10|0):0!==Gu?Gu:Gu=1073741821-(ji()/10|0)}function Xu(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Ki();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&Cu))return Iu;if(null!==n)e=Gi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Gi(e,150,100);break;case 97:case 96:e=Gi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Au&&e===Iu&&--e,e}function Ju(e,t){if(50<Vu)throw Vu=0,Qu=null,Error(a(185));if(null!==(e=$u(e,t))){var n=Ki();1073741823===t?0!=(8&Cu)&&0==(48&Cu)?rl(e):(tl(e),0===Cu&&Vi()):tl(e),0==(4&Cu)||98!==n&&99!==n||(null===Yu?Yu=new Map([[e,t]]):(void 0===(n=Yu.get(e))||n>t)&&Yu.set(e,t))}}function $u(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Au===i&&(cl(t),Bu===Su&&Ul(i,Iu)),Ll(i,t)),i}function el(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ml(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function tl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yi(rl.bind(null,e));else{var t=el(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Zu();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){if(e.callbackExpirationTime===t&&e.callbackPriority>=r)return;n!==Ri&&Ti(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yi(rl.bind(null,e)):Hi(r,nl.bind(null,e),{timeout:10*(1073741821-t)-ji()}),e.callbackNode=t}}}function nl(e,t){if(Gu=0,t)return zl(e,t=Zu()),tl(e),null;var n=el(e);if(0!==n){if(t=e.callbackNode,0!=(48&Cu))throw Error(a(327));if(bl(),e===Au&&n===Iu||al(e,n),null!==Pu){var r=Cu;Cu|=16;for(var i=ll();;)try{dl();break}catch(l){ul(e,l)}if(to(),Cu=r,xu.current=i,1===Bu)throw t=Du,al(e,n),Ul(e,n),tl(e),t;if(null===Pu)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Bu,Au=null,r){case Eu:case 1:throw Error(a(345));case 2:zl(e,2<n?2:n);break;case Tu:if(Ul(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=gl(i)),1073741823===Ou&&10<(i=Lu+500-ji())){if(Uu){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,al(e,n);break}}if(0!==(o=el(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=_n(ml.bind(null,e),i);break}ml(e);break;case Su:if(Ul(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=gl(i)),Uu&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,al(e,n);break}if(0!==(i=el(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ru?r=10*(1073741821-Ru)-ji():1073741823===Ou?r=0:(r=10*(1073741821-Ou)-5e3,0>(r=(i=ji())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_u(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=_n(ml.bind(null,e),r);break}ml(e);break;case 5:if(1073741823!==Ou&&null!==Nu){o=Ou;var u=Nu;if(0>=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(o=ji()-(10*(1073741821-o)-(0|u.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ul(e,n),e.timeoutHandle=_n(ml.bind(null,e),r);break}}ml(e);break;default:throw Error(a(329))}if(tl(e),e.callbackNode===t)return nl.bind(null,e)}}return null}function rl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Cu))throw Error(a(327));if(bl(),e===Au&&t===Iu||al(e,t),null!==Pu){var n=Cu;Cu|=16;for(var r=ll();;)try{fl();break}catch(i){ul(e,i)}if(to(),Cu=n,xu.current=r,1===Bu)throw n=Du,al(e,t),Ul(e,t),tl(e),n;if(null!==Pu)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Au=null,ml(e),tl(e)}return null}function il(e,t){var n=Cu;Cu|=1;try{return e(t)}finally{0===(Cu=n)&&Vi()}}function ol(e,t){var n=Cu;Cu&=-2,Cu|=8;try{return e(t)}finally{0===(Cu=n)&&Vi()}}function al(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xn(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vi();break;case 3:No(),ci(hi),ci(pi);break;case 5:Uo(r);break;case 4:No();break;case 13:case 19:ci(Lo);break;case 10:no(r)}n=n.return}Au=e,Pu=Il(e.current,null),Iu=t,Bu=Eu,Du=null,Ru=Ou=1073741823,Nu=null,Mu=0,Uu=!1}function ul(e,t){for(;;){try{if(to(),jo.current=va,Vo)for(var n=qo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Wo=0,Yo=Ho=qo=null,Vo=!1,null===Pu||null===Pu.return)return Bu=1,Du=t,Pu=null;e:{var i=e,o=Pu.return,a=Pu,u=t;if(t=Iu,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var l=u;if(0==(2&a.mode)){var s=a.alternate;s?(a.updateQueue=s.updateQueue,a.memoizedState=s.memoizedState,a.expirationTime=s.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!=(1&Lo.current),f=o;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(d){var g=f.updateQueue;if(null===g){var m=new Set;m.add(l),f.updateQueue=m}else g.add(l);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=so(1073741823,null);y.tag=2,co(a,y)}a.expirationTime=1073741823;break e}u=void 0,a=t;var v=i.pingCache;if(null===v?(v=i.pingCache=new yu,u=new Set,v.set(l,u)):void 0===(u=v.get(l))&&(u=new Set,v.set(l,u)),!u.has(a)){u.add(a);var b=kl.bind(null,i,l,a);l.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}5!==Bu&&(Bu=2),u=eu(u,a),f=o;do{switch(f.tag){case 3:l=u,f.effectTag|=4096,f.expirationTime=t,fo(f,vu(f,l,t));break e;case 1:l=u;var w=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof f.type.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Ku||!Ku.has(w)))){f.effectTag|=4096,f.expirationTime=t,fo(f,bu(f,l,t));break e}}f=f.return}while(null!==f)}Pu=hl(Pu)}catch(_){t=_;continue}break}}function ll(){var e=xu.current;return xu.current=va,null===e?va:e}function sl(e,t){e<Ou&&2<e&&(Ou=e),null!==t&&e<Ru&&2<e&&(Ru=e,Nu=t)}function cl(e){e>Mu&&(Mu=e)}function fl(){for(;null!==Pu;)Pu=pl(Pu)}function dl(){for(;null!==Pu&&!Ni();)Pu=pl(Pu)}function pl(e){var t=wu(e.alternate,e,Iu);return e.memoizedProps=e.pendingProps,null===t&&(t=hl(e)),ku.current=null,t}function hl(e){Pu=e;do{var t=Pu.alternate;if(e=Pu.return,0==(2048&Pu.effectTag)){if(t=Ja(t,Pu,Iu),1===Iu||1!==Pu.childExpirationTime){for(var n=0,r=Pu.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Pu.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Pu.firstEffect),null!==Pu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Pu.firstEffect),e.lastEffect=Pu.lastEffect),1<Pu.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Pu:e.firstEffect=Pu,e.lastEffect=Pu))}else{if(null!==(t=$a(Pu)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Pu.sibling))return t;Pu=e}while(null!==Pu);return Bu===Eu&&(Bu=5),null}function gl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function ml(e){var t=Ki();return qi(99,yl.bind(null,e,t)),null}function yl(e,t){do{bl()}while(null!==qu);if(0!=(48&Cu))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=gl(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Au&&(Pu=Au=null,Iu=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Cu;Cu|=32,ku.current=null,yn=Ht;var u=pn();if(hn(u)){if("selectionStart"in u)var l={start:u.selectionStart,end:u.selectionEnd};else{var s=(l=(l=u.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(s&&0!==s.rangeCount){l=s.anchorNode;var c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;var d=0,p=-1,h=-1,g=0,m=0,y=u,v=null;e:for(;;){for(var b;y!==l||0!==c&&3!==y.nodeType||(p=d+c),y!==f||0!==s&&3!==y.nodeType||(h=d+s),3===y.nodeType&&(d+=y.nodeValue.length),null!==(b=y.firstChild);)v=y,y=b;for(;;){if(y===u)break e;if(v===l&&++g===c&&(p=d),v===f&&++m===s&&(h=d),null!==(b=y.nextSibling))break;v=(y=v).parentNode}y=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;vn={activeElementDetached:null,focusedElem:u,selectionRange:l},Ht=!1,zu=i;do{try{vl()}catch(S){if(null===zu)throw Error(a(330));xl(zu,S),zu=zu.nextEffect}}while(null!==zu);zu=i;do{try{for(u=e,l=t;null!==zu;){var w=zu.effectTag;if(16&w&&ze(zu.stateNode,""),128&w){var _=zu.alternate;if(null!==_){var x=_.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&w){case 2:fu(zu),zu.effectTag&=-3;break;case 6:fu(zu),zu.effectTag&=-3,gu(zu.alternate,zu);break;case 1024:zu.effectTag&=-1025;break;case 1028:zu.effectTag&=-1025,gu(zu.alternate,zu);break;case 4:gu(zu.alternate,zu);break;case 8:hu(u,c=zu,l),su(c)}zu=zu.nextEffect}}catch(S){if(null===zu)throw Error(a(330));xl(zu,S),zu=zu.nextEffect}}while(null!==zu);if(x=vn,_=pn(),l=x.selectionRange,_!==(w=x.focusedElem)&&w&&w.ownerDocument&&dn(w.ownerDocument.documentElement,w)){null!==l&&hn(w)&&(_=l.start,void 0===(x=l.end)&&(x=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(x,w.value.length)):(x=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(x=x.getSelection(),c=w.textContent.length,u=Math.min(l.start,c),l=void 0===l.end?u:Math.min(l.end,c),!x.extend&&u>l&&(c=l,l=u,u=c),c=fn(w,u),f=fn(w,l),c&&f&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((_=_.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),u>l?(x.addRange(_),x.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),x.addRange(_))))),_=[];for(x=w;x=x.parentNode;)1===x.nodeType&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(x=_[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Ht=!!yn,vn=yn=null,e.current=n,zu=i;do{try{for(w=e;null!==zu;){var k=zu.effectTag;if(36&k&&uu(w,zu.alternate,zu),128&k){_=void 0;var E=zu.ref;if(null!==E){var T=zu.stateNode;switch(zu.tag){case 5:_=T;break;default:_=T}"function"==typeof E?E(_):E.current=_}}zu=zu.nextEffect}}catch(S){if(null===zu)throw Error(a(330));xl(zu,S),zu=zu.nextEffect}}while(null!==zu);zu=null,Mi(),Cu=o}else e.current=n;if(Wu)Wu=!1,qu=e,Hu=t;else for(zu=i;null!==zu;)t=zu.nextEffect,zu.nextEffect=null,zu=t;if(0===(t=e.firstPendingTime)&&(Ku=null),1073741823===t?e===Qu?Vu++:(Vu=0,Qu=e):Vu=0,"function"==typeof Tl&&Tl(n.stateNode,r),tl(e),Fu)throw Fu=!1,e=ju,ju=null,e;return 0!=(8&Cu)||Vi(),null}function vl(){for(;null!==zu;){var e=zu.effectTag;0!=(256&e)&&iu(zu.alternate,zu),0==(512&e)||Wu||(Wu=!0,Hi(97,function(){return bl(),null})),zu=zu.nextEffect}}function bl(){if(90!==Hu){var e=97<Hu?97:Hu;return Hu=90,qi(e,wl)}}function wl(){if(null===qu)return!1;var e=qu;if(qu=null,0!=(48&Cu))throw Error(a(331));var t=Cu;for(Cu|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ou(5,n),au(5,n)}}catch(r){if(null===e)throw Error(a(330));xl(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Cu=t,Vi(),!0}function _l(e,t,n){co(e,t=vu(e,t=eu(n,t),1073741823)),null!==(e=$u(e,1073741823))&&tl(e)}function xl(e,t){if(3===e.tag)_l(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){_l(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ku||!Ku.has(r))){co(n,e=bu(n,e=eu(t,e),1073741823)),null!==(n=$u(n,1073741823))&&tl(n);break}}n=n.return}}function kl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Au===e&&Iu===n?Bu===Su||Bu===Tu&&1073741823===Ou&&ji()-Lu<500?al(e,Iu):Uu=!0:Ml(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,tl(e)))}function El(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=Xu(t=Zu(),e,null)),null!==(e=$u(e,t))&&tl(e)}wu=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||hi.current)Da=!0;else{if(r<n){switch(Da=!1,t.tag){case 3:ja(t),Ia();break;case 5:if(Mo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:yi(t.type)&&_i(t);break;case 4:Ro(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,fi(Xi,(i=t.type._context)._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ya(e,t,n):(fi(Lo,1&Lo.current),null!==(t=Za(e,t,n))?t.sibling:null);fi(Lo,1&Lo.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),fi(Lo,Lo.current),!r)return null}return Za(e,t,n)}Da=!1}}else Da=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=mi(t,pi.current),io(t,n),i=Zo(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!=i.state?i.state:null,uo(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&yo(t,r,u,e),i.updater=vo,t.stateNode=i,i._reactInternalFiber=t,xo(t,r,e,n),t=Fa(null,t,r,!0,o,n)}else t.tag=0,Oa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}(i),1!==i._status)throw i._result;switch(t.type=i=i._result,o=t.tag=function(e){if("function"==typeof e)return Pl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===fe)return 14}return 2}(i),e=Zi(i,e),o){case 0:t=La(null,t,i,e,n);break e;case 1:t=za(null,t,i,e,n);break e;case 11:t=Ra(null,t,i,e,n);break e;case 14:t=Na(null,t,i,Zi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return i=t.pendingProps,La(e,t,r=t.type,i=t.elementType===r?i:Zi(r,i),n);case 1:return i=t.pendingProps,za(e,t,r=t.type,i=t.elementType===r?i:Zi(r,i),n);case 3:if(ja(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===i)Ia(),t=Za(e,t,n);else{if((i=t.stateNode.hydrate)&&(ka=kn(t.stateNode.containerInfo.firstChild),xa=t,i=Ea=!0),i)for(n=Ao(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Oa(e,t,r,n),Ia();t=t.child}return t;case 5:return Mo(t),null===e&&Ca(t),o=null!==e?e.memoizedProps:null,u=(i=t.pendingProps).children,wn(r=t.type,i)?u=null:null!==o&&wn(r,o)&&(t.effectTag|=16),Ua(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Oa(e,t,u,n),t=t.child),t;case 6:return null===e&&Ca(t),null;case 13:return Ya(e,t,n);case 4:return Ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Oa(e,t,r,n),t.child;case 11:return i=t.pendingProps,Ra(e,t,r=t.type,i=t.elementType===r?i:Zi(r,i),n);case 7:return Oa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Oa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,u=t.memoizedProps,o=(i=t.pendingProps).value;var l=t.type._context;if(fi(Xi,l._currentValue),l._currentValue=o,null!==u)if(0==(o=zr(l=u.value,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(u.children===i.children&&!hi.current){t=Za(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var s=l.dependencies;if(null!==s){u=l.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=so(n,null)).tag=2,co(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),ro(l.return,n),s.expirationTime<n&&(s.expirationTime=n);break}c=c.next}}else u=10===l.tag&&l.type===t.type?null:l.child;if(null!==u)u.return=l;else for(u=l;null!==u;){if(u===t){u=null;break}if(null!==(l=u.sibling)){l.return=u.return,u=l;break}u=u.return}l=u}Oa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.effectTag|=1,Oa(e,t,r,n),t.child;case 14:return o=Zi(i=t.type,t.pendingProps),Na(e,t,i,o=Zi(i.type,o),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return i=t.pendingProps,i=t.elementType===(r=t.type)?i:Zi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,yi(r)?(e=!0,_i(t)):e=!1,io(t,n),wo(t,r,i),xo(t,r,i,n),Fa(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var Tl=null,Sl=null;function Cl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Al(e,t,n,r){return new Cl(e,t,n,r)}function Pl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Il(e,t){var n=e.alternate;return null===n?((n=Al(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.dependencies=null===(t=e.dependencies)?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bl(e,t,n,r,i,o){var u=2;if(r=e,"function"==typeof e)Pl(e)&&(u=1);else if("string"==typeof e)u=5;else e:switch(e){case ne:return Dl(n.children,i,o,t);case ue:u=8,i|=7;break;case re:u=8,i|=1;break;case ie:return(e=Al(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case se:return(e=Al(13,n,t,i)).type=se,e.elementType=se,e.expirationTime=o,e;case ce:return(e=Al(19,n,t,i)).elementType=ce,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:u=10;break e;case ae:u=9;break e;case le:u=11;break e;case fe:u=14;break e;case de:u=16,r=null;break e;case pe:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Al(u,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Dl(e,t,n,r){return(e=Al(7,e,r,t)).expirationTime=n,e}function Ol(e,t,n){return(e=Al(6,e,null,t)).expirationTime=n,e}function Rl(e,t,n){return(t=Al(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ml(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Ul(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ll(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function zl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Fl(e,t,n,r){var i=t.current,o=Zu(),u=go.suspense;o=Xu(o,i,u);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var s=n.type;if(yi(s)){n=wi(n,s,l);break e}}n=l}else n=di;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),Ju(i,o),o}function jl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Kl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Wl(e,t){Kl(e,t),(e=e.alternate)&&Kl(e,t)}function ql(e,t,n){var r=new Nl(e,t,n=null!=n&&!0===n.hydrate),i=Al(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,uo(i),e[An]=r.current,n&&0!==t&&function(e,t){var n=Xe(t);Tt.forEach(function(e){pt(e,t,n)}),St.forEach(function(e){pt(e,t,n)})}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Hl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var u=i;i=function(){var e=jl(a);u.call(e)}}Fl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ql(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=jl(a);l.call(e)}}ol(function(){Fl(t,a,e,i)})}return jl(a)}function Vl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ql(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Hl(t))throw Error(a(200));return Vl(e,t,null,n)}ql.prototype.render=function(e){Fl(e,this._internalRoot,null,null)},ql.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Fl(null,e,null,function(){t[An]=null})},ht=function(e){if(13===e.tag){var t=Gi(Zu(),150,100);Ju(e,t),Wl(e,t)}},gt=function(e){13===e.tag&&(Ju(e,3),Wl(e,3))},mt=function(e){if(13===e.tag){var t=Zu();Ju(e,t=Xu(t,e,null)),Wl(e,t)}},A=function(e,t,n){switch(t){case"input":if(Te(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Dn(r);if(!i)throw Error(a(90));_e(r),Te(r,i)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Pe(e,!!n.multiple,t,!1)}},R=il,N=function(e,t,n,r,i){var o=Cu;Cu|=4;try{return qi(98,e.bind(null,t,n,r,i))}finally{0===(Cu=o)&&Vi()}},M=function(){0==(49&Cu)&&(function(){if(null!==Yu){var e=Yu;Yu=null,e.forEach(function(e,t){zl(t,e),tl(t)}),Vi()}}(),bl())},U=function(e,t){var n=Cu;Cu|=2;try{return e(t)}finally{0===(Cu=n)&&Vi()}};var Gl={Events:[In,Bn,Dn,S,k,zn,function(e){rt(e,Ln)},D,O,Zt,at,bl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Tl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(r){}},Sl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}}(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Pn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gl,t.createPortal=Ql,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&Cu))throw Error(a(187));var n=Cu;Cu|=1;try{return qi(99,e.bind(null,t))}finally{Cu=n,Vi()}},t.hydrate=function(e,t,n){if(!Hl(t))throw Error(a(200));return Yl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Hl(t))throw Error(a(200));return Yl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Hl(e))throw Error(a(40));return!!e._reactRootContainer&&(ol(function(){Yl(null,null,e,!1,function(){e._reactRootContainer=null,e[An]=null})}),!0)},t.unstable_batchedUpdates=il,t.unstable_createPortal=function(e,t){return Ql(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Hl(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Yl(e,t,n,!1,r)},t.version="16.13.1"},rgHO:function(e,t,n){"use strict";var r,i,o,a,u;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,s=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(n){throw setTimeout(c,0),n}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(c,0))},i=function(e,t){s=setTimeout(e,t)},o=function(){clearTimeout(s)},a=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var v=!1,b=null,w=-1,_=5,x=0;a=function(){return t.unstable_now()>=x},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();x=e+_;try{b(!0,e)?E.postMessage(null):(v=!1,b=null)}catch(n){throw E.postMessage(null),n}}else v=!1},r=function(e){b=e,v||(v=!0,E.postMessage(null))},i=function(e,n){w=h(function(){e(t.unstable_now())},n)},o=function(){g(w),w=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],u=o+1,l=e[u];if(void 0!==a&&0>A(a,n))void 0!==l&&0>A(l,a)?(e[r]=l,e[u]=n,r=u):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>A(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],I=[],B=1,D=null,O=3,R=!1,N=!1,M=!1;function U(e){for(var t=S(I);null!==t;){if(null===t.callback)C(I);else{if(!(t.startTime<=e))break;C(I),t.sortIndex=t.expirationTime,T(P,t)}t=S(I)}}function L(e){if(M=!1,U(e),!N)if(null!==S(P))N=!0,r(z);else{var t=S(I);null!==t&&i(L,t.startTime-e)}}function z(e,n){N=!1,M&&(M=!1,o()),R=!0;var r=O;try{for(U(n),D=S(P);null!==D&&(!(D.expirationTime>n)||e&&!a());){var u=D.callback;if(null!==u){D.callback=null,O=D.priorityLevel;var l=u(D.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?D.callback=l:D===S(P)&&C(P),U(n)}else C(P);D=S(P)}if(null!==D)var s=!0;else{var c=S(I);null!==c&&i(L,c.startTime-n),s=!1}return s}finally{D=null,O=r,R=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var j=u;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||R||(N=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return S(P)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,n,a){var u=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?u+l:u,a="number"==typeof a.timeout?a.timeout:F(e)}else a=F(e),l=u;return e={id:B++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>u?(e.sortIndex=l,T(I,e),null===S(P)&&e===S(I)&&(M?o():M=!0,i(L,l-u))):(e.sortIndex=a,T(P,e),N||R||(N=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();U(e);var n=S(P);return n!==D&&null!==D&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<D.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},ubyp:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CryptoCoinInfo=t.Network=t.Type=void 0;const r=n("vfKm"),i=n("b+ga"),o=n("pmUK");var a,u,l;!function(e){e.type="1",e.network="2"}(a||(a={})),function(e){e[e.bitcoin=0]="bitcoin"}(u=t.Type||(t.Type={})),function(e){e[e.mainnet=0]="mainnet",e[e.testnet=1]="testnet"}(l=t.Network||(t.Network={}));class s extends i.RegistryItem{constructor(e,t){super(),this.type=e,this.network=t,this.getRegistryType=()=>o.RegistryTypes.CRYPTO_COIN_INFO,this.getType=()=>this.type||u.bitcoin,this.getNetwork=()=>this.network||l.mainnet,this.toDataItem=()=>{const e={};return this.type&&(e[a.type]=this.type),this.network&&(e[a.network]=this.network),new r.DataItem(e)}}}t.CryptoCoinInfo=s,s.fromDataItem=e=>{const t=e.getData();return new s(t[a.type],t[a.network])},s.fromCBOR=e=>{const t=r.decodeToDataItem(e);return s.fromDataItem(t)}},vfKm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataItem=t.addWriter=t.addReader=t.addSemanticEncode=t.addSemanticDecode=t.decodeToDataItem=t.encodeDataItem=void 0;var r=n("MExF");Object.defineProperty(t,"encodeDataItem",{enumerable:!0,get:function(){return r.encodeDataItem}}),Object.defineProperty(t,"decodeToDataItem",{enumerable:!0,get:function(){return r.decodeToDataItem}}),Object.defineProperty(t,"addSemanticDecode",{enumerable:!0,get:function(){return r.addSemanticDecode}}),Object.defineProperty(t,"addSemanticEncode",{enumerable:!0,get:function(){return r.addSemanticEncode}}),Object.defineProperty(t,"addReader",{enumerable:!0,get:function(){return r.addReader}}),Object.defineProperty(t,"addWriter",{enumerable:!0,get:function(){return r.addWriter}});var i=n("SJn1");Object.defineProperty(t,"DataItem",{enumerable:!0,get:function(){return i.DataItem}})}}]);