1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50],{42246:function(e,t,r){"use strict";r.d(t,{Kn:function(){return m},CR:function(){return w}});var i=r(8810),n=r(89210),o=r(25650),s=r(83569),a=r(97327);let l="address/5.7.0",c=new a.Yd(l);function u(e){(0,i.A7)(e,20)||c.throwArgumentError("invalid address","address",e);let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=(0,i.lE)((0,o.w)(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let d=9007199254740991;function h(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}let f={};for(let e=0;e<10;e++)f[String(e)]=String(e);for(let e=0;e<26;e++)f[String.fromCharCode(65+e)]=String(10+e);let p=Math.floor(h(d));function g(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>f[e]).join("");for(;t.length>=p;){let e=t.substring(0,p);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function m(e){let t=null;if("string"!=typeof e&&c.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=u(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&c.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==g(e)&&c.throwArgumentError("bad icap checksum","address",e),t=(0,n.g$)(e.substring(4));t.length<40;)t="0"+t;t=u("0x"+t)}else c.throwArgumentError("invalid address","address",e);return t}function w(e){let t=null;try{t=m(e.from)}catch(t){c.throwArgumentError("missing from address","transaction",e)}let r=(0,i.G1)((0,i.lE)(n.O$.from(e.nonce).toHexString()));return m((0,i.p3)((0,o.w)((0,s.c)([t,r])),12))}},41607:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});let i="bignumber/5.7.0"},89210:function(e,t,r){"use strict";r.d(t,{O$:function(){return p},Zm:function(){return h},g$:function(){return b}});var i=r(44373),n=r.n(i),o=r(8810),s=r(97327),a=r(41607),l=n().BN;let c=new s.Yd(a.i),u={},d=9007199254740991;function h(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,o.A7)(e)||"bigint"==typeof e||(0,o._t)(e))}let f=!1;class p{constructor(e,t){e!==u&&c.throwError("cannot call constructor directly; use BigNumber.from",s.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(w(this).fromTwos(e))}toTwos(e){return m(w(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return m(w(this).add(w(e)))}sub(e){return m(w(this).sub(w(e)))}div(e){return p.from(e).isZero()&&y("division-by-zero","div"),m(w(this).div(w(e)))}mul(e){return m(w(this).mul(w(e)))}mod(e){let t=w(e);return t.isNeg()&&y("division-by-zero","mod"),m(w(this).umod(t))}pow(e){let t=w(e);return t.isNeg()&&y("negative-power","pow"),m(w(this).pow(t))}and(e){let t=w(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),m(w(this).and(t))}or(e){let t=w(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),m(w(this).or(t))}xor(e){let t=w(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),m(w(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),m(w(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),m(w(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),m(w(this).shrn(e))}eq(e){return w(this).eq(w(e))}lt(e){return w(this).lt(w(e))}
1lte(e){return w(this).lte(w(e))}gt(e){return w(this).gt(w(e))}gte(e){return w(this).gte(w(e))}isNegative(){return"-"===this._hex[0]}isZero(){return w(this).isZero()}toNumber(){try{return w(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return c.throwError("this platform does not support BigInt",s.Yd.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?f||(f=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",s.Yd.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",s.Yd.errors.UNEXPECTED_ARGUMENT,{})),w(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(u,g(e)):e.match(/^-?[0-9]+$/)?new p(u,g(new l(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=d||e<=-d)&&y("overflow","BigNumber.from",e),p.from(String(e));let t=e;if("bigint"==typeof t)return p.from(t.toString());if((0,o._t)(t))return p.from((0,o.Dv)(t));if(t){if(t.toHexString){let e=t.toHexString();if("string"==typeof e)return p.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&((0,o.A7)(e)||"-"===e[0]&&(0,o.A7)(e.substring(1))))return p.from(e)}}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function g(e){if("string"!=typeof e)return g(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=g(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return p.from(g(e))}function w(e){let t=p.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function y(e,t,r){let i={fault:e,operation:t};return null!=r&&(i.value=r),c.throwError(e,s.Yd.errors.NUMERIC_FAULT,i)}function b(e){return new l(e,36).toString(16)}},8810:function(e,t,r){"use strict";r.d(t,{lE:function(){return d},zo:function(){return h},xs:function(){return v},E1:function(){return y},p3:function(){return b},$P:function(){return _},$m:function(){return E},Dv:function(){return w},_t:function(){return u},Zq:function(){return l},A7:function(){return g},N:function(){return C},G1:function(){return f}});var i=r(97327);let n="bytes/5.7.0",o=new i.Yd(n);function s(e){return!!e.toHexString}function a(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return a(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function l(e){return g(e)&&!(e.length%2)||u(e)}function c(e){return"number"==typeof e&&e==e&&e%1==0}function u(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!c(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!c(r)||r<0||r>=256)return!1}return!0}function d(e,t){if(t||(t={}),"number"==typeof e){o.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),a(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),s(e)&&(e=e.toHexString()),g(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":o.throwArgumentError("hex data is odd-length","value",e));let i=[];for(let e=0;e<r.length;e+=2)i.push(parseInt(r.substring(e,e+2),16));return a(new Uint8Array(i))}return u(e)?a(new Uint8Array(e)):o.throwArgumentError("invalid arrayify value","value",e)}function h(e){let t=e.map(e=>d(e)),r=new Uint8Array(t.reduce((e,t)=>e+t.length,0));return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),a(r)}function f(e){let t=d(e);if(0===t.length)return t;let r=0;for(;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function p(e,t){(e=d(e)).length>t&&o.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),a(r)}function g(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let m="0123456789abcdef";function w(e,t){if(t||(t={}
1),"number"==typeof e){o.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=m[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),s(e))return e.toHexString();if(g(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":o.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(u(e)){let t="0x";for(let r=0;r<e.length;r++){let i=e[r];t+=m[(240&i)>>4]+m[15&i]}return t}return o.throwArgumentError("invalid hexlify value","value",e)}function y(e){if("string"!=typeof e)e=w(e);else if(!g(e)||e.length%2)return null;return(e.length-2)/2}function b(e,t,r){return("string"!=typeof e?e=w(e):(!g(e)||e.length%2)&&o.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r)?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function v(e){let t="0x";return e.forEach(e=>{t+=w(e).substring(2)}),t}function _(e){let t=x(w(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function x(e){"string"!=typeof e&&(e=w(e)),g(e)||o.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function E(e,t){for("string"!=typeof e?e=w(e):g(e)||o.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&o.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function C(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(l(e)){let r=d(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=w(r.slice(0,32)),t.s=w(r.slice(32,64))):65===r.length?(t.r=w(r.slice(0,32)),t.s=w(r.slice(32,64)),t.v=r[64]):o.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:o.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=w(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=p(d(t._vs),32);t._vs=w(r);let i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&o.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let n=w(r);null==t.s?t.s=n:t.s!==n&&o.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?o.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&o.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&g(t.r)?t.r=E(t.r,32):o.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&g(t.s)?t.s=E(t.s,32):o.throwArgumentError("signature missing or invalid s","signature",e);let r=d(t.s);r[0]>=128&&o.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let i=w(r);t._vs&&(g(t._vs)||o.throwArgumentError("signature invalid _vs","signature",e),t._vs=E(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&o.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}},25650:function(e,t,r){"use strict";r.d(t,{w:function(){return s}});var i=r(23883),n=r.n(i),o=r(8810);function s(e){return"0x"+n().keccak_256((0,o.lE)(e))}},97327:function(e,t,r){"use strict";var i,n;r.d(t,{Yd:function(){return f}});let o="logger/5.7.0",s=!1,a=!1,l={debug:1,default:2,info:2,warning:3,error:4,off:5},c=l.default,u=null,d=function(){try{let e=[];
1if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(i||(i={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(n||(n={}));let h="0123456789abcdef";class f{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==l[r]&&this.throwArgumentError("invalid log level name","logLevel",e),c>l[r]||console.log.apply(console,t)}debug(...e){this._log(f.levels.DEBUG,e)}info(...e){this._log(f.levels.INFO,e)}warn(...e){this._log(f.levels.WARNING,e)}makeError(e,t,r){if(a)return this.makeError("censored error",t,{});t||(t=f.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=h[t[e]>>4]+h[15&t[e]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(r[e].toString()))}}),i.push(`code=${t}`),i.push(`version=${this.version}`);let o=e,s="";switch(t){case n.NUMERIC_FAULT:{s="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":s+="-"+t;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break}case n.CALL_EXCEPTION:case n.INSUFFICIENT_FUNDS:case n.MISSING_NEW:case n.NONCE_EXPIRED:case n.REPLACEMENT_UNDERPRICED:case n.TRANSACTION_REPLACED:case n.UNPREDICTABLE_GAS_LIMIT:s=t}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(e+=" ("+i.join(", ")+")");let l=Error(e);return l.reason=o,l.code=t,Object.keys(r).forEach(function(e){l[e]=r[e]}),l}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,f.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,i){e||this.throwError(t,r,i)}assertArgument(e,t,r,i){e||this.throwArgumentError(t,r,i)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),d&&this.throwError("platform missing String.prototype.normalize",f.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:d})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,f.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,f.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",f.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return u||(u=new f(o)),u}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!e)return;this.globalLogger().throwError("error censorship permanent",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}a=!!e,s=!!t}static setLogLevel(e){let t=l[e.toLowerCase()];if(null==t){f.globalLogger().warn("invalid log level - "+e);return}c=t}static from(e){return new f(e)}}f.errors=n,f.levels=i},31240:function(e,t,r){"use strict";r.d(t,{dk:function(){return m},uj:function(){return u},p$:function(){return g},zG:function(){return a},tu:function(){return l},mE:function(){return c},DC:function(){return d}});var i=r(97327);let n="properties/5.7.0";var o=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let s=new i.Yd(n);function a(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function l(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function c(e){return o(this,void 0,void 0,function*(){let t=Object.keys(e).map(t=>Promise.resolve(e[t]).then(e=>({key:t,value:e})));return(yield Promise.all(t)).reduce((e,t)=>
1(e[t.key]=t.value,e),{})})}function u(e,t){e&&"object"==typeof e||s.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||s.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function d(e){let t={};for(let r in e)t[r]=e[r];return t}let h={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function f(e){if(null==e||h[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;let t=Object.keys(e);for(let r=0;r<t.length;r++){let i=null;try{i=e[t[r]]}catch(e){continue}if(!f(i))return!1}return!0}return s.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function p(e){if(f(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>g(e)));if("object"==typeof e){let t={};for(let r in e){let i=e[r];void 0!==i&&a(t,r,g(i))}return t}return s.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}function g(e){return p(e)}class m{constructor(e){for(let t in e)this[t]=g(e[t])}}},86691:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});let i="providers/5.7.2"},63449:function(e,t,r){"use strict";r.d(t,{Mb:function(){return h},vh:function(){return p}});var i=r(42246),n=r(89210),o=r(8810);let s="0x0000000000000000000000000000000000000000";var a=r(31240),l=r(63123),c=r(97327),u=r(86691);let d=new c.Yd(u.i);class h{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),i=this.blockTag.bind(this),n=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),l=this.number.bind(this),c=this.type.bind(this),u=e=>this.data(e,!0);return e.transaction={hash:o,type:c,accessList:h.allowNull(this.accessList.bind(this),null),blockHash:h.allowNull(o,null),blockNumber:h.allowNull(l,null),transactionIndex:h.allowNull(l,null),confirmations:h.allowNull(l,null),from:t,gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),gasLimit:r,to:h.allowNull(t,null),value:r,nonce:l,data:n,r:h.allowNull(this.uint256),s:h.allowNull(this.uint256),v:h.allowNull(l),creates:h.allowNull(t,null),raw:h.allowNull(n)},e.transactionRequest={from:h.allowNull(t),nonce:h.allowNull(l),gasLimit:h.allowNull(r),gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),to:h.allowNull(t),value:h.allowNull(r),data:h.allowNull(u),type:h.allowNull(l),accessList:h.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:t,topics:h.arrayOf(o),data:n,logIndex:l,blockHash:o},e.receipt={to:h.allowNull(this.address,null),from:h.allowNull(this.address,null),contractAddress:h.allowNull(t,null),transactionIndex:l,root:h.allowNull(s),gasUsed:r,logsBloom:h.allowNull(n),blockHash:o,transactionHash:o,logs:h.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:h.allowNull(l,null),cumulativeGasUsed:r,effectiveGasPrice:h.allowNull(r),status:h.allowNull(l),type:c},e.block={hash:h.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:h.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:h.allowNull(t),extraData:n,transactions:h.allowNull(h.arrayOf(o)),baseFeePerGas:h.allowNull(r)},e.blockWithTransactions=(0,a.DC)(e.block),e.blockWithTransactions.transactions=h.allowNull(h.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:h.allowNull(i,void 0),toBlock:h.allowNull(i,void 0),blockHash:h.allowNull(o,void 0),address:h.allowNull(t,void 0),topics:h.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:h.allowNull(l),blockHash:h.allowNull(o),transactionIndex:l,removed:h.allowNull(this.boolean.bind(this)),address:t,data:h.allowFalsish(n,"0x"),topics:h.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return(0,l.z7)(e||[])}number(e){return"0x"===e?0:n.O$.from(e).toNumber()}type(e){return"0x"===e||null==e?0:n.O$.from(e).toNumber()}bigNumber(e){return n.O$.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,o.A7)(e))?e.toLowerCase():d.throwArgumentError("invalid hash","value",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,i.Kn)(e)}callAddress(e){if(!(0,o.A7)(e,32))return null;let t=(0,i.Kn)((0,o.p3)(e,12));return t===s?null:t}contractAddress(e){return(0,i.CR)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,o.A7)(e))return(0,o.$P)(e);throw Error("invalid blockTag")}hash(e,t){let r=this.hex(e,t);return 32!==(0,o.E1)(r)?d.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let t=n.O$.from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,o.A7)(e))throw Error("invalid uint256");return(0,o.$m)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,i=h.check(t,e);return i._difficulty=null==r?null:n.O$.from(r),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return h.check(this.formats.transactionRequest,e)}
1transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&n.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let t=h.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,o.A7)(r)&&(r=n.O$.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,o.A7)(r)&&(r=n.O$.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,l.Qc)(e)}receiptLog(e){return h.check(this.formats.receiptLog,e)}receipt(e){let t=h.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=n.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&d.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):d.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&d.throwArgumentError("invalid root hash","value.root",t.root)}return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return h.check(this.formats.filter,e)}filterLog(e){return h.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let i in e)try{let n=e[i](t[i]);void 0!==n&&(r[i]=n)}catch(e){throw e.checkKey=i,e.checkValue=t[i],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw Error("not an array");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}let f=!1;function p(){f||(f=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}},63533:function(e,t,r){"use strict";r.d(t,{r:function(){return tO}});var i=r(31240),n=r(97327);let o="abstract-signer/5.7.0";var s=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let a=new n.Yd(o),l=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],c=[n.Yd.errors.INSUFFICIENT_FUNDS,n.Yd.errors.NONCE_EXPIRED,n.Yd.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){a.checkAbstract(new.target,u),(0,i.zG)(this,"_isSigner",!0)}getBalance(e){return s(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return s(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return s(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let t=yield(0,i.mE)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return s(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,i.mE)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return s(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return s(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return s(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return s(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return s(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===l.indexOf(t)&&a.throwArgumentError("invalid transaction key: "+t,"transaction",e);let t=(0,i.DC)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&a.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return s(this,void 0,void 0,function*(){let t=yield(0,i.mE)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>s(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&a.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?a.throwArgumentError("eip-1559 transaction do n
1ot support gasPrice","transaction",e):(0===t.type||1===t.type)&&r&&a.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?(r&&a.throwError("network does not support EIP-1559",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):a.throwError("failed to get consistent fee data",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(c.indexOf(e.code)>=0)throw e;return a.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",n.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&a.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield(0,i.mE)(t)})}_checkProvider(e){this.provider||a.throwError("missing provider",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}var d=r(89210),h=r(8810),f=r(42246),p=r(25650);let g="hash/5.7.0";var m=r(61728);function w(e){return(0,p.w)((0,m.Y0)(e))}var y=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let b=new n.Yd(g),v=new Uint8Array(32);v.fill(0);let _=d.O$.from(-1),x=d.O$.from(0),E=d.O$.from(1),C=d.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function k(e){let t=(0,h.lE)(e),r=t.length%32;return r?(0,h.xs)([t,v.slice(r)]):(0,h.Dv)(t)}let S=(0,h.$m)(E.toHexString(),32),A=(0,h.$m)(x.toHexString(),32),I={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},T=["name","version","chainId","verifyingContract","salt"];function R(e){return function(t){return"string"!=typeof t&&b.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let O={name:R("name"),version:R("version"),chainId:function(e){try{return d.O$.from(e).toString()}catch(e){}return b.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,f.Kn)(e).toLowerCase()}catch(e){}return b.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=(0,h.lE)(e);if(32!==t.length)throw Error("bad length");return(0,h.Dv)(t)}catch(e){}return b.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function P(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=""===t[1],i=parseInt(t[2]||"256");(i%8!=0||i>256||t[2]&&t[2]!==String(i))&&b.throwArgumentError("invalid numeric width","type",e);let n=C.mask(r?i-1:i),o=r?n.add(E).mul(_):x;return function(t){let r=d.O$.from(t);return(r.lt(o)||r.gt(n))&&b.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,h.$m)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&b.throwArgumentError("invalid bytes width","type",e),function(t){return(0,h.lE)(t).length!==r&&b.throwArgumentError(`invalid length for ${e}`,"value",t),k(t)}}}switch(e){case"address":return function(e){return(0,h.$m)((0,f.Kn)(e),32)};case"bool":return function(e){return e?S:A};case"bytes":return function(e){return(0,p.w)(e)};case"string":return function(e){return w(e)}}return null}function N(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class M{constructor(e){(0,i.zG)(this,"types",Object.freeze((0,i.p$)(e))),(0,i.zG)(this,"_encoderCache",{}),(0,i.zG)(this,"_types",{});let t={},r={},n={};
1for(let i in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],n[e]={}}),e){let n={};e[i].forEach(o=>{n[o.name]&&b.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(i)}`,"types",e),n[o.name]=!0;let s=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===i&&b.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e),P(s)||(r[s]||b.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(i),t[i][s]=!0)})}let o=Object.keys(r).filter(e=>0===r[e].length);function s(i,o){o[i]&&b.throwArgumentError(`circular type reference to ${JSON.stringify(i)}`,"types",e),o[i]=!0,Object.keys(t[i]).forEach(e=>{r[e]&&(s(e,o),Object.keys(o).forEach(t=>{n[t][e]=!0}))}),delete o[i]}for(let t in 0===o.length?b.throwArgumentError("missing primary type","types",e):o.length>1&&b.throwArgumentError(`ambiguous primary types or unused types: ${o.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,i.zG)(this,"primaryType",o[0]),s(this.primaryType,{}),n){let r=Object.keys(n[t]);r.sort(),this._types[t]=N(t,e[t])+r.map(t=>N(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=P(e);if(t)return t}let t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),i=parseInt(t[3]);return t=>{i>=0&&t.length!==i&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let n=t.map(r);return this._types[e]&&(n=n.map(p.w)),(0,p.w)((0,h.xs)(n))}}let r=this.types[e];if(r){let t=w(this._types[e]);return e=>{let i=r.map(({name:t,type:r})=>{let i=this.getEncoder(r)(e[t]);return this._types[r]?(0,p.w)(i):i});return i.unshift(t),(0,h.xs)(i)}}return b.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let t=this._types[e];return t||b.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,p.w)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(P(e))return r(e,t);let i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){let e=i[1],n=parseInt(i[3]);return n>=0&&t.length!==n&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}let n=this.types[e];return n?n.reduce((e,{name:i,type:n})=>(e[i]=this._visit(n,t[i],r),e),{}):b.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new M(e)}static getPrimaryType(e){return M.from(e).primaryType}static hashStruct(e,t,r){return M.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let i=I[r];i||b.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:i})}return t.sort((e,t)=>T.indexOf(e.name)-T.indexOf(t.name)),M.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,h.xs)(["0x1901",M.hashDomain(e),M.from(t).hash(r)])}static hash(e,t,r){return(0,p.w)(M.encode(e,t,r))}static resolveNames(e,t,r,n){return y(this,void 0,void 0,function*(){e=(0,i.DC)(e);let o={};e.verifyingContract&&!(0,h.A7)(e.verifyingContract,20)&&(o[e.verifyingContract]="0x");let s=M.from(t);for(let e in s.visit(r,(e,t)=>("address"!==e||(0,h.A7)(t,20)||(o[t]="0x"),t)),o)o[e]=yield n(e);return e.verifyingContract&&o[e.verifyingContract]&&(e.verifyingContract=o[e.verifyingContract]),r=s.visit(r,(e,t)=>"address"===e&&o[t]?o[t]:t),{domain:e,value:r}})}static getPayload(e,t,r){M.hashDomain(e);let n={},o=[];T.forEach(t=>{let r=e[t];null!=r&&(n[t]=O[t](r),o.push({name:t,type:I[t]}))});let s=M.from(t),a=(0,i.DC)(t);return a.EIP712Domain?b.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):a.EIP712Domain=o,s.encode(r),{types:a,domain:n,primaryType:s.primaryType,message:s.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,h.Dv)((0,h.lE)(t));if(e.match(/^u?int/))return d.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&b.throwArgumentError("invalid string","value",t),t}return b.throwArgumentError("unsupported type","type",e)})}}}
1var D=r(63123);function L(e){e=atob(e);let t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,h.lE)(t)}function j(e){e=(0,h.lE)(e);let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}let B="web/5.7.1";var $=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};function U(e,t){return $(this,void 0,void 0,function*(){null==t&&(t={});let r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){let e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let i=yield fetch(e,r),n=yield i.arrayBuffer(),o={};return i.headers.forEach?i.headers.forEach((e,t)=>{o[t.toLowerCase()]=e}):i.headers.keys().forEach(e=>{o[e.toLowerCase()]=i.headers.get(e)}),{headers:o,statusCode:i.status,statusMessage:i.statusText,body:(0,h.lE)(new Uint8Array(n))}})}var F=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let z=new n.Yd(B);function q(e){return new Promise(t=>{setTimeout(t,e)})}function W(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,h.Zq)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,m.ZN)(e)}catch(e){}return(0,h.Dv)(e)}return e}function H(e){return(0,m.Y0)(e.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))}function V(e,t,r){let o="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;z.assertArgument(o>0&&o%1==0,"invalid connection throttle limit","connection.throttleLimit",o);let s="object"==typeof e?e.throttleCallback:null,a="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;z.assertArgument(a>0&&a%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",a);let l="object"==typeof e&&!!e.errorPassThrough,c={},u=null,d={method:"GET"},h=!1,f=12e4;if("string"==typeof e)u=e;else if("object"==typeof e){if((null==e||null==e.url)&&z.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(f=e.timeout),e.headers)for(let t in e.headers)c[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(h=!0);if(d.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&z.throwError("basic authentication requires a secure https url",n.Yd.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"});let t=e.user+":"+e.password;c.authorization={key:"Authorization",value:"Basic "+j((0,m.Y0)(t))}}null!=e.skipFetchSetup&&(d.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(d.fetchOptions=(0,i.DC)(e.fetchOptions))}let p=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),g=u?u.match(p):null;if(g)try{let e={statusCode:200,statusMessage:"OK",headers:{"content-type":g[1]||"text/plain"},body:g[2]?L(g[3]):H(g[3])},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){z.throwError("processing response error",n.Yd.errors.SERVER_ERROR,{body:W(g[1],g[2]),error:e,requestBody:null,requestMethod:"GET",url:u})}t&&(d.method="POST",d.body=t,null==c["content-type"]&&(c["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==c["content-length"]&&(c["content-length"]={key:"Content-Length",value:String(t.length)}));let w={};Object.keys(c).forEach(e=>{let t=c[e];w[t.key]=t.value}),d.headers=w;let y=function(){let e=null;return{promise:new Promise(function(t,r){f&&(e=setTimeout(()=>{null!=e&&(e=null,r(z.makeError("timeout",n.Yd.errors.TIMEOUT,{requestBody:W(d.body,w["content-type"]),requestMethod:d.method,timeout:f,url:u})))},f))}),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),b=function(){return F(this,void 0,void 0,function*(){for(let e=0;e<o;e++){let t=null;try{if(t=yield U(u,d),e<o){if(301===t.statusCode||302===t.statusCode){let e=t.headers.location||"";
1if("GET"===d.method&&e.match(/^https:/)){u=t.headers.location;continue}}else if(429===t.statusCode){let r=!0;if(s&&(r=yield s(e,u)),r){let r=0,i=t.headers["retry-after"];r="string"==typeof i&&i.match(/^[1-9][0-9]*$/)?1e3*parseInt(i):a*parseInt(String(Math.random()*Math.pow(2,e))),yield q(r);continue}}}}catch(e){null==(t=e.response)&&(y.cancel(),z.throwError("missing response",n.Yd.errors.SERVER_ERROR,{requestBody:W(d.body,w["content-type"]),requestMethod:d.method,serverError:e,url:u}))}let i=t.body;if(h&&304===t.statusCode?i=null:!l&&(t.statusCode<200||t.statusCode>=300)&&(y.cancel(),z.throwError("bad response",n.Yd.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:W(i,t.headers?t.headers["content-type"]:null),requestBody:W(d.body,w["content-type"]),requestMethod:d.method,url:u})),r)try{let e=yield r(i,t);return y.cancel(),e}catch(r){if(r.throttleRetry&&e<o){let t=!0;if(s&&(t=yield s(e,u)),t){let t=a*parseInt(String(Math.random()*Math.pow(2,e)));yield q(t);continue}}y.cancel(),z.throwError("processing response error",n.Yd.errors.SERVER_ERROR,{body:W(i,t.headers?t.headers["content-type"]:null),error:r,requestBody:W(d.body,w["content-type"]),requestMethod:d.method,url:u})}return y.cancel(),i}return z.throwError("failed response",n.Yd.errors.SERVER_ERROR,{requestBody:W(d.body,w["content-type"]),requestMethod:d.method,url:u})})}();return Promise.race([y.promise,b])}function Z(e,t,r){let o=(e,t)=>{let i=null;if(null!=e)try{i=JSON.parse((0,m.ZN)(e))}catch(t){z.throwError("invalid JSON",n.Yd.errors.SERVER_ERROR,{body:e,error:t})}return r&&(i=r(i,t)),i},s=null;if(null!=t){s=(0,m.Y0)(t);let r="string"==typeof e?{url:e}:(0,i.DC)(e);r.headers?0!==Object.keys(r.headers).filter(e=>"content-type"===e.toLowerCase()).length||(r.headers=(0,i.DC)(r.headers),r.headers["content-type"]="application/json"):r.headers={"content-type":"application/json"},e=r}return V(e,s,o)}function K(e,t){return t||(t={}),null==(t=(0,i.DC)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,i){let n=null,o=!1,s=()=>!o&&(o=!0,n&&clearTimeout(n),!0);t.timeout&&(n=setTimeout(()=>{s()&&i(Error("timeout"))},t.timeout));let a=t.retryLimit,l=0;function c(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",c);else if(t.onceBlock)t.onceBlock.once("block",c);else if(!o){if(++l>a){s()&&i(Error("retry limit reached"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,l)));e<t.floor&&(e=t.floor),e>t.ceiling&&(e=t.ceiling),setTimeout(c,e)}return null},function(e){s()&&i(e)})}c()})}var G=r(86691);let Y="abstract-provider/5.7.0";var J=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let Q=new n.Yd(Y);class X extends i.dk{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class ee{constructor(){Q.checkAbstract(new.target,ee),(0,i.zG)(this,"_isProvider",!0)}getFeeData(){return J(this,void 0,void 0,function*(){let{block:e,gasPrice:t}=yield(0,i.mE)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,n=null,o=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,o=d.O$.from("1500000000"),n=e.baseFeePerGas.mul(2).add(o)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:o,gasPrice:t}})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}class et{constructor(e){(0,i.zG)(this,"alphabet",e),(0,i.zG)(this,"base",e.length),(0,i.zG)(this,"_alphabetMap",{}),(0,i.zG)(this,"_leader",e.charAt(0));for(let t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}encode(e){let t=(0,h.lE)(e);if(0===t.length)return"";let r=[0];for(let e=0;e<t.length;++e){let i=t[e];for(let e=0;e<r.length;++e)i+=r[e]<<8,r[e]=i%this.base,i=i/this.base|0;for(;i>0;)r.push(i%this.base),i=i/this.base|0}let i="";for(let e=0;0===t[e]&&e<t.length-1;++e)i+=this._leader;for(let e=r.length-1;e>=0;--e)i+=this.alphabet[r[e]];return i}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r<e.length;r++){let i=this._alphabetMap[e[r]];if(void 0===i)throw Error("Non-base"+this.base+" character");let n=i;for(let e=0;e<t.length;++e)n+=t[e]*this.base,t[e]=255&n,n>>=8;for(;n>0;)t.push(255&n),n>>=8}for(let r=0;e[r]===this._leader&&r<e.length-1;++r)t.push(0);return(0,h.lE)(new Uint8Array(t.reverse()))}}new et("abcdefghijklmnopqrstuvwxyz234567");let er=new et("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),ei="0x0000000000000000000000000000000000000000000000000000000000000000";function en(e,t){null==t&&(t=1);let r=[],i=r.forEach,n=function(e,t){i.call(e,function(e){t>0&&Array.isArray(e)?n(e,t-1):r.push(e)})};return n(e,t),r}function eo(e){let t={};for(let r=0;r<e.length;r++){let i=e[r];t[i[0]]=i[1]}return t}function es(e){let t=0;function r(){return e[t++]<<8|e[t++]}let i=r(),n=1,o=[0,1];for(let e=1;e<i;e++)o.push(n+=r());let s=r(),a=t;t+=s;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=31,h=2147483648,f=1073741824,p=536870912,g=2147483647,m=0;for(let e=0;e<d;e++)m=m<<1|u();let w=[],y=0,b=h;for(;;){let e=Math.floor(((m-y+1)*n-1)/b),t=0,r=i;for(;r-t>1;){let i=t+r>>>1;e<o[i]?r=i:t=i}if(0==t)break;w.push(t);let s=y+Math.floor(b*o[t]/n),a=y+Math.floor(b*o[t+1]/n)-1;for(;((s^a)&f)==0;
1)m=m<<1&g|u(),s=s<<1&g,a=a<<1&g|1;for(;s&~a&p;)m=m&f|m<<1&g>>>1|u(),s=s<<1^f,a=(a^f)<<1|f|1;y=s,b=1+a-s}let v=i-4;return w.map(t=>{switch(t-v){case 3:return v+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return v+256+(e[a++]<<8|e[a++]);case 1:return v+e[a++];default:return t-1}})}function ea(e){let t=0;return()=>e[t++]}function el(e){return ea(es(e))}function ec(e){return 1&e?~e>>1:e>>1}function eu(e,t){let r=Array(e);for(let i=0;i<e;i++)r[i]=1+t();return r}function ed(e,t){let r=Array(e);for(let i=0,n=-1;i<e;i++)r[i]=n+=1+t();return r}function eh(e,t){let r=Array(e);for(let i=0,n=0;i<e;i++)r[i]=n+=ec(t());return r}function ef(e,t){let r=ed(e(),e),i=e(),n=ed(i,e),o=eu(i,e);for(let e=0;e<i;e++)for(let t=0;t<o[e];t++)r.push(n[e]+t);return t?r.map(e=>t[e]):r}function ep(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(ew(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(ey(r,e))}return eo(en(t))}function eg(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}function em(e,t,r){let i=Array(e).fill(void 0).map(()=>[]);for(let n=0;n<t;n++)eh(e,r).forEach((e,t)=>i[t].push(e));return i}function ew(e,t){let r=1+t(),i=t(),n=eg(t);return en(em(n.length,1+e,t).map((e,t)=>{let o=e[0],s=e.slice(1);return Array(n[t]).fill(void 0).map((e,t)=>{let n=t*i;return[o+t*r,s.map(e=>e+n)]})}))}function ey(e,t){return em(1+t(),1+e,t).map(e=>[e[0],e.slice(1)])}function eb(e){let t=ef(e).sort((e,t)=>e-t);return r();function r(){let i=[];for(;;){let n=ef(e,t);if(0==n.length)break;i.push({set:new Set(n),node:r()})}i.sort((e,t)=>t.set.size-e.set.size);let n=e();return{branches:i,valid:n%3,fe0f:!!(1&(n=n/3|0)),save:1==(n>>=1),check:2==n}}}let ev=function(){return el(L
vendor: 14,757 bytes, line 1
1("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))
1}(),e_=new Set(ef(ev)),ex=new Set(ef(ev)),eE=ep(ev),eC=eb(ev),ek=45,eS=95;function eA(e){return(0,m.XL)(e)}function eI(e){return e.filter(e=>65039!=e)}function eT(e){for(let t of e.split(".")){let e=eA(t);try{for(let t=e.lastIndexOf(eS)-1;t>=0;t--)if(e[t]!==eS)throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&e[2]===ek&&e[3]===ek)throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${t}": ${e.message}`)}}return e}function eR(e){return eT(eO(e,eI))}function eO(e,t){let r=eA(e).reverse(),i=[];for(;r.length;){let e=eN(r);if(e){i.push(...t(e));continue}let n=r.pop();if(e_.has(n)){i.push(n);continue}if(ex.has(n))continue;let o=eE[n];if(o){i.push(...o);continue}throw Error(`Disallowed codepoint: 0x${n.toString(16).toUpperCase()}`)}return eT(eP(String.fromCodePoint(...i)))}function eP(e){return e.normalize("NFC")}function eN(e,t){var r;let i,n;let o=eC,s=[],a=e.length;for(t&&(t.length=0);a;){let l=e[--a];if(!(o=null===(r=o.branches.find(e=>e.set.has(l)))||void 0===r?void 0:r.node))break;if(o.save)n=l;else if(o.check&&l===n)break;s.push(l),o.fe0f&&(s.push(65039),a>0&&65039==e[a-1]&&a--),o.valid&&(i=s.slice(),2==o.valid&&i.splice(1,1),t&&t.push(...e.slice(a).reverse()),e.length=a)}return i}let eM=new n.Yd(g),eD=new Uint8Array(32);function eL(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function ej(e){let t=(0,m.Y0)(eR(e)),r=[];if(0===e.length)return r;let i=0;for(let e=0;e<t.length;e++)46===t[e]&&(r.push(eL(t.slice(i,e))),i=e+1);if(i>=t.length)throw Error("invalid ENS name; empty component");return r.push(eL(t.slice(i))),r}function eB(e){"string"!=typeof e&&eM.throwArgumentError("invalid ENS name; not a string","name",e);let t=eD,r=ej(e);for(;r.length;)t=(0,p.w)((0,h.zo)([t,(0,p.w)(r.pop())]));return(0,h.Dv)(t)}function e$(e){return(0,h.Dv)((0,h.zo)(ej(e).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}eD.fill(0);let eU="networks/5.7.1",eF=new n.Yd(eU);function ez(e){return e&&"function"==typeof e.renetwork}function eq(e){let t=function(t,r){null==r&&(r={});let i=[];if(t.InfuraProvider&&"-"!==r.infura)try{i.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{i.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{i.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket){let n=["goerli","ropsten","rinkeby","sepolia"];try{let o=new t.PocketProvider(e,r.pocket);o.network&&-1===n.indexOf(o.network.name)&&i.push(o)}catch(e){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{i.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{let n=["ropsten"],o=new t.AnkrProvider(e,r.ankr);o.network&&-1===n.indexOf(o.network.name)&&i.push(o)}catch(e){}if(0===i.length)return null;if(t.FallbackProvider){let n=1;return null!=r.quorum?n=r.quorum:"homestead"===e&&(n=2),new t.FallbackProvider(i,n)}return i[0]};return t.renetwork=function(e){return eq(e)},t}function eW(e,t){let r=function(r,i){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return eW(e,t)},r}let eH={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:eq("homestead")},eV={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:eq("ropsten")},eZ={chainId:63,name:"classicMordor",_defaultProvider:eW("https://www.ethercluster.com/mordor","classicMordor")},eK={unspecified:{chainId:0,name:"unspecified"},homestead:eH,mainnet:eH,morden:{chainId:2,name:"morden"},ropsten:eV,testnet:eV,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:eq("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:eq("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:eq("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:eq("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:eW("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:eZ,classicTestnet:eZ,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:eW("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:eq("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:eq("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function eG(e){if(null==e)return null;if("number"==typeof e){for(let t in eK){let r=eK[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){let t=eK[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=eK[e.name];if(!t)return"number"!=typeof e.chainId&&eF.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&eF.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;return null==r&&t._defaultProvider&&(r=ez(t._defaultProvider)?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}var eY=r(28714),eJ=r.n(eY);let eQ="sha2/5.7.0";function eX(e){return"0x"+eJ().sha256().update((0,h.lE)(e)).digest("hex")}new n.Yd(eQ);var e0=r(62113),e1=r.n(e0),e2=r(63449),e3=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};
1let e5=new n.Yd(G.i),e4=10;function e6(e){return null==e?"null":(32!==(0,h.E1)(e)&&e5.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function e8(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return e6(e);{let t={};e.forEach(e=>{t[e6(e)]=!0});let r=Object.keys(t);return r.sort(),r.join("|")}}).join("&")}function e7(e){return""===e?[]:e.split(/&/g).map(e=>{if(""===e)return[];let t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t})}function e9(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,h.E1)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+e8(e);else if(X.isForkEvent(e))throw e5.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+e8(e.topics||[]);throw Error("invalid event - "+e)}function te(){return new Date().getTime()}function tt(e){return new Promise(t=>{setTimeout(t,e)})}let tr=["block","network","pending","poll"];class ti{constructor(e,t,r){(0,i.zG)(this,"tag",e),(0,i.zG)(this,"listener",t),(0,i.zG)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){let e=this.tag.split(":");if("filter"!==e[0])return null;let t=e[1],r=e7(e[2]),i={};return r.length>0&&(i.topics=r),t&&"*"!==t&&(i.address=t),i}pollable(){return this.tag.indexOf(":")>=0||tr.indexOf(this.tag)>=0}}let tn={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function to(e){return(0,h.$m)(d.O$.from(e).toHexString(),32)}function ts(e){return er.encode((0,h.zo)([e,(0,h.p3)(eX(eX(e)),0,4)]))}let ta=RegExp("^(ipfs)://(.*)$","i"),tl=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),ta,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function tc(e,t){try{return(0,m.ZN)(tu(e,t))}catch(e){}return null}function tu(e,t){if("0x"===e)return null;let r=d.O$.from((0,h.p3)(e,t,t+32)).toNumber(),i=d.O$.from((0,h.p3)(e,r,r+32)).toNumber();return(0,h.p3)(e,r+32,r+32+i)}function td(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):e5.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function th(e){let t=(0,h.lE)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function tf(e){if(e.length%32==0)return e;let t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function tp(e){let t=[],r=0;for(let i=0;i<e.length;i++)t.push(null),r+=32;for(let i=0;i<e.length;i++){let n=(0,h.lE)(e[i]);t[i]=th(r),t.push(th(n.length)),t.push(tf(n)),r+=32+32*Math.ceil(n.length/32)}return(0,h.xs)(t)}class tg{constructor(e,t,r,n){(0,i.zG)(this,"provider",e),(0,i.zG)(this,"name",r),(0,i.zG)(this,"address",e.formatter.address(t)),(0,i.zG)(this,"_resolvedAddress",n)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>d.O$.from(e).eq(1)).catch(e=>{if(e.code===n.Yd.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return e3(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,h.xs)([e,eB(this.name),t||"0x"])},i=!1;(yield this.supportsWildcard())&&(i=!0,r.data=(0,h.xs)(["0x9061b923",tp([e$(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,h.lE)(e).length%32==4&&e5.throwError("resolver threw error",n.Yd.errors.CALL_EXCEPTION,{transaction:r,data:e}),i&&(e=tu(e,0)),e}catch(e){if(e.code===n.Yd.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return e3(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?tu(r,0):null})}_getAddress(e,t){let r=tn[String(e)];if(null==r&&e5.throwError(`unsupported coin type: ${e}`,n.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);let i=(0,h.lE)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return ts((0,h.zo)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return ts((0,h.zo)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=i[1],t=i[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&i.length===2+e&&e>=1&&e<=75){let e=e1().toWords(i.slice(2));return e.unshift(t),e1().encode(r.prefix,e)}}return null}getAddress(e){return e3(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||e===ei)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===n.Yd.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes("0xf1cb7e06",to(e));if(null==t||"0x"===t)return null;let r=this._getAddress(e,t);return null==r&&e5.throwError("invalid or unsupported coin data",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return e3(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let t=yield this.getText("avatar");if(null==t)return null;for(let r=0;r<tl.length;r++){let i=t.match(tl[r]);if(null==i)continue;let n=i[1].toLowerCase();switch(n){case"https":return e.push({type:"url",content:t}),{linkage:e,url:t};case"data":return e.push({type:"data",content:t}),{linkage:e,url:t};case"ipfs":return e.push({type:"ipfs",content:t}),{linkage:e,url:td(t)};case"erc721":case"erc1155":{let r="erc721"===n?"0xc87b56dd":"0x0e89341c";e.push({type:n,content:t});let o=this._resolvedAddress||(yield this.getAddress()),s=(i[2]||"").split("/");if(2!==s.length)return null;let a=yield this.provider.formatter.address(s[0]),l=(0,h.$m)(d.O$.from(s[1]).toHexString(),32);if("erc721"===n){let t=this.provider.formatter.callAddress((yield this.provider.call({to:a,data:(0,h.xs)(["0x6352211e",l])})));if(o!==t)return null;e.push({type:"owner",content:t})}else if("erc1155"===n){let t=d.O$.from((yield this.provider.call({to:a,data:(0,h.xs)(["0x00fdd58e",(0,h.$m)(o,32),l])})));if(t.isZero())return null;e.push({type:"balance",content:t.toString()})}let c={to:this.provider.formatter.address(s[0]),data:(0,h.xs)([r,l])},u=tc((yield this.provider.call(c)),0);if(null==u)return null;e.push({type:"metadata-url-base",content:u}),"erc1155"===n&&(u=u.replace("{id}",l.substring(2)),e.push({type:"metadata-url-expanded",content:u})),u.match(/^ipfs:/i)&&(u=td(u)),e.push({type:"metadata-url",content:u});let f=yield Z(u);if(!f)return null;e.push({type:"metadata",content:JSON.stringify(f)});let p=f.image;if("string"!=typeof p)return null;if(p.match(/^(https:\/\/|data:)/i));else{let t=p.match(ta);if(null==t)return null;e.push({type:"url-ipfs",content:p}),p=td(p)}return e.push({type:"url",content:p}),{linkage:e,url:p}}}}}catch(e){}return null})}getContentHash(){return e3(this,void 0,void 0,function*(){let e=yield this._fetchBytes("0xbc1c58d1");if(null==e||"0x"===e)return null;let t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e=parseInt(t[3],16);if(t[4].length===2*e)return"ipfs://"+er.encode("0x"+t[1])}let r=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){let e=parseInt(r[3],16);if(r[4].length===2*e)return"ipns://"+er.encode("0x"+r[1])}let i=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(i&&64===i[1].length)return"bzz://"+i[1];let o=e.match(/^0x90b2c605([0-9a-f]*)$/);if(o&&68===o[1].length){let e={"=":"","+":"-","/":"_"};return"sia://"+j("0x"+o[1]).replace(/[=+\/]/g,t=>e[t])}return e5.throwError("invalid or unsupported content hash data",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return e3(this,void 0,void 0,function*(){let t=(0,m.Y0)(e);(t=(0,h.zo)([to(64),to(t.length),t])).length%32!=0&&(t=(0,h.zo)([t,(0,h.$m)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,h.Dv)(t));return null==r||"0x"===r?null:(0,m.ZN)(r)})}}let tm=null,tw=1;class ty extends ee{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,i.zG)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,i.tu)(new.target,"getNetwork")(e);
1t?((0,i.zG)(this,"_network",t),this.emit("network",t,null)):e5.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return e3(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||e5.throwError("no network detected",n.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,i.zG)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return K(()=>this._ready().then(e=>e,e=>{if(e.code!==n.Yd.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==tm&&(tm=new e2.Mb),tm}static getNetwork(e){return eG(null==e?"homestead":e)}ccipReadFetch(e,t,r){return e3(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let i=e.to.toLowerCase(),o=t.toLowerCase(),s=[];for(let e=0;e<r.length;e++){let t=r[e],a=t.replace("{sender}",i).replace("{data}",o),l=t.indexOf("{data}")>=0?null:JSON.stringify({data:o,sender:i}),c=yield Z({url:a,errorPassThrough:!0},l,(e,t)=>(e.status=t.statusCode,e));if(c.data)return c.data;let u=c.message||"unknown error";if(c.status>=400&&c.status<500)return e5.throwError(`response not found during CCIP fetch: ${u}`,n.Yd.errors.SERVER_ERROR,{url:t,errorMessage:u});s.push(u)}return e5.throwError(`error encountered during CCIP fetch: ${s.map(e=>JSON.stringify(e)).join(", ")}`,n.Yd.errors.SERVER_ERROR,{urls:r,errorMessages:s})})}_getInternalBlockNumber(e){return e3(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(te()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=te(),r=(0,i.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:i})=>{if(i)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),i;let n=te();return(e=d.O$.from(e).toNumber())<this._maxInternalBlockNumber&&(e=this._maxInternalBlockNumber),this._maxInternalBlockNumber=e,this._setFastBlockNumber(e),{blockNumber:e,reqTime:t,respTime:n}});return this._internalBlockNumber=r,r.catch(e=>{this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return e3(this,void 0,void 0,function*(){let e=tw++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)e5.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",e5.makeError("network block skew detected",n.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;let t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case"tx":{let r=e.hash,i=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit("error",e)});t.push(i);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let i=e.filter;i.fromBlock=e._lastBlockNumber+1,i.toBlock=r;let n=i.toBlock-this._maxFilterBlockRange;n>i.fromBlock&&(i.fromBlock=n),i.fromBlock<0&&(i.fromBlock=0);let o=this.getLogs(i).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit
1(i,t)})}).catch(t=>{this.emit("error",t),e._inflight=!1});t.push(o)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return e3(this,void 0,void 0,function*(){return e5.throwError("provider does not support network detection",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return e3(this,void 0,void 0,function*(){let e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield tt(0),this._network;let r=e5.makeError("underlying network changed",n.Yd.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=te();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(e<this._fastBlockNumber))&&(this._fastQueryDate=te(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return e3(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,i){return e3(this,void 0,void 0,function*(){let o=yield this.getTransactionReceipt(e);return(o?o.confirmations:0)>=t?o:new Promise((o,s)=>{let a=[],l=!1,c=function(){return!!l||(l=!0,a.forEach(e=>{e()}),!1)},u=e=>{e.confirmations<t||c()||o(e)};if(this.on(e,u),a.push(()=>{this.removeListener(e,u)}),i){let r=i.startBlock,o=null,u=a=>e3(this,void 0,void 0,function*(){l||(yield tt(1e3),this.getTransactionCount(i.from).then(d=>e3(this,void 0,void 0,function*(){if(!l){if(d<=i.nonce)r=a;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==o&&(o=r-3)<i.startBlock&&(o=i.startBlock);o<=a;){if(l)return;let r=yield this.getBlockWithTransactions(o);for(let o=0;o<r.transactions.length;o++){let a=r.transactions[o];if(a.hash===e)return;if(a.from===i.from&&a.nonce===i.nonce){if(l)return;let r=yield this.waitForTransaction(a.hash,t);if(c())return;let o="replaced";a.data===i.data&&a.to===i.to&&a.value.eq(i.value)?o="repriced":"0x"===a.data&&a.from===a.to&&a.value.isZero()&&(o="cancelled"),s(e5.makeError("transaction was replaced",n.Yd.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===o||"cancelled"===o,reason:o,replacement:this._wrapTransaction(a),hash:e,receipt:r}));return}}o++}}l||this.once("block",u)}}),e=>{l||this.once("block",u)}))});if(l)return;this.once("block",u),a.push(()=>{this.removeListener("block",u)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{c()||s(e5.makeError("timeout exceeded",n.Yd.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),a.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return e3(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return d.O$.from(e)}catch(t){return e5.throwError("bad result from backend",n.Yd.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,i.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),o=yield this.perform("getBalance",r);try{return d.O$.from(o)}catch(e){return e5.throwError("bad result from backend",n.Yd.errors.SERVER_ERROR,{method:"getBalance",params:r,result:o,error:e})}})}getTransactionCount(e,t){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,i.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),o=yield this.perform("getTransactionCount",r);try{return d.O$.from(o).toNumber()}catch(e){return e5.throwError("bad result from backend",n.Yd.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:o,error:e})}})}getCode(e,t){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,i.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),o=yield this.perform("getCode",r);try{return(0,h.Dv)(o)}catch(e){return e5.throwError("bad result from backend",n.Yd.errors.SERVER_ERROR,{method:"getCode",params:r,result:o,error:e})}})}getStorageAt(e,t,r){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let o=yield(0,i.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Prom
1ise.resolve(t).then(e=>(0,h.$P)(e))}),s=yield this.perform("getStorageAt",o);try{return(0,h.Dv)(s)}catch(e){return e5.throwError("bad result from backend",n.Yd.errors.SERVER_ERROR,{method:"getStorageAt",params:o,result:s,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,h.E1)(t))throw Error("invalid response - sendTransaction");let i=e;return null!=t&&e.hash!==t&&e5.throwError("Transaction hash mismatch from Provider.sendTransaction.",n.Yd.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=(t,i)=>e3(this,void 0,void 0,function*(){let o;null==t&&(t=1),null==i&&(i=0),0!==t&&null!=r&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let s=yield this._waitForTransaction(e.hash,t,i,o);return null==s&&0===t?null:(this._emitted["t:"+e.hash]=s.blockNumber,0===s.status&&e5.throwError("transaction failed",n.Yd.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),s)}),i}sendTransaction(e){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,h.Dv)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,i)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return e3(this,void 0,void 0,function*(){let t=yield e,r={};return["from","to"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?d.O$.from(e):null))}),["type"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,h.Dv)(e):null))}),this.formatter.transactionRequest((yield(0,i.mE)(r)))})}_getFilter(e){return e3(this,void 0,void 0,function*(){e=yield e;let t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,i.mE)(t)))})}_call(e,t,r){return e3(this,void 0,void 0,function*(){r>=e4&&e5.throwError("CCIP read exceeded maximum redirections",n.Yd.errors.SERVER_ERROR,{redirects:r,transaction:e});let i=e.to,o=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===o.substring(0,10)&&(0,h.E1)(o)%32==4)try{let s=(0,h.p3)(o,4),a=(0,h.p3)(s,0,32);d.O$.from(a).eq(i)||e5.throwError("CCIP Read sender did not match",n.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});let l=[],c=d.O$.from((0,h.p3)(s,32,64)).toNumber(),u=d.O$.from((0,h.p3)(s,c,c+32)).toNumber(),f=(0,h.p3)(s,c+32);for(let t=0;t<u;t++){let r=tc(f,32*t);null==r&&e5.throwError("CCIP Read contained corrupt URL string",n.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),l.push(r)}let p=tu(s,64);d.O$.from((0,h.p3)(s,100,128)).isZero()||e5.throwError("CCIP Read callback selector included junk",n.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});let g=(0,h.p3)(s,96,100),m=tu(s,128),w=yield this.ccipReadFetch(e,p,l);null==w&&e5.throwError("CCIP Read disabled or provided no URLs",n.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o});let y={to:i,data:(0,h.xs)([g,tp([w,m])])};return this._call(y,t,r+1)}catch(e){if(e.code===n.Yd.errors.SERVER_ERROR)throw e}try{return(0,h.Dv)(o)}catch(r){return e5.throwError("bad result from backend",n.Yd.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:o,error:r})}})}call(e,t){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,i.mE)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.cci
1pReadEnabled)});return this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)})}estimateGas(e){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,i.mE)({transaction:this._getTransactionRequest(e)}),r=yield this.perform("estimateGas",t);try{return d.O$.from(r)}catch(e){return e5.throwError("bad result from backend",n.Yd.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:e})}})}_getAddress(e){return e3(this,void 0,void 0,function*(){"string"!=typeof(e=yield e)&&e5.throwArgumentError("invalid address or ENS name","name",e);let t=yield this.resolveName(e);return null==t&&e5.throwError("ENS name not configured",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),t})}_getBlock(e,t){return e3(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let r=-128,i={includeTransactions:!!t};if((0,h.A7)(e,32))i.blockHash=e;else try{i.blockTag=yield this._getBlockTag(e),(0,h.A7)(i.blockTag)&&(r=parseInt(i.blockTag.substring(2),16))}catch(t){e5.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return K(()=>e3(this,void 0,void 0,function*(){let e=yield this.perform("getBlock",i);if(null==e)return null!=i.blockHash&&null==this._emitted["b:"+i.blockHash]||null!=i.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;r<e.transactions.length;r++){let i=e.transactions[r];if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){null==t&&(t=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let e=t-i.blockNumber+1;e<=0&&(e=1),i.confirmations=e}}let r=this.formatter.blockWithTransactions(e);return r.transactions=r.transactions.map(e=>this._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return e3(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return K(()=>e3(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let i=this.formatter.transactionResponse(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;e<=0&&(e=1),i.confirmations=e}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return e3(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return K(()=>e3(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let i=this.formatter.receipt(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;e<=0&&(e=1),i.confirmations=e}return i}),{oncePoll:this})})}getLogs(e){return e3(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,i.mE)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),e2.Mb.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return e3(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return e3(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&e5.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return e3(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;let r=yield this._getResolver(t,"getResolver");if(null!=r){let i=new tg(this,r,e);if(t!==e&&!(yield i.supportsWildcard()))return null;return i}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return e3(this,void 0,void 0,function*(){null==t&&(t="ENS");let r=yield this.getNetwork();r.ensAddress||e5.throwError("network does not support ENS",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+eB(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return e3(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,h.A7)(e))throw t}"string"!=typeof e&&e5.throwArgumentError("invalid ENS name","name",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return e3(this,void 0,void 0,function*(){e=yield e;let t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;let i=tc((yield this.call({to:r,data:"0x691f3431"+eB(t).substring(2)})),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return e3(this,void 0,void 0,function*(){let t=null;if((0,h.A7)(e)){let r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",i=yield this._getResolver(r,"getAvatar");if(!i)return null;t=new tg(this,i,r);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==n.Yd.errors.CALL_EXCEPTION)throw e}try{let e=tc((yield this.call({to:i,data:"0x691f3431"+eB(r).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==n.Yd.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return e5.throwError(e+" not implemented",n.Yd.errors.NOT_IMPLEMENT
1ED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){let i=new ti(e9(e),t,r);return this._events.push(i),this._startEvent(i),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,i=[],n=e9(e);return this._events=this._events.filter(e=>e.tag!==n||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(i.push(e),!1))),i.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=e9(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=e9(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],i=!1,n=e9(e);return this._events=this._events.filter(e=>e.tag!==n||e.listener!=t||!!i||(i=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{let r=e9(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}var tb=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let tv=new n.Yd(G.i),t_=["call","estimateGas"];function tx(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,h.A7)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let i=tx(e[r],t);if(i)return i}return null}if("string"==typeof e)try{return tx(JSON.parse(e),t)}catch(e){}return null}function tE(e,t,r){let i=r.transaction||r.signedTransaction;if("call"===e){let e=tx(t,!0);if(e)return e.data;tv.throwError("missing revert data in call exception; Transaction reverted without a reason string",n.Yd.errors.CALL_EXCEPTION,{data:"0x",transaction:i,error:t})}if("estimateGas"===e){let r=tx(t.body,!1);null==r&&(r=tx(t,!1)),r&&tv.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",n.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:i,error:t})}let o=t.message;throw t.code===n.Yd.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?o=t.error.message:"string"==typeof t.body?o=t.body:"string"==typeof t.responseText&&(o=t.responseText),(o=(o||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&tv.throwError("insufficient funds for intrinsic transaction cost",n.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:i}),o.match(/nonce (is )?too low/i)&&tv.throwError("nonce has already been used",n.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:i}),o.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&tv.throwError("replacement fee too low",n.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:i}),o.match(/only replay-protected/i)&&tv.throwError("legacy pre-eip-155 transactions not supported",n.Yd.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:i}),t_.indexOf(e)>=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&tv.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",n.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:i}),t}function tC(e){return new Promise(function(t){setTimeout(t,e)})}function tk(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function tS(e){return e?e.toLowerCase():e}let tA={};class tI extends u{constructor(e,t,r){if(super(),e!==tA)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,i.zG)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,i.zG)(this,"_address",this.provider.formatter.address(r)),(0,i.zG)(this,"_index",null)):"number"==typeof r?((0,i.zG)(this,"_index",r),(0,i.zG)(this,"_address",null)):tv.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return tv.throwError("cannot alter JSON-RPC Signer connection",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new tT(tA,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&tv.throwError("unknown account #"+this._index,n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,i.DC)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));
1if(null==e.gasLimit){let r=(0,i.DC)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>tb(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&tv.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),(0,i.mE)({tx:(0,i.mE)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&tv.throwArgumentError("from address mismatch","transaction",e):t.from=r;let i=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&tv.throwError("user rejected transaction",n.Yd.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),tE("sendTransaction",e,i)))})}signTransaction(e){return tv.throwError("signing transactions is unsupported",n.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return tb(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield K(()=>tb(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return tb(this,void 0,void 0,function*(){let t="string"==typeof e?(0,m.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,h.Dv)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&tv.throwError("user rejected signing",n.Yd.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}})}_legacySignMessage(e){return tb(this,void 0,void 0,function*(){let t="string"==typeof e?(0,m.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,h.Dv)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&tv.throwError("user rejected signing",n.Yd.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return tb(this,void 0,void 0,function*(){let i=yield M.resolveNames(e,t,r,e=>this.provider.resolveName(e)),o=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(M.getPayload(i.domain,t,i.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&tv.throwError("user rejected signing",n.Yd.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:i.domain,types:t,value:i.value}}),e}})}unlock(e){return tb(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class tT extends tI{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}let tR={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class tO extends ty{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=(0,i.tu)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,i.zG)(this,"connection",Object.freeze({url:e})):(0,i.zG)(this,"connection",Object.freeze((0,i.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return tb(this,void 0,void 0,function*(){yield tC(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let t=(0,i.tu)(this.constructor,"getNetwork");try{return t(d.O$.from(e).toNumber())}catch(t){return tv.throwError("could not detect network",n.Yd.errors.NETWORK_E
1RROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return tv.throwError("could not detect network",n.Yd.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new tI(tA,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,i.p$)(r),provider:this});let n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];let o=Z(this.connection,JSON.stringify(r),tk).then(e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e});return n&&(this._cache[e]=o,setTimeout(()=>{this._cache[e]=null},0)),o}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[tS(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[tS(t.address),t.blockTag]];case"getCode":return["eth_getCode",[tS(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[tS(t.address),(0,h.$m)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":if(t.blockTag)return["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,i.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,i.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=tS(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return tb(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=t.transaction;if(e&&null!=e.type&&d.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,i.DC)(t)).transaction=(0,i.DC)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&tv.throwError(e+" not implemented",n.Yd.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return tE(e,r,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){function i(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=t)return null;let i=Promise.resolve();return r.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",i=i.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),i.then(function(){return tC(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){i()},0),null}).catch(e=>{})}return i(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,i.DC)(tR);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,i.uj)(e,r);let n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;let r=(0,h.$P)(d.O$.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(n[t]=(0,h.Dv)(e[t]))}),e.accessList&&(n.accessList=(0,D.z7)(e.accessList)),n}}},91894:function(e,t,r){"use strict";r.d(t,{Q:function(){return d}});var i=r(31240),n=r(97327),o=r(86691),s=r(63533);let a=new n.Yd(o.i),l=1;function c(e,t){let r="Web3LegacyFetcher";return function(e,n){let o={method:e,params:n,id:l++,jsonrpc:"2.0"};
1return new Promise((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,i.p$)(o),provider:this}),t(o,(t,i)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:o,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:o,response:i,provider:this}),i.error){let e=Error(i.error.message);return e.code=i.error.code,e.data=i.error.data,n(e)}e(i.result)})})}}function u(e){return function(t,r){null==r&&(r=[]);let n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,i.p$)(n),provider:this}),e.request(n).then(e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e})}}class d extends s.r{constructor(e,t){null==e&&a.throwArgumentError("missing provider","provider",e);let r=null,n=null,o=null;"function"==typeof e?(r="unknown:",n=e):((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),o=e,e.request?(""===r&&(r="eip-1193:"),n=u(e)):e.sendAsync?n=c(e,e.sendAsync.bind(e)):e.send?n=c(e,e.send.bind(e)):a.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,i.zG)(this,"jsonRpcFetchFunc",n),(0,i.zG)(this,"provider",o)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},83569:function(e,t,r){"use strict";r.d(t,{J:function(){return f},c:function(){return u}});var i=r(8810),n=r(97327);let o="rlp/5.7.0",s=new n.Yd(o);function a(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function l(e,t,r){let i=0;for(let n=0;n<r;n++)i=256*i+e[t+n];return i}function c(e){if(Array.isArray(e)){let t=[];if(e.forEach(function(e){t=t.concat(c(e))}),t.length<=55)return t.unshift(192+t.length),t;let r=a(t.length);return r.unshift(247+r.length),r.concat(t)}(0,i.Zq)(e)||s.throwArgumentError("RLP object must be BytesLike","object",e);let t=Array.prototype.slice.call((0,i.lE)(e));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;let r=a(t.length);return r.unshift(183+r.length),r.concat(t)}function u(e){return(0,i.Dv)(c(e))}function d(e,t,r,i){let o=[];for(;r<t+1+i;){let a=h(e,r);o.push(a.result),(r+=a.consumed)>t+1+i&&s.throwError("child data too short",n.Yd.errors.BUFFER_OVERRUN,{})}return{consumed:1+i,result:o}}function h(e,t){if(0===e.length&&s.throwError("data too short",n.Yd.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&s.throwError("data short segment too short",n.Yd.errors.BUFFER_OVERRUN,{});let i=l(e,t+1,r);return t+1+r+i>e.length&&s.throwError("data long segment too short",n.Yd.errors.BUFFER_OVERRUN,{}),d(e,t,t+1+r,r+i)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&s.throwError("data array too short",n.Yd.errors.BUFFER_OVERRUN,{}),d(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&s.throwError("data array too short",n.Yd.errors.BUFFER_OVERRUN,{});let o=l(e,t+1,r);t+1+r+o>e.length&&s.throwError("data array too short",n.Yd.errors.BUFFER_OVERRUN,{});let a=(0,i.Dv)(e.slice(t+1+r,t+1+r+o));return{consumed:1+r+o,result:a}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&s.throwError("data too short",n.Yd.errors.BUFFER_OVERRUN,{});let o=(0,i.Dv)(e.slice(t+1,t+1+r));return{consumed:1+r,result:o}}return{consumed:1,result:(0,i.Dv)(e[t])}}function f(e){let t=(0,i.lE)(e),r=h(t,0);return r.consumed!==t.length&&s.throwArgumentError("invalid rlp data","data",e),r.result}},61728:function(e,t,r){"use strict";r.d(t,{Y0:function(){return f},XL:function(){return m},ZN:function(){return g}});var i,n,o=r(8810),s=r(97327);let a="strings/5.7.0",l=new s.Yd(a);function c(e,t,r,i,o){if(e===n.BAD_PREFIX||e===n.UNEXPECTED_CONTINUE){let e=0;for(let i=t+1;i<r.length&&r[i]>>6==2;i++)e++;return e}return e===n.OVERRUN?r.length-t-1:0}function u(e,t,r,i,o){return e===n.OVERLONG?(i.push(o),0):(i.push(65533),c(e,t,r,i,o))}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(i||(i={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(n||(n={}));let d=Object.freeze({error:function(e,t,r,i,n){return l.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:c,replace:u});function h(e,t){null==t&&(t=d.error),e=(0,o.lE)(e);let r=[],i=0;for(;i<e.length;){let o=e[i++];if(o>>7==0){r.push(o);continue}let s=null,a=null;if((224&o)==192)s=1,a=127;else if((240&o)==224)s=2,a=2047;else if((248&o)==240)s=3,a=65535;else{(192&o)==128?i+=t(n.UNEXPECTED_CONTINUE,i-1,e,r):i+=t(n.BAD_PREFIX,i-1,e,r);continue}if(i-1+s>=e.length){i+=t(n.OVERRUN,i-1,e,r);continue}let l=o&(1<<8-s-1)-1;for(let o=0;o<s;o++){let o=e[i];if((192&o)!=128){i+=t(n.MISSING_CONTINUE,i,e,r),l=null;break}l=l<<6|63&o,i++}if(null!==l){if(l>1114111){i+=t(n.OUT_OF_RANGE,i-1-s,e,r,l);continue}if(l>=55296&&l<=57343){i+=t(n.UTF16_SURROGATE,i-1-s,e,r,l);continue}if(l<=a){i+=t(n.OVERLONG,i-1-s,e,r,l);continue}r.push(l)}}return r}function f(e,t=i.current){t!=i.current&&(l.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if((64512&i)==55296){t++;let n=e.charCodeAt(t);if(t>=e.length||(64512&n)!=56320)throw Error("invalid utf-8 string");let o=65536+((1023&i)<<10)+(1023&n);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return(0,o.lE)(r)}function p(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function g(e,t){return p(h(e,t))}function m(e,t=i.current){return h(f(e,t))}},63123:function(e,t,r){"use strict";r.d(t,{z7:function(){return ep},Qc:function(){return ex}});var i,n=r(42246),o=r(89210),s=r(8810);let a=o.O$.from(0);var l=r(25650),c=r(83569),u=r(44373),d=r.n(u),h=r(28714),f=r.n(h);function p(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return g(e,null==t?r.path:t)}},r.exports),r.exports}function g(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var m=w;function w(e,t){if(!e)throw Error(t||"Assertion failed")}w.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var y=p(function(e,t){var r=t;function i(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var n=e.charCodeAt(i),o=n>>8,s=255&n;o?r.push(o,s):r.push(s)}return r}function n(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=i,r.zero2=n,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}}),b=p(function(e,t){var r=t;function i(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<<t+1,o=e.clone(),s=0;s<i.length;s++){var a,l=o.andln(n-1);o.isOdd()?(a=l>(n>>1)-1?(n>>1)-l:l,o.isubn(a)):a=0,i[s]=a,o.iushrn(1)}return i}function n(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var o,s,a,l=e.andln(3)+i&3,c=t.andln(3)+n&3;3===l&&(l=-1),3===c&&(c=-1),s=(1&l)==0?0:(3==(o=e.andln(7)+i&7)||5===o)&&2===c?-l:l,r[0].push(s),a=(1&c)==0?0:(3==(o=t.andln(7)+n&7)||5===o)&&2===l?-c:c,r[1].push(a),2*i===s+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r}function o(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}}function s(e){return"string"==typeof e?r.toArray(e,"hex"):e}function a(e){return new(d())(e,"hex","le")}r.assert=m,r.toArray=y.toArray,r.zero2=y.zero2,r.toHex=y.toHex,r.encode=y.encode,r.getNAF=i,r.getJSF=n,r.cachedProperty=o,r.parseBytes=s,r.intFromLE=a}),v=b.getNAF,_=b.getJSF,x=b.assert;function E(e,t){this.type=e,this.p=new(d())(t.p,16),this.red=t.prime?d().red(t.prime):d().mont(this.p),this.zero=new(d())(0).toRed(this.red),this.one=new(d())(1).toRed(this.red),this.two=new(d())(2).toRed(this.red),this.n=t.n&&new(d())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var C=E;
vendor: 5,039 bytes, line 1
1function k(e,t){this.curve=e,this.type=t,this.precomputed=null}E.prototype.point=function(){throw Error("Not implemented")},E.prototype.validate=function(){throw Error("Not implemented")},E.prototype._fixedNafMul=function(e,t){x(e.precomputed);var r,i,n=e._getDoubles(),o=v(t,1,this._bitLength),s=(1<<n.step+1)-(n.step%2==0?2:1);s/=3;var a=[];for(r=0;r<o.length;r+=n.step){i=0;for(var l=r+n.step-1;l>=r;l--)i=(i<<1)+o[l];a.push(i)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=s;d>0;d--){for(r=0;r<a.length;r++)(i=a[r])===d?u=u.mixedAdd(n.points[r]):i===-d&&(u=u.mixedAdd(n.points[r].neg()));c=c.add(u)}return c.toP()},E.prototype._wnafMul=function(e,t){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var n=i.points,o=v(t,r,this._bitLength),s=this.jpoint(null,null,null),a=o.length-1;a>=0;a--){for(var l=0;a>=0&&0===o[a];a--)l++;if(a>=0&&l++,s=s.dblp(l),a<0)break;var c=o[a];x(0!==c),s="affine"===e.type?c>0?s.mixedAdd(n[c-1>>1]):s.mixedAdd(n[-c-1>>1].neg()):c>0?s.add(n[c-1>>1]):s.add(n[-c-1>>1].neg())}return"affine"===e.type?s.toP():s},E.prototype._wnafMulAdd=function(e,t,r,i,n){var o,s,a,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,d=0;for(o=0;o<i;o++){var h=(a=t[o])._getNAFPoints(e);l[o]=h.wnd,c[o]=h.points}for(o=i-1;o>=1;o-=2){var f=o-1,p=o;if(1!==l[f]||1!==l[p]){u[f]=v(r[f],l[f],this._bitLength),u[p]=v(r[p],l[p],this._bitLength),d=Math.max(u[f].length,d),d=Math.max(u[p].length,d);continue}var g=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(g[1]=t[f].add(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].add(t[p].neg())):(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],w=_(r[f],r[p]);for(s=0,d=Math.max(w[0].length,d),u[f]=Array(d),u[p]=Array(d);s<d;s++){var y=0|w[0][s],b=0|w[1][s];u[f][s]=m[(y+1)*3+(b+1)],u[p][s]=0,c[f]=g}}var x=this.jpoint(null,null,null),E=this._wnafT4;for(o=d;o>=0;o--){for(var C=0;o>=0;){var k=!0;for(s=0;s<i;s++)E[s]=0|u[s][o],0!==E[s]&&(k=!1);if(!k)break;C++,o--}if(o>=0&&C++,x=x.dblp(C),o<0)break;for(s=0;s<i;s++){var S=E[s];0!==S&&(S>0?a=c[s][S-1>>1]:S<0&&(a=c[s][-S-1>>1].neg()),x="affine"===a.type?x.mixedAdd(a):x.add(a))}}for(o=0;o<i;o++)c[o]=null;return n?x:x.toP()},E.BasePoint=k,k.prototype.eq=function(){throw Error("Not implemented")},k.prototype.validate=function(){return this.curve.validate(this)},E.prototype.decodePoint=function(e,t){e=b.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?x(e[e.length-1]%2==0):7===e[0]&&x(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},k.prototype.encodeCompressed=function(e){return this.encode(e,!0)},k.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},k.prototype.encode=function(e,t){return b.encode(this._encode(t),e)},k.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},k.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},k.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var o=0;o<e;o++)i=i.dbl();r.push(i)}return{step:e,points:r}},k.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=1===r?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},k.prototype._getBeta=function(){return null},k.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var S=p(function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),A=b.assert;function I(e){C.call(this,"short",e),this.a=new(d())(e.a,16).toRed(this.red),this.b=new(d())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}S(I,C);var T=I;function R(e,t,r,i){C.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(d())(t,16),this.y=new(d())(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}
1function O(e,t,r,i){C.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(d())(0)):(this.x=new(d())(t,16),this.y=new(d())(r,16),this.z=new(d())(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}I.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new(d())(e.beta,16).toRed(this.red);else{var t,r,i,n=this._getEndoRoots(this.p);t=(t=0>n[0].cmp(n[1])?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new(d())(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],A(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return i=e.basis?e.basis.map(function(e){return{a:new(d())(e.a,16),b:new(d())(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},I.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:d().mont(e),r=new(d())(2).toRed(t).redInvm(),i=r.redNeg(),n=new(d())(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},I.prototype._getEndoBasis=function(e){for(var t,r,i,n,o,s,a,l,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new(d())(1),g=new(d())(0),m=new(d())(0),w=new(d())(1),y=0;0!==h.cmpn(0);){var b=f.div(h);l=f.sub(b.mul(h)),c=m.sub(b.mul(p));var v=w.sub(b.mul(g));if(!i&&0>l.cmp(u))t=a.neg(),r=p,i=l.neg(),n=c;else if(i&&2==++y)break;a=l,f=h,h=l,m=p,p=c,w=g,g=v}o=l.neg(),s=c;var _=i.sqr().add(n.sqr());return o.sqr().add(s.sqr()).cmp(_)>=0&&(o=t,s=r),i.negative&&(i=i.neg(),n=n.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:n},{a:o,b:s}]},I.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),a=o.mul(i.a),l=n.mul(r.b),c=o.mul(i.b);return{k1:e.sub(s).sub(a),k2:l.add(c).neg()}},I.prototype.pointFromX=function(e,t){(e=new(d())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},I.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},I.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],l=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),i[2*o]=a,i[2*o+1]=l,n[2*o]=s.k1,n[2*o+1]=s.k2}for(var c=this._wnafMulAdd(1,i,n,2*o,r),u=0;u<2*o;u++)i[u]=null,n[u]=null;return c},S(R,C.BasePoint),I.prototype.point=function(e,t,r){return new R(this,e,t,r)},I.prototype.pointFromJSON=function(e,t){return R.fromJSON(this,e,t)},R.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}},R.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},R.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);if(!t[2])return i;function n(t){return e.point(t[0],t[1],r)}var o=t[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},R.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>
1":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},R.prototype.isInfinity=function(){return this.inf},R.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},R.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},R.prototype.getX=function(){return this.x.fromRed()},R.prototype.getY=function(){return this.y.fromRed()},R.prototype.mul=function(e){return(e=new(d())(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},R.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},R.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},R.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},R.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},R.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},S(O,C.BasePoint),I.prototype.jpoint=function(e,t,r){return new O(this,e,t,r)},O.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},O.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},O.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=i.redSub(n),l=o.redSub(s);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),d=i.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,f,p)},O.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(i),a=n.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),u=r.redMul(l),d=a.redSqr().redIAdd(c).redISub(u).redISub(u),h=a.redMul(u.redISub(d)).redISub(n.redMul(c)),f=this.z.redMul(s);return this.curve.jpoint(d,h,f)},O.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var i=this.curve.a,n=this.curve.tinv,o=this.x,s=this.y,a=this.z,l=a.redSqr().redSqr(),c=s.redAdd(s);for(t=0;t<e;t++){var u=o.redSqr(),d=c.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(i.redMul(l)),p=o.redMul(d),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),w=f.redMul(m);w=w.redIAdd(w).redISub(h);var y=c.redMul(a);t+1<e&&(l=l.redMul(h)),o=g,a=y,c=w}return this.curve.jpoint(o,c.redMul(n),a)},O.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},O.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var a=i.redAdd(i).redIAdd(i),l=a.redSqr().redISub(s).redISub(s),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),g=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},O.prototype._threeDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var a=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),l=a.redSqr().redISub(s).redISub(s);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),g=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},O.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(n)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(s),u=a.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=s.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=a.redMul(d).redISub(h),p=r.redAdd(r).redMul(i);return this.curve.jpoint(u,f,p)},O.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 6,430 bytes, line 1
1var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),i=t.redSqr(),n=e.redAdd(e).redIAdd(e),o=n.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(i),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=i.redIAdd(i);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=n.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(a).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(s.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(d,h,f)},O.prototype.mul=function(e,t){return e=new(d())(e,t),this.curve._wnafMul(this,e)},O.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var i=t.redMul(this.z),n=r.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(i)).cmpn(0)},O.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},O.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},O.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var P=p(function(e,t){var r=t;r.base=C,r.short=T,r.mont=null,r.edwards=null}),N=p(function(e,t){var r,i=t,n=b.assert;function o(e){"short"===e.type?this.curve=new P.short(e):"edwards"===e.type?this.curve=new P.edwards(e):this.curve=new P.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:f().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:f().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:f().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:f().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:f().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f().sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:f().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:f().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function M(e){if(!(this instanceof M))return new M(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=y.toArray(e.entropy,e.entropyEnc||"hex"),r=y.toArray(e.nonce,e.nonceEnc||"hex"),i=y.toArray(e.pers,e.persEnc||"hex");m(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}var D=M;M.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},M.prototype._hmac=function(){return new(f()).hmac(this.hash,this.K)},M.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},M.prototype.reseed=function(e,t,r,i){"string"!=typeof t&&(i=r,r=t,t=null),e=y.toArray(e,t),r=y.toArray(r,i),m(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},M.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=y.toArray(r,i||"hex"),this._update(r));for(var n=[];n.length<e;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var o=n.slice(0,e);return this._update(r),this._reseed++,y.encode(o,t)};var L=b.assert;function j(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var B=j;j.fromPublic=function(e,t,r){return t instanceof j?t:new j(e,{pub:t,pubEnc:r})},j.fromPrivate=function(e,t,r){return t instanceof j?t:new j(e,{priv:t,privEnc:r})},j.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},j.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},j.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},j.prototype._importPrivate=function(e,t){this.priv=new(d())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},j.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?L(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&L(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},j.prototype.derive=function(e){return e.validate()||L(e.validate(),"public point not validated"),e.mul(this.priv).getX()},j.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},j.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},j.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var $=b.assert;function U(e,t){if(e instanceof U)return e;this._importDER(e,t)||($(e.r&&e.s,"Signature without r or s"),this.r=new(d())(e.r,16),this.s=new(d())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var F=U;function z(){this.place=0}function q(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,o=0,s=t.place;o<i;o++,s++)n<<=8,n|=e[s],n>>>=0;return!(n<=127)&&(t.place=s,n)}function W(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function H(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}U.prototype._importDER=function(e,t){e=b.toArray(e,t);var r=new z;if(48!==e[r.place++])return!1;var i=q(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var n=q(e,r);if(!1===n)return!1;var o=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var s=q(e,r);if(!1===s||e.length!==s+r.place)return!1;var a=e.slice(r.place,s+r.place);
1if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(d())(o),this.s=new(d())(a),this.recoveryParam=null,!0},U.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=W(t),r=W(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];H(i,t.length),(i=i.concat(t)).push(2),H(i,r.length);var n=i.concat(r),o=[48];return H(o,n.length),o=o.concat(n),b.encode(o,e)};var V=function(){throw Error("unsupported")},Z=b.assert;function K(e){if(!(this instanceof K))return new K(e);"string"==typeof e&&(Z(Object.prototype.hasOwnProperty.call(N,e),"Unknown curve "+e),e=N[e]),e instanceof N.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var G=K;K.prototype.keyPair=function(e){return new B(this,e)},K.prototype.keyFromPrivate=function(e,t){return B.fromPrivate(this,e,t)},K.prototype.keyFromPublic=function(e,t){return B.fromPublic(this,e,t)},K.prototype.genKeyPair=function(e){e||(e={});for(var t=new D({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||V(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new(d())(2));;){var n=new(d())(t.generate(r));if(!(n.cmp(i)>0))return n.iaddn(1),this.keyFromPrivate(n)}},K.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},K.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(d())(e,16));for(var n=this.n.byteLength(),o=t.getPrivate().toArray("be",n),s=e.toArray("be",n),a=new D({hash:this.hash,entropy:o,nonce:s,pers:i.pers,persEnc:i.persEnc||"utf8"}),l=this.n.sub(new(d())(1)),c=0;;c++){var u=i.k?i.k(c):new(d())(a.generate(this.n.byteLength()));if(!(0>=(u=this._truncateToN(u,!0)).cmpn(1)||u.cmp(l)>=0)){var h=this.g.mul(u);if(!h.isInfinity()){var f=h.getX(),p=f.umod(this.n);if(0!==p.cmpn(0)){var g=u.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==f.cmp(p)?2:0);return i.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),m^=1),new F({r:p,s:g,recoveryParam:m})}}}}}},K.prototype.verify=function(e,t,r,i){e=this._truncateToN(new(d())(e,16)),r=this.keyFromPublic(r,i);var n,o=(t=new F(t,"hex")).r,s=t.s;if(0>o.cmpn(1)||o.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var a=s.invm(this.n),l=a.mul(e).umod(this.n),c=a.mul(o).umod(this.n);return this.curve._maxwellTrick?!(n=this.g.jmulAdd(l,r.getPublic(),c)).isInfinity()&&n.eqXToP(o):!(n=this.g.mulAdd(l,r.getPublic(),c)).isInfinity()&&0===n.getX().umod(this.n).cmp(o)},K.prototype.recoverPubKey=function(e,t,r,i){Z((3&r)===r,"The recovery param is more than two bits"),t=new F(t,i);var n=this.n,o=new(d())(e),s=t.r,a=t.s,l=1&r,c=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw Error("Unable to find sencond key candinate");s=c?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var u=t.r.invm(n),h=n.sub(o).mul(u).umod(n),f=a.mul(u).umod(n);return this.g.mulAdd(h,s,f)},K.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new F(t,i)).recoveryParam)return t.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(e,t,o)}catch(e){continue}if(n.eq(r))return o}throw Error("Unable to find valid recovery factor")};var Y=p(function(e,t){var r=t;r.version="6.5.4",r.utils=b,r.rand=function(){throw Error("unsupported")},r.curve=P,r.curves=N,r.ec=G,r.eddsa=null}).ec,J=r(31240),Q=r(97327);let X="signing-key/5.7.0",ee=new Q.Yd(X),et=null;function er(){return et||(et=new Y("secp256k1")),et}class ei{constructor(e){(0,J.zG)(this,"curve","secp256k1"),(0,J.zG)(this,"privateKey",(0,s.Dv)(e)),32!==(0,s.E1)(this.privateKey)&&ee.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let t=er().keyFromPrivate((0,s.lE)(this.privateKey));(0,J.zG)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,J.zG)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,J.zG)(this,"_isSigningKey",!0)}_addPoint(e){let t=er().keyFromPublic((0,s.lE)(this.publicKey)),r=er().
1keyFromPublic((0,s.lE)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let t=er().keyFromPrivate((0,s.lE)(this.privateKey)),r=(0,s.lE)(e);32!==r.length&&ee.throwArgumentError("bad digest length","digest",e);let i=t.sign(r,{canonical:!0});return(0,s.N)({recoveryParam:i.recoveryParam,r:(0,s.$m)("0x"+i.r.toString(16),32),s:(0,s.$m)("0x"+i.s.toString(16),32)})}computeSharedSecret(e){let t=er().keyFromPrivate((0,s.lE)(this.privateKey)),r=er().keyFromPublic((0,s.lE)(eo(e)));return(0,s.$m)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function en(e,t){let r=(0,s.N)(t),i={r:(0,s.lE)(r.r),s:(0,s.lE)(r.s)};return"0x"+er().recoverPubKey((0,s.lE)(e),i,r.recoveryParam).encode("hex",!1)}function eo(e,t){let r=(0,s.lE)(e);if(32===r.length){let e=new ei(r);return t?"0x"+er().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,s.Dv)(r):"0x"+er().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+er().keyFromPublic(r).getPublic(!0,"hex"):(0,s.Dv)(r):ee.throwArgumentError("invalid public or private key","key","[REDACTED]")}let es="transactions/5.7.0",ea=new Q.Yd(es);function el(e){return"0x"===e?null:(0,n.Kn)(e)}function ec(e){return"0x"===e?a:o.O$.from(e)}function eu(e){let t=eo(e);return(0,n.Kn)((0,s.p3)((0,l.w)((0,s.p3)(t,1)),12))}function ed(e,t){return eu(en((0,s.lE)(e),t))}function eh(e,t){let r=(0,s.G1)(o.O$.from(e).toHexString());return r.length>32&&ea.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function ef(e,t){return{address:(0,n.Kn)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,s.E1)(t)&&ea.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function ep(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&ea.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),ef(e[0],e[1])):ef(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return ef(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function eg(e){return ep(e).map(e=>[e.address,e.storageKeys])}function em(e,t){if(null!=e.gasPrice){let t=o.O$.from(e.gasPrice),r=o.O$.from(e.maxFeePerGas||0);t.eq(r)||ea.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}let r=[eh(e.chainId||0,"chainId"),eh(e.nonce||0,"nonce"),eh(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),eh(e.maxFeePerGas||0,"maxFeePerGas"),eh(e.gasLimit||0,"gasLimit"),null!=e.to?(0,n.Kn)(e.to):"0x",eh(e.value||0,"value"),e.data||"0x",eg(e.accessList||[])];if(t){let e=(0,s.N)(t);r.push(eh(e.recoveryParam,"recoveryParam")),r.push((0,s.G1)(e.r)),r.push((0,s.G1)(e.s))}return(0,s.xs)(["0x02",c.c(r)])}function ew(e,t){let r=[eh(e.chainId||0,"chainId"),eh(e.nonce||0,"nonce"),eh(e.gasPrice||0,"gasPrice"),eh(e.gasLimit||0,"gasLimit"),null!=e.to?(0,n.Kn)(e.to):"0x",eh(e.value||0,"value"),e.data||"0x",eg(e.accessList||[])];if(t){let e=(0,s.N)(t);r.push(eh(e.recoveryParam,"recoveryParam")),r.push((0,s.G1)(e.r)),r.push((0,s.G1)(e.s))}return(0,s.xs)(["0x01",c.c(r)])}function ey(e,t,r){try{let r=ec(t[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){ea.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,s.$m)(t[1],32),e.s=(0,s.$m)(t[2],32);try{let t=(0,l.w)(r(e));e.from=ed(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function eb(e){let t=c.J(e.slice(1));9!==t.length&&12!==t.length&&ea.throwArgumentError("invalid component count for transaction type: 2","payload",(0,s.Dv)(e));let r=ec(t[2]),i=ec(t[3]),n={type:2,chainId:ec(t[0]).toNumber(),nonce:ec(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:i,gasPrice:null,gasLimit:ec(t[4]),to:el(t[5]),value:ec(t[6]),data:t[7],accessList:ep(t[8])};return 9===t.length||(n.hash=(0,l.w)(e),ey(n,t.slice(9),em)),n}function ev(e){let t=c.J(e.slice(1));8!==t.length&&11!==t.length&&ea.throwArgumentError("invalid component count for transaction type: 1","payload",(0,s.Dv)(e));let r={type:1,chainId:ec(t[0]).toNumber(),nonce:ec(t[1]).toNumber(),gasPrice:ec(t[2]),gasLimit:ec(t[3]),to:el(t[4]),value:ec(t[5]),data:t[6],accessList:ep(t[7]
1)};return 8===t.length||(r.hash=(0,l.w)(e),ey(r,t.slice(8),ew)),r}function e_(e){let t=c.J(e);9!==t.length&&6!==t.length&&ea.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:ec(t[0]).toNumber(),gasPrice:ec(t[1]),gasLimit:ec(t[2]),to:el(t[3]),value:ec(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=o.O$.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,s.$m)(t[7],32),r.s=(0,s.$m)(t[8],32),o.O$.from(r.r).isZero()&&o.O$.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27,n=t.slice(0,6);0!==r.chainId&&(n.push((0,s.Dv)(r.chainId)),n.push("0x"),n.push("0x"),i-=2*r.chainId+8);let o=(0,l.w)(c.c(n));try{r.from=ed(o,{r:(0,s.Dv)(r.r),s:(0,s.Dv)(r.s),recoveryParam:i})}catch(e){}r.hash=(0,l.w)(e)}return r.type=null,r}function ex(e){let t=(0,s.lE)(e);if(t[0]>127)return e_(t);switch(t[0]){case 1:return ev(t);case 2:return eb(t)}return ea.throwError(`unsupported transaction type: ${t[0]}`,Q.Yd.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(i||(i={}))},48444:function(e,t){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function i(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)}function n(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(e,...t){if(!n(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function l(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=t.isBytes=void 0,t.number=r,t.bool=i,t.isBytes=n,t.bytes=o,t.hash=s,t.exists=a,t.output=l;let c={number:r,bool:i,bytes:o,hash:s,exists:a,output:l};t.default=c},34755:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;let r=BigInt(4294967296-1),i=BigInt(32);function n(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}function o(e,t=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:s,l:a}=n(e[o],t);[r[o],i[o]]=[s,a]}return[r,i]}t.fromBig=n,t.split=o;let s=(e,t)=>BigInt(e>>>0)<<i|BigInt(t>>>0);t.toBig=s;let a=(e,t,r)=>e>>>r;t.shrSH=a;let l=(e,t,r)=>e<<32-r|t>>>r;t.shrSL=l;let c=(e,t,r)=>e>>>r|t<<32-r;t.rotrSH=c;let u=(e,t,r)=>e<<32-r|t>>>r;t.rotrSL=u;let d=(e,t,r)=>e<<64-r|t>>>r-32;t.rotrBH=d;let h=(e,t,r)=>e>>>r-32|t<<64-r;t.rotrBL=h;let f=(e,t)=>t;t.rotr32H=f;let p=(e,t)=>e;t.rotr32L=p;let g=(e,t,r)=>e<<r|t>>>32-r;t.rotlSH=g;let m=(e,t,r)=>t<<r|e>>>32-r;t.rotlSL=m;let w=(e,t,r)=>t<<r-32|e>>>64-r;t.rotlBH=w;let y=(e,t,r)=>e<<r-32|t>>>64-r;function b(e,t,r,i){let n=(t>>
1>0)+(i>>>0);return{h:e+r+(n/4294967296|0)|0,l:0|n}}t.rotlBL=y,t.add=b;let v=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);t.add3L=v;let _=(e,t,r,i)=>t+r+i+(e/4294967296|0)|0;t.add3H=_;let x=(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0);t.add4L=x;let E=(e,t,r,i,n)=>t+r+i+n+(e/4294967296|0)|0;t.add4H=E;let C=(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0);t.add5L=C;let k=(e,t,r,i,n,o)=>t+r+i+n+o+(e/4294967296|0)|0;t.add5H=k;let S={fromBig:n,split:o,toBig:s,shrSH:a,shrSL:l,rotrSH:c,rotrSL:u,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:g,rotlSL:m,rotlBH:w,rotlBL:y,add:b,add3L:v,add3H:_,add4L:x,add4H:E,add5H:k,add5L:C};t.default=S},83917:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},32517:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;let i=r(48444),n=r(34755),o=r(28772),s=[],a=[],l=[],c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],s.push(2*(5*i+r)),a.push((e+1)*(e+2)/2%64);let n=c;for(let e=0;e<7;e++)(t=(t<<u^(t>>h)*p)%f)&d&&(n^=u<<(u<<BigInt(e))-u);l.push(n)}let[g,m]=(0,n.split)(l,!0),w=(e,t,r)=>r>32?(0,n.rotlBH)(e,t,r):(0,n.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,n.rotlBL)(e,t,r):(0,n.rotlSL)(e,t,r);function b(e,t=24){let r=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let i=(t+8)%10,n=(t+2)%10,o=r[n],s=r[n+1],a=w(o,s,1)^r[i],l=y(o,s,1)^r[i+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],n=e[3];for(let r=0;r<24;r++){let i=a[r],o=w(t,n,i),l=y(t,n,i),c=s[r];t=e[c],n=e[c+1],e[c]=o,e[c+1]=l}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)r[i]=e[t+i];for(let i=0;i<10;i++)e[t+i]^=~r[(i+2)%10]&r[(i+4)%10]}e[0]^=g[i],e[1]^=m[i]}r.fill(0)}t.keccakP=b;class v extends o.Hash{constructor(e,t,r,n=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,i.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){o.isLE||(0,o.byteSwap32)(this.state32),b(this.state32,this.rounds),o.isLE||(0,o.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.exists)(this);let{blockLen:t,state:r}=this,n=(e=(0,o.toBytes)(e)).length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:i}=this;e[r]^=t,(128&t)!=0&&r===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,i.exists)(this,!1),(0,i.bytes)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let i=0,n=e.length;i<n;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,n-i);e.set(t.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.output)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:i,rounds:n,enableXOF:o}=this;return e||(e=new v(t,r,i,o,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=r,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}t.Keccak=v;let _=(e,t,r)=>(0,o.wrapConstructor)(()=>new v(t,e,r));t.sha3_224=_(6,144,28),t.sha3_256=_(6,136,32),t.sha3_384=_(6,104,48),t.sha3_512=_(6,72,64),t.keccak_224=_(1,144,28),t.keccak_256=_(1,136,32),t.keccak_384=_(1,104,48),t.keccak_512=_(1,72,64);let x=(e,t,r)=>(0,o.wrapXOFConstructorWithOpts)((i={})=>new v(t,e,void 0===i.dkLen?r:i.dkLen,!0));t.shake128=x(31,168,16),t.shake256=x(31,136,32)},28772:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.byteSwap32=t.byteSwapIfBE=t.byteSwap=t.isLE=t.rotl=t.rotr=t.createView=t.u32=t.u8=t.isBytes=void 0;let i=r(83917),n=r(48444);function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}t.isBytes=o;let s=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u8=s;let a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.u32=a;let l=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);t.createView=l;let c=(e,t)=>e<<32-t|e>>>t;t.rotr=c;let u=(e,t)=>e<<t|e>>>32-t>>>0;t.rotl=u,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];let d=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function h(e){for(let r=0;r<e.length;r++)e[r]=(0,t.byteSwap)(e[r])}t.byteSwap=d,t.byteSwapIfBE=t.isLE?e=>e:e=>(0,t.byteSwap)(e),t.byteSwap32=h;let f=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function p(e){(0,n.bytes)(e);let t="";for(let r=0;r<e.length;r++)t+=f[e[r]];return t}t.bytesToHex=p;let g={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function m(e){return e>=g._0&&e<=g._9?e-g._0:e>=g._A&&e<=g._F?e-(g._A-10):e>=g._a&&e<=g._f?e-(g._a-10):void 0}function w(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let t=0,n=0;t<r;t++,n+=2){let r=m(e.charCodeAt(n)),o=m(e.charCodeAt(n+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[n]+e[n+1])+'" at index '+n);i[t]=16*r+o}return i}t.hexToBytes=w;let y=async()=>{};async function b(e,r,i){let n=Date.now();for(let o=0;o<e;o++){i(o);let e=Date.now()-n;e>=0&&e<r||(await (0,t.nextTick)(),n+=e)}}function v(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function _(e){return"string"==typeof e&&(e=v(e)),(0,n.bytes)(e),e}function x(...e){let t=0;for(let r=0;r<e.length;r++){let i=e[r];(0,n.bytes)(i),t+=i.length}let r=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){let n=e[t];r.set(n,i),i+=n.length}return r}t.nextTick=y,t.asyncLoop=b,t.utf8ToBytes=v,t.toBytes=_,t.concatBytes=x;class E{clone(){return this._cloneInto()}}t.Hash=E;let C={}.toString;function k(e,t){if(void 0!==t&&"[object Object]"!==C.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)}function S(e){let t=t=>e().update(_(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function A(e){let t=(t,r)=>e(r).update(_(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function I(e){let t=(t,r)=>e(r).update(_(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t}function T(e=32){if(i.crypto&&"function"==typeof i.crypto.getRandomValues)return i.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}t.checkOpts=k,t.wrapConstructor=S,t.wrapConstructorWithOpts=A,t.wrapXOFConstructorWithOpts=I,t.randomBytes=T},1356:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(34550);function n(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16}function o(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0}function s(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16}function a(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0}function l(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function c(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t}function u(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function d(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function h(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function f(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function p(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function g(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function m(e,t){void 0===t&&(t=0);var r=u(e,t),i=u(e,t+4);return 4294967296*r+i-(i>>31)*4294967296}function w(e,t){return void 0===t&&(t=0),4294967296*d(e,t)+d(e,t+4)}function y(e,t){void 0===t&&(t=0);var r=h(e,t);return 4294967296*h(e,t+4)+r-(r>>31)*4294967296}function b(e,t){void 0===t&&(t=0);var r=f(e,t);return 4294967296*f(e,t+4)+r}function v(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),p(e/4294967296>>>0,t,r),p(e>>>0,t,r+4),t}function _(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),g(e>>>0,t,r),g(e/4294967296>>>0,t,r+4),t}function x(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supp
1orts only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given bitLength");for(var i=0,n=1,o=e/8+r-1;o>=r;o--)i+=t[o]*n,n*=256;return i}function E(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var i=0,n=1,o=r;o<r+e/8;o++)i+=t[o]*n,n*=256;return i}function C(e,t,r,n){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===n&&(n=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!i.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var o=1,s=e/8+n-1;s>=n;s--)r[s]=t/o&255,o*=256;return r}function k(e,t,r,n){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===n&&(n=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!i.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var o=1,s=n;s<n+e/8;s++)r[s]=t/o&255,o*=256;return r}function S(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)}function A(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)}function I(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)}function T(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)}function R(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t}function O(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t}function P(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t}function N(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}t.readInt16BE=n,t.readUint16BE=o,t.readInt16LE=s,t.readUint16LE=a,t.writeUint16BE=l,t.writeInt16BE=l,t.writeUint16LE=c,t.writeInt16LE=c,t.readInt32BE=u,t.readUint32BE=d,t.readInt32LE=h,t.readUint32LE=f,t.writeUint32BE=p,t.writeInt32BE=p,t.writeUint32LE=g,t.writeInt32LE=g,t.readInt64BE=m,t.readUint64BE=w,t.readInt64LE=y,t.readUint64LE=b,t.writeUint64BE=v,t.writeInt64BE=v,t.writeUint64LE=_,t.writeInt64LE=_,t.readUintBE=x,t.readUintLE=E,t.writeUintBE=C,t.writeUintLE=k,t.readFloat32BE=S,t.readFloat32LE=A,t.readFloat64BE=I,t.readFloat64LE=T,t.writeFloat32BE=R,t.writeFloat32LE=O,t.writeFloat64BE=P,t.writeFloat64LE=N},35600:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(1356),n=r(87427),o=20;function s(e,t,r){for(var n=1634760805,s=857760878,a=2036477234,l=1797285236,c=r[3]<<24|r[2]<<16|r[1]<<8|r[0],u=r[7]<<24|r[6]<<16|r[5]<<8|r[4],d=r[11]<<24|r[10]<<16|r[9]<<8|r[8],h=r[15]<<24|r[14]<<16|r[13]<<8|r[12],f=r[19]<<24|r[18]<<16|r[17]<<8|r[16],p=r[23]<<24|r[22]<<16|r[21]<<8|r[20],g=r[27]<<24|r[26]<<16|r[25]<<8|r[24],m=r[31]<<24|r[30]<<16|r[29]<<8|r[28],w=t[3]<<24|t[2]<<16|t[1]<<8|t[0],y=t[7]<<24|t[6]<<16|t[5]<<8|t[4],b=t[11]<<24|t[10]<<16|t[9]<<8|t[8],v=t[15]<<24|t[14]<<16|t[13]<<8|t[12],_=n,x=s,E=a,C=l,k=c,S=u,A=d,I=h,T=f,R=p,O=g,P=m,N=w,M=y,D=b,L=v,j=0;j<o;j+=2)N^=_=_+k|0,k^=T=T+(N=N>>>16|N<<16)|0,k=k>>>20|k<<12,M^=x=x+S|0,S^=R=R+(M=M>>>16|M<<16)|0,S=S>>>20|S<<12,D^=E=E+A|0,A^=O=O+(D=D>>>16|D<<16)|0,A=A>>>20|A<<12,L^=C=C+I|0,I^=P=P+(L=L>>>16|L<<16)|0,I=I>>>20|I<<12,D^=E=E+A|0,A^=O=O+(D=D>>>24|D<<8)|0,A=A>>>25|A<<7,L^=C=C+I|0,I^=P=P+(L=L>>>24|L<<8)|0,I=I>>>25|I<<7,M^=x=x+S|0,S^=R=R+(M=M>>>24|M<<8)|0,S=S>>>25|S<<7,N^=_=_+k|0,k^=T=T+(N=N>>>24|N<<8)|0,k=k>>>25|k<<7,L^=_=_+S|0,S^=O=O+(L=L>>>16|L<<16)|0,S=S>>>20|S<<12,N^=x=x+A|0,A^=P=P+(N=N>>>16|N<<16)|0,A=A>>>20|A<<12,M^=E=E+I|0,I^=T=T+(M=M>>>16|M<<16)|0,I=I>>>20|I<<12,D^=C=C+k|0,k^=R=R+(D=D>>>16|D<<16)|0,k=k>>>20|k<<12,M^=E=E+I|0,I^=T=T+(M=M>>>24|M<<8)|0,I=I>>>25|I<<7,D^=C=C+k|0,k^=R=R+(D=D>>>24|D<<8)|0,k=k>>>25|k<<7,N^=x=x+A|0,A^=P=P+(N=N>>>24|N<<8)|0,A=A>>>25|A<<7,L^=_=_+S|0,S^=O=O+(L=L>>>24|L<<8)|0,S=S>>>25|S<<7;i.writeUint32LE(_+n|0,e,0),i.writeUint32LE(x+s|0,e,4),i.writeUint32LE(E+a|0,e,8),i.writeUint32LE(C+l|0,e,12),i.writeUint32LE(k+c|0,e,16),i.writeUint32LE(S+u|0,e,20),i.writeUint32LE(A+d|0,e,24),i.writeUint32LE(I+h|0,e,28),i.writeUint32LE(T+f|0,e,32),i.writeUint32LE(R+p|0,e,36),i.writeUint32LE(O+g|0,e,40),i.writeUint32LE(P+m|0,e,44),i.writeUint32LE(N+w|0,e,48),i.writeUint32LE(M+y|0,e,52),i.writeUint32LE(D+b|0,e,56),i.writeUint32LE(L+v|
10,e,60)}function a(e,t,r,i,o){if(void 0===o&&(o=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(i.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===o){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");l=(a=new Uint8Array(16)).length-t.length,a.set(t,l)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");a=t,l=o}for(var a,l,u=new Uint8Array(64),d=0;d<r.length;d+=64){s(u,a,e);for(var h=d;h<d+64&&h<r.length;h++)i[h]=r[h]^u[h-d];c(a,0,l)}return n.wipe(u),0===o&&n.wipe(a),i}function l(e,t,r,i){return void 0===i&&(i=0),n.wipe(r),a(e,t,r,r,i)}function c(e,t,r){for(var i=1;r--;)i=i+(255&e[t])|0,e[t]=255&i,i>>>=8,t++;if(i>0)throw Error("ChaCha: counter overflow")}t.streamXOR=a,t.stream=l},50972:function(e,t,r){"use strict";i={value:!0};var i,n=r(35600),o=r(50081),s=r(87427),a=r(1356),l=r(35905);t.Cv=32,t.WH=12,t.pg=16;var c=new Uint8Array(16),u=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var o,a=new Uint8Array(16);a.set(e,a.length-e.length);var l=new Uint8Array(32);n.stream(this._key,a,l,4);var c=t.length+this.tagLength;if(i){if(i.length!==c)throw Error("ChaCha20Poly1305: incorrect destination length");o=i}else o=new Uint8Array(c);return n.streamXOR(this._key,a,t,o,4),this._authenticate(o.subarray(o.length-this.tagLength,o.length),l,o.subarray(0,o.length-this.tagLength),r),s.wipe(a),o},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var o,a=new Uint8Array(16);a.set(e,a.length-e.length);var c=new Uint8Array(32);n.stream(this._key,a,c,4);var u=new Uint8Array(this.tagLength);if(this._authenticate(u,c,t.subarray(0,t.length-this.tagLength),r),!l.equal(u,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(i){if(i.length!==d)throw Error("ChaCha20Poly1305: incorrect destination length");o=i}else o=new Uint8Array(d);return n.streamXOR(this._key,a,t.subarray(0,t.length-this.tagLength),o,4),s.wipe(a),o},e.prototype.clean=function(){return s.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,i){var n=new o.Poly1305(t);i&&(n.update(i),i.length%16>0&&n.update(c.subarray(i.length%16))),n.update(r),r.length%16>0&&n.update(c.subarray(r.length%16));var l=new Uint8Array(8);i&&a.writeUint64LE(i.length,l),n.update(l),a.writeUint64LE(r.length,l),n.update(l);for(var u=n.digest(),d=0;d<u.length;d++)e[d]=u[d];n.clean(),s.wipe(u),s.wipe(l)},e}();t.OK=u},35905:function(e,t){"use strict";function r(e,t,r){return~(e-1)&t|e-1&r}function i(e,t){return(0|e)-(0|t)-1>>>31&1}function n(e,t){if(e.length!==t.length)return 0;for(var r=0,i=0;i<e.length;i++)r|=e[i]^t[i];return 1&r-1>>>8}function o(e,t){return 0!==e.length&&0!==t.length&&0!==n(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.select=r,t.lessOrEqual=i,t.compare=n,t.equal=o},48280:function(e,t,r){"use strict";var i;i={value:!0},i=i=i=t.Xx=i=i=t._w=t.aP=t.KS=i=t.jQ=void 0;let n=r(78539),o=r(16214),s=r(87427);function a(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.jQ=64,i=32,t.KS=64,t.aP=32,new Uint8Array(32)[0]=9;let l=a(),c=a([1]),u=(a([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),a([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),d=a([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),h=a([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function f(e,t){for(let r=0;r<16;r++)e[r]=0|t[r]}function p(e){let t=1;for(let r=0;r<16;r++){let i=e[r]+t+65535;t=Math.floor(i/65536),e[r]=i-65536*t}e[0]+=t-1+37*(t-1)}function g(e,t,r){let i=~(r-1);for(let r=0;r<16;r++){let n=i&(e[r]^t[r]);e[r]^=n,t[r]^=n}}function m(e,t){let r=a(),i=a();for(let e=0;e<16;e++)i[e]=t[e];p(i),p(i),p(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,g(i,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&i[t],e[2*t+1]=i[t]>>8}function w(e,t){let r=0;for(let i=0;i<32;i++)r|=e[i]^t[i];return(1&r-1>>>8)-1}a([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function y(e){let t=new Uint8Array(32);return m(t,e),1&t[0]}function b(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function v(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function _(e,t,r){let i,n,o=0,s=0,a=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,g=0,m=0,w=0,y=0,b=0,v=0,_=0,x=0,E=0,C=0,k=0,S=0,A=0,I=0,T=0,R=0,O=0,P=0,N=0,M=0,D=0,L=r[0],j=r[1],B=r[2],$=r[3],U=r[4],F=r[5],z=r[6],q=r[7],W=r[8],H=r[9],V=r[10],Z=r[11],K=r[12],G=r[13],Y=r[14],J=r[15];o+=(i=t[0])*L,s+=i*j,a+=i*B,l+=i*$,c+=i*U,u+=i*F,d+=i*z,h+=i*q,f+=i*W,p+=i*H,g+=i*V,m+=i*Z,w+=i*K,y+=i*G,b+=i*Y,v+=i*J,s+=(i=t[1])*L,a+=i*j,l+=i*B,c+=i*$,u+=i*U,d+=i*F,h+=i*z,f+=i*q,p+=i*W,g+=i*H,m+=i*V,w+=i*Z,y+=i*K,b+=i*G,v+=i*Y,_+=i*J,a+=(i=t[2])*L,l+=i*j,c+=i*B,u+=i*$,d+=i*U,h+=i*F,f+=i*z,p+=i*q,g+=i*W,m+=i*H,w+=i*V,y+=i*Z,b+=i*K,v+=i*G,_+=i*Y,x+=i*J,l+=(i=t[3])*L,c+=i*j,u+=i*B,d+=i*$,h+=i*U,f+=i*F,p+=i*z,g+=i*q,m+=i*W,w+=i*H,y+=i*V,b+=i*Z,v+=i*K,_+=i*G,x+=i*Y,E+=i*J,c+=(i=t[4])*L,u+=i*j,d+=i*B,h+=i*$,f+=i*U,p+=i*F,g+=i*z,m+=i*q,w+=i*W,y+=i*H,b+=i*V,v+=i*Z,_+=i*K,x+=i*G,E+=i*Y,C+=i*J,u+=(i=t[5])*L,d+=i*j,h+=i*B,f+=i*$,p+=i*U,g+=i*F,m+=i*z,w+=i*q,y+=i*W,b+=i*H,v+=i*V,_+=i*Z,x+=i*K,E+=i*G,C+=i*Y,k+=i*J,d+=(i=t[6])*L,h+=i*j,f+=i*B,p+=i*$,g+=i*U,m+=i*F,w+=i*z,y+=i*q,b+=i*W,v+=i*H,_+=i*V,x+=i*Z,E+=i*K,C+=i*G,k+=i*Y,S+=i*J,h+=(i=t[7])*L,f+=i*j,p+=i*B,g+=i*$,m+=i*U,w+=i*F,y+=i*z,b+=i*q,v+=i*W,_+=i*H,x+=i*V,E+=i*Z,C+=i*K,k+=i*G,S+=i*Y,A+=i*J,f+=(i=t[8])*L,p+=i*j,g+=i*B,m+=i*$,w+=i*U,y+=i*F,b+=i*z,v+=i*q,_+=i*W,x+=i*H,E+=i*V,C+=i*Z,k+=i*K,S+=i*G,A+=i*Y,I+=i*J,p+=(i=t[9])*L,g+=i*j,m+=i*B,w+=i*$,y+=i*U,b+=i*F,v+=i*z,_+=i*q,x+=i*W,
1E+=i*H,C+=i*V,k+=i*Z,S+=i*K,A+=i*G,I+=i*Y,T+=i*J,g+=(i=t[10])*L,m+=i*j,w+=i*B,y+=i*$,b+=i*U,v+=i*F,_+=i*z,x+=i*q,E+=i*W,C+=i*H,k+=i*V,S+=i*Z,A+=i*K,I+=i*G,T+=i*Y,R+=i*J,m+=(i=t[11])*L,w+=i*j,y+=i*B,b+=i*$,v+=i*U,_+=i*F,x+=i*z,E+=i*q,C+=i*W,k+=i*H,S+=i*V,A+=i*Z,I+=i*K,T+=i*G,R+=i*Y,O+=i*J,w+=(i=t[12])*L,y+=i*j,b+=i*B,v+=i*$,_+=i*U,x+=i*F,E+=i*z,C+=i*q,k+=i*W,S+=i*H,A+=i*V,I+=i*Z,T+=i*K,R+=i*G,O+=i*Y,P+=i*J,y+=(i=t[13])*L,b+=i*j,v+=i*B,_+=i*$,x+=i*U,E+=i*F,C+=i*z,k+=i*q,S+=i*W,A+=i*H,I+=i*V,T+=i*Z,R+=i*K,O+=i*G,P+=i*Y,N+=i*J,b+=(i=t[14])*L,v+=i*j,_+=i*B,x+=i*$,E+=i*U,C+=i*F,k+=i*z,S+=i*q,A+=i*W,I+=i*H,T+=i*V,R+=i*Z,O+=i*K,P+=i*G,N+=i*Y,M+=i*J,v+=(i=t[15])*L,_+=i*j,x+=i*B,E+=i*$,C+=i*U,k+=i*F,S+=i*z,A+=i*q,I+=i*W,T+=i*H,R+=i*V,O+=i*Z,P+=i*K,N+=i*G,M+=i*Y,D+=i*J,o+=38*_,s+=38*x,a+=38*E,l+=38*C,c+=38*k,u+=38*S,d+=38*A,h+=38*I,f+=38*T,p+=38*R,g+=38*O,m+=38*P,w+=38*N,y+=38*M,b+=38*D,n=Math.floor((i=o+(n=1)+65535)/65536),o=i-65536*n,n=Math.floor((i=s+n+65535)/65536),s=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,o+=n-1+37*(n-1),n=Math.floor((i=o+(n=1)+65535)/65536),o=i-65536*n,n=Math.floor((i=s+n+65535)/65536),s=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,o+=n-1+37*(n-1),e[0]=o,e[1]=s,e[2]=a,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=w,e[13]=y,e[14]=b,e[15]=v}function x(e,t){_(e,t,t)}function E(e,t){let r;let i=a();for(r=0;r<16;r++)i[r]=t[r];for(r=253;r>=0;r--)x(i,i),2!==r&&4!==r&&_(i,i,t);for(r=0;r<16;r++)e[r]=i[r]}function C(e,t){let r=a(),i=a(),n=a(),o=a(),s=a(),l=a(),c=a(),d=a(),h=a();v(r,e[1],e[0]),v(h,t[1],t[0]),_(r,r,h),b(i,e[0],e[1]),b(h,t[0],t[1]),_(i,i,h),_(n,e[3],t[3]),_(n,n,u),_(o,e[2],t[2]),b(o,o,o),v(s,i,r),v(l,o,n),b(c,o,n),b(d,i,r),_(e[0],s,l),_(e[1],d,c),_(e[2],c,l),_(e[3],s,d)}function k(e,t,r){for(let i=0;i<4;i++)g(e[i],t[i],r)}function S(e,t){let r=a(),i=a(),n=a();E(n,t[2]),_(r,t[0],n),_(i,t[1],n),m(e,i),e[31]^=y(r)<<7}function A(e,t,r){f(e[0],l),f(e[1],c),f(e[2],c),f(e[3],l);for(let i=255;i>=0;--i){let n=r[i/8|0]>>(7&i)&1;k(e,t,n),C(t,e),C(e,e),k(e,t,n)}}function I(e,t){let r=[a(),a(),a(),a()];f(r[0],d),f(r[1],h),f(r[2],c),_(r[3],d,h),A(e,r,t)}function T(e){if(e.length!==t.aP)throw Error(`ed25519: seed must be ${t.aP} bytes`);let r=(0,o.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;let i=new Uint8Array(32),n=[a(),a(),a(),a()];I(n,r),S(i,n);let s=new Uint8Array(64);return s.set(e),s.set(i,32),{publicKey:i,secretKey:s}}t._w=T,i=function(e){let t=(0,n.randomBytes)(32,e),r=T(t);return(0,s.wipe)(t),r},i=function(e){if(e.length!==t.KS)throw Error(`ed25519: secret key must be ${t.KS} bytes`);return new Uint8Array(e.subarray(32))};let R=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function O(e,t){let r,i,n,o;for(i=63;i>=32;--i){for(r=0,n=i-32,o=i-12;n<o;++n)t[n]+=r-16*t[i]*R[n-(i-32)],r=Math.floor((t[n]+128)/256),t[n]-=256*r;t[n]+=r,t[i]=0}for(n=0,r=0;n<32;n++)t[n]+=r-(t[31]>>4)*R[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;n++)t[n]-=r*R[n];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function P(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let t=0;t<64;t++)e[t]=0;O(e,t)}function N(e,t){let r=new Float64Array(64),i=[a(),a(),a(),a()],n=(0,o.hash)(e.subarray(0,32));n[0]&=248,n[31]&=127,n[31]|=64;let s=new Uint8Array(64);s.set(n.subarray(32),32);let l=new o.SHA512;l.update(s.subarray(32)),l.update(t);let c=l.digest();l.clean(),P(c),I(i,c),S(s,i),l.reset(),l.update(s.subarray(0,32)),l.update(e.subarray(32)),l.update(t);let u=l.digest();P(u);for(let e=0;e<32;e++)r[e]=c[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)r[e+t]+=u[e]*n[t];return O(s.subarray(32),r),s}t.Xx=N},50601:function(e,t){"use strict";function r(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}
1Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=r},9014:function(e,t,r){"use strict";i={value:!0};var i,n=r(76568),o=r(87427),s=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=n.hmac(this._hash,r,t);this._hmac=new n.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),o.wipe(this._buffer),o.wipe(this._counter),this._bufpos=0},e}();t.t=s},76568:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(50601),n=r(35905),o=r(87427),s=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var n=0;n<r.length;n++)r[n]^=54;this._inner.update(r);for(var n=0;n<r.length;n++)r[n]^=106;this._outer.update(r),i.isSerializableHash(this._inner)&&i.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(r)}return e.prototype.reset=function(){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){i.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),i.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();function a(e,t,r){var i=new s(e,t);i.update(r);var n=i.digest();return i.clean(),n}t.HMAC=s,t.hmac=a,t.equal=n.equal},34550:function(e,t){"use strict";function r(e,t){var r=e>>>16&65535,i=65535&e,n=t>>>16&65535,o=65535&t;return i*o+(r*o+i*n<<16>>>0)|0}function i(e,t){return e+t|0}function n(e,t){return e-t|0}function o(e,t){return e<<t|e>>>32-t}function s(e,t){return e<<32-t|e>>>t}function a(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||r,t.add=i,t.sub=n,t.rotl=o,t.rotr=s,t.isInteger=Number.isInteger||a,t.MAX_SAFE_INTEGER=9007199254740991,t.isSafeInteger=function(e){return t.isInteger(e)&&e>=-t.MAX_SAFE_INTEGER&&e<=t.MAX_SAFE_INTEGER}},50081:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(35905),n=r(87427);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new
1Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var i=e[2]|e[3]<<8;this._r[1]=(r>>>13|i<<3)&8191;var n=e[4]|e[5]<<8;this._r[2]=(i>>>10|n<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(n>>>7|o<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(o>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var a=e[10]|e[11]<<8;this._r[6]=(s>>>14|a<<2)&8191;var l=e[12]|e[13]<<8;this._r[7]=(a>>>11|l<<5)&8065;var c=e[14]|e[15]<<8;this._r[8]=(l>>>8|c<<8)&8191,this._r[9]=c>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var i=this._fin?0:2048,n=this._h[0],o=this._h[1],s=this._h[2],a=this._h[3],l=this._h[4],c=this._h[5],u=this._h[6],d=this._h[7],h=this._h[8],f=this._h[9],p=this._r[0],g=this._r[1],m=this._r[2],w=this._r[3],y=this._r[4],b=this._r[5],v=this._r[6],_=this._r[7],x=this._r[8],E=this._r[9];r>=16;){var C,k=e[t+0]|e[t+1]<<8;n+=8191&k;var S=e[t+2]|e[t+3]<<8;o+=(k>>>13|S<<3)&8191;var A=e[t+4]|e[t+5]<<8;s+=(S>>>10|A<<6)&8191;var I=e[t+6]|e[t+7]<<8;a+=(A>>>7|I<<9)&8191;var T=e[t+8]|e[t+9]<<8;l+=(I>>>4|T<<12)&8191,c+=T>>>1&8191;var R=e[t+10]|e[t+11]<<8;u+=(T>>>14|R<<2)&8191;var O=e[t+12]|e[t+13]<<8;d+=(R>>>11|O<<5)&8191;var P=e[t+14]|e[t+15]<<8;h+=(O>>>8|P<<8)&8191,f+=P>>>5|i;var N=0;N=(C=0+n*p+5*E*o+5*x*s+5*_*a+5*v*l)>>>13,C&=8191,C+=5*b*c+5*y*u+5*w*d+5*m*h+5*g*f,N+=C>>>13,C&=8191;var M=N;M+=n*g+o*p+5*E*s+5*x*a+5*_*l,N=M>>>13,M&=8191,M+=5*v*c+5*b*u+5*y*d+5*w*h+5*m*f,N+=M>>>13,M&=8191;var D=N;D+=n*m+o*g+s*p+5*E*a+5*x*l,N=D>>>13,D&=8191,D+=5*_*c+5*v*u+5*b*d+5*y*h+5*w*f,N+=D>>>13,D&=8191;var L=N;L+=n*w+o*m+s*g+a*p+5*E*l,N=L>>>13,L&=8191,L+=5*x*c+5*_*u+5*v*d+5*b*h+5*y*f,N+=L>>>13,L&=8191;var j=N;j+=n*y+o*w+s*m+a*g+l*p,N=j>>>13,j&=8191,j+=5*E*c+5*x*u+5*_*d+5*v*h+5*b*f,N+=j>>>13,j&=8191;var B=N;B+=n*b+o*y+s*w+a*m+l*g,N=B>>>13,B&=8191,B+=c*p+5*E*u+5*x*d+5*_*h+5*v*f,N+=B>>>13,B&=8191;var $=N;$+=n*v+o*b+s*y+a*w+l*m,N=$>>>13,$&=8191,$+=c*g+u*p+5*E*d+5*x*h+5*_*f,N+=$>>>13,$&=8191;var U=N;U+=n*_+o*v+s*b+a*y+l*w,N=U>>>13,U&=8191,U+=c*m+u*g+d*p+5*E*h+5*x*f,N+=U>>>13,U&=8191;var F=N;F+=n*x+o*_+s*v+a*b+l*y,N=F>>>13,F&=8191,F+=c*w+u*m+d*g+h*p+5*E*f,N+=F>>>13,F&=8191;var z=N;z+=n*E+o*x+s*_+a*v+l*b,N=z>>>13,z&=8191,z+=c*y+u*w+d*m+h*g+f*p,N+=z>>>13,z&=8191,C=8191&(N=(N=(N<<2)+N|0)+C|0),N>>>=13,M+=N,n=C,o=M,s=D,a=L,l=j,c=B,u=$,d=U,h=F,f=z,t+=16,r-=16}this._h[0]=n,this._h[1]=o,this._h[2]=s,this._h[3]=a,this._h[4]=l,this._h[5]=c,this._h[6]=u,this._h[7]=d,this._h[8]=h,this._h[9]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,i,n,o,s=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,s[0]=this._h[0]+5,r=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this._h[o]+r,r=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,i=(1^r)-1,o=0;o<10;o++)s[o]&=i;for(o=0,i=~i;o<10;o++)this._h[o]=this._h[o]&i|s[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,n=this._h[0]+this._pad[0],this._h[0]=65535&n;o<8;o++)n=(this._h[o]+this._pad[o]|0)+(n>>>16)|0,this._h[o]=65535&n;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,i=e.length;if(this._leftover){(t=16-this._leftover)>i&&(t=i);for(var n=0;n<t;n++)this._buffer[this._leftover+n]=e[r+n];if(i-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(i>=16&&(t=i-i%16,this._blocks(e,r,t),r+=t,i-=t),i){for(var n=0;n<i;n++)this._buffer[this._leftover+n]=e[r+n];this._leftover+=i}return this},e.prototype.digest=function(){if(this._finished)throw Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return n.wipe(this._buffer),n.wipe(this._r),n.wipe(this._h),n.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();function s(e,t){var r=new o(e);r.update(t);var i=r.digest();return r.clean(),i}function a(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&i.equal(e,r)}t.Poly1305=o,t.oneTimeAuth=s,t.equal=a},78539:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let i=r(25649),n=r(1356),o=r(87427);function s(e,r=t.defaultRandomSource){return r.randomBytes(e)}function a(e=t.defaultRandomSource){let r=s(4,e),i=(0,n.readUint32LE)(r);return(0,o.wipe)(r),i}t.defaultRandomSource=new i.SystemRandomSource,t.randomBytes=s,t.randomUint32=a;let l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function c(e,r=l,i=t.defaultRandomSource){if(r.length<2)throw Error("randomString charset is too short");if(r.length>256)throw Error("randomString charset is too long");let n="",a=r.length,c=256-256%a;for(;e>0;){let t=s(Math.ceil(256*e/c),i);for(let i=0;i<t.length&&e>0;i++){let o=t[i];o<c&&(n+=r.charAt(o%a),e--)}(0,o.wipe)(t)}return n}function u(e,r=l,i=t.defaultRandomSource){return c(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,i)}t.randomString=c,t.randomStringForEntropy=u},24550:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;let r=65536;class i{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e="undefined"!=typeof self?self.crypto||self.msCrypto:null;e&&void 0!==e.getRandomValues&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=r)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,r)));return t}}t.BrowserRandomSource=i},79849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let i=r(87427);class n{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,i.wipe)(t),r}}t.NodeRandomSource=n},25649:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let i=r(24550),n=r(79849);class o{constructor(){if(this.isAvailable=!1,this.name="",this._source=new i.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new n.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}t.SystemRandomSource=o},43094:function(e,t,r){"use strict";i={value:!0};var i,n=r(1356),o=r(87427);t.k=32,t.cn=64;var s=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){o.wipe(this._buffer),o.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(l(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=l(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t/536870912|0,o=t<<3,s=t%64<56?64:128;this._buffer[r]=128;for(var a=r+1;a<s-8;a++)this._buffer[a]=0;n.writeUint32BE(i,this._buffer,s-8),n.writeUint32BE(o,this._buffer,s-4),l(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var a=0;a<this.digestLength/4;a++)n.writeUint32BE(this._state[a],e,4*a);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){o.wipe(e.state),e.buffer&&o.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=s;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298]);function l(e,t,r,i,o){for(;o>=64;){for(var s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],h=t[5],f=t[6],p=t[7],g=0;g<16;g++){var m=i+4*g;e[g]=n.readUint32BE(r,m)}for(var g=16;g<64;g++){var w=e[g-2],y=(w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,b=((w=e[g-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3;e[g]=(y+e[g-7]|0)+(b+e[g-16]|0)}for(var g=0;g<64;g++){var y=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(p+(a[g]+e[g]|0)|0)|0,b=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&l^s&c^l&c)|0;p=f,f=h,h=d,d=u+y|0,u=c,c=l,l=s,s=y+b|0}t[0]+=s,t[1]+=l,t[2]+=c,t[3]+=u,t[4]+=d,t[5]+=h,t[6]+=f,t[7]+=p,i+=64,o-=64}return i}function c(e){var t=new s;t.update(e);var r=t.digest();return t.clean(),r}t.vp=c},16214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(1356),n=r(87427);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){n.wipe(this._buffer),n.wipe(this._tempHi),n.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var i=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[i++],r--;this._bufferLength===this.blockSize&&(a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(i=a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,i,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[i++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,n=t/536870912|0,o=t<<3,s=t%128<112?128:256;this._buffer[r]=128;for(var l=r+1;l<s-8;l++)this._buffer[l]=0;i.writeUint32BE(n,this._buffer,s-8),i.writeUint32BE(o,this._buffer,s-4),a(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var l=0;l<this.digestLength/8;l++)i.writeUint32BE(this._stateHi[l],e,8*l),i.writeUint32BE(this._stateLo[l],e,8*l+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){n.wipe(e.stateHi),n.wipe(e.stateLo),e.buffer&&n.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var s=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
11322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function a(e,t,r,n,o,a,l){for(var c,u,d,h,f,p,g,m,w=r[0],y=r[1],b=r[2],v=r[3],_=r[4],x=r[5],E=r[6],C=r[7],k=n[0],S=n[1],A=n[2],I=n[3],T=n[4],R=n[5],O=n[6],P=n[7];l>=128;){for(var N=0;N<16;N++){var M=8*N+a;e[N]=i.readUint32BE(o,M),t[N]=i.readUint32BE(o,M+4)}for(var N=0;N<80;N++){var D=w,L=y,j=b,B=v,$=_,U=x,F=E,z=C,q=k,W=S,H=A,V=I,Z=T,K=R,G=O,Y=P;if(c=C,f=65535&(u=P),p=u>>>16,g=65535&c,m=c>>>16,c=(_>>>14|T<<18)^(_>>>18|T<<14)^(T>>>9|_<<23),f+=65535&(u=(T>>>14|_<<18)^(T>>>18|_<<14)^(_>>>9|T<<23)),p+=u>>>16,g+=65535&c,m+=c>>>16,c=_&x^~_&E,f+=65535&(u=T&R^~T&O),p+=u>>>16,g+=65535&c,m+=c>>>16,c=s[2*N],f+=65535&(u=s[2*N+1]),p+=u>>>16,g+=65535&c,m+=c>>>16,c=e[N%16],f+=65535&(u=t[N%16]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,d=65535&g|m<<16,h=65535&f|p<<16,c=d,f=65535&(u=h),p=u>>>16,g=65535&c,m=c>>>16,c=(w>>>28|k<<4)^(k>>>2|w<<30)^(k>>>7|w<<25),f+=65535&(u=(k>>>28|w<<4)^(w>>>2|k<<30)^(w>>>7|k<<25)),p+=u>>>16,g+=65535&c,m+=c>>>16,c=w&y^w&b^y&b,f+=65535&(u=k&S^k&A^S&A),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,z=65535&g|m<<16,Y=65535&f|p<<16,c=B,f=65535&(u=V),p=u>>>16,g=65535&c,m=c>>>16,c=d,f+=65535&(u=h),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,B=65535&g|m<<16,V=65535&f|p<<16,y=D,b=L,v=j,_=B,x=$,E=U,C=F,w=z,S=q,A=W,I=H,T=V,R=Z,O=K,P=G,k=Y,N%16==15)for(var M=0;M<16;M++)c=e[M],f=65535&(u=t[M]),p=u>>>16,g=65535&c,m=c>>>16,c=e[(M+9)%16],f+=65535&(u=t[(M+9)%16]),p+=u>>>16,g+=65535&c,m+=c>>>16,c=((d=e[(M+1)%16])>>>1|(h=t[(M+1)%16])<<31)^(d>>>8|h<<24)^d>>>7,f+=65535&(u=(h>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),p+=u>>>16,g+=65535&c,m+=c>>>16,c=((d=e[(M+14)%16])>>>19|(h=t[(M+14)%16])<<13)^(h>>>29|d<<3)^d>>>6,f+=65535&(u=(h>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26)),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,e[M]=65535&g|m<<16,t[M]=65535&f|p<<16}c=w,f=65535&(u=k),p=u>>>16,g=65535&c,m=c>>>16,c=r[0],f+=65535&(u=n[0]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[0]=w=65535&g|m<<16,n[0]=k=65535&f|p<<16,c=y,f=65535&(u=S),p=u>>>16,g=65535&c,m=c>>>16,c=r[1],f+=65535&(u=n[1]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[1]=y=65535&g|m<<16,n[1]=S=65535&f|p<<16,c=b,f=65535&(u=A),p=u>>>16,g=65535&c,m=c>>>16,c=r[2],f+=65535&(u=n[2]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[2]=b=65535&g|m<<16,n[2]=A=65535&f|p<<16,c=v,f=65535&(u=I),p=u>>>16,g=65535&c,m=c>>>16,c=r[3],f+=65535&(u=n[3]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[3]=v=65535&g|m<<16,n[3]=I=65535&f|p<<16,c=_,f=65535&(u=T),p=u>>>16,g=65535&c,m=c>>>16,c=r[4],f+=65535&(u=n[4]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[4]=_=65535&g|m<<16,n[4]=T=65535&f|p<<16,c=x,f=65535&(u=R),p=u>>>16,g=65535&c,m=c>>>16,c=r[5],f+=65535&(u=n[5]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[5]=x=65535&g|m<<16,n[5]=R=65535&f|p<<16,c=E,f=65535&(u=O),p=u>>>16,g=65535&c,m=c>>>16,c=r[6],f+=65535&(u=n[6]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[6]=E=65535&g|m<<16,n[6]=O=65535&f|p<<16,c=C,f=65535&(u=P),p=u>>>16,g=65535&c,m=c>>>16,c=r[7],f+=65535&(u=n[7]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[7]=C=65535&g|m<<16,n[7]=P=65535&f|p<<16,a+=128,l-=128}return a}function l(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}t.hash=l},87427:function(e,t){"use strict";function r(e){for(var t=0;t<e.length;t++)e[t]=0;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=r},11153:function(e,t,r){"use strict";var i;i={value:!0},t.gi=t.Au=i=i=i=i=t.KS=t.kz=void 0;let n=r(78539),o=r(87427);function s(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32,i=32;let a=new Uint8Array(32);a[0]=9;let l=s([56129,1]);function c(e){let t=1;for(let r=0;r<16;r++){let i=e[r]+t+65535;t=Math.floor(i/65536),e[r]=i-65536*t}e[0]+=t-1+37*(t-1)}function u(e,t,r){let i=~(r-1);for(let r=0;r<16;r++){let n=i&(e[r]^t[r]);e[r]^=n,t[r]^=n}}function d(e,t){let r=s(),i=s();for(let e=0;e<16;e++)i[e]=t[e];c(i),c(i),c(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,u(i,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&i[t],e[2*t+1]=i[t]>>8}function h(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function f(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function p(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function g(e,t,r){let i,n,o=0,s=0,a=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,g=0,m=0,w=0,y=0,b=0,v=0,_=0,x=0,E=0,C=0,k=0,S=0,A=0,I=0,T=0,R=0,O=0,P=0,N=0,M=0,D=0,L=r[0],j=r[1],B=r[2],$=r[3],U=r[4],F=r[5],z=r[6],q=r[7],W=r[8],H=r[9],V=r[10],Z=r[11],K=r[12],G=r[13],Y=r[14],J=r[15];o+=(i=t[0])*L,s+=i*j,a+=i*B,l+=i*$,c+=i*U,u+=i*F,d+=i*z,h+=i*q,f+=i*W,p+=i*H,g+=i*V,m+=i*Z,w+=i*K,y+=i*G,b+=i*Y,v+=i*J,s+=(i=t[1])*L,a+=i*j,l+=i*B,c+=i*$,u+=i*U,d+=i*F,h+=i*z,f+=i*q,p+=i*W,g+=i*H,m+=i*V,w+=i*Z,y+=i*K,b+=i*G,v+=i*Y,_+=i*J,a+=(i=t[2])*L,l+=i*j,c+=i*B,u+=i*$,d+=i*U,h+=i*F,f+=i*z,p+=i*q,g+=i*W,m+=i*H,w+=i*V,y+=i*Z,b+=i*K,v+=i*G,_+=i*Y,x+=i*J,l+=(i=t[3])*L,c+=i*j,u+=i*B,d+=i*$,h+=i*U,f+=i*F,p+=i*z,g+=i*q,m+=i*W,w+=i*H,y+=i*V,b+=i*Z,v+=i*K,_+=i*G,x+=i*Y,E+=i*J,c+=(i=t[4])*L,u+=i*j,d+=i*B,h+=i*$,f+=i*U,p+=i*F,g+=i*z,m+=i*q,w+=i*W,y+=i*H,b+=i*V,v+=i*Z,_+=i*K,x+=i*G,E+=i*Y,C+=i*J,u+=(i=t[5])*L,d+=i*j,h+=i*B,f+=i*$,p+=i*U,g+=i*F,m+=i*z,w+=i*q,y+=i*W,b+=i*H,v+=i*V,_+=i*Z,x+=i*K,E+=i*G,C+=i*Y,k+=i*J,d+=(i=t[6])*L,h+=i*j,f+=i*B,p+=i*$,g+=i*U,m+=i*F,w+=i*z,y+=i*q,b+=i*W,v+=i*H,_+=i*V,x+=i*Z,E+=i*K,C+=i*G,k+=i*Y,S+=i*J,h+=(i=t[7])*L,f+=i*j,p+=i*B,g+=i*$,m+=i*U,w+=i*F,y+=i*z,b+=i*q,v+=i*W,_+=i*H,x+=i*V,E+=i*Z,C+=i*K,k+=i*G,S+=i*Y,A+=i*J,f+=(i=t[8])*L,p+=i*j,g+=i*B,m+=i*$,w+=i*U,y+=i*F,b+=i*z,v+=i*q,_+=i*W,x+=i*H,E+=i*V,C+=i*Z,k+=i*K,S+=i*G,A+=i*Y,I+=i*J,p+=(i=t[9])*L,g+=i*j,m+=i*B,w+=i*$,y+=i*U,b+=i*F,v+=i*z,_+=i*q,x+=i*W,
1E+=i*H,C+=i*V,k+=i*Z,S+=i*K,A+=i*G,I+=i*Y,T+=i*J,g+=(i=t[10])*L,m+=i*j,w+=i*B,y+=i*$,b+=i*U,v+=i*F,_+=i*z,x+=i*q,E+=i*W,C+=i*H,k+=i*V,S+=i*Z,A+=i*K,I+=i*G,T+=i*Y,R+=i*J,m+=(i=t[11])*L,w+=i*j,y+=i*B,b+=i*$,v+=i*U,_+=i*F,x+=i*z,E+=i*q,C+=i*W,k+=i*H,S+=i*V,A+=i*Z,I+=i*K,T+=i*G,R+=i*Y,O+=i*J,w+=(i=t[12])*L,y+=i*j,b+=i*B,v+=i*$,_+=i*U,x+=i*F,E+=i*z,C+=i*q,k+=i*W,S+=i*H,A+=i*V,I+=i*Z,T+=i*K,R+=i*G,O+=i*Y,P+=i*J,y+=(i=t[13])*L,b+=i*j,v+=i*B,_+=i*$,x+=i*U,E+=i*F,C+=i*z,k+=i*q,S+=i*W,A+=i*H,I+=i*V,T+=i*Z,R+=i*K,O+=i*G,P+=i*Y,N+=i*J,b+=(i=t[14])*L,v+=i*j,_+=i*B,x+=i*$,E+=i*U,C+=i*F,k+=i*z,S+=i*q,A+=i*W,I+=i*H,T+=i*V,R+=i*Z,O+=i*K,P+=i*G,N+=i*Y,M+=i*J,v+=(i=t[15])*L,_+=i*j,x+=i*B,E+=i*$,C+=i*U,k+=i*F,S+=i*z,A+=i*q,I+=i*W,T+=i*H,R+=i*V,O+=i*Z,P+=i*K,N+=i*G,M+=i*Y,D+=i*J,o+=38*_,s+=38*x,a+=38*E,l+=38*C,c+=38*k,u+=38*S,d+=38*A,h+=38*I,f+=38*T,p+=38*R,g+=38*O,m+=38*P,w+=38*N,y+=38*M,b+=38*D,n=Math.floor((i=o+(n=1)+65535)/65536),o=i-65536*n,n=Math.floor((i=s+n+65535)/65536),s=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,o+=n-1+37*(n-1),n=Math.floor((i=o+(n=1)+65535)/65536),o=i-65536*n,n=Math.floor((i=s+n+65535)/65536),s=i-65536*n,n=Math.floor((i=a+n+65535)/65536),a=i-65536*n,n=Math.floor((i=l+n+65535)/65536),l=i-65536*n,n=Math.floor((i=c+n+65535)/65536),c=i-65536*n,n=Math.floor((i=u+n+65535)/65536),u=i-65536*n,n=Math.floor((i=d+n+65535)/65536),d=i-65536*n,n=Math.floor((i=h+n+65535)/65536),h=i-65536*n,n=Math.floor((i=f+n+65535)/65536),f=i-65536*n,n=Math.floor((i=p+n+65535)/65536),p=i-65536*n,n=Math.floor((i=g+n+65535)/65536),g=i-65536*n,n=Math.floor((i=m+n+65535)/65536),m=i-65536*n,n=Math.floor((i=w+n+65535)/65536),w=i-65536*n,n=Math.floor((i=y+n+65535)/65536),y=i-65536*n,n=Math.floor((i=b+n+65535)/65536),b=i-65536*n,n=Math.floor((i=v+n+65535)/65536),v=i-65536*n,o+=n-1+37*(n-1),e[0]=o,e[1]=s,e[2]=a,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=w,e[13]=y,e[14]=b,e[15]=v}function m(e,t){g(e,t,t)}function w(e,t){let r=s();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)m(r,r),2!==e&&4!==e&&g(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}function y(e,t){let r=new Uint8Array(32),i=new Float64Array(80),n=s(),o=s(),a=s(),c=s(),y=s(),b=s();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,h(i,t);for(let e=0;e<16;e++)o[e]=i[e];n[0]=c[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;u(n,o,t),u(a,c,t),f(y,n,a),p(n,n,a),f(a,o,c),p(o,o,c),m(c,y),m(b,n),g(n,a,n),g(a,o,y),f(y,n,a),p(n,n,a),m(o,n),p(a,c,b),g(n,a,l),f(n,n,c),g(a,a,n),g(n,c,b),g(c,o,i),m(o,y),u(n,o,t),u(a,c,t)}for(let e=0;e<16;e++)i[e+16]=n[e],i[e+32]=a[e],i[e+48]=o[e],i[e+64]=c[e];let v=i.subarray(32),_=i.subarray(16);w(v,v),g(_,_,v);let x=new Uint8Array(32);return d(x,_),x}function b(e){return y(e,a)}function v(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e);return{publicKey:b(r),secretKey:r}}function _(e){let t=(0,n.randomBytes)(32,e),r=v(t);return(0,o.wipe)(t),r}function x(e,r,i=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let n=y(e,r);if(i){let e=0;for(let t=0;t<n.length;t++)e|=n[t];if(0===e)throw Error("X25519: invalid shared key")}return n}i=y,i=b,i=v,t.Au=_,t.gi=x},55037:function(e,t,r){"use strict";r.d(t,{xG:function(){return L},qY:function(){return F},v$:function(){return Y},l:function(){return W}});var i,n,o,s=r(31686),a=r(56127),l=r(91785),c=r(71629);function u(e){if("string"!=typeof e)throw Error(`[isHexPrefixed] input must be type 'string', received type ${typeof e}`);return"0"===e[0]&&"x"===e[1]}r(13744);let d=e=>{if("string"!=typeof e)throw Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return u(e)?e.slice(2):e};function h(e){let t=e;if("string"!=typeof t)throw Error(`[padToEven] value must be type 'string', received ${typeof t}`);return t.length%2&&(t=`0${t}`),t}function f(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(void 0===t||!(t>0)||e.length===2+2*t)}let p=BigInt(0),g={},m={};for(let e=0;e<16;e++){let t=e,r=16*e,i=e.toString(16).toLowerCase();m[i]=t,m[i.toUpperCase()]=t,g[i]=r,g[i.toUpperCase()]=r}function w(e){let t=e.length,r=new Uint8Array(t/2);for(let i=0;i<t;i+=2)r[i/2]=g[e[i]]+m[e[i+1]];return r}let y=e=>{if("0x"!==e.slice(0,2))return w(h(e));throw Error("hex string is prefixed with 0x, should be unprefixed")},b=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),v=e=>{let t="0x";if(void 0===e||0===e.length)return t;
1for(let r of e)t+=b[r];return t},_=[];for(let e=0;e<=65535;e++)_[e]=BigInt(e);let x=(e,t=!1)=>{t&&e.reverse();let r=v(e);return"0x"===r?p:4===r.length?_[e[0]]:6===r.length?_[256*e[0]+e[1]]:BigInt(r)},E=e=>{if("string"!=typeof e)throw Error(`hex argument type ${typeof e} must be of type string`);if(!/^0x[0-9a-fA-F]*$/.test(e))throw Error(`Input must be a 0x-prefixed hexadecimal string, got ${e}`);return(e=e.slice(2)).length%2!=0&&(e=h(e)),w(e)},C=e=>{if(!Number.isSafeInteger(e)||e<0)throw Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`},k=e=>E(C(e)),S=(e,t=!1)=>{let r=A("0x"+h(e.toString(16)));return t?r.reverse():r},A=e=>{if(null==e)return new Uint8Array;if(Array.isArray(e)||e instanceof Uint8Array)return Uint8Array.from(e);if("string"==typeof e){if(!f(e))throw Error(`Cannot convert string to Uint8Array. toBytes only supports 0x-prefixed hex strings and this string was given: ${e}`);return E(e)}if("number"==typeof e)return k(e);if("bigint"==typeof e){if(e<p)throw Error(`Cannot convert negative bigint to Uint8Array. Given: ${e}`);let t=e.toString(16);return t.length%2&&(t="0"+t),y(t)}if(void 0!==e.toBytes)return e.toBytes();throw Error("invalid type")},I=e=>BigInt.asIntN(256,x(e)),T=e=>S(BigInt.asUintN(256,e)),R=e=>"string"!=typeof e?e:u(e)?e:"0x"+e,O=e=>"0x"+e.toString(16);BigInt("0xffffffffffffffff"),BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),c.kA.CURVE.n,c.kA.CURVE.n,BigInt(2),BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),E("0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"),E("0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"),E("0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"),Uint8Array.from([128]),BigInt(-1),BigInt(0),BigInt(1);let P=BigInt(2);function N(e,t,r){let i=c.kA.sign(e,t),n=i.toCompactRawBytes();return{r:n.slice(0,32),s:n.slice(32,64),v:void 0===r?BigInt(i.recovery+27):BigInt(i.recovery+35)+BigInt(r)*P}}BigInt(3),BigInt(7),BigInt(8),BigInt(27),BigInt(28),BigInt(31),BigInt(32),BigInt(64),BigInt(128),BigInt(255),BigInt(256),BigInt(96),BigInt(100),BigInt(160),BigInt(224),BigInt(7922816251426434e13),BigInt(1461501637330903e33),BigInt(2695994666715064e52),BigInt(1e9),Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),r(17507),new Uint8Array(0),function(e){e.String="string",e.Bytes="view",e.Number="number"}(i||(i={})),function(e){e.String="string",e.Bytes="view",e.JSON="json"}(n||(n={})),function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Uint8Array=2]="Uint8Array",e[e.PrefixedHexString=3]="PrefixedHexString"}(o||(o={})),r(55445),r(59782),r(68651);var M=r(5845);r(86005),r(26348),r(75114),r(73493),r(8946);var D=r(82957).Buffer;
1class L extends l.Ue{constructor(e){let{config:t={},state:r={}}=e;super(),(0,a.Z)(this,"defaultConfig",{}),(0,a.Z)(this,"defaultState",{}),(0,a.Z)(this,"disabled",!1),(0,a.Z)(this,"name","BaseController"),(0,a.Z)(this,"initialConfig",void 0),(0,a.Z)(this,"initialState",void 0),(0,a.Z)(this,"internalConfig",this.defaultConfig),(0,a.Z)(this,"internalState",this.defaultState),this.initialState=r,this.initialConfig=t}get config(){return this.internalConfig}get state(){return this.internalState}configure(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r)for(let r in this.internalConfig=t?e:Object.assign(this.internalConfig,e),this.internalConfig)void 0!==this.internalConfig[r]&&(this[r]=this.internalConfig[r]);else for(let t in e)void 0!==this.internalConfig[t]&&(this.internalConfig[t]=e[t],this[t]=e[t])}update(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.internalState=t?(0,s.Z)({},e):(0,s.Z)((0,s.Z)({},this.internalState),e),this.emit("store",this.internalState)}initialize(){return this.internalState=this.defaultState,this.internalConfig=this.defaultConfig,this.configure(this.initialConfig),this.update(this.initialState),this}}let j=()=>!0,B=["newListener","removeListener"],$=e=>!B.includes(e);function U(e,t){return void 0!==e.rawListeners?e.rawListeners(t):e.listeners(t)}function F(e,t){let r=(t||{}).eventFilter||j;if("string"==typeof r&&"skipInternal"===r&&(r=$),"function"!=typeof r)throw Error("createEventEmitterProxy - Invalid eventFilter");let i=e,n=e=>{let t=i;i=e,t.eventNames().filter(r).forEach(r=>{U(t,r).forEach(t=>e.on(r,t))}),t.removeAllListeners()};return new Proxy({},{get:(e,t)=>"setTarget"===t?n:i[t],set:(e,t,r)=>("setTarget"===t?n=r:i[t]=r,!0)})}function z(e,t){if(""!==e&&!/^[a-f0-9]+$/iu.test(e))throw Error(`Expected an unprefixed hex string. Received: ${e}`);if(t<0)throw Error(`Expected a non-negative integer target length. Received: ${t}`);return String.prototype.padStart.call(e,t,"0")}function q(e,t,r){let i=I(t),n=I(r),o=x(e),s=z(D.from(T(i)).toString("hex"),64),a=z(D.from(T(n)).toString("hex"),64),l=d(O(o));return R(s.concat(a,l))}let W=async(e,t)=>{let r=D.from(e,"hex"),i=d(t),n=N(D.from(i,"hex"),r);return q(D.from(S(n.v)),D.from(n.r),D.from(n.s))},H=["Gateway timeout","ETIMEDOUT","failed to parse response body","Failed to fetch"];function V(e){switch(e.status){case 405:throw M.PY.methodNotFound();case 418:throw M.PY.internal({message:"Request is being rate limited."});case 503:case 504:throw M.PY.internal({message:"Gateway timeout. The request took too long to process.This can happen when querying over too wide a block range."})}}function Z(e){return new Promise(t=>{setTimeout(t,e)})}function K(e,t){if(200!==e.status)throw M.PY.internal({message:`Non-200 status code: '${e.status}'`,data:t});if(t.error)throw M.PY.internal({data:t.error});return t.result}function G(e){let{req:t,rpcTarget:r,originHttpHeaderKey:i}=e,n=new URL(r),o={id:t.id,jsonrpc:t.jsonrpc,method:t.method,params:t.params},s=t.origin,a={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)};return i&&s&&(a.headers[i]=s),{fetchUrl:n.href,fetchParams:a}}function Y(e){let{rpcTarget:t,originHttpHeaderKey:r}=e;return(0,l.Pk)(async(e,i,n)=>{let{fetchUrl:o,fetchParams:s}=G({req:e,rpcTarget:t,originHttpHeaderKey:r}),a=5,l=1e3;for(let e=0;e<a;e++){try{let e=await fetch(o,s);V(e);let t=await e.json(),r=K(e,t);i.result=r;return}catch(t){let e=t.toString();if(!H.some(t=>e.includes(t)))throw t}await Z(l)}})}},23160:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OPEN_BROADCAST_CHANNELS=t.BroadcastChannel=void 0,t.enforceOptions=u;var i,n=r(83730),o=r(65936),s=r(28452),a=new Set;t.OPEN_BROADCAST_CHANNELS=a;var l=0,c=function(e,t){this.id=l++,a.add(this),this.name=e,i&&(t=i),this.options=(0,s.fillOptionsWithDefaults)(t),this.method=(0,o.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,h(this)};function u(e){i=e}function d(e,t,r){var i={time:e.method.microSeconds(),type:t,data:r};return(e._prepP?e._prepP:n.PROMISE_RESOLVED_VOID).then(function(){var t=e.method.postMessage(e._state,i);return e._uMP.add(t),t.catch().then(function(){return e._uMP.delete(t)}),t})}function h(e){var t=e.method.create(e.name,e.options);(0,n.isPromise)(t)?(e._prepP=t,t.then(function(t){e._state=t})):e._state=t}function f(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function p(e,t,r){e._addEL[t].push(r),m(e)}function g(e,t,r){e._addEL[t]=e._addEL[t].filter(function(e){return e!==r}),w(e)}function m(e){if(!e._iL&&f(e)){var t=function(t){e._addEL[t.type].forEach(function(r){var i=1e5,n=r.time-i;t.time>=n?r.fn(t.data):"server"===e.method.type&&r.fn(t.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}
1function w(e){if(e._iL&&!f(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}t.BroadcastChannel=c,c._pubkey=!0,c.prototype={postMessage:function(e){if(this.closed)throw Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return d(this,"message",e)},postInternal:function(e){return d(this,"internal",e)},set onmessage(fn){var y={time:this.method.microSeconds(),fn:fn};g(this,"message",this._onML),fn&&"function"==typeof fn?(this._onML=y,p(this,"message",y)):this._onML=null},addEventListener:function(e,t){p(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){var r=this._addEL[e].find(function(e){return e.fn===t});g(this,e,r)},close:function(){var e=this;if(!this.closed){a.delete(this),this.closed=!0;var t=this._prepP?this._prepP:n.PROMISE_RESOLVED_VOID;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(e){return e()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}}},26348:function(e,t,r){"use strict";var i=r(56103);e.exports={BroadcastChannel:i.BroadcastChannel,enforceOptions:i.enforceOptions}},56103:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BroadcastChannel",{enumerable:!0,get:function(){return i.BroadcastChannel}}),Object.defineProperty(t,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return i.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(t,"enforceOptions",{enumerable:!0,get:function(){return i.enforceOptions}});var i=r(23160)},65936:function(e,t,r){"use strict";var i=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.chooseMethod=u;var n=i(r(65267)),o=i(r(30427)),s=i(r(97739)),a=i(r(87117)),l=i(r(33147)),c=[n.default,o.default,s.default,a.default];function u(e){var t=[].concat(e.methods,c).filter(Boolean);if(e.type){if("simulate"===e.type)return l.default;var r=t.find(function(t){return t.type===e.type});if(r)return r;throw Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(e){return"idb"!==e.type}));var i=t.find(function(t){return t.canBeUsed(e)});if(i)return i;throw Error("No useable method found in "+JSON.stringify(c.map(function(e){return e.type})))}},30427:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TRANSACTION_SETTINGS=void 0,t.averageResponseTime=I,t.canBeUsed=A,t.cleanOldMessages=b,t.close=C,t.commitIndexedDBTransaction=h,t.create=v,t.createDatabase=f,t.default=void 0,t.getAllMessages=g,t.getIdb=d,t.getMessagesHigherThan=m,t.getOldMessages=y,t.microSeconds=void 0,t.onMessage=S,t.postMessage=k,t.removeMessagesById=w,t.type=void 0,t.writeMessage=p;var i=r(83730),n=r(5298),o=r(28452),s=i.microSeconds;t.microSeconds=s;var a="pubkey.broadcast-channel-0-",l="messages",c={durability:"relaxed"};t.TRANSACTION_SETTINGS=c;var u="idb";function d(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function h(e){e.commit&&e.commit()}function f(e){var t=d(),r=a+e,i=t.open(r);return i.onupgradeneeded=function(e){e.target.result.createObjectStore(l,{keyPath:"id",autoIncrement:!0})},new Promise(function(e,t){i.onerror=function(e){return t(e)},i.onsuccess=function(){e(i.result)}})}function p(e,t,r){var i={uuid:t,time:new Date().getTime(),data:r},n=e.transaction([l],"readwrite",c);return new Promise(function(e,t){n.oncomplete=function(){return e()},n.onerror=function(e){return t(e)},n.objectStore(l).add(i),h(n)})}function g(e){var t=e.transaction(l,"readonly",c),r=t.objectStore(l),i=[];return new Promise(function(e){r.openCursor().onsuccess=function(r){var n=r.target.result;n?(i.push(n.value),n.continue()):(h(t),e(i))}})}function m(e,t){var r=e.transaction(l,"readonly",c),i=r.objectStore(l),n=[],o=IDBKeyRange.bound(t+1,1/0);if(i.getAll){var s=i.getAll(o);return new Promise(function(e,t){s.onerror=function(e){return t(e)},s.onsuccess=function(t){e(t.target.result)}})}function a(){try{return o=IDBKeyRange.bound(t+1,1/0),i.openCursor(o)}catch(e){return i.openCursor()}}return new Promise(function(e,i){var o=a();o.onerror=function(e){return i(e)},o.onsuccess=function(i){var o=i.target.result;o?o.value.id<t+1?o.continue(t+1):(n.push(o.value),o.continue()):(h(r),e(n))}})}function w(e,t){var r=e.transaction([l],"readwrite",c).objectStore(l);return Promise.all(t.map(function(e){var t=r.delete(e);return new Promise(function(e){t.onsuccess=function(){return e()}})}))}function y(e,t){var r=new Date().getTime()-t,i=e.transaction(l,"readonly",c),n=i.objectStore(l),o=[];return new Promise(function(e){n.openCursor().onsuccess=function(t){var n=t.target.result;if(n){var s=n.value;if(s.time<r)o.push(s),n.continue();
1else{h(i),e(o);return}}else e(o)}})}function b(e,t){return y(e,t).then(function(t){return w(e,t.map(function(e){return e.id}))})}function v(e,t){return t=(0,o.fillOptionsWithDefaults)(t),f(e).then(function(r){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:(0,i.randomToken)(),eMIs:new n.ObliviousSet(2*t.idb.ttl),writeBlockPromise:i.PROMISE_RESOLVED_VOID,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},_(o),o})}function _(e){e.closed||E(e).then(function(){return(0,i.sleep)(e.options.idb.fallbackInterval)}).then(function(){return _(e)})}function x(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id))&&!(e.data.time<t.messagesCallbackTime)}function E(e){return e.closed||!e.messagesCallback?i.PROMISE_RESOLVED_VOID:m(e.db,e.lastCursorId).then(function(t){return t.filter(function(e){return!!e}).map(function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t}).filter(function(t){return x(t,e)}).sort(function(e,t){return e.time-t.time}).forEach(function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))}),i.PROMISE_RESOLVED_VOID})}function C(e){e.closed=!0,e.db.close()}function k(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return p(e.db,e.uuid,t)}).then(function(){0===(0,i.randomInt)(0,10)&&b(e.db,e.options.idb.ttl)}),e.writeBlockPromise}function S(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,E(e)}function A(e){return!!(e.support3PC&&d())}function I(e){return 2*e.idb.fallbackInterval}t.type=u;var T={create:v,close:C,onMessage:S,postMessage:k,canBeUsed:A,type:u,averageResponseTime:I,microSeconds:s};t.default=T},97739:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addStorageEventListener=h,t.averageResponseTime=y,t.canBeUsed=w,t.close=g,t.create=p,t.default=void 0,t.getLocalStorage=c,t.microSeconds=void 0,t.onMessage=m,t.postMessage=d,t.removeStorageEventListener=f,t.storageKey=u,t.type=void 0;var i=r(5298),n=r(28452),o=r(83730),s=o.microSeconds;t.microSeconds=s;var a="pubkey.broadcastChannel-",l="localstorage";function c(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function u(e){return a+e}function d(e,t){return new Promise(function(r){(0,o.sleep)().then(function(){var i=u(e.channelName),n=JSON.stringify({token:(0,o.randomToken)(),time:new Date().getTime(),data:t,uuid:e.uuid});c().setItem(i,n);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=i,s.newValue=n,window.dispatchEvent(s),r()})})}function h(e,t){var r=u(e),i=function(e){e.key===r&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",i),i}function f(e){window.removeEventListener("storage",e)}function p(e,t){if(!w(t=(0,n.fillOptionsWithDefaults)(t)))throw Error("BroadcastChannel: localstorage cannot be used");var r=(0,o.randomToken)(),s=new i.ObliviousSet(t.localstorage.removeTimeout),a={channelName:e,uuid:r,eMIs:s};return a.listener=h(e,function(e){!(!a.messagesCallback||e.uuid===r||!e.token||s.has(e.token))&&(e.data.time&&e.data.time<a.messagesCallbackTime||(s.add(e.token),a.messagesCallback(e.data)))}),a}function g(e){f(e.listener)}function m(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function w(e){if(!e.support3PC)return!1;var t=c();if(!t)return!1;try{var r="__broadcastchannel_check";t.setItem(r,"works"),t.removeItem(r)}catch(e){return!1}return!0}function y(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?2*e:e}t.type=l;var b={create:p,close:g,onMessage:m,postMessage:d,canBeUsed:w,type:l,averageResponseTime:y,microSeconds:s};t.default=b},65267:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=u,t.close=a,t.create=s,t.microSeconds=t.default=void 0,t.onMessage=c,t.postMessage=l,t.type=void 0;var i=r(83730),n=i.microSeconds;t.microSeconds=n;var o="native";function s(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function a(e){e.bc.close(),e.subFns=[]}function l(e,t){try{return e.bc.postMessage(t,!1),i.PROMISE_RESOLVED_VOID}catch(e){return Promise.reject(e)}}function c(e,t){e.messagesCallback=t}function u(e){if("undefined"==typeof window||!e.support3PC||"function"!=typeof BroadcastChannel)return!1;
1if(BroadcastChannel._pubkey)throw Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}function d(){return 150}t.type=o;var h={create:s,close:a,onMessage:c,postMessage:l,canBeUsed:u,type:o,averageResponseTime:d,microSeconds:n};t.default=h},87117:function(e,t,r){"use strict";var i=r(82957).Buffer,n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=A,t.canBeUsed=S,t.close=C,t.create=E,t.default=void 0,t.getSocketInstance=v,t.microSeconds=void 0,t.onMessage=k,t.postMessage=b,t.removeStorageEventListener=x,t.setupSocketConnection=_,t.storageKey=y,t.type=void 0;var o=n(r(35750)),s=n(r(85024)),a=r(5298),l=r(12872),c=r(77869),u=r(27163),d=r(83730),h=r(28452),f=d.microSeconds;t.microSeconds=f;var p="pubkey.broadcastChannel-",g="server";t.type=g;var m=null,w=new Set;function y(e){return p+e}function b(e,t){return new Promise(function(r,n){(0,d.sleep)().then((0,s.default)(o.default.mark(function s(){var a,l,h,f;return o.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return a=y(e.channelName),l=(0,u.keccak256)(i.from(a,"utf8")),o.next=4,(0,u.encryptData)(l.toString("hex"),{token:(0,d.randomToken)(),time:new Date().getTime(),data:t,uuid:e.uuid});case 4:return h=o.sent,o.t0=(0,c.getPublic)(l).toString("hex"),o.t1=h,o.next=9,(0,c.sign)(l,(0,u.keccak256)(i.from(h,"utf8")));case 9:return o.t2=o.sent.toString("hex"),f={sameOriginCheck:!0,sameIpCheck:!0,key:o.t0,data:o.t1,signature:o.t2},e.timeout&&(f.timeout=e.timeout),o.abrupt("return",fetch(e.serverUrl+"/channel/set",{method:"POST",body:JSON.stringify(f),headers:{"Content-Type":"application/json; charset=utf-8"}}).then(r).catch(n));case 13:case"end":return o.stop()}},s)})))})}function v(e){if(m)return m;var t=(0,l.io)(e,{transports:["websocket","polling"],withCredentials:!0,reconnectionDelayMax:1e4,reconnectionAttempts:10});return t.on("connect_error",function(e){t.io.opts.transports=["polling","websocket"],d.log.error("connect error",e)}),t.on("connect",(0,s.default)(o.default.mark(function e(){var r;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.io.engine,d.log.debug("initially connected to",r.transport.name),r.once("upgrade",function(){d.log.debug("upgraded",r.transport.name)}),r.once("close",function(e){d.log.debug("connection closed",e)});case 4:case"end":return e.stop()}},e)}))),t.on("error",function(e){d.log.error("socket errored",e),t.disconnect()}),m=t,t}function _(e,t,r){var n=v(e),a=y(t.channelName),l=(0,u.keccak256)(i.from(a,"utf8")),h=(0,c.getPublic)(l).toString("hex");n.connected?n.emit("check_auth_status",h,{sameOriginCheck:!0,sameIpCheck:!0}):n.once("connect",function(){d.log.debug("connected with socket"),n.emit("check_auth_status",h,{sameOriginCheck:!0,sameIpCheck:!0})});var f=function(){n.once("connect",(0,s.default)(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:w.has(t.channelName)&&n.emit("check_auth_status",h,{sameOriginCheck:!0,sameIpCheck:!0});case 1:case"end":return e.stop()}},e)})))},p=function e(){if(!n||!w.has(t.channelName)){document.removeEventListener("visibilitychange",e);return}n.connected||"visible"!==document.visibilityState||f()},g=function(){var e=(0,s.default)(o.default.mark(function e(t){var i;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,u.decryptData)(l.toString("hex"),t);case 3:i=e.sent,d.log.info(i),r(i),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),d.log.error(e.t0);case 11:case"end":return e.stop()}},e,null,[[0,8]])}));return function(t){return e.apply(this,arguments)}}();return n.on("disconnect",function(){d.log.debug("socket disconnected"),w.has(t.channelName)&&(d.log.error("socket disconnected unexpectedly, reconnecting socket"),f())}),n.on(h+"_success",g),"undefined"!=typeof document&&document.addEventListener("visibilitychange",p),n}function x(){m&&m.disconnect()}function E(e,t){if(!S(t=(0,h.fillOptionsWithDefaults)(t)))throw Error("BroadcastChannel: server cannot be used");var r={channelName:e,uuid:(0,d.randomToken)(),eMIs:new a.ObliviousSet(t.server.removeTimeout),serverUrl:t.server.url};return t.server.timeout&&(r.timeout=t.server.timeout),_(t.server.url,r,function(e){r.messagesCallback&&e.uuid!==r.uuid&&(!e.token||r.eMIs.has(e.token)||(r.eMIs.add(e.token),r.messagesCallback(e.data)))}),w.add(e),r}function C(e){w.delete(e.channelName)}function k(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function S(){return!0}function A(){return 500}var I={create:E,close:C,onMessage:k,postMessage:b,canBeUsed:S,type:g,averageResponseTime:A,microSeconds:f};t.default=I},33147:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.averageResponseTime=d,t.canBeUsed=u,t.close=a,t.create=s,t.microSeconds=t.default=void 0,t.onMessage=c,t.postMessage=l,t.type=void 0;var i=r(83730).microSeconds;t.microSeconds=i;var n="simulate";t.type=n;var o=new Set;function s(e){var t={name:e,messagesCallback:null};return o.add(t),t}function a(e){o.delete(e)}function l(e,t){return new Promise(function(r){return setTimeout(function(){Array.from(o).filter(function(t){return t.name===e.name}).filter(function(t){return t!==e}).filter(function(e){return!!e.messagesCallback}).forEach(function(e){return e.messagesCallback(t)}),r()},5)})}function c(e,t){e.messagesCallback=t}function u(){return!0}function d(){return 5}var h={create:s,close:a,onMessage:c,postMessage:l,canBeUsed:u,type:n,averageResponseTime:d,microSeconds:i};t.default=h},28452:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fillOptionsWithDefaults=n;var i=r(83730);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return void 0===t.support3PC&&(t.support3PC=(0,i.are3PCSupported)()),void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),t.server||(t.server={}),t.server.url||(t.server.url="https://broadcast-server.tor.us"),t.server.removeTimeout||(t.server.removeTimeout=3e5),e.methods&&(t.methods=e.methods),t}},83730:function(e,t,r){"use strict";var i=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.PROMISE_RESOLVED_VOID=t.PROMISE_RESOLVED_TRUE=t.PROMISE_RESOLVED_FALSE=void 0,t.are3PCSupported=m,t.isPromise=s,t.log=void 0,t.microSeconds=g,t.randomInt=d,t.randomToken=h,t.setLogLevel=void 0,t.sleep=u;var n=i(r(73493)),o=i(r(86005));function s(e){return!!e&&"function"==typeof e.then}var a=Promise.resolve(!1);t.PROMISE_RESOLVED_FALSE=a;var l=Promise.resolve(!0);t.PROMISE_RESOLVED_TRUE=l;var c=Promise.resolve();function u(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function d(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function h(){return Math.random().toString(36).substring(2)}t.PROMISE_RESOLVED_VOID=c;var f=0,p=0;function g(){var e=new Date().getTime();return e===f?1e3*e+ ++p:(f=e,p=0,1e3*e)}function m(){if("undefined"==typeof navigator)return!1;var e=n.default.parse(navigator.userAgent);w.info(JSON.stringify(e),"current browser info");var t=!0;return navigator.brave&&(t=!1),(e.engine.name===n.default.ENGINE_MAP.WebKit||e.engine.name===n.default.ENGINE_MAP.Gecko)&&(t=!1),t}var w=o.default.getLogger("broadcast-channel");t.log=w,w.setLevel("error");var y=function(e){w.setLevel(e)};t.setLogLevel=y},54689:function(e,t,r){"use strict";r.d(t,{Ad:function(){return i},X_:function(){return n}});let i={MAINNET:"mainnet",TESTNET:"testnet",CYAN:"cyan",AQUA:"aqua",CELESTE:"celeste"},n={SAPPHIRE_DEVNET:"sapphire_devnet",SAPPHIRE_MAINNET:"sapphire_mainnet"};i.MAINNET,i.TESTNET,i.CYAN,i.AQUA,i.CELESTE,i.AQUA,n.SAPPHIRE_MAINNET,i.CELESTE,n.SAPPHIRE_MAINNET,i.CYAN,n.SAPPHIRE_MAINNET,i.MAINNET,n.SAPPHIRE_MAINNET,i.TESTNET,n.SAPPHIRE_DEVNET,i.MAINNET,i.TESTNET,i.CYAN,i.AQUA,i.CELESTE,n.SAPPHIRE_MAINNET,n.SAPPHIRE_DEVNET,i.MAINNET,i.TESTNET,i.CYAN,i.AQUA,i.CELESTE,i.MAINNET,i.TESTNET,i.CYAN,i.AQUA,i.CELESTE},77869:function(e,t,r){"use strict";r.r(t),r.d(t,{decrypt:function(){return P},derive:function(){return I},derivePadded:function(){return R},deriveUnpadded:function(){return T},encrypt:function(){return O},generatePrivate:function(){return E},getPublic:function(){return C},getPublicCompressed:function(){return k},sign:function(){return S},verify:function(){return A}});var i=r(68989),n=r.n(i),o=r(61984),s=r(82957).Buffer;let a=new o.ec("secp256k1"),l=r.g.crypto||r.g.msCrypto||{},c=l.subtle||l.webkitSubtle,u=s.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),d=s.alloc(32,0);function h(e,t){if(!e)throw Error(t||"Assertion failed")}function f(e){return s.isBuffer(e)&&32===e.length}function p(e){return!!f(e)&&e.compare(d)>
10&&0>e.compare(u)}function g(e,t){if(e.length!==t.length)return!1;let r=0;for(let i=0;i<e.length;i++)r|=e[i]^t[i];return 0===r}function m(e){let t=new Uint8Array(e);return void 0===l.getRandomValues?s.from(n().randomBytes(e)):(l.getRandomValues(t),s.from(t))}async function w(e){return new Uint8Array(c?await c.digest("SHA-512",e):n().createHash("sha512").update(e).digest())}function y(e){return async function(t,r,i){if(c){let n={name:"AES-CBC"},o=await c.importKey("raw",r,n,!1,[e]),a={name:"AES-CBC",iv:t},l=await c[e](a,o,i);return s.from(new Uint8Array(l))}if("encrypt"===e){let e=n().createCipheriv("aes-256-cbc",r,t),o=e.update(i),a=e.final();return s.concat([o,a])}if("decrypt"===e){let e=n().createDecipheriv("aes-256-cbc",r,t),o=e.update(i),a=e.final();return s.concat([o,a])}throw Error(`Unsupported operation: ${e}`)}}let b=y("encrypt"),v=y("decrypt");async function _(e,t){if(c){let r={name:"HMAC",hash:{name:"SHA-256"}},i=await c.importKey("raw",new Uint8Array(e),r,!1,["sign","verify"]),n=await c.sign("HMAC",i,t);return s.from(new Uint8Array(n))}let r=n().createHmac("sha256",s.from(e));return r.update(t),r.digest()}async function x(e,t,r){return g(await _(e,t),r)}let E=function(){let e=m(32);for(;!p(e);)e=m(32);return e},C=function(e){return h(32===e.length,"Bad private key"),h(p(e),"Bad private key"),s.from(a.keyFromPrivate(e).getPublic("array"))},k=function(e){h(32===e.length,"Bad private key"),h(p(e),"Bad private key");let t=!0;return s.from(a.keyFromPrivate(e).getPublic(t,"array"))},S=async function(e,t){return h(32===e.length,"Bad private key"),h(p(e),"Bad private key"),h(t.length>0,"Message should not be empty"),h(t.length<=32,"Message is too long"),s.from(a.sign(t,e,{canonical:!0}).toDER())},A=async function(e,t,r){if(h(65===e.length||33===e.length,"Bad public key"),65===e.length&&h(4===e[0],"Bad public key"),33===e.length&&h(2===e[0]||3===e[0],"Bad public key"),h(t.length>0,"Message should not be empty"),h(t.length<=32,"Message is too long"),a.verify(t,r,e))return null;throw Error("Bad signature")},I=async function(e,t){h(s.isBuffer(e),"Bad private key"),h(s.isBuffer(t),"Bad public key"),h(32===e.length,"Bad private key"),h(p(e),"Bad private key"),h(65===t.length||33===t.length,"Bad public key"),65===t.length&&h(4===t[0],"Bad public key"),33===t.length&&h(2===t[0]||3===t[0],"Bad public key");let r=a.keyFromPrivate(e),i=a.keyFromPublic(t),n=r.derive(i.getPublic());return s.from(n.toArray())},T=I,R=async function(e,t){h(s.isBuffer(e),"Bad private key"),h(s.isBuffer(t),"Bad public key"),h(32===e.length,"Bad private key"),h(p(e),"Bad private key"),h(65===t.length||33===t.length,"Bad public key"),65===t.length&&h(4===t[0],"Bad public key"),33===t.length&&h(2===t[0]||3===t[0],"Bad public key");let r=a.keyFromPrivate(e),i=a.keyFromPublic(t),n=r.derive(i.getPublic());return s.from(n.toString(16,64),"hex")},O=async function(e,t,r){let i=(r=r||{}).ephemPrivateKey||m(32);for(;!p(i);)i=r.ephemPrivateKey||m(32);let n=C(i),o=await T(i,e),a=await w(o),l=r.iv||m(16),c=a.slice(0,32),u=a.slice(32),d=await b(l,s.from(c),t),h=s.concat([l,n,d]);return{iv:l,ephemPublicKey:n,ciphertext:d,mac:await _(s.from(u),h)}},P=async function(e,t,r){let i=null!=r&&r,n=i?R:T,o=await n(e,t.ephemPublicKey),a=await w(o),l=a.slice(0,32),c=a.slice(32),u=s.concat([t.iv,t.ephemPublicKey,t.ciphertext]),d=await x(s.from(c),u,t.mac);if(!d&&!1===i)return P(e,t,!0);if(!d&&!0===i)throw Error("bad MAC after trying padded");let h=await v(t.iv,s.from(l),t.ciphertext);return s.from(new Uint8Array(h))}},75114:function(e,t,r){"use strict";r.d(t,{Od:function(){return S},U2:function(){return x},gz:function(){return k},r$:function(){return C},ut:function(){return m},v_:function(){return E},y1:function(){return g}});var i=r(31686),n=r(97928),o=r.n(n),s=r(86005);let a=r.n(s)().getLogger("http-helpers");a.setLevel(s.levels.INFO);let l="torus-default",c="",u="x-api-key",d="x-embed-host",h=null,f=[],p=[];function g(e){c=e}function m(e){l=e}async function w(e,t){let r=null;try{r=new URL(e)}catch(e){}if(h&&r&&(f.includes(r.origin)||p.includes(r.pathname))){let r=h.startTransaction({name:e}),i=r.startChild({op:"http"}),n=await fetch(e,t);return i.finish(),r.finish(),n}return fetch(e,t)}function y(){let e={};return l&&(e[u]=l),c&&(e[d]=c),e}function b(e){a.info(`Response: ${e.status} ${e.statusText}`),a.info(`Url: ${e.url}`)}function v(e){let t=e.headers.get("x-web3-correlation-id");t&&a.info(`Request tracing with traceID = ${t}`)}let _=async(e,t)=>{let r=null;try{let i=new Promise((t,i)=>{r=setTimeout(()=>{i(Error(`Timed out in ${e}ms`))},e)}),n=await Promise.race([t,i]);return null!=r&&clearTimeout(r),n}catch(e){throw null!=r&&clearTimeout(r),e}},x=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={mode:"cors",headers:{}};r.useAPIKey&&(n.headers=(0,i.Z)((0,i.Z)({},n.headers),y()));let s=o()(n,t,{method:"GET"}),a=await w(e,s);if(a.ok){let e=a.headers.get("content-type");return null!=e&&e.includes("application/json")?a.json():a.text()}throw b(a),a},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(s.headers=(0,i.Z)((0,i.Z)({},s.headers),y()));let a=o()(s,r,{method:"POST"});return n.isUrlEncodedData?(a.body=t,"application/json; charset=utf-8"===a.headers["Content-Type"]&&delete a.headers["Content-Type"]):a.body=JSON.stringify(t),_(n.timeout||6e4,w(e,a).then(e=>{if(n.logTracingHeader&&v(e),e.ok){let t=e.headers.get("content-type");return null!=t&&t.includes("application/json")?e.json():e.text()}throw b(e),e}))},C=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(s.headers=(0,i.Z)((0,i.Z)({},s.headers),y()));let a=o()(s,r,{method:"PATCH"});n.isUrlEncodedData?(a.body=t,"application/json; charset=utf-8"===a.headers["Content-Type"]&&delete a.headers["Content-Type"]):a.body=JSON.stringify(t);let l=await w(e,a);if(l.ok){let e=l.headers.get("content-type");return null!=e&&e.includes("application/json")?l.json():l.text()}throw b(l),l},k=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(s.headers=(0,i.Z)((0,i.Z)({},s.headers),y()));let a=o()(s,r,{method:"PUT"});n.isUrlEncodedData?(a.body=t,"application/json; charset=utf-8"===a.headers["Content-Type"]&&delete a.headers["Content-Type"]):a.body=JSON.stringify(t);let l=await w(e,a);if(l.ok){let e=l.headers.get("content-type");return null!=e&&e.includes("application/json")?l.json():l.text()}throw b(l),l},S=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};n.useAPIKey&&(s.headers=(0,i.Z)((0,i.Z)({},s.headers),y()));let a=o()(s,r,{method:"DELETE"});n.isUrlEncodedData?(a.body=t,"application/json; charset=utf-8"===a.headers["Content-Type"]&&delete a.headers["Content-Type"]):a.body=JSON.stringify(t);let l=await w(e,a);if(l.ok){let e=l.headers.get("content-type");return null!=e&&e.includes("application/json")?l.json():l.text()}throw b(l),l}},27163:function(e,t,r){"use strict";r.r(t),r.d(t,{decryptData:function(){return v},default:function(){return p},ec:function(){return f},encParamsBufToHex:function(){return y},encParamsHexToBuf:function(){return w},encryptAndSetData:function(){return x},encryptData:function(){return b},getAndDecryptData:function(){return _},getDeviceShare:function(){return S},getTorusShare:function(){return k},keccak256:function(){return h},setDeviceShare:function(){return C},setTorusShare:function(){return E}});var i=r(31686),n=r(56127),o=r(75114),s=r(70018),a=r.n(s),l=r(61984),c=r(17507),u=r(77869),d=r(82957).Buffer;function h(e){return d.from((0,c.wn)(e))}let f=new l.ec("secp256k1");class p{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://metadata.tor.us",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,n.Z)(this,"metadataHost",void 0),(0,n.Z)(this,"serverTimeOffset",void 0),this.metadataHost=e,this.serverTimeOffset=t}static setAPIKey(e){(0,o.ut)(e)}static setEmbedHost(e){(0,o.y1)(e)}generateMetadataParams(e,t){var r,i;let n=f.keyFromPrivate(t,"hex"),o={data:e,timestamp:Math.floor(this.serverTimeOffset+Date.now()/1e3).toString(16)},s=n.sign(h(d.from(a()(o),"utf8")));return{pub_key_X:n.getPublic().getX().toString(16,64),pub_key_Y:n.getPublic().getY().toString(16,64),set_data:o,signature:d.from(s.r.toString(16,64)+s.s.toString(16,64)+(null!==(r=null===(i=s.recoveryParam)||void 0===i?void 0:i.toString(16).padStart(2,"0").slice(-2))&&void 0!==r?r:"00"),"hex").toString("base64")}}generatePubKeyParams(e){let t=f.keyFromPrivate(e,"hex");return{pub_key_X:t.getPublic().getX().toString(16,64),pub_key_Y:t.getPublic().getY().toString(16,64)}}async setMetadata(e,t,r){let n=null!==t?(0,i.Z)((0,i.Z)({},e),{},{namespace:t}):e;return(await (0,o.v_)(`${this.metadataHost}/set`,n,r,{useAPIKey:!0})).message}async getMetadata(e,t,r){let n=null!==t?(0,i.Z)((0,i.Z)({},e),{},{namespace:t}):e;return(await (0,o.v_)(`${this.metadataHost}/get`,n,r,{useAPIKey:!0})).message}}let g="webauthn_torus_share",m="webauthn_device_share";function w(e){return{iv:d.from(e.iv,"hex"),ephemPublicKey:d.from(e.ephemPublicKey,"hex"),ciphertext:d.from(e.ciphertext,"hex"),mac:d.from(e.mac,"hex")}}function y(e){return{iv:d.from(e.iv).toString("hex"),ephemPublicKey:d.from(e.ephemPublicKey).toString("hex"),ciphertext:d.from(e.ciphertext).toString("hex"),mac:d.from(e.mac).toString("hex")}}async function b(e,t){let r=JSON.stringify(t),i=d.from(r,"utf-8");return JSON.stringify(y(await (0,u.encrypt)((0,u.getPublic)(d.from(e,"hex")),i)))}async function v(e,t){let r=w(JSON.parse(t)),i=f.keyFromPrivate(e);return JSON.parse((await (0,u.decrypt)(d.from(i.getPrivate().toString("hex",64),"hex"),r)).toString("utf-8"))}async function _(e,t,r){let i=f.keyFromPrivate(t,"hex").getPublic(),n=await e.getMetadata({pub_key_X:i.getX().toString(16,64),pub_key_Y:i.getY().toString(16,64)},r);return n?await v(t,n):null}async function x(e,t,r,i){let n=await b(t,r),o=e.generateMetadataParams(n,t);await e.setMetadata(o,i)}async function E(e,t,r,i,n){let o=f.keyFromPrivate(r).getPrivate(),s=f.keyFromPublic({x:t.pub_key_X,y:t.pub_key_Y}),a=await _(e,r,g),l={};a&&(l=a);let c=JSON.stringify(n),h=d.from(c,"utf-8"),p=y(await (0,u.encrypt)(d.from(s.getPublic("hex"),"hex"),h));l[i]=p,await x(e,o.toString("hex",64),l,g)}async function C(e,t,r,i){let n=f.keyFromPrivate(t).getPrivate(),o=await _(e,t,m),s={};o&&(s=o),s[r]=i,await x(e,n.toString("hex",64),s,m)}async function k(e,t,r,i){let n=await _(e,r,g);if(!n)return null;let o=n[i];if(!o)return null;let s=w(o),a=f.keyFromPrivate(t).getPrivate();return JSON.parse((await (0,u.decrypt)(d.from(a.toString("hex",64),"hex"),s)).toString("utf-8"))}async function S(e,t,r){let i=await _(e,t,m);return i?i[r]:null}},91785:function(e,t,r){"use strict";r.d(t,{AP:function(){return k},O4:function(){return M},Pk:function(){return I},Rq:function(){return A},UZ:function(){return R},Ue:function(){return E},V2:function(){return L},XR:function(){return v},Xj:function(){return O},eI:function(){return T},v0:function(){return S}});
1var i=r(56127),n=r(42287),o=r(55445),s=r(71107),a=r.n(s),l=r(31686),c=r(5845),u=r(32462),d=r.n(u),h=r(32251),f=r.n(h),p=r(33697),g=r.n(p);function m(){}let w="SYN",y="ACK",b="BRK";class v extends n.Duplex{constructor(e){let{name:t,target:r,targetWindow:n=window,targetOrigin:o="*"}=e;if(super({objectMode:!0}),(0,i.Z)(this,"_init",void 0),(0,i.Z)(this,"_haveSyn",void 0),(0,i.Z)(this,"_name",void 0),(0,i.Z)(this,"_target",void 0),(0,i.Z)(this,"_targetWindow",void 0),(0,i.Z)(this,"_targetOrigin",void 0),(0,i.Z)(this,"_onMessage",void 0),(0,i.Z)(this,"_synIntervalId",void 0),!t||!r)throw Error("Invalid input.");this._init=!1,this._haveSyn=!1,this._name=t,this._target=r,this._targetWindow=n,this._targetOrigin=o,this._onMessage=this.onMessage.bind(this),this._synIntervalId=null,window.addEventListener("message",this._onMessage,!1),this._handShake()}_break(){this.cork(),this._write(b,null,m),this._haveSyn=!1,this._init=!1}_handShake(){this._write(w,null,m),this.cork()}_onData(e){if(this._init){if(e===b)this._break();else try{this.push(e)}catch(e){this.emit("error",e)}}else e===w?(this._haveSyn=!0,this._write(y,null,m)):e===y&&(this._init=!0,this._haveSyn||this._write(y,null,m),this.uncork())}_postMessage(e){let t=this._targetOrigin;this._targetWindow.postMessage({target:this._target,data:e},t)}onMessage(e){let t=e.data;("*"===this._targetOrigin||e.origin===this._targetOrigin)&&e.source===this._targetWindow&&"object"==typeof t&&t.target===this._name&&t.data&&this._onData(t.data)}_read(){}_write(e,t,r){this._postMessage(e),r()}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}function _(e,t,r){try{Reflect.apply(e,t,r)}catch(e){setTimeout(()=>{throw e})}}function x(e){let t=e.length,r=Array(t);for(let i=0;i<t;i+=1)r[i]=e[i];return r}class E extends o.EventEmitter{emit(e){let t="error"===e,r=this._events;if(void 0!==r)t=t&&void 0===r.error;else if(!t)return!1;for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];if(t){let e;if(n.length>0&&([e]=n),e instanceof Error)throw e;let t=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw t.context=e,t}let s=r[e];if(void 0===s)return!1;if("function"==typeof s)_(s,this,n);else{let e=s.length,t=x(s);for(let r=0;r<e;r+=1)_(t[r],this,n)}return!0}}
1class C extends Error{constructor(e){let{code:t,message:r,data:n}=e;if(!Number.isInteger(t))throw Error("code must be an integer");if(!r||"string"!=typeof r)throw Error("message must be string");super(r),(0,i.Z)(this,"code",void 0),(0,i.Z)(this,"data",void 0),this.code=t,void 0!==n&&(this.data=n)}toString(){return a()({code:this.code,message:this.message,data:this.data,stack:this.stack})}}function k(){let e={};function t(){return!1}let r=new E;function i(t){let r=e[t.id];if(!r)throw Error(`StreamMiddleware - Unknown response id "${t.id}"`);delete e[t.id],Object.assign(r.res,t),setTimeout(r.end)}function o(e){r.emit("notification",e)}function s(e,t,r){let n;try{e.id?i(e):o(e)}catch(e){n=e}r(n)}let a=new n.Duplex({objectMode:!0,read:t,write:s});return{events:r,middleware:(t,r,i,n)=>{a.push(t),e[t.id]={req:t,res:r,next:i,end:n}},stream:a}}function S(e){return(t,r,i,n)=>{let o=e[t.method];return void 0===o?i():"function"==typeof o?o(t,r,i,n):(r.result=o,n())}}function A(){return(e,t,r,i)=>{let n=e.id,o=Math.random().toString(36).slice(2);e.id=o,t.id=o,r(r=>{e.id=n,t.id=n,r()})}}function I(e){return async(t,r,i,n)=>{let o;let s=new Promise(e=>{o=e}),a=null,l=!1,c=async()=>{l=!0,i(e=>{a=e,o()}),await s};try{await e(t,r,c),l?(await s,a(null)):n(null)}catch(t){let e=t;a?a(e):n(e)}}}class T extends E{constructor(){super(),(0,i.Z)(this,"_middleware",void 0),this._middleware=[]}static async _runAllMiddleware(e,t,r){let i=[],n=null,o=!1;for(let s of r)if([n,o]=await T._runMiddleware(e,t,s,i),o)break;return[n,o,i.reverse()]}static _runMiddleware(e,t,r,i){return new Promise(n=>{let o=e=>{let r=e||t.error;r&&(!1===Object.keys(r).includes("stack")&&(r.stack="Stack trace is not available."),t.error=(0,c.Xy)(r,{shouldIncludeStack:!0,fallbackError:{message:(null==r?void 0:r.message)||(null==r?void 0:r.toString()),code:(null==r?void 0:r.code)||-32603,stack:null==r?void 0:r.stack,data:(null==r?void 0:r.data)||(null==r?void 0:r.message)||(null==r?void 0:r.toString())}})),n([r,!0])},s=e=>{t.error?o(t.error):(e&&("function"!=typeof e&&o(new C({code:-32603,message:"JRPCEngine: 'next' return handlers must be functions"})),i.push(e)),n([null,!1]))};try{r(e,t,s,o)}catch(e){o(e)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((e,r)=>{t(t=>t?r(t):e())})}static _checkForCompletion(e,t,r){if(!("result"in t)&&!("error"in t))throw new C({code:-32603,message:"Response has no error or result for request"});if(!r)throw new C({code:-32603,message:"Nothing ended request"})}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,r,i)=>{try{let[n,o,s]=await T._runAllMiddleware(e,t,this._middleware);if(o)return await T._runReturnHandlers(s),i(n);return r(async e=>{try{await T._runReturnHandlers(s)}catch(t){return e(t)}return e()})}catch(e){return i(e)}}}async _handleBatch(e,t){try{let r=await Promise.all(e.map(this._promiseHandle.bind(this)));if(t)return t(null,r);return r}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise((t,r)=>{this._handle(e,(e,i)=>{e&&void 0===i?r(e):t(i)}).catch(r)})}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let e=new C({code:-32603,message:"request must be plain object"});return t(e,{id:void 0,jsonrpc:"2.0",error:e})}if("string"!=typeof e.method){let r=new C({code:-32603,message:"method must be string"});return t(r,{id:e.id,jsonrpc:"2.0",error:r})}let r=(0,l.Z)({},e),i={id:r.id,jsonrpc:r.jsonrpc},n=null;try{await this._processRequest(r,i)}catch(e){n=e}if(n&&(delete i.result,!i.error)){var o,s,a,u,d,h,f;!1===Object.keys(n).includes("stack")&&(n.stack="Stack trace is not available."),i.error=(0,c.Xy)(n,{shouldIncludeStack:!0,fallbackError:{message:(null===(o=n)||void 0===o?void 0:o.message)||(null===(s=n)||void 0===s?void 0:s.toString()),code:(null===(a=n)||void 0===a?void 0:a.code)||-32603,stack:null===(u=n)||void 0===u?void 0:u.stack,data:(null===(d=n)||void 0===d?void 0:d.data)||(null===(h=n)||void 0===h?void 0:h.message)||(null===(f=n)||void 0===f?void 0:f.toString())}})}return t(n,i)}async _processRequest(e,t){let[r,i,n]=await T._runAllMiddleware(e,t,this._middleware);
1if(T._checkForCompletion(e,t,i),await T._runReturnHandlers(n),r)throw r}}function R(e){let t=new T;return e.forEach(e=>t.push(e)),t.asMiddleware()}function O(e){let t=new E;return t.sendAsync=async t=>{let r=await e.handle(t);if(r.error){var i,n,o,s,a,l,u;!1===Object.keys(r.error).includes("stack")&&(r.error.stack="Stack trace is not available.");let e=(0,c.Xy)(r.error,{fallbackError:{message:(null===(i=r.error)||void 0===i?void 0:i.message)||(null===(n=r.error)||void 0===n?void 0:n.toString()),code:(null===(o=r.error)||void 0===o?void 0:o.code)||-32603,stack:null===(s=r.error)||void 0===s?void 0:s.stack,data:(null===(a=r.error)||void 0===a?void 0:a.data)||(null===(l=r.error)||void 0===l?void 0:l.message)||(null===(u=r.error)||void 0===u?void 0:u.toString())},shouldIncludeStack:!0});throw c.PY.internal(e)}return r.result},t.send=(t,r)=>{if("function"!=typeof r)throw Error('Must provide callback to "send" method.');e.handle(t,r)},e.on&&e.on("notification",e=>{t.emit("data",null,e)}),t.request=async e=>{let r=(0,l.Z)((0,l.Z)({},e),{},{id:Math.random().toString(36).slice(2),jsonrpc:"2.0"});return await t.sendAsync(r)},t}class P extends n.Duplex{constructor(e){let{parent:t,name:r}=e;super({objectMode:!0}),(0,i.Z)(this,"_parent",void 0),(0,i.Z)(this,"_name",void 0),this._parent=t,this._name=r}_read(){}_write(e,t,r){this._parent.push({name:this._name,data:e}),r()}}let N=Symbol("IGNORE_SUBSTREAM");class M extends n.Duplex{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super((0,l.Z)((0,l.Z)({},e),{},{objectMode:!0})),(0,i.Z)(this,"_substreams",void 0),(0,i.Z)(this,"getStream",void 0),this._substreams={}}createStream(e){if(!e)throw Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw Error(`ObjectMultiplex - Substream for name "${e}" already exists`);let t=new P({parent:this,name:e});return this._substreams[e]=t,D(this,e=>t.destroy(e||void 0)),t}ignoreStream(e){if(!e)throw Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=N}_read(){}_write(e,t,r){let{name:i,data:n}=e;if(!i)return window.console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),r();let o=this._substreams[i];return o?o!==N&&o.push(n):window.console.warn(`ObjectMultiplex - orphaned data for stream "${i}"`),r()}}function D(e,t){let r=f()(t);d()(e,{readable:!1},r),d()(e,{writable:!1},r)}function L(e){let t=new M;return t.getStream=function(e){return this._substreams[e]?this._substreams[e]:this.createStream(e)},g()(e,t,e,e=>{e&&window.console.error(e)}),t}},77738:function(e,t,r){"use strict";let i;let{SymbolDispose:n}=r(98520),{AbortError:o,codes:s}=r(62040),{isNodeStream:a,isWebStream:l,kControllerErrorFunction:c}=r(78022),u=r(95902),{ERR_INVALID_ARG_TYPE:d}=s,h=(e,t)=>{if("object"!=typeof e||!("aborted"in e))throw new d(t,"AbortSignal",e)};e.exports.addAbortSignal=function(t,r){if(h(t,"signal"),!a(r)&&!l(r))throw new d("stream",["ReadableStream","WritableStream","Stream"],r);return e.exports.addAbortSignalNoValidate(t,r)},e.exports.addAbortSignalNoValidate=function(e,t){if("object"!=typeof e||!("aborted"in e))return t;let s=a(t)?()=>{t.destroy(new o(void 0,{cause:e.reason}))}:()=>{t[c](new o(void 0,{cause:e.reason}))};return e.aborted?s():u(t,(i=i||r(52208).addAbortListener)(e,s)[n]),t}},37913:function(e,t,r){"use strict";let{StringPrototypeSlice:i,SymbolIterator:n,TypedArrayPrototypeSet:o,Uint8Array:s}=r(98520),{Buffer:a}=r(82957),{inspect:l}=r(52208);e.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}shift(){if(0===this.length)return;let e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(0===this.length)return"";let t=this.head,r=""+t.data;for(;null!==(t=t.next);)r+=e+t.data;return r}concat(e){if(0===this.length)return a.alloc(0);let t=a.allocUnsafe(e>>>0),r=this.head,i=0;for(;r;)o(t,r.data,i),i+=r.data.length,r=r.next;return t}consume(e,t){let r=this.head.data;if(e<r.length){let t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():t?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[n](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let t="",r=this.head,n=0;do{let o=r.data;if(e>o.length)t+=o,e-=o.length;else{e===o.length?(t+=o,++n,r.next?this.head=r.next:this.head=this.tail=null):(t+=i(o,0,e),this.head=r,r.data=i(o,e));break}++n}while(null!==(r=r.next));return this.length-=n,t}_getBuffer(e){let t=a.allocUnsafe(e),r=e,i=this.head,n=0;do{let a=i.data;if(e>a.length)o(t,a,r-e),e-=a.length;else{e===a.length?(o(t,a,r-e),++n,i.next?this.head=i.next:this.head=this.tail=null):(o(t,new s(a.buffer,a.byteOffset,e),r-e),this.head=i,i.data=a.slice(e));break}++n}while(null!==(i=i.next));return this.length-=n,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return l(this,{...t,depth:0,customInspect:!1})}}},12562:function(e,t,r){"use strict";let{pipeline:i}=r(44699),n=r(69375),{destroyer:o}
1=r(87875),{isNodeStream:s,isReadable:a,isWritable:l,isWebStream:c,isTransformStream:u,isWritableStream:d,isReadableStream:h}=r(78022),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:g}}=r(62040),m=r(95902);e.exports=function(...e){let t,r,w,y,b;if(0===e.length)throw new g("streams");if(1===e.length)return n.from(e[0]);let v=[...e];if("function"==typeof e[0]&&(e[0]=n.from(e[0])),"function"==typeof e[e.length-1]){let t=e.length-1;e[t]=n.from(e[t])}for(let t=0;t<e.length;++t)if(s(e[t])||c(e[t])){if(t<e.length-1&&!(a(e[t])||h(e[t])||u(e[t])))throw new p(`streams[${t}]`,v[t],"must be readable");if(t>0&&!(l(e[t])||d(e[t])||u(e[t])))throw new p(`streams[${t}]`,v[t],"must be writable")}function _(e){let t=y;y=null,t?t(e):e?b.destroy(e):k||C||b.destroy()}let x=e[0],E=i(e,_),C=!!(l(x)||d(x)||u(x)),k=!!(a(E)||h(E)||u(E));if(b=new n({writableObjectMode:!!(null!=x&&x.writableObjectMode),readableObjectMode:!!(null!=E&&E.readableObjectMode),writable:C,readable:k}),C){if(s(x))b._write=function(e,r,i){x.write(e,r)?i():t=i},b._final=function(e){x.end(),r=e},x.on("drain",function(){if(t){let e=t;t=null,e()}});else if(c(x)){let e=(u(x)?x.writable:x).getWriter();b._write=async function(t,r,i){try{await e.ready,e.write(t).catch(()=>{}),i()}catch(e){i(e)}},b._final=async function(t){try{await e.ready,e.close().catch(()=>{}),r=t}catch(e){t(e)}}}m(u(E)?E.readable:E,()=>{if(r){let e=r;r=null,e()}})}if(k){if(s(E))E.on("readable",function(){if(w){let e=w;w=null,e()}}),E.on("end",function(){b.push(null)}),b._read=function(){for(;;){let e=E.read();if(null===e){w=b._read;return}if(!b.push(e))return}};else if(c(E)){let e=(u(E)?E.readable:E).getReader();b._read=async function(){for(;;)try{let{value:t,done:r}=await e.read();if(!b.push(t))return;if(r){b.push(null);return}}catch{return}}}}return b._destroy=function(e,i){e||null===y||(e=new f),w=null,t=null,r=null,null===y?i(e):(y=i,s(E)&&o(E,e))},b}},87875:function(e,t,r){"use strict";let i=r(25566),{aggregateTwoErrors:n,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:s}=r(62040),{Symbol:a}=r(98520),{kIsDestroyed:l,isDestroyed:c,isFinished:u,isServerRequest:d}=r(78022),h=a("kDestroy"),f=a("kConstruct");function p(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function g(e,t){let r=this._readableState,i=this._writableState,o=i||r;return null!=i&&i.destroyed||null!=r&&r.destroyed?"function"==typeof t&&t():(p(e,i,r),i&&(i.destroyed=!0),r&&(r.destroyed=!0),o.constructed?m(this,e,t):this.once(h,function(r){m(this,n(r,e),t)})),this}function m(e,t,r){let n=!1;function o(t){if(n)return;n=!0;let o=e._readableState,s=e._writableState;p(t,s,o),s&&(s.closed=!0),o&&(o.closed=!0),"function"==typeof r&&r(t),t?i.nextTick(w,e,t):i.nextTick(y,e)}try{e._destroy(t||null,o)}catch(e){o(e)}}function w(e,t){b(e,t),y(e)}function y(e){let t=e._readableState,r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(null!=r&&r.emitClose||null!=t&&t.emitClose)&&e.emit("close")}function b(e,t){let r=e._readableState,i=e._writableState;null!=i&&i.errorEmitted||null!=r&&r.errorEmitted||(i&&(i.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t))}function v(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=!1===e.readable,e.endEmitted=!1===e.readable),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=!1===t.writable,t.ending=!1===t.writable,t.finished=!1===t.writable)}function _(e,t,r){let n=e._readableState,o=e._writableState;if(null!=o&&o.destroyed||null!=n&&n.destroyed)return this;null!=n&&n.autoDestroy||null!=o&&o.autoDestroy?e.destroy(t):t&&(t.stack,o&&!o.errored&&(o.errored=t),n&&!n.errored&&(n.errored=t),r?i.nextTick(b,e,t):b(e,t))}function x(e,t){if("function"!=typeof e._construct)return;let r=e._readableState,n=e._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),e.once(f,t),e.listenerCount(f)>1||i.nextTick(E,e)}function E(e){let t=!1;function r(r){if(t){_(e,null!=r?r:new o);return}t=!0;let n=e._readableState,s=e._writableState,a=s||n;n&&(n.constructed=!0),s&&(s.constructed=!0),a.destroyed?e.emit(h,r):r?_(e,r,!0):i.nextTick(C,e)}try{e._construct(e=>{i.nextTick(r,e)})}catch(e){i.nextTick(r,e)}}function C(e){e.emit(f)}function k(e){return(null==e?void 0:e.setHeader)&&"function"==typeof e.abort}function S(e){e.emit("close")}function A(e,t){e.emit("error",t),i.nextTick(S,e)}function I(e,t){!(!e||c(e))&&(t||u(e)||(t=new s),d(e)?(e.socket=null,e.destroy(t)):k(e)?e.abort():k(e.req)?e.req.abort():"function"==typeof e.destroy?e.destroy(t):"function"==typeof e.close?e.close():t?i.nextTick(A,e,t):i.nextTick(S,e),e.destroyed||(e[l]=!0))}
1e.exports={construct:x,destroyer:I,destroy:g,undestroy:v,errorOrDestroy:_}},69375:function(e,t,r){"use strict";let i,n;let{ObjectDefineProperties:o,ObjectGetOwnPropertyDescriptor:s,ObjectKeys:a,ObjectSetPrototypeOf:l}=r(98520);e.exports=d;let c=r(76029),u=r(96497);l(d.prototype,c.prototype),l(d,c);{let e=a(u.prototype);for(let t=0;t<e.length;t++){let r=e[t];d.prototype[r]||(d.prototype[r]=u.prototype[r])}}function d(e){if(!(this instanceof d))return new d(e);c.call(this,e),u.call(this,e),e?(this.allowHalfOpen=!1!==e.allowHalfOpen,!1===e.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===e.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}function h(){return void 0===i&&(i={}),i}o(d.prototype,{writable:{__proto__:null,...s(u.prototype,"writable")},writableHighWaterMark:{__proto__:null,...s(u.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...s(u.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...s(u.prototype,"writableBuffer")},writableLength:{__proto__:null,...s(u.prototype,"writableLength")},writableFinished:{__proto__:null,...s(u.prototype,"writableFinished")},writableCorked:{__proto__:null,...s(u.prototype,"writableCorked")},writableEnded:{__proto__:null,...s(u.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...s(u.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}}),d.fromWeb=function(e,t){return h().newStreamDuplexFromReadableWritablePair(e,t)},d.toWeb=function(e){return h().newReadableWritablePairFromDuplex(e)},d.from=function(e){return n||(n=r(36782)),n(e,"body")}},36782:function(e,t,r){"use strict";let i=r(25566),n=r(82957),{isReadable:o,isWritable:s,isIterable:a,isNodeStream:l,isReadableNodeStream:c,isWritableNodeStream:u,isDuplexNodeStream:d,isReadableStream:h,isWritableStream:f}=r(78022),p=r(95902),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:w}}=r(62040),{destroyer:y}=r(87875),b=r(69375),v=r(76029),_=r(96497),{createDeferredPromise:x}=r(52208),E=r(13153),C=globalThis.Blob||n.Blob,k=void 0!==C?function(e){return e instanceof C}:function(e){return!1},S=globalThis.AbortController||r(78918).AbortController,{FunctionPrototypeCall:A}=r(98520);class I extends b{constructor(e){super(e),(null==e?void 0:e.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(null==e?void 0:e.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function T(e){let{promise:t,resolve:r}=x(),n=new S,o=n.signal;return{value:e(async function*(){for(;;){let e=t;t=null;let{chunk:n,done:s,cb:a}=await e;if(i.nextTick(a),s)return;if(o.aborted)throw new g(void 0,{cause:o.reason});({promise:t,resolve:r}=x()),yield n}}(),{signal:o}),write(e,t,i){let n=r;r=null,n({chunk:e,done:!1,cb:i})},final(e){let t=r;r=null,t({done:!0,cb:e})},destroy(e,t){n.abort(),t(e)}}}function R(e){let t,r,i,n,a;let l=e.readable&&"function"!=typeof e.readable.read?v.wrap(e.readable):e.readable,c=e.writable,u=!!o(l),d=!!s(c);function h(e){let t=n;n=null,t?t(e):e&&a.destroy(e)}return a=new I({readableObjectMode:!!(null!=l&&l.readableObjectMode),writableObjectMode:!!(null!=c&&c.writableObjectMode),readable:u,writable:d}),d&&(p(c,e=>{d=!1,e&&y(l,e),h(e)}),a._write=function(e,r,i){c.write(e,r)?i():t=i},a._final=function(e){c.end(),r=e},c.on("drain",function(){if(t){let e=t;t=null,e()}}),c.on("finish",function(){if(r){let e=r;r=null,e()}})),u&&(p(l,e=>{u=!1,e&&y(l,e),h(e)}),l.on("readable",function(){if(i){let e=i;i=null,e()}}),l.on("end",function(){a.push(null)}),a._read=function(){for(;;){let e=l.read();if(null===e){i=a._read;return}if(!a.push(e))return}}),a._destroy=function(e,o){e||null===n||(e=new g),i=null,t=null,r=null,null===n?o(e):(n=o,y(c,e),y(l,e))},a}e.exports=function e(t,r){if(d(t))return t;if(c(t))return R({readable:t});if(u(t))return R({writable:t});if(l(t))return R({writable:!1,readable:!1});if(h(t))return R({readable:v.fromWeb(t)});if(f(t))return R({writable:_.fromWeb(t)});if("function"==typeof t){let{value:e,write:n,final:o,destroy:s}=T(t);if(a(e))return E(I,e,{objectMode:!0,write:n,final:o,destroy:s});let l=null==e?void 0:e.then;if("function"==typeof l){let t;let r=A(l,e,e=>{if(null!=e)throw new w("nully","body",e)},e=>{y(t,e)});return t=new I({objectMode:!0,readable:!1,write:n,final(e){o(async()=>{try{await r,i.nextTick(e,null)}catch(t){i.nextTick(e,t)}})},destroy:s})}throw new w("Iterable, AsyncIterable or AsyncFunction",r,e)}if(k(t))return e(t.arrayBuffer());if(a(t))return E(I,t,{objectMode:!0,writable:!1});if(h(null==t?void 0:t.readable)&&f(null==t?void 0:t.writable))return I.fromWeb(t);if("object"==typeof(null==t?void 0:t.writable)||"object"==typeof(null==t?void 0:t.readable))return R({readable:null!=t&&t.readable?c(null==t?void 0:t.readable)?null==t?void 0:t.readable:e(t.readable):void 0,writable:null!=t&&t.writable?u(null==t?void 0:t.writable)?null==t?void 0:t.writable:e(t.writable):void 0});let n=null==t?void 0:t.then;if("function"==typeof n){let e;return A(n,t,t=>{null!=t&&e.push(t),e.push(null)},t=>{y(e,t)}),e=new I({objectMode:!0,writable:!1,read(){}})}
1throw new m(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)}},95902:function(e,t,r){let i;"use strict";let n=r(25566),{AbortError:o,codes:s}=r(62040),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=s,{kEmptyObject:c,once:u}=r(52208),{validateAbortSignal:d,validateFunction:h,validateObject:f,validateBoolean:p}=r(51175),{Promise:g,PromisePrototypeThen:m,SymbolDispose:w}=r(98520),{isClosed:y,isReadable:b,isReadableNodeStream:v,isReadableStream:_,isReadableFinished:x,isReadableErrored:E,isWritable:C,isWritableNodeStream:k,isWritableStream:S,isWritableFinished:A,isWritableErrored:I,isNodeStream:T,willEmitClose:R,kIsClosedPromise:O}=r(78022);function P(e){return e.setHeader&&"function"==typeof e.abort}let N=()=>{};function M(e,t,s){var p,g;if(2==arguments.length?(s=t,t=c):null==t?t=c:f(t,"options"),h(s,"callback"),d(t.signal,"options.signal"),s=u(s),_(e)||S(e))return D(e,t,s);if(!T(e))throw new a("stream",["ReadableStream","WritableStream","Stream"],e);let m=null!==(p=t.readable)&&void 0!==p?p:v(e),O=null!==(g=t.writable)&&void 0!==g?g:k(e),M=e._writableState,L=e._readableState,j=()=>{e.writable||U()},B=R(e)&&v(e)===m&&k(e)===O,$=A(e,!1),U=()=>{$=!0,e.destroyed&&(B=!1),B&&(!e.readable||m)||m&&!F||s.call(e)},F=x(e,!1),z=()=>{F=!0,e.destroyed&&(B=!1),B&&(!e.writable||O)||O&&!$||s.call(e)},q=t=>{s.call(e,t)},W=y(e),H=()=>{W=!0;let t=I(e)||E(e);return t&&"boolean"!=typeof t?s.call(e,t):m&&!F&&v(e,!0)&&!x(e,!1)||O&&!$&&!A(e,!1)?s.call(e,new l):void s.call(e)},V=()=>{W=!0;let t=I(e)||E(e);if(t&&"boolean"!=typeof t)return s.call(e,t);s.call(e)},Z=()=>{e.req.on("finish",U)};P(e)?(e.on("complete",U),B||e.on("abort",H),e.req?Z():e.on("request",Z)):O&&!M&&(e.on("end",j),e.on("close",j)),B||"boolean"!=typeof e.aborted||e.on("aborted",H),e.on("end",z),e.on("finish",U),!1!==t.error&&e.on("error",q),e.on("close",H),W?n.nextTick(H):null!=M&&M.errorEmitted||null!=L&&L.errorEmitted?B||n.nextTick(V):!m&&(!B||b(e))&&($||!1===C(e))?n.nextTick(V):!O&&(!B||C(e))&&(F||!1===b(e))?n.nextTick(V):L&&e.req&&e.aborted&&n.nextTick(V);let K=()=>{s=N,e.removeListener("aborted",H),e.removeListener("complete",U),e.removeListener("abort",H),e.removeListener("request",Z),e.req&&e.req.removeListener("finish",U),e.removeListener("end",j),e.removeListener("close",j),e.removeListener("finish",U),e.removeListener("end",z),e.removeListener("error",q),e.removeListener("close",H)};if(t.signal&&!W){let a=()=>{let r=s;K(),r.call(e,new o(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)n.nextTick(a);else{let n=(i=i||r(52208).addAbortListener)(t.signal,a),o=s;s=u((...t)=>{n[w](),o.apply(e,t)})}}return K}function D(e,t,s){let a=!1,l=N;if(t.signal){if(l=()=>{a=!0,s.call(e,new o(void 0,{cause:t.signal.reason}))},t.signal.aborted)n.nextTick(l);else{let n=(i=i||r(52208).addAbortListener)(t.signal,l),o=s;s=u((...t)=>{n[w](),o.apply(e,t)})}}let c=(...t)=>{a||n.nextTick(()=>s.apply(e,t))};return m(e[O].promise,c,c),N}function L(e,t){var r;let i=!1;return null===t&&(t=c),null!==(r=t)&&void 0!==r&&r.cleanup&&(p(t.cleanup,"cleanup"),i=t.cleanup),new g((r,n)=>{let o=M(e,t,e=>{i&&o(),e?n(e):r()})})}e.exports=M,e.exports.finished=L},13153:function(e,t,r){"use strict";let i=r(25566),{PromisePrototypeThen:n,SymbolAsyncIterator:o,SymbolIterator:s}=r(98520),{Buffer:a}=r(82957),{ERR_INVALID_ARG_TYPE:l,ERR_STREAM_NULL_VALUES:c}=r(62040).codes;function u(e,t,r){let u,d;if("string"==typeof t||t instanceof a)return new e({objectMode:!0,...r,read(){this.push(t),this.push(null)}});if(t&&t[o])d=!0,u=t[o]();else if(t&&t[s])d=!1,u=t[s]();else throw new l("iterable",["Iterable"],t);let h=new e({objectMode:!0,highWaterMark:1,...r}),f=!1;async function p(e){let t=null!=e,r="function"==typeof u.throw;if(t&&r){let{value:t,done:r}=await u.throw(e);if(await t,r)return}if("function"==typeof u.return){let{value:e}=await u.return();await e}}async function g(){for(;;){try{let{value:e,done:t}=d?await u.next():u.next();if(t)h.push(null);else{let t=e&&"function"==typeof e.then?await e:e;if(null===t)throw f=!1,new c;if(h.push(t))continue;f=!1}}catch(e){h.destroy(e)}break}}return h._read=function(){f||(f=!0,g())},h._destroy=function(e,t){n(p(e),()=>i.nextTick(t,e),r=>i.nextTick(t,r||e))},h}e.exports=u},87526:function(e,t,r){"use strict";let{ArrayIsArray:i,ObjectSetPrototypeOf:n}
1=r(98520),{EventEmitter:o}=r(55445);function s(e){o.call(this,e)}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?i(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}n(s.prototype,o.prototype),n(s,o),s.prototype.pipe=function(e,t){let r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function n(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",n),e._isStdio||t&&!1===t.end||(r.on("end",l),r.on("close",c));let s=!1;function l(){s||(s=!0,e.end())}function c(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){d(),0===o.listenerCount(this,"error")&&this.emit("error",e)}function d(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",l),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",d),r.removeListener("close",d),e.removeListener("close",d)}return a(r,"error",u),a(e,"error",u),r.on("end",d),r.on("close",d),e.on("close",d),e.emit("pipe",r),e},e.exports={Stream:s,prependListener:a}},76846:function(e,t,r){"use strict";let i=globalThis.AbortController||r(78918).AbortController,{codes:{ERR_INVALID_ARG_VALUE:n,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:l}=r(62040),{validateAbortSignal:c,validateInteger:u,validateObject:d}=r(51175),h=r(98520).Symbol("kWeak"),f=r(98520).Symbol("kResistStopPropagation"),{finished:p}=r(95902),g=r(12562),{addAbortSignalNoValidate:m}=r(77738),{isWritable:w,isNodeStream:y}=r(78022),{deprecate:b}=r(52208),{ArrayPrototypePush:v,Boolean:_,MathFloor:x,Number:E,NumberIsNaN:C,Promise:k,PromiseReject:S,PromiseResolve:A,PromisePrototypeThen:I,Symbol:T}=r(98520),R=T("kEmpty"),O=T("kEof");function P(e,t){if(null!=t&&d(t,"options"),(null==t?void 0:t.signal)!=null&&c(t.signal,"options.signal"),y(e)&&!w(e))throw new n("stream",e,"must be writable");let r=g(this,e);return null!=t&&t.signal&&m(t.signal,r),r}function N(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);null!=t&&d(t,"options"),(null==t?void 0:t.signal)!=null&&c(t.signal,"options.signal");let i=1;(null==t?void 0:t.concurrency)!=null&&(i=x(t.concurrency));let n=i-1;return(null==t?void 0:t.highWaterMark)!=null&&(n=x(t.highWaterMark)),u(i,"options.concurrency",1),u(n,"options.highWaterMark",0),n+=i,(async function*(){let o,s;let a=r(52208).AbortSignalAny([null==t?void 0:t.signal].filter(_)),c=this,u=[],d={signal:a},h=!1,f=0;function p(){h=!0,g()}function g(){f-=1,m()}function m(){s&&!h&&f<i&&u.length<n&&(s(),s=null)}(async function(){try{for await(let t of c){if(h)return;if(a.aborted)throw new l;try{if((t=e(t,d))===R)continue;t=A(t)}catch(e){t=S(e)}f+=1,I(t,g,p),u.push(t),o&&(o(),o=null),!h&&(u.length>=n||f>=i)&&await new k(e=>{s=e})}u.push(O)}catch(t){let e=S(t);I(e,g,p),u.push(e)}finally{h=!0,o&&(o(),o=null)}})();try{for(;;){for(;u.length>0;){let e=await u[0];if(e===O)return;if(a.aborted)throw new l;e!==R&&(yield e),u.shift(),m()}await new k(e=>{o=e})}}finally{h=!0,s&&(s(),s=null)}}).call(this)}function M(e){return null!=e&&d(e,"options"),(null==e?void 0:e.signal)!=null&&c(e.signal,"options.signal"),(async function*(){let t=0;for await(let i of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l({cause:e.signal.reason});yield[t++,i]}}).call(this)}async function D(e,t){for await(let r of $.call(this,e,t))return!0;return!1}async function L(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);return!await D.call(this,async(...t)=>!await e(...t),t)}async function j(e,t){for await(let r of $.call(this,e,t))return r}async function B(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);async function r(t,r){return await e(t,r),R}for await(let e of N.call(this,r,t));}function $(e,t){if("function"!=typeof e)throw new o("fn",["Function","AsyncFunction"],e);async function r(t,r){return await e(t,r)?t:R}return N.call(this,r,t)}class U extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function F(e,t,r){var n,s;if("function"!=typeof e)throw new o("reducer",["Function","AsyncFunction"],e);null!=r&&d(r,"options"),(null==r?void 0:r.signal)!=null&&c(r.signal,"options.signal");let a=arguments.length>1;if(null!=r&&null!==(n=r.signal)&&void 0!==n&&n.aborted){let e=new l(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(e)),e}let u=new i,g=u.signal;if(null!=r&&r.signal){let e={once:!0,[h]:this,[f]:!0};r.signal.addEventListener("abort",()=>u.abort(),e)}let m=!1;try{for await(let i of this){if(m=!0,null!=r&&null!==(s=r.signal)&&void 0!==s&&s.aborted)throw new l;a?t=await e(t,i,{signal:g}):(t=i,a=!0)}if(!m&&!a)throw new U}finally{u.abort()}return t}async function z(e){null!=e&&d(e,"options"),(null==e?void 0:e.signal)!=null&&c(e.signal,"options.signal");let t=[];for await(let i of this){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:e.signal.reason});v(t,i)}return t}function q(e,t){let r=N.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function W(e){if(C(e=E(e)))return 0;if(e<0)throw new a("number",">= 0",e);return e}function H(e,t){return null!=t&&d(t,"options"),(null==t?void 0:t.signal)!=null&&c(t.signal,"options.signal"),e=W(e),(async function*(){var r,i;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!==(i=t.signal)&&void 0!==i&&i.aborted)throw new l;e--<=0&&(yield r)}}).call(this)}function V(e,t){return null!=t&&d(t,"options"),(null==t?void 0:t.signal)!=null&&c(t.signal,"options.signal"),e=W(e),(async function*(){var r,i;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l;for await(let r of this){if(null!=t&&null!==(i=t.signal)&&void 0!==i&&i.aborted)throw new l;if(e-- >0&&(yield r),e<=0)return}}).call(this)}e.exports.streamReturningOperators={asIndexedPairs:b(M,"readable.asIndexedPairs will be removed in a future version."),drop:H,filter:$,flatMap:q,map:N,take:V,compose:P},e.exports.promiseReturningOperators={every:L,forEach:B,reduce:F,toArray:z,some:D,find:j}},97900:function(e,t,r){"use strict";let{ObjectSetPrototypeOf:i}=r(98520);e.exports=o;let n=r(32625);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i(o.prototype,n.prototype),i(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},44699:function(e,t,r){let i,n,o;"use strict";let s=r(25566),{ArrayIsArray:a,Promise:l,SymbolAsyncIterator:c,SymbolDispose:u}=r(98520),d=r(95902),{once:h}=r(52208),f=r(87875),p=r(69375),{aggregateTwoErrors:g,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:w,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:_}=r(62040),{validateFunction:x,validateAbortSignal:E}
1=r(51175),{isIterable:C,isReadable:k,isReadableNodeStream:S,isNodeStream:A,isTransformStream:I,isWebStream:T,isReadableStream:R,isReadableFinished:O}=r(78022),P=globalThis.AbortController||r(78918).AbortController;function N(e,t,r){let i=!1;return e.on("close",()=>{i=!0}),{destroy:t=>{i||(i=!0,f.destroyer(e,t||new b("pipe")))},cleanup:d(e,{readable:t,writable:r},e=>{i=!e})}}function M(e){return x(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function D(e){if(C(e))return e;if(S(e))return L(e);throw new m("val",["Readable","Iterable","AsyncIterable"],e)}async function*L(e){n||(n=r(76029)),yield*n.prototype[c].call(e)}async function j(e,t,r,{end:i}){let n;let o=null,s=e=>{if(e&&(n=e),o){let e=o;o=null,e()}},a=()=>new l((e,t)=>{n?t(n):o=()=>{n?t(n):e()}});t.on("drain",s);let c=d(t,{readable:!1},s);try{for await(let r of(t.writableNeedDrain&&await a(),e))t.write(r)||await a();i&&(t.end(),await a()),r()}catch(e){r(n!==e?g(n,e):e)}finally{c(),t.off("drain",s)}}async function B(e,t,r,{end:i}){I(t)&&(t=t.writable);let n=t.getWriter();try{for await(let t of e)await n.ready,n.write(t).catch(()=>{});await n.ready,i&&await n.close(),r()}catch(e){try{await n.abort(e),r(e)}catch(e){r(e)}}}function $(...e){return U(e,h(M(e)))}function U(e,t,n){let l,c,d,h;if(1===e.length&&a(e[0])&&(e=e[0]),e.length<2)throw new y("streams");let f=new P,g=f.signal,b=null==n?void 0:n.signal,v=[];function x(){$(new _)}E(b,"options.signal"),o=o||r(52208).addAbortListener,b&&(l=o(b,x));let O=[],M=0;function L(e){$(e,0==--M)}function $(e,r){var i;if(e&&(!c||"ERR_STREAM_PREMATURE_CLOSE"===c.code)&&(c=e),c||r){for(;O.length;)O.shift()(c);null===(i=l)||void 0===i||i[u](),f.abort(),r&&(c||v.forEach(e=>e()),s.nextTick(t,c,d))}}for(let t=0;t<e.length;t++){let o=e[t],a=t<e.length-1,l=t>0,c=a||(null==n?void 0:n.end)!==!1,u=t===e.length-1;if(A(o)){if(c){let{destroy:e,cleanup:t}=N(o,a,l);O.push(e),k(o)&&u&&v.push(t)}function U(e){e&&"AbortError"!==e.name&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code&&L(e)}o.on("error",U),k(o)&&u&&v.push(()=>{o.removeListener("error",U)})}if(0===t){if("function"==typeof o){if(!C(h=o({signal:g})))throw new w("Iterable, AsyncIterable or Stream","source",h)}else h=C(o)||S(o)||I(o)?o:p.from(o)}else if("function"==typeof o){var z,q;if(h=o(h=I(h)?D(null===(z=h)||void 0===z?void 0:z.readable):D(h),{signal:g}),a){if(!C(h,!0))throw new w("AsyncIterable",`transform[${t-1}]`,h)}else{i||(i=r(97900));let e=new i({objectMode:!0}),t=null===(q=h)||void 0===q?void 0:q.then;if("function"==typeof t)M++,t.call(h,t=>{d=t,null!=t&&e.write(t),c&&e.end(),s.nextTick(L)},t=>{e.destroy(t),s.nextTick(L,t)});else if(C(h,!0))M++,j(h,e,L,{end:c});else if(R(h)||I(h)){let t=h.readable||h;M++,j(t,e,L,{end:c})}else throw new w("AsyncIterable or Promise","destination",h);let{destroy:n,cleanup:o}=N(h=e,!1,!0);O.push(n),u&&v.push(o)}}else if(A(o)){if(S(h)){M+=2;let e=F(h,o,L,{end:c});k(o)&&u&&v.push(e)}else if(I(h)||R(h)){let e=h.readable||h;M++,j(e,o,L,{end:c})}else if(C(h))M++,j(h,o,L,{end:c});else throw new m("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=o}else if(T(o)){if(S(h))M++,B(D(h),o,L,{end:c});else if(R(h)||C(h))M++,B(h,o,L,{end:c});else if(I(h))M++,B(h.readable,o,L,{end:c});else throw new m("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],h);h=o}else h=p.from(o)}return(null!=g&&g.aborted||null!=b&&b.aborted)&&s.nextTick(x),h}function F(e,t,r,{end:i}){let n=!1;if(t.on("close",()=>{n||r(new v)}),e.pipe(t,{end:!1}),i){function o(){n=!0,t.end()}O(e)?s.nextTick(o):e.once("end",o)}else r();return d(e,{readable:!0,writable:!1},t=>{let i=e._readableState;t&&"ERR_STREAM_PREMATURE_CLOSE"===t.code&&i&&i.ended&&!i.errored&&!i.errorEmitted?e.once("end",r).once("error",r):r(t)}),d(t,{readable:!1,writable:!0},r)}e.exports={pipelineImpl:U,pipeline:$}},76029:function(e,t,r){let i;"use strict";let n=r(25566),{ArrayPrototypeIndexOf:o,NumberIsInteger:s,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:c,ObjectKeys:u,ObjectSetPrototypeOf:d,Promise:h,SafeSet:f,SymbolAsyncDispose:p,SymbolAsyncIterator:g,Symbol:m}=r(98520);e.exports=el,el.ReadableState=ea;let{EventEmitter:w}=r(55445),{Stream:y,prependListener:b}
1=r(87526),{Buffer:v}=r(82957),{addAbortSignal:_}=r(77738),x=r(95902),E=r(52208).debuglog("stream",e=>{E=e}),C=r(37913),k=r(87875),{getHighWaterMark:S,getDefaultHighWaterMark:A}=r(48165),{aggregateTwoErrors:I,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:R,ERR_OUT_OF_RANGE:O,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:N},AbortError:M}=r(62040),{validateObject:D}=r(51175),L=m("kPaused"),{StringDecoder:j}=r(64582),B=r(13153);d(el.prototype,y.prototype),d(el,y);let $=()=>{},{errorOrDestroy:U}=k,F=1,z=2,q=4,W=8,H=16,V=32,Z=64,K=128,G=256,Y=512,J=1024,Q=2048,X=4096,ee=8192,et=16384,er=32768,ei=65536,en=131072,eo=262144;function es(e){return{enumerable:!1,get(){return(this.state&e)!=0},set(t){t?this.state|=e:this.state&=~e}}}function ea(e,t,i){"boolean"!=typeof i&&(i=t instanceof r(69375)),this.state=Q|X|H|V,e&&e.objectMode&&(this.state|=F),i&&e&&e.readableObjectMode&&(this.state|=F),this.highWaterMark=e?S(this,e,"readableHighWaterMark",i):A(!1),this.buffer=new C,this.length=0,this.pipes=[],this.flowing=null,this[L]=null,e&&!1===e.emitClose&&(this.state&=~Q),e&&!1===e.autoDestroy&&(this.state&=~X),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new j(e.encoding),this.encoding=e.encoding)}function el(e){if(!(this instanceof el))return new el(e);let t=this instanceof r(69375);this._readableState=new ea(e,this,t),e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&!t&&_(e.signal,this)),y.call(this,e),k.construct(this,()=>{this._readableState.needReadable&&ew(this,this._readableState)})}function ec(e,t,r,i){let n;E("readableAddChunk",t);let o=e._readableState;if((o.state&F)==0&&("string"==typeof t?(r=r||o.defaultEncoding,o.encoding!==r&&(i&&o.encoding?t=v.from(t,r).toString(o.encoding):(t=v.from(t,r),r=""))):t instanceof v?r="":y._isUint8Array(t)?(t=y._uint8ArrayToBuffer(t),r=""):null!=t&&(n=new T("chunk",["string","Buffer","Uint8Array"],t))),n)U(e,n);else if(null===t)o.state&=~W,ep(e,o);else if((o.state&F)!=0||t&&t.length>0){if(i){if((o.state&q)!=0)U(e,new N);else{if(o.destroyed||o.errored)return!1;eu(e,o,t,!0)}}else if(o.ended)U(e,new P);else{if(o.destroyed||o.errored)return!1;o.state&=~W,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?eu(e,o,t,!1):ew(e,o)):eu(e,o,t,!1)}}else i||(o.state&=~W,ew(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function eu(e,t,r,i){t.flowing&&0===t.length&&!t.sync&&e.listenerCount("data")>0?((t.state&ei)!=0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),(t.state&Z)!=0&&eg(e)),ew(e,t)}c(ea.prototype,{objectMode:es(F),ended:es(z),endEmitted:es(q),reading:es(W),constructed:es(H),sync:es(V),needReadable:es(Z),emittedReadable:es(K),readableListening:es(G),resumeScheduled:es(Y),errorEmitted:es(J),emitClose:es(Q),autoDestroy:es(X),destroyed:es(ee),closed:es(et),closeEmitted:es(er),multiAwaitDrain:es(ei),readingMore:es(en),dataEmitted:es(eo)}),el.prototype.destroy=k.destroy,el.prototype._undestroy=k.undestroy,el.prototype._destroy=function(e,t){t(e)},el.prototype[w.captureRejectionSymbol]=function(e){this.destroy(e)},el.prototype[p]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new M,this.destroy(e)),new h((t,r)=>x(this,i=>i&&i!==e?r(i):t(null)))},el.prototype.push=function(e,t){return ec(this,e,t,!1)},el.prototype.unshift=function(e,t){return ec(this,e,t,!0)},el.prototype.isPaused=function(){let e=this._readableState;return!0===e[L]||!1===e.flowing},el.prototype.setEncoding=function(e){let t=new j(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer,i="";for(let e of r)i+=t.write(e);return r.clear(),""!==i&&r.push(i),this._readableState.length=i.length,this};let ed=1073741824;function eh(e){if(e>ed)throw new O("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,++e}function ef(e,t){return e<=0||0===t.length&&t.ended?0:(t.state&F)!=0?1:a(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}function ep(e,t){if(E("onEofChunk"),!t.ended){if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?eg(e):(t.needReadable=!1,t.emittedReadable=!0,em(e))}}function eg(e){let t=e._readableState;E("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(E("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(em,e))}function em(e){let t=e._readableState;E("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,eC(e)}function ew(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,n.nextTick(ey,e,t))}function ey(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){let r=t.length;if(E("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function eb(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(E("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(E("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||0===r.awaitDrainWriters.size)&&e.listenerCount("data")&&e.resume()}}function ev(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!1===t[L]?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function e_(e){E("readable nexttick read 0"),e.read(0)}function ex(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(eE,e,t))}function eE(e,t){E("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),eC(e),t.flowing&&!t.reading&&e.read(0)}function eC(e){let t=e._readableState;for(E("flow",t.flowing);t.flowing&&null!==e.read(););}function ek(e,t){"function"!=typeof e.read&&(e=el.wrap(e,{objectMode:!0}));let r=eS(e,t);return r.stream=e,r}async function*eS(e,t){let r,i=$;function n(t){this===e?(i(),i=$):i=t}e.on("readable",n);let o=x(e,{writable:!1},e=>{r=e?I(r,e):null,i(),i=$});try{for(;;){let t=e.destroyed?null:e.read();if(null!==t)yield t;else if(r)throw r;else{if(null===r)return;await new h(n)}}}catch(e){throw r=I(r,e)}finally{(r||(null==t?void 0:t.destroyOnReturn)!==!1)&&(void 0===r||e._readableState.autoDestroy)?k.destroyer(e,null):(e.off("readable",n),o())}}function eA(e,t){let r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function eI(e){let t=e._readableState;E("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(eT,t,e))}function eT(e,t){if(E("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&0===e.length){if(e.endEmitted=!0,t.emit("end"),t.writable&&!1===t.allowHalfOpen)n.nextTick(eR,t);else if(e.autoDestroy){let e=t._writableState;(!e||e.autoDestroy&&(e.finished||!1===e.writable))&&t.destroy()}}}function eR(e){!e.writable||e.writableEnded||e.destroyed||e.end()}function eO(){return void 0===i&&(i={}),i}el.prototype.read=function(e){let t;E("read",e),void 0===e?e=NaN:s(e)||(e=l(e,10));let r=this._readableState,i=e;if(e>r.highWaterMark&&(r.highWaterMark=eh(e)),0!==e&&(r.state&=~K),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return E("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?eI(this):eg(this),null;if(0===(e=ef(e,r))&&r.ended)return 0===r.length&&eI(this),null;let n=(r.state&Z)!=0;if(E("need readable",n),(0===r.length||r.length-e<r.highWaterMark)&&E("length less than watermark",n=!0),r.ended||r.reading||r.destroyed||r.errored||!r.constructed)E("reading, ended or constructing",n=!1);else if(n){E("do read"),r.state|=W|V,0===r.length&&(r.state|=Z);try{this._read(r.highWaterMark)}catch(e){U(this,e)}r.state&=~V,r.reading||(e=ef(i,r))}return null===(t=e>0?eA(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.multiAwaitDrain?r.awaitDrainWriters.clear():r.awaitDrainWriters=null),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&eI(this)),null===t||r.errorEmitted||r.closeEmitted||(r.dataEmitted=!0,this.emit
1("data",t)),t},el.prototype._read=function(e){throw new R("_read()")},el.prototype.pipe=function(e,t){let r;let i=this,o=this._readableState;1!==o.pipes.length||o.multiAwaitDrain||(o.multiAwaitDrain=!0,o.awaitDrainWriters=new f(o.awaitDrainWriters?[o.awaitDrainWriters]:[])),o.pipes.push(e),E("pipe count=%d opts=%j",o.pipes.length,t);let s=t&&!1===t.end||e===n.stdout||e===n.stderr?w:l;function a(e,t){E("onunpipe"),e===i&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,u())}function l(){E("onend"),e.end()}o.endEmitted?n.nextTick(s):i.once("end",s),e.on("unpipe",a);let c=!1;function u(){E("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),r&&e.removeListener("drain",r),e.removeListener("error",p),e.removeListener("unpipe",a),i.removeListener("end",l),i.removeListener("end",w),i.removeListener("data",h),c=!0,r&&o.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&r()}function d(){c||(1===o.pipes.length&&o.pipes[0]===e?(E("false write response, pause",0),o.awaitDrainWriters=e,o.multiAwaitDrain=!1):o.pipes.length>1&&o.pipes.includes(e)&&(E("false write response, pause",o.awaitDrainWriters.size),o.awaitDrainWriters.add(e)),i.pause()),r||(r=eb(i,e),e.on("drain",r))}function h(t){E("ondata");let r=e.write(t);E("dest.write",r),!1===r&&d()}function p(t){if(E("onerror",t),w(),e.removeListener("error",p),0===e.listenerCount("error")){let r=e._writableState||e._readableState;r&&!r.errorEmitted?U(e,t):e.emit("error",t)}}function g(){e.removeListener("finish",m),w()}function m(){E("onfinish"),e.removeListener("close",g),w()}function w(){E("unpipe"),i.unpipe(e)}return i.on("data",h),b(e,"error",p),e.once("close",g),e.once("finish",m),e.emit("pipe",i),!0===e.writableNeedDrain?d():o.flowing||(E("pipe resume"),i.resume()),e},el.prototype.unpipe=function(e){let t=this._readableState,r={hasUnpiped:!1};if(0===t.pipes.length)return this;if(!e){let e=t.pipes;t.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}let i=o(t.pipes,e);return -1===i||(t.pipes.splice(i,1),0===t.pipes.length&&this.pause(),e.emit("unpipe",this,r)),this},el.prototype.on=function(e,t){let r=y.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,E("on readable",i.length,i.reading),i.length?eg(this):i.reading||n.nextTick(e_,this)),r},el.prototype.addListener=el.prototype.on,el.prototype.removeListener=function(e,t){let r=y.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(ev,this),r},el.prototype.off=el.prototype.removeListener,el.prototype.removeAllListeners=function(e){let t=y.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(ev,this),t},el.prototype.resume=function(){let e=this._readableState;return e.flowing||(E("resume"),e.flowing=!e.readableListening,ex(this,e)),e[L]=!1,this},el.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[L]=!0,this},el.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{U(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=u(e);for(let t=1;t<r.length;t++){let i=r[t];void 0===this[i]&&"function"==typeof e[i]&&(this[i]=e[i].bind(e))}return this},el.prototype[g]=function(){return ek(this)},el.prototype.iterator=function(e){return void 0!==e&&D(e,"options"),ek(this,e)},c(el.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&!1!==e.readable&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._readableState.readable&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.objectMode}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return!!this._readableState&&this._readableState.closed}},destroyed:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.destroyed},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return!!this._readableState&&this._readableState.endEmitted}}}),c(ea.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return!1!==this[L]},set(e){this[L]=!!e}}}),el._fromList=eA,el.from=function(e,t){return B(el,e,t)},el.fromWeb=function(e,t){return eO().newStreamReadableFromReadableStream(e,t)},el.toWeb=function(e,t){return eO().newReadableStreamFromStreamReadable(e,t)}
1,el.wrap=function(e,t){var r,i;return new el({objectMode:null===(r=null!==(i=e.readableObjectMode)&&void 0!==i?i:e.objectMode)||void 0===r||r,...t,destroy(t,r){k.destroyer(e,t),r(t)}}).wrap(e)}},48165:function(e,t,r){"use strict";let{MathFloor:i,NumberIsInteger:n}=r(98520),{validateInteger:o}=r(51175),{ERR_INVALID_ARG_VALUE:s}=r(62040).codes,a=16384,l=16;function c(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function u(e){return e?l:a}function d(e,t){o(t,"value",0),e?l=t:a=t}function h(e,t,r,o){let a=c(t,o,r);if(null!=a){if(!n(a)||a<0)throw new s(o?`options.${r}`:"options.highWaterMark",a);return i(a)}return u(e.objectMode)}e.exports={getHighWaterMark:h,getDefaultHighWaterMark:u,setDefaultHighWaterMark:d}},32625:function(e,t,r){"use strict";let{ObjectSetPrototypeOf:i,Symbol:n}=r(98520);e.exports=c;let{ERR_METHOD_NOT_IMPLEMENTED:o}=r(62040).codes,s=r(69375),{getHighWaterMark:a}=r(48165);i(c.prototype,s.prototype),i(c,s);let l=n("kCallback");function c(e){if(!(this instanceof c))return new c(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;0===t&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),s.call(this,e),this._readableState.sync=!1,this[l]=null,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function u(e){"function"!=typeof this._flush||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}null!=r&&this.push(r),this.push(null),e&&e()})}function d(){this._final!==u&&u.call(this)}c.prototype._final=u,c.prototype._transform=function(e,t,r){throw new o("_transform()")},c.prototype._write=function(e,t,r){let i=this._readableState,n=this._writableState,o=i.length;this._transform(e,t,(e,t)=>{if(e){r(e);return}null!=t&&this.push(t),n.ended||o===i.length||i.length<i.highWaterMark?r():this[l]=r})},c.prototype._read=function(){if(this[l]){let e=this[l];this[l]=null,e()}}},78022:function(e,t,r){"use strict";let{SymbolAsyncIterator:i,SymbolIterator:n,SymbolFor:o}=r(98520),s=o("nodejs.stream.destroyed"),a=o("nodejs.stream.errored"),l=o("nodejs.stream.readable"),c=o("nodejs.stream.writable"),u=o("nodejs.stream.disturbed"),d=o("nodejs.webstream.isClosedPromise"),h=o("nodejs.webstream.controllerErrorFunction");function f(e,t=!1){var r;return!!(e&&"function"==typeof e.pipe&&"function"==typeof e.on&&(!t||"function"==typeof e.pause&&"function"==typeof e.resume)&&(!e._writableState||(null===(r=e._readableState)||void 0===r?void 0:r.readable)!==!1)&&(!e._writableState||e._readableState))}function p(e){var t;return!!(e&&"function"==typeof e.write&&"function"==typeof e.on&&(!e._readableState||(null===(t=e._writableState)||void 0===t?void 0:t.writable)!==!1))}function g(e){return!!(e&&"function"==typeof e.pipe&&e._readableState&&"function"==typeof e.on&&"function"==typeof e.write)}function m(e){return e&&(e._readableState||e._writableState||"function"==typeof e.write&&"function"==typeof e.on||"function"==typeof e.pipe&&"function"==typeof e.on)}function w(e){return!!(e&&!m(e)&&"function"==typeof e.pipeThrough&&"function"==typeof e.getReader&&"function"==typeof e.cancel)}function y(e){return!!(e&&!m(e)&&"function"==typeof e.getWriter&&"function"==typeof e.abort)}function b(e){return!!(e&&!m(e)&&"object"==typeof e.readable&&"object"==typeof e.writable)}function v(e){return w(e)||y(e)||b(e)}function _(e,t){return null!=e&&(!0===t?"function"==typeof e[i]:!1===t?"function"==typeof e[n]:"function"==typeof e[i]||"function"==typeof e[n])}function x(e){if(!m(e))return null;let t=e._writableState,r=e._readableState,i=t||r;return!!(e.destroyed||e[s]||null!=i&&i.destroyed)}function E(e){if(!p(e))return null;if(!0===e.writableEnded)return!0;let t=e._writableState;return(null==t||!t.errored)&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function C(e,t){if(!p(e))return null;if(!0===e.writableFinished)return!0;let r=e._writableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.finished)?null:!!(r.finished||!1===t&&!0===r.ended&&0===r.length))}function k(e){if(!f(e))return null;if(!0===e.readableEnded)return!0;let t=e._readableState;return!!t&&!t.errored&&("boolean"!=typeof(null==t?void 0:t.ended)?null:t.ended)}function S(e,t){if(!f(e))return null;let r=e._readableState;return(null==r||!r.errored)&&("boolean"!=typeof(null==r?void 0:r.endEmitted)?null:!!(r.endEmitted||!1===t&&!0===r.ended&&0===r.length))}function A(e){return e&&null!=e[l]?e[l]:"boolean"!=typeof(null==e?void 0:e.readable)?null:!x(e)&&f(e)&&e.readable&&!S(e)}function I(e){return e&&null!=e[c]?e[c]:"boolean"!=typeof(null==e?void 0:e.writable)?null:!x(e)&&p(e)&&e.writable&&!E(e)}function T(e,t){return m(e)?!!x(e)||!((null==t?void 0:t.readable)!==!1&&A(e)||(null==t?void 0:t.writable)!==!1&&I(e)):null}function R(e){var t,r;return m(e)?e.writableErrored?e.writableErrored:null!==(t=null===(r=e._writableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null}function O(e){var t,r;return m(e)?e.readableErrored?e.readableErrored:null!==(t=null===(r=e._readableState)||void 0===r?void 0:r.errored)&&void 0!==t?t:null:null}function P(e){if(!m(e))return null;if("boolean"==typeof e.closed)return e.closed;let t=e._writableState,r=e._readableState;return"boolean"==typeof(null==t?void 0:t.closed)||"boolean"==typeof(null==r?void 0:r.closed)?(null==t?void 0:t.closed)||(null==r?void 0:r.closed):"boolean"==typeof e._closed&&N(e)?e._closed:null}function N(e){return"boolean"==typeof e._closed&&"boolean"==typeof e._defaultKeepAlive&&"boolean"==typeof e._removedConnection&&"boolean"==typeof e._removedContLen}function M(e){return"boolean"==typeof e._sent100&&N(e)}function D(e){var t;return"boolean"==typeof e._consuming&&"boolean"==typeof e._dumped&&(null===(t=e.req)||void 0===t?void 0:t.upgradeOrConnect)===void 0}function L(e){if(!m(e))return null;let t=e._writableState,r=e._readableState,i=t||r;return!i&&M(e)||!!(i&&i.autoDestroy&&i.emitClose&&!1===i.closed)}function j(e){var t;return!!(e&&(null!==(t=e[u])&&void 0!==t?t:e.readableDidRead||e.readableAborted))}function B(e){var t,r,i,n,o,s,l,c,u,d;return!!(e&&(null!==(t=null!==(r=null!==(i=null!==(n=null!==(o=null!==(s=e[a])&&void 0!==s?s:e.readableErrored)&&void 0!==o?o:e.writableErrored)&&void 0!==n?n:null===(l=e._readableState)||void 0===l?void 0:l.errorEmitted)&&void 0!==i?i:null===(c=e._writableState)||void 0===c?void 0:c.errorEmitted)&&void 0!==r?r:null===(u=e._readableState)||void 0===u?void 0:u.errored)&&void 0!==t?t:null===(d=e._writableState)||void 0===d?void 0:d.errored))}
1e.exports={isDestroyed:x,kIsDestroyed:s,isDisturbed:j,kIsDisturbed:u,isErrored:B,kIsErrored:a,isReadable:A,kIsReadable:l,kIsClosedPromise:d,kControllerErrorFunction:h,kIsWritable:c,isClosed:P,isDuplexNodeStream:g,isFinished:T,isIterable:_,isReadableNodeStream:f,isReadableStream:w,isReadableEnded:k,isReadableFinished:S,isReadableErrored:O,isNodeStream:m,isWebStream:v,isWritable:I,isWritableNodeStream:p,isWritableStream:y,isWritableEnded:E,isWritableFinished:C,isWritableErrored:R,isServerRequest:D,isServerResponse:M,willEmitClose:L,isTransformStream:b}},96497:function(e,t,r){let i;"use strict";let n=r(25566),{ArrayPrototypeSlice:o,Error:s,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:c,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:d,Symbol:h,SymbolHasInstance:f}=r(98520);e.exports=D,D.WritableState=N;let{EventEmitter:p}=r(55445),g=r(87526).Stream,{Buffer:m}=r(82957),w=r(87875),{addAbortSignal:y}=r(77738),{getHighWaterMark:b,getDefaultHighWaterMark:v}=r(48165),{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:k,ERR_STREAM_ALREADY_FINISHED:S,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:I,ERR_UNKNOWN_ENCODING:T}=r(62040).codes,{errorOrDestroy:R}=w;function O(){}u(D.prototype,g.prototype),u(D,g);let P=h("kOnFinished");function N(e,t,i){"boolean"!=typeof i&&(i=t instanceof r(69375)),this.objectMode=!!(e&&e.objectMode),i&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?b(this,e,"writableHighWaterMark",i):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let n=!!(e&&!1===e.decodeStrings);this.decodeStrings=!n,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=U.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||!1!==e.emitClose,this.autoDestroy=!e||!1!==e.autoDestroy,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[P]=[]}function M(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function D(e){let t=this instanceof r(69375);if(!t&&!a(D,this))return new D(e);this._writableState=new N(e,this,t),e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final),"function"==typeof e.construct&&(this._construct=e.construct),e.signal&&y(e.signal,this)),g.call(this,e),w.construct(this,()=>{let e=this._writableState;e.writing||W(this,e),K(this,e)})}function L(e,t,r,i){let o;let s=e._writableState;if("function"==typeof r)i=r,r=s.defaultEncoding;else{if(r){if("buffer"!==r&&!m.isEncoding(r))throw new T(r)}else r=s.defaultEncoding;"function"!=typeof i&&(i=O)}if(null===t)throw new A;if(!s.objectMode){if("string"==typeof t)!1!==s.decodeStrings&&(t=m.from(t,r),r="buffer");else if(t instanceof m)r="buffer";else if(g._isUint8Array(t))t=g._uint8ArrayToBuffer(t),r="buffer";else throw new _("chunk",["string","Buffer","Uint8Array"],t)}return(s.ending?o=new I:s.destroyed&&(o=new k("write")),o)?(n.nextTick(i,o),R(e,o,!0),o):(s.pendingcb++,j(e,s,t,r,i))}function j(e,t,r,i,n){let o=t.objectMode?1:r.length;t.length+=o;let s=t.length<t.highWaterMark;return s||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:i,callback:n}),t.allBuffers&&"buffer"!==i&&(t.allBuffers=!1),t.allNoop&&n!==O&&(t.allNoop=!1)):(t.writelen=o,t.writecb=n,t.writing=!0,t.sync=!0,e._write(r,i,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}function B(e,t,r,i,n,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new k("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function $(e,t,r,i){--t.pendingcb,i(r),q(t),R(e,r)}function U(e,t){let r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o){R(e,new E);return}r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,t?(t.stack,r.errored||(r.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),i?n.nextTick($,e,r,t,o):$(e,r,t,o)):(r.buffered.length>r.bufferedIndex&&W(e,r),i?null!==r.afterWriteTickInfo&&r.afterWriteTickInfo.cb===o?r.afterWriteTickInfo.count++:(r.afterWriteTickInfo={count:1,cb:o,stream:e,state:r},n.nextTick(F,r.afterWriteTickInfo)):z(e,r,1,o))}function F({stream:e,state:t,count:r,cb:i}
1){return t.afterWriteTickInfo=null,z(e,t,r,i)}function z(e,t,r,i){for(t.ending||e.destroyed||0!==t.length||!t.needDrain||(t.needDrain=!1,e.emit("drain"));r-- >0;)t.pendingcb--,i();t.destroyed&&q(t),K(e,t)}function q(e){var t,r;if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){let{chunk:i,callback:n}=e.buffered[r],o=e.objectMode?1:i.length;e.length-=o,n(null!==(t=e.errored)&&void 0!==t?t:new k("write"))}let i=e[P].splice(0);for(let t=0;t<i.length;t++)i[t](null!==(r=e.errored)&&void 0!==r?r:new k("end"));M(e)}function W(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:r,bufferedIndex:i,objectMode:n}=t,s=r.length-i;if(!s)return;let a=i;if(t.bufferProcessing=!0,s>1&&e._writev){t.pendingcb-=s-1;let i=t.allNoop?O:e=>{for(let t=a;t<r.length;++t)r[t].callback(e)},n=t.allNoop&&0===a?r:o(r,a);n.allBuffers=t.allBuffers,B(e,t,!0,t.length,n,"",i),M(t)}else{do{let{chunk:i,encoding:o,callback:s}=r[a];r[a++]=null,B(e,t,!1,n?1:i.length,i,o,s)}while(a<r.length&&!t.writing);a===r.length?M(t):a>256?(r.splice(0,a),t.bufferedIndex=0):t.bufferedIndex=a}t.bufferProcessing=!1}function H(e){return e.ending&&!e.destroyed&&e.constructed&&0===e.length&&!e.errored&&0===e.buffered.length&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function V(e,t){let r=!1;function i(i){if(r){R(e,null!=i?i:E());return}if(r=!0,t.pendingcb--,i){let r=t[P].splice(0);for(let e=0;e<r.length;e++)r[e](i);R(e,i,t.sync)}else H(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,n.nextTick(G,e,t))}t.sync=!0,t.pendingcb++;try{e._final(i)}catch(e){i(e)}t.sync=!1}function Z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,V(e,t)))}function K(e,t,r){H(t)&&(Z(e,t),0===t.pendingcb&&(r?(t.pendingcb++,n.nextTick((e,t)=>{H(t)?G(e,t):t.pendingcb--},e,t)):H(t)&&(t.pendingcb++,G(e,t))))}function G(e,t){t.pendingcb--,t.finished=!0;let r=t[P].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||!1===t.readable))&&e.destroy()}}N.prototype.getBuffer=function(){return o(this.buffered,this.bufferedIndex)},l(N.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),l(D,f,{__proto__:null,value:function(e){return!!a(this,e)||this===D&&e&&e._writableState instanceof N}}),D.prototype.pipe=function(){R(this,new C)},D.prototype.write=function(e,t,r){return!0===L(this,e,t,r)},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||W(this,e))},D.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=d(e)),!m.isEncoding(e))throw new T(e);return this._writableState.defaultEncoding=e,this},D.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new x("_write()")},D.prototype._writev=null,D.prototype.end=function(e,t,r){let i;let o=this._writableState;if("function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e){let r=L(this,e,t);r instanceof s&&(i=r)}return o.corked&&(o.corked=1,this.uncork()),i||(o.errored||o.ending?o.finished?i=new S("end"):o.destroyed&&(i=new k("end")):(o.ending=!0,K(this,o,!0),o.ended=!0)),"function"==typeof r&&(i||o.finished?n.nextTick(r,i):o[P].push(r)),this},c(D.prototype,{closed:{__proto__:null,get(){return!!this._writableState&&this._writableState.closed}},destroyed:{__proto__:null,get(){return!!this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&!1!==e.writable&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return!!this._writableState&&this._writableState.finished}},writableObjectMode:{__proto__:null,get(){return!!this._writableState&&this._writableState.objectMode}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return!!this._writableState&&this._writableState.ending}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return!!e&&!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(!1!==this._writableState.writable&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});let Y=w.destroy;function J(){return void 0===i&&(i={}),i}D.prototype.destroy=function(e,t){let r=this._writableState;return!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[P].length)&&n.nextTick(q,r),Y.call(this,e,t),this},D.prototype._undestroy=w.undestroy,D.prototype._destroy=function(e,t){t(e)},D.prototype[p.captureRejectionSymbol]=function(e){this.destroy(e)},D.fromWeb=function(e,t){return J().newStreamWritableFromWritableStream(e,t)},D.toWeb=function(e){return J().newWritableStreamFromStreamWritable(e)}},51175:function(e,t,r){"use strict";let{ArrayIsArray:i,ArrayPrototypeIncludes:n,ArrayPrototypeJoin:o,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:c,NumberMIN_SAFE_INTEGER:u,NumberParseInt:d,ObjectPrototypeHasOwnProperty:h,RegExpPrototypeExec:f,String:p,StringPrototypeToUpperCase:g,StringPrototypeTrim:m}=r(98520),{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:b,ERR_INVALID_ARG_VALUE:v,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:x}}=r(62040),{normalizeEncoding:E}
1=r(52208),{isAsyncFunction:C,isArrayBufferView:k}=r(52208).types,S={};function A(e){return e===(0|e)}function I(e){return e===e>>>0}let T=/^[0-7]+$/,R="must be a 32-bit unsigned integer or an octal string";function O(e,t,r){if(void 0===e&&(e=r),"string"==typeof e){if(null===f(T,e))throw new v(t,e,R);e=d(e,8)}return M(e,t),e}let P=w((e,t,r=u,i=c)=>{if("number"!=typeof e)throw new b(t,"number",e);if(!a(e))throw new _(t,"an integer",e);if(e<r||e>i)throw new _(t,`>= ${r} && <= ${i}`,e)}),N=w((e,t,r=-2147483648,i=2147483647)=>{if("number"!=typeof e)throw new b(t,"number",e);if(!a(e))throw new _(t,"an integer",e);if(e<r||e>i)throw new _(t,`>= ${r} && <= ${i}`,e)}),M=w((e,t,r=!1)=>{if("number"!=typeof e)throw new b(t,"number",e);if(!a(e))throw new _(t,"an integer",e);let i=r?1:0,n=4294967295;if(e<i||e>n)throw new _(t,`>= ${i} && <= ${n}`,e)});function D(e,t){if("string"!=typeof e)throw new b(t,"string",e)}function L(e,t,r,i){if("number"!=typeof e)throw new b(t,"number",e);if(null!=r&&e<r||null!=i&&e>i||(null!=r||null!=i)&&l(e))throw new _(t,`${null!=r?`>= ${r}`:""}${null!=r&&null!=i?" && ":""}${null!=i?`<= ${i}`:""}`,e)}let j=w((e,t,r)=>{if(!n(r,e))throw new v(t,e,"must be one of: "+o(s(r,e=>"string"==typeof e?`'${e}'`:p(e)),", "))});function B(e,t){if("boolean"!=typeof e)throw new b(t,"boolean",e)}function $(e,t,r){return null!=e&&h(e,t)?e[t]:r}let U=w((e,t,r=null)=>{let n=$(r,"allowArray",!1),o=$(r,"allowFunction",!1);if(!$(r,"nullable",!1)&&null===e||!n&&i(e)||"object"!=typeof e&&(!o||"function"!=typeof e))throw new b(t,"Object",e)}),F=w((e,t)=>{if(null!=e&&"object"!=typeof e&&"function"!=typeof e)throw new b(t,"a dictionary",e)}),z=w((e,t,r=0)=>{if(!i(e))throw new b(t,"Array",e);if(e.length<r)throw new v(t,e,`must be longer than ${r}`)});function q(e,t){z(e,t);for(let r=0;r<e.length;r++)D(e[r],`${t}[${r}]`)}function W(e,t){z(e,t);for(let r=0;r<e.length;r++)B(e[r],`${t}[${r}]`)}function H(e,t){z(e,t);for(let r=0;r<e.length;r++){let i=e[r],n=`${t}[${r}]`;if(null==i)throw new b(n,"AbortSignal",i);Y(i,n)}}function V(e,t="signal"){if(D(e,t),void 0===S[e]){if(void 0!==S[g(e)])throw new x(e+" (signals must use all capital letters)");throw new x(e)}}let Z=w((e,t="buffer")=>{if(!k(e))throw new b(t,["Buffer","TypedArray","DataView"],e)});function K(e,t){let r=E(t),i=e.length;if("hex"===r&&i%2!=0)throw new v("encoding",t,`is invalid for data of length ${i}`)}function G(e,t="Port",r=!0){if("number"!=typeof e&&"string"!=typeof e||"string"==typeof e&&0===m(e).length||+e!=+e>>>0||e>65535||0===e&&!r)throw new y(t,e,r);return 0|e}let Y=w((e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new b(t,"AbortSignal",e)}),J=w((e,t)=>{if("function"!=typeof e)throw new b(t,"Function",e)}),Q=w((e,t)=>{if("function"!=typeof e||C(e))throw new b(t,"Function",e)}),X=w((e,t)=>{if(void 0!==e)throw new b(t,"undefined",e)});function ee(e,t,r){if(!n(r,e))throw new b(t,`('${o(r,"|")}')`,e)}let et=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function er(e,t){if(void 0===e||!f(et,e))throw new v(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function ei(e){if("string"==typeof e)return er(e,"hints"),e;if(i(e)){let t=e.length,r="";if(0===t)return r;for(let i=0;i<t;i++){let n=e[i];er(n,"hints"),r+=n,i!==t-1&&(r+=", ")}return r}throw new v("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}e.exports={isInt32:A,isUint32:I,parseFileMode:O,validateArray:z,validateStringArray:q,validateBooleanArray:W,validateAbortSignalArray:H,validateBoolean:B,validateBuffer:Z,validateDictionary:F,validateEncoding:K,validateFunction:J,validateInt32:N,validateInteger:P,validateNumber:L,validateObject:U,validateOneOf:j,validatePlainFunction:Q,validatePort:G,validateSignalName:V,validateString:D,validateUint32:M,validateUndefined:X,validateUnion:ee,validateAbortSignal:Y,validateLinkHeaderValue:ei}},42287:function(e,t,r){"use strict";let i=r(73225),n=r(85256),o=i.Readable.destroy;e.exports=i.Readable,e.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer,e.exports._isUint8Array=i._isUint8Array,e.exports.isDisturbed=i.isDisturbed,e.exports.isErrored=i.isErrored,e.exports.isReadable=i.isReadable,e.exports.Readable=i.Readable,e.exports.Writable=i.Writable,e.exports.Duplex=i.Duplex,e.exports.Transform=i.Transform,e.exports.PassThrough=i.PassThrough,e.exports.addAbortSignal=i.addAbortSignal,e.exports.finished=i.finished,e.exports.destroy=i.destroy,e.exports.destroy=o,e.exports.pipeline=i.pipeline,e.exports.compose=i.compose,Object.defineProperty(i,"promises",{configurable:!0,enumerable:!0,get:()=>n}),e.exports.Stream=i.Stream,e.exports.default=e.exports},62040:function(e,t,r){"use strict";let{format:i,inspect:n,AggregateError:o}=r(52208),s=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),l=["string","function","number","object","Function","Object","boolean","bigint","symbol"],c=/^([A-Z][a-z0-9]*)+$/,u="__node_internal_",d={};function h(e,t){if(!e)throw new d.ERR_INTERNAL_ASSERTION(t)}function f(e){let t="",r=e.length,i="-"===e[0]?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function p(e,t,r){if("function"==typeof t)return h(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`),t(...r);let n=(t.match(/%[dfijoOs]/g)||[]).length;
1return(h(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),0===r.length)?t:i(t,...r)}function g(e,t,r){r||(r=Error);class i extends r{constructor(...r){super(p(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(i.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),i.prototype.code=e,i.prototype[a]=!0,d[e]=i}function m(e){let t=u+e.name;return Object.defineProperty(e,"name",{value:t}),e}function w(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new s([t,e],t.message);return r.code=t.code,r}return e||t}class y extends Error{constructor(e="The operation was aborted",t){if(void 0!==t&&"object"!=typeof t)throw new d.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}g("ERR_ASSERTION","%s",Error),g("ERR_INVALID_ARG_TYPE",(e,t,r)=>{h("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";e.endsWith(" argument")?i+=`${e} `:i+=`"${e}" ${e.includes(".")?"property":"argument"} `,i+="must be ";let o=[],s=[],a=[];for(let e of t)h("string"==typeof e,"All expected entries have to be of type string"),l.includes(e)?o.push(e.toLowerCase()):c.test(e)?s.push(e):(h("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(s.length>0){let e=o.indexOf("object");-1!==e&&(o.splice(o,e,1),s.push("Object"))}if(o.length>0){switch(o.length){case 1:i+=`of type ${o[0]}`;break;case 2:i+=`one of type ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();i+=`one of type ${o.join(", ")}, or ${e}`}}(s.length>0||a.length>0)&&(i+=" or ")}if(s.length>0){switch(s.length){case 1:i+=`an instance of ${s[0]}`;break;case 2:i+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let e=s.pop();i+=`an instance of ${s.join(", ")}, or ${e}`}}a.length>0&&(i+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(i+="an "),i+=`${a[0]}`;break;case 2:i+=`one of ${a[0]} or ${a[1]}`;break;default:{let e=a.pop();i+=`one of ${a.join(", ")}, or ${e}`}}if(null==r)i+=`. Received ${r}`;else if("function"==typeof r&&r.name)i+=`. Received function ${r.name}`;else if("object"==typeof r){var u;if(null!==(u=r.constructor)&&void 0!==u&&u.name)i+=`. Received an instance of ${r.constructor.name}`;else{let e=n(r,{depth:-1});i+=`. Received ${e}`}}else{let e=n(r,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof r} (${e})`}return i},TypeError),g("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let i=n(t);i.length>128&&(i=i.slice(0,128)+"...");let o=e.includes(".")?"property":"argument";return`The ${o} '${e}' ${r}. Received ${i}`},TypeError),g("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var i;let n=null!=r&&null!==(i=r.constructor)&&void 0!==i&&i.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${n}.`},TypeError),g("ERR_MISSING_ARGS",(...e)=>{let t;h(e.length>0,"At least one arg needs to be specified");let r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}}return`${t} must be specified`},TypeError),g("ERR_OUT_OF_RANGE",(e,t,r)=>{let i;return h(t,'Missing "range" argument'),Number.isInteger(r)&&Math.abs(r)>4294967296?i=f(String(r)):"bigint"==typeof r?(i=String(r),(r>2n**32n||r<-(2n**32n))&&(i=f(i)),i+="n"):i=n(r),`The value of "${e}" is out of range. It must be ${t}. Received ${i}`},RangeError),g("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),g("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),g("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),g("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),g("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),g("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),g("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),g("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),g("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),g("ERR_STREAM_WRITE_AFTER_END","write after end",Error),g("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),e.exports={AbortError:y,aggregateTwoErrors:m(w),hideStackFrames:m,codes:d}},98520:function(e){"use strict";e.exports={ArrayIsArray:e=>Array.isArray(e),ArrayPrototypeIncludes:(e,t)=>e.includes(t),ArrayPrototypeIndexOf:(e,t)=>e.indexOf(t),ArrayPrototypeJoin:(e,t)=>e.join(t),ArrayPrototypeMap:(e,t)=>e.map(t),ArrayPrototypePop:(e,t)=>e.pop(t),ArrayPrototypePush:(e,t)=>e.push(t),ArrayPrototypeSlice:(e,t,r)=>e.slice(t,r),Error,FunctionPrototypeCall:(e,t,...r)=>e.call(t,...r),FunctionPrototypeSymbolHasInstance:(e,t)=>Function.prototype[Symbol.hasInstance].call(e,t),MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties:(e,t)=>Object.defineProperties(e,t),ObjectDefineProperty:(e,t,r)=>Object.defineProperty(e,t,r),ObjectGetOwnPropertyDescriptor:(e,t)=>
1Object.getOwnPropertyDescriptor(e,t),ObjectKeys:e=>Object.keys(e),ObjectSetPrototypeOf:(e,t)=>Object.setPrototypeOf(e,t),Promise,PromisePrototypeCatch:(e,t)=>e.catch(t),PromisePrototypeThen:(e,t,r)=>e.then(t,r),PromiseReject:e=>Promise.reject(e),PromiseResolve:e=>Promise.resolve(e),ReflectApply:Reflect.apply,RegExpPrototypeTest:(e,t)=>e.test(t),SafeSet:Set,String,StringPrototypeSlice:(e,t,r)=>e.slice(t,r),StringPrototypeToLowerCase:e=>e.toLowerCase(),StringPrototypeToUpperCase:e=>e.toUpperCase(),StringPrototypeTrim:e=>e.trim(),Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet:(e,t,r)=>e.set(t,r),Boolean:Boolean,Uint8Array}},52208:function(e,t,r){"use strict";let i=r(82957),{kResistStopPropagation:n,SymbolDispose:o}=r(98520),AbortSignal=globalThis.AbortSignal||r(78918).AbortSignal,s=globalThis.AbortController||r(78918).AbortController,a=Object.getPrototypeOf(async function(){}).constructor,l=globalThis.Blob||i.Blob,c=void 0!==l?function(e){return e instanceof l}:function(e){return!1},u=(e,t)=>{if(void 0!==e&&(null===e||"object"!=typeof e||!("aborted"in e)))throw new ER
1R_INVALID_ARG_TYPE(t,"AbortSignal",e)},d=(e,t)=>{if("function"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"Function",e)};class h extends Error{constructor(e){if(!Array.isArray(e))throw TypeError(`Expected input to be an Array, got ${typeof e}`);let t="";for(let r=0;r<e.length;r++)t+=` ${e[r].stack} 2`;super(t),this.name="AggregateError",this.errors=e}}e.exports={AggregateError:h,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){t||(t=!0,e.apply(this,r))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}},promisify:e=>new Promise((t,r)=>{e((e,...i)=>e?r(e):t(...i))}),debuglog:()=>function(){},format:(e,...t)=>e.replace(/%([sdifj])/g,function(...[e,r]){let i=t.shift();if("f"===r)return i.toFixed(6);if("j"===r)return JSON.stringify(i);if("s"!==r||"object"!=typeof i)return i.toString();{let e=i.constructor!==Object?i.constructor.name:"";return`${e} {}`.trim()}}),inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}},types:{isAsyncFunction:e=>e instanceof a,isArrayBufferView:e=>ArrayBuffer.isView(e)},isBlob:c,deprecate:(e,t)=>e,addAbortListener:r(55445).addAbortListener||function(e,t){let r;
2if(void 0===e)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);return u(e,"signal"),d(t,"listener"),e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[n]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[o](){var e;null===(e=r)||void 0===e||e()}}},AbortSignalAny:AbortSignal.any||function(e){if(1===e.length)return e[0];let t=new s,r=()=>t.abort();return e.forEach(e=>{u(e,"signals"),e.addEventListener("abort",r,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",r))},{once:!0}),t.signal}},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},73225:function(e,t,r){"use strict";let{Buffer:i}=r(82957),{ObjectDefineProperty:n,ObjectKeys:o,ReflectApply:s}=r(98520),{promisify:{custom:a}}=r(52208),{streamReturningOperators:l,promiseReturningOperators:c}=r(76846),{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=r(62040),d=r(12562),{setDefaultHighWaterMark:h,getDefaultHighWaterMark:f}=r(48165),{pipeline:p}=r(44699),{destroyer:g}=r(87875),m=r(95902),w=r(85256),y=r(78022),b=e.exports=r(87526).Stream;for(let e of(b.isDestroyed=y.isDestroyed,b.isDisturbed=y.isDisturbed,b.isErrored=y.isErrored,b.isReadable=y.isReadable,b.isWritable=y.isWritable,b.Readable=r(76029),o(l))){let t=l[e];function v(...e){if(new.target)throw u();return b.Readable.from(s(t,this,e))}n(v,"name",{__proto__:null,value:t.name}),n(v,"length",{__proto__:null,value:t.length}),n(b.Readable.prototype,e,{__proto__:null,value:v,enumerable:!1,configurable:!0,writable:!0})}for(let e of o(c)){let t=c[e];function v(...e){if(new.target)throw u();return s(t,this,e)}n(v,"name",{__proto__:null,value:t.name}),n(v,"length",{__proto__:null,value:t.length}),n(b.Readable.prototype,e,{__proto__:null,value:v,enumerable:!1,configurable:!0,writable:!0})}b.Writable=r(96497),b.Duplex=r(69375),b.Transform=r(32625),b.PassThrough=r(97900),b.pipeline=p;let{addAbortSignal:_}=r(77738);b.addAbortSignal=_,b.finished=m,b.destroy=g,b.compose=d,b.setDefaultHighWaterMark=h,b.getDefaultHighWaterMark=f,n(b,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>w}),n(p,a,{__proto__:null,enumerable:!0,get:()=>w.pipeline}),n(m,a,{__proto__:null,enumerable:!0,get:()=>w.finished}),b.Stream=b,b._isUint8Array=function(e){return e instanceof Uint8Array},b._uint8ArrayToBuffer=function(e){return i.from(e.buffer,e.byteOffset,e.byteLength)}},85256:function(e,t,r){"use strict";let{ArrayPrototypePop:i,Promise:n}=r(98520),{isIterable:o,isNodeStream:s,isWebStream:a}=r(78022),{pipelineImpl:l}=r(44699),{finished:c}=r(95902);function u(...e){return new n((t,r)=>{let n,c;let u=e[e.length-1];if(u&&"object"==typeof u&&!s(u)&&!o(u)&&!a(u)){let t=i(e);n=t.signal,c=t.end}l(e,(e,i)=>{e?r(e):t(i)},{signal:n,end:c})})}r(73225),e.exports={finished:c,pipeline:u}},18045:function(e,t,r){"use strict";r.d(t,{$e:function(){return g},Ad:function(){return a.Ad},BN:function(){return p},RW:function(){return b},Re:function(){return v},dr:function(){return m},hG:function(){return y},rb:function(){return c},sX:function(){return u},x7:function(){return w},zc:function(){return d}});var i=r(56127),n=r(6089),o=r.n(n),s=r(31686),a=r(54689);let l=o();function c(e){return l.encode(e)}function u(e){return l.decode(e)}function d(e){return l.encode(JSON.stringify(e))}function h(e){let t,r=!1,i=0;try{t=window[e],r=!0,i=t.length;let n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(t){let e=t;return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&r&&0!==i}}class f{constructor(){(0,i.Z)(this,"store",new Map)}getItem(e){return this.store.get(e)||null}setItem(e,t){this.store.set(e,t)}removeItem(e){this.store.delete(e)}}class p{constructor(e,t){(0,i.Z)(this,"storage",void 0),(0,i.Z)(this,"_storeKey",void 0),this.storage=t,this._storeKey=e;try{t.getItem(e)||this.resetStore()}catch(e){}}static getInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"local";if(!this.instanceMap.has(e)){let r;r="local"===t&&h("localStorage")?window.localStorage:"session"===t&&h("sessionStorage")?window.sessionStorage:new f,this.instanceMap.set(e,new this(e,r))}return this.instanceMap.get(e)}toJSON(){return this.storage.getItem(this._storeKey)}resetStore(){let e=this.getStore();return this.storage.removeItem(this._storeKey),e}getStore(){return JSON.parse(this.storage.getItem(this._storeKey)||"{}")}get(e){return JSON.parse(this.storage.getItem(this._storeKey)||"{}")[e]}set(e,t){let r=JSON.parse(this.storage.getItem(this._storeKey)||"{}");r[e]=t,this.storage.setItem(this._storeKey,JSON.stringify(r))}}(0,i.Z)(p,"instanceMap",new Map);let g={POPUP:"popup",REDIRECT:"redirect"},m=(0,s.Z)((0,s.Z)({},a.X_),a.Ad),w={SECP256K1:"secp256k1",ED25519:"ed25519"},y={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",LINE:"line",GITHUB:"github",KAKAO:"kakao",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",WECHAT:"wechat",EMAIL_PASSWORDLESS:"email_passwordless",SMS_PASSWORDLESS:"sms_passwordless",WEBAUTHN:"webauthn",JWT:"jwt"},b={LOGIN:"login",ENABLE_MFA:"enable_mfa",MANAGE_MFA:"manage_mfa",MODIFY_SOCIAL_FACTOR:"modify_social_factor"},v={PRODUCTION:"production",DEVELOPMENT:"development",STAGING:"staging",TESTING:"testing"}},12238:function(e,t,r){"use strict";function i(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function n(){let e=i();return e.subtle||e.webkitSubtle}function o(){return!!i()&&!!n()}
2Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=i,t.getSubtleCrypto=n,t.isBrowserCryptoAvailable=o},33531:function(e,t,r){"use strict";var i=r(25566);function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function o(){return void 0!==i&&void 0!==i.versions&&void 0!==i.versions.node}function s(){return!n()&&!o()}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=n,t.isNode=o,t.isBrowser=s},13303:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(33509);i.__exportStar(r(12238),t),i.__exportStar(r(33531),t)},93514:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});class i{}},96756:function(e,t,r){"use strict";r.d(t,{C$:function(){return c},Lx:function(){return l}});var i=r(55445),n=r(40537),o=r(93514);class s extends o.q{constructor(e){super()}}let a=n.FIVE_SECONDS,l={pulse:"heartbeat_pulse"};class c extends s{constructor(e){super(e),this.events=new i.EventEmitter,this.interval=a,this.interval=e?.interval||a}static async init(e){let t=new c(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,n.toMiliseconds)(this.interval))}pulse(){this.events.emit(l.pulse)}}},5108:function(e,t){var r="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function i(e){return e&&DataView.prototype.isPrototypeOf(e)}if(r.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function f(e){var t=new FileReader,r=d(t);return t.readAsText(e),r}function p(e){for(var t=new Uint8Array(e),r=Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join("")}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&i(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(p(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=s(e),t=a(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[s(e)]},c.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},c.prototype.set=function(e,t){this.map[s(e)]=a(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),l(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),l(e)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);
2var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e){var t=e.toUpperCase();return w.indexOf(t)>-1?t:e}function b(e,t){var r=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=y(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(n))}}),t}function _(e){var t=new c;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),i=r.shift().trim();if(i){var n=r.join(":").trim();t.append(i,n)}}),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];x.redirect=function(e,t){if(-1===E.indexOf(t))throw RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function C(e,i){return new Promise(function(n,o){var s=new b(e,i);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:_(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL"),n(new x("response"in a?a.response:a.responseText,e))},a.onerror=function(){o(TypeError("Network request failed"))},a.ontimeout=function(){o(TypeError("Network request failed"))},a.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),s.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",l)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}C.polyfill=!0,e.fetch||(e.fetch=C,e.Headers=c,e.Request=b,e.Response=x),t.Headers=c,t.Request=b,t.Response=x,t.fetch=C,Object.defineProperty(t,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var n=i;(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},38979:function(e,t,r){"use strict";r.d(t,{r:function(){return o}});var i=r(55445),n=r(5276);class o extends n.IJsonRpcProvider{constructor(e){super(e),this.events=new i.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict((0,n.formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,n.getBigIntRpcId)().toString()),t)}async requestStrict(e,t){return new Promise(async(r,i)=>{if(!this.connection.connected)try{await this.open()}catch(e){i(e)}this.events.on(`${e.id}`,e=>{(0,n.isJsonRpcError)(e)?i(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){i(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),(0,n.isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}
2async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}},44265:function(e,t,r){"use strict";r.d(t,{CA:function(){return n},JV:function(){return a},O4:function(){return i},dQ:function(){return o},xK:function(){return s}});let i="INTERNAL_ERROR",n="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[i]:{code:-32603,message:"Internal error"},[n]:{code:-32e3,message:"Server error"}},a=n},23497:function(e,t,r){"use strict";var i=r(13303);r.o(i,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return i.IJsonRpcProvider}}),r.o(i,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return i.formatJsonRpcError}}),r.o(i,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return i.formatJsonRpcRequest}}),r.o(i,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return i.formatJsonRpcResult}}),r.o(i,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return i.getBigIntRpcId}}),r.o(i,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return i.isHttpUrl}}),r.o(i,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return i.isJsonRpcError}}),r.o(i,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return i.isJsonRpcRequest}}),r.o(i,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return i.isJsonRpcResponse}}),r.o(i,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return i.isJsonRpcResult}}),r.o(i,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return i.isLocalhostUrl}}),r.o(i,"isReactNative")&&r.d(t,{isReactNative:function(){return i.isReactNative}}),r.o(i,"isWsUrl")&&r.d(t,{isWsUrl:function(){return i.isWsUrl}}),r.o(i,"payloadId")&&r.d(t,{payloadId:function(){return i.payloadId}})},28418:function(e,t,r){"use strict";r.d(t,{CX:function(){return a},L2:function(){return s},by:function(){return o},i5:function(){return n}});var i=r(44265);function n(e){return i.dQ.includes(e)}function o(e){return Object.keys(i.xK).includes(e)?i.xK[e]:i.xK[i.JV]}function s(e){return Object.values(i.xK).find(t=>t.code===e)||i.xK[i.JV]}function a(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${r} RPC url at ${t}`):e}},74947:function(e,t,r){"use strict";r.d(t,{CS:function(){return s},RI:function(){return c},o0:function(){return o},sT:function(){return a},tm:function(){return l}});var i=r(28418),n=r(44265);
2function o(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function s(e=6){return BigInt(o(e))}function a(e,t,r){return{id:r||o(),jsonrpc:"2.0",method:e,params:t}}function l(e,t){return{id:e,jsonrpc:"2.0",result:t}}function c(e,t,r){return{id:e,jsonrpc:"2.0",error:u(t,r)}}function u(e,t){return void 0===e?(0,i.by)(n.O4):("string"==typeof e&&(e=Object.assign(Object.assign({},(0,i.by)(n.CA)),{message:e})),void 0!==t&&(e.data=t),(0,i.i5)(e.code)&&(e=(0,i.L2)(e.code)),e)}},5276:function(e,t,r){"use strict";r.d(t,{IJsonRpcProvider:function(){return s.x0},formatJsonRpcError:function(){return o.RI},formatJsonRpcRequest:function(){return o.sT},formatJsonRpcResult:function(){return o.tm},getBigIntRpcId:function(){return o.CS},isHttpUrl:function(){return a.jK},isJsonRpcError:function(){return l.jg},isJsonRpcRequest:function(){return l.DW},isJsonRpcResponse:function(){return l.u},isJsonRpcResult:function(){return l.k4},isLocalhostUrl:function(){return a.JF},isWsUrl:function(){return a.UZ},parseConnectionError:function(){return i.CX},payloadId:function(){return o.o0}}),r(44265);var i=r(28418),n=r(23497);r.o(n,"IJsonRpcProvider")&&r.d(t,{IJsonRpcProvider:function(){return n.IJsonRpcProvider}}),r.o(n,"formatJsonRpcError")&&r.d(t,{formatJsonRpcError:function(){return n.formatJsonRpcError}}),r.o(n,"formatJsonRpcRequest")&&r.d(t,{formatJsonRpcRequest:function(){return n.formatJsonRpcRequest}}),r.o(n,"formatJsonRpcResult")&&r.d(t,{formatJsonRpcResult:function(){return n.formatJsonRpcResult}}),r.o(n,"getBigIntRpcId")&&r.d(t,{getBigIntRpcId:function(){return n.getBigIntRpcId}}),r.o(n,"isHttpUrl")&&r.d(t,{isHttpUrl:function(){return n.isHttpUrl}}),r.o(n,"isJsonRpcError")&&r.d(t,{isJsonRpcError:function(){return n.isJsonRpcError}}),r.o(n,"isJsonRpcRequest")&&r.d(t,{isJsonRpcRequest:function(){return n.isJsonRpcRequest}}),r.o(n,"isJsonRpcResponse")&&r.d(t,{isJsonRpcResponse:function(){return n.isJsonRpcResponse}}),r.o(n,"isJsonRpcResult")&&r.d(t,{isJsonRpcResult:function(){return n.isJsonRpcResult}}),r.o(n,"isLocalhostUrl")&&r.d(t,{isLocalhostUrl:function(){return n.isLocalhostUrl}}),r.o(n,"isReactNative")&&r.d(t,{isReactNative:function(){return n.isReactNative}}),r.o(n,"isWsUrl")&&r.d(t,{isWsUrl:function(){return n.isWsUrl}}),r.o(n,"payloadId")&&r.d(t,{payloadId:function(){return n.payloadId}});var o=r(74947),s=r(75826),a=r(20276),l=r(65505)},75826:function(e,t,r){"use strict";r.d(t,{x0:function(){return o}});class i{}class n extends i{constructor(){super()}}class o extends n{constructor(e){super()}}},20276:function(e,t,r){"use strict";r.d(t,{JF:function(){return c},UZ:function(){return l},jK:function(){return a}});let i="^https?:",n="^wss?:";function o(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}function s(e,t){let r=o(e);return void 0!==r&&new RegExp(t).test(r)}function a(e){return s(e,i)}function l(e){return s(e,n)}function c(e){return RegExp("wss?://localhost(:d{2,5})?").test(e)}},65505:function(e,t,r){"use strict";function i(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function n(e){return i(e)&&"method"in e}function o(e){return i(e)&&(s(e)||a(e))}function s(e){return"result"in e}function a(e){return"error"in e}r.d(t,{DW:function(){return n},jg:function(){return a},k4:function(){return s},u:function(){return o}})},75646:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var i=r(55445),n=r(80577),o=r(5276);let s=()=>"u">typeof WebSocket||"u">typeof r.g&&"u">typeof r.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket,a=e=>e.split("?")[0],l=10,c="u">typeof WebSocket?WebSocket:"u">typeof r.g&&"u">typeof r.g.WebSocket?r.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:r(16854);class u{constructor(e){if(this.url=e,this.events=new i.EventEmitter,this.registering=!1,!(0,o.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>
2{if(typeof this.socket>"u"){t(Error("Connection already closed"));return}this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,n.u)(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!(0,o.isWsUrl)(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(Error("WebSocket connection is missing or invalid"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,r)=>{let i=new URLSearchParams(e).get("origin"),n=(0,o.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:!(0,o.isLocalhostUrl)(e)},a=new c(e,[],n);s()?a.onerror=e=>{let t=e;r(this.emitError(t.error))}:a.on("error",e=>{r(this.emitError(e))}),a.onopen=()=>{this.onOpen(a),t(a)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,n.D)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),i=r.message||r.toString(),n=(0,o.formatJsonRpcError)(e,i);this.events.emit("payload",n)}parseError(e,t=this.url){return(0,o.parseConnectionError)(e,a(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>l&&this.events.setMaxListeners(l)}emitError(e){let t=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${a(this.url)}`));return this.events.emit("register_error",t),t}}},16854:function(e){"use strict";e.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},15133:function(e,t,r){"use strict";r.d(t,{Ep:function(){return I},Fd:function(){return S},Rt:function(){return O},gw:function(){return n.a},jI:function(){return E}});var i=r(97435),n=r.n(i),o=r(80577);let s={level:"info"},a="custom_context",l=1024e3;class c{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class u{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let t=new c(e);if(t.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=t):this.head=t,this.tail=t,this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let t=e.value;return e=e.next,{done:!1,value:t}}}}}class d{constructor(e,t=l){this.level=e??"error",this.levelValue=i.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new u(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===i.levels.values.error?console.error(e):t===i.levels.values.warn?console.warn(e):t===i.levels.values.debug?console.debug(e):t===i.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append((0,o.u)({timestamp:new Date().toISOString(),log:e}));let t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new u(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let t=this.getLogArray();return t.push((0,o.u)({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class h{constructor(e,t=l){this.baseChunkLogger=new d(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let t=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement("a");r.href=t,r.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}}class f{constructor(e,t=l){this.baseChunkLogger=new d(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var p=Object.defineProperty,g=Object.defineProperties,m=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>
2{for(var r in t||(t={}))y.call(t,r)&&v(e,r,t[r]);if(w)for(var r of w(t))b.call(t,r)&&v(e,r,t[r]);return e},x=(e,t)=>g(e,m(t));function E(e){return x(_({},e),{level:e?.level||s.level})}function C(e,t=a){return e[t]||""}function k(e,t,r=a){return e[r]=t,e}function S(e,t=a){return typeof e.bindings>"u"?C(e,t):e.bindings().context||""}function A(e,t,r=a){let i=S(e,r);return i.trim()?`${i}/${t}`:t}function I(e,t,r=a){let i=A(e,t,r);return k(e.child({context:i}),i,r)}function T(e){var t,r;let i=new h(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:n()(x(_({},e.opts),{level:"trace",browser:x(_({},null==(r=e.opts)?void 0:r.browser),{write:e=>i.write(e)})})),chunkLoggerController:i}}function R(e){var t;let r=new f(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:n()(x(_({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}function O(e){return"u">typeof e.loggerOverride&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:"u">typeof window?T(e):R(e)}},21086:function(e,t,r){"use strict";r.d(t,{iO:function(){return i}});let i={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}}},94921:function(e,t,r){"use strict";r.d(t,{encodeIss:function(){return C},generateKeyPair:function(){return I},signJWT:function(){return T}});var i=r(48280),n=r(78539),o=r(40537);let s="EdDSA",a="JWT",l=".",c="base64url",u="utf8",d="utf8",h=":",f="did",p="key",g="base58btc",m="z",w="K36",y=32;var b=r(8578),v=r(71243),_=r(93870),x=r(80577);function E(e){return(0,v.B)((0,_.m)((0,x.u)(e),u),c)}function C(e){let t=(0,_.m)(w,g);return[f,p,m+(0,v.B)((0,b.z)([t,e]),g)].join(h)}function k(e){return(0,v.B)(e,c)}function S(e){return(0,_.m)([E(e.header),E(e.payload)].join(l),d)}function A(e){return[E(e.header),E(e.payload),k(e.signature)].join(l)}function I(e=(0,n.randomBytes)(y)){return i._w(e)}async function T(e,t,r,n,l=(0,o.fromMiliseconds)(Date.now())){let c={alg:s,typ:a},u=C(n.publicKey),d=l+r,h={iss:u,sub:e,aud:t,iat:l,exp:d},f=S({header:c,payload:h});return A({header:c,payload:h,signature:i.Xx(n.secretKey,f)})}r(48544)},48544:function(){},80577:function(e,t,r){"use strict";r.d(t,{D:function(){return o},u:function(){return s}});let i=e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t),n=e=>{let t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g;return JSON.parse(e.replace(t,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t)};function o(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return n(e)}catch(t){return e}}function s(e){return"string"==typeof e?e:i(e)||""}},70213:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(33509);i.__exportStar(r(12658),t),i.__exportStar(r(75127),t)},12658:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_THOUSAND=t.ONE_HUNDRED=void 0,t.ONE_HUNDRED=100,t.ONE_THOUSAND=1e3},75127:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ONE_YEAR=t.FOUR_WEEKS=t.THREE_WEEKS=t.TWO_WEEKS=t.ONE_WEEK=t.THIRTY_DAYS=t.SEVEN_DAYS=t.FIVE_DAYS=t.THREE_DAYS=t.ONE_DAY=t.TWENTY_FOUR_HOURS=t.TWELVE_HOURS=t.SIX_HOURS=t.THREE_HOURS=t.ONE_HOUR=t.SIXTY_MINUTES=t.THIRTY_MINUTES=t.TEN_MINUTES=t.FIVE_MINUTES=t.ONE_MINUTE=t.SIXTY_SECONDS=t.THIRTY_SECONDS=t.TEN_SECONDS=t.FIVE_SECONDS=t.ONE_SECOND=void 0,t.ONE_SECOND=1,t.FIVE_SECONDS=5,t.TEN_SECONDS=10,t.THIRTY_SECONDS=30,t.SIXTY_SECONDS=60,t.ONE_MINUTE=t.SIXTY_SECONDS,t.FIVE_MINUTES=5*t.ONE_MINUTE,t.TEN_MINUTES=10*t.ONE_MINUTE,t.THIRTY_MINUTES=30*t.ONE_MINUTE,t.SIXTY_MINUTES=60*t.ONE_MINUTE,t.ONE_HOUR=t.SIXTY_MINUTES,t.THREE_HOURS=3*t.ONE_HOUR,t.SIX_HOURS=6*t.ONE_HOUR,t.TWELVE_HOURS=12*t.ONE_HOUR,t.TWENTY_FOUR_HOURS=24*t.ONE_HOUR,t.ONE_DAY=t.TWENTY_FOUR_HOURS,t.THREE_DAYS=3*t.ONE_DAY,t.FIVE_DAYS=5*t.ONE_DAY,t.SEVEN_DAYS=7*t.ONE_DAY,t.THIRTY_DAYS=30*t.ONE_DAY,t.ONE_WEEK=t.SEVEN_DAYS,t.TWO_WEEKS=2*t.ONE_WEEK,t.THREE_WEEKS=3*t.ONE_WEEK,t.FOUR_W
2EEKS=4*t.ONE_WEEK,t.ONE_YEAR=365*t.ONE_DAY},40537:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(33509);i.__exportStar(r(78627),t),i.__exportStar(r(59854),t),i.__exportStar(r(3205),t),i.__exportStar(r(70213),t)},3205:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(33509).__exportStar(r(71146),t)},71146:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},68353:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let i=r(70213);function n(e){return e*i.ONE_THOUSAND}function o(e){return Math.floor(e/i.ONE_THOUSAND)}t.toMiliseconds=n,t.fromMiliseconds=o},86029:function(e,t){"use strict";function r(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0,t.delay=r},78627:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=r(33509);i.__exportStar(r(86029),t),i.__exportStar(r(68353),t)},59854:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},76454:function(e,t){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function i(e){let t=r(e);if(!t)throw Error(`${e} is not defined in Window`);return t}function n(){return i("document")}function o(){return r("document")}function s(){return i("navigator")}function a(){return r("navigator")}function l(){return i("location")}function c(){return r("location")}function u(){return i("crypto")}function d(){return r("crypto")}function h(){return i("localStorage")}function f(){return r("localStorage")}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=r,t.getFromWindowOrThrow=i,t.getDocumentOrThrow=n,t.getDocument=o,t.getNavigatorOrThrow=s,t.getNavigator=a,t.getLocationOrThrow=l,t.getLocation=c,t.getCryptoOrThrow=u,t.getCrypto=d,t.getLocalStorageOrThrow=h,t.getLocalStorage=f},3897:function(e,t,r){"use strict";var i;i={value:!0},t.D=void 0;let n=r(76454);function o(){let e,t;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function r(){let r=e.getElementsByTagName("link"),i=[];for(let e=0;e<r.length;e++){let n=r[e],o=n.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=n.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let i=t.pathname.split("/");i.pop(),r+=i.join("/")+"/"+e}i.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;i.push(r)}else i.push(e)}}}return i}function i(...t){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let i=r[e],n=["itemprop","property","name"].map(e=>i.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(n.length&&n){let e=i.getAttribute("content");if(e)return e}}return""}function o(){return i("description","og:description","twitter:description","keywords")}let s=function(){let t=i("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:o(),url:t.origin,icons:r(),name:s}}t.D=o},78687:function(e,t,r){"use strict";r.d(t,{FL:function(){return y},QT:function(){return w},Zk:function(){return f}});var i,n,o=r(31686),s=r(56127),a=r(5845),l=r(55037),c=r(53248),u=r(91785),d=r(7040),h=r.n(d);
2class f extends l.xG{constructor(e){let{config:t,state:r}=e;if(super({config:t,state:r}),(0,s.Z)(this,"_providerEngineProxy",null),!t.chainConfig)throw c.Ty.invalidProviderConfigError("Please provide chainConfig");if(!t.chainConfig.chainId)throw c.Ty.invalidProviderConfigError("Please provide chainId inside chainConfig");if(!t.chainConfig.rpcTarget)throw c.Ty.invalidProviderConfigError("Please provide rpcTarget inside chainConfig");this.defaultState={chainId:"loading"},this.defaultConfig={chainConfig:t.chainConfig,networks:{[t.chainConfig.chainId]:t.chainConfig}},super.initialize()}get currentChainConfig(){return this.config.chainConfig}get provider(){return this._providerEngineProxy}get chainId(){return this.state.chainId}set provider(e){throw Error("Method not implemented.")}async request(e){var t;if(!e||"object"!=typeof e||Array.isArray(e))throw a.PY.invalidRequest({message:c.w7.invalidRequestArgs().message,data:(0,o.Z)((0,o.Z)({},e||{}),{},{cause:c.w7.invalidRequestArgs().message})});let{method:r,params:i}=e;if("string"!=typeof r||0===r.length)throw a.PY.invalidRequest({message:c.w7.invalidRequestMethod().message,data:(0,o.Z)((0,o.Z)({},e||{}),{},{cause:c.w7.invalidRequestMethod().message})});if(void 0!==i&&!Array.isArray(i)&&("object"!=typeof i||null===i))throw a.PY.invalidRequest({message:c.w7.invalidRequestParams().message,data:(0,o.Z)((0,o.Z)({},e||{}),{},{cause:c.w7.invalidRequestParams().message})});return null===(t=this.provider)||void 0===t?void 0:t.request(e)}sendAsync(e,t){return t?this.send(e,t):this.request(e)}send(e,t){this.request(e).then(e=>t(null,{result:e})).catch(e=>t(e,null))}addChain(e){if(!e.chainId||!e.rpcTarget)throw a.PY.invalidParams("chainId is required");this.configure({networks:(0,o.Z)((0,o.Z)({},this.config.networks),{},{[e.chainId]:e})})}getChainConfig(e){var t;let r=null===(t=this.config.networks)||void 0===t?void 0:t[e];if(!r)throw a.PY.invalidRequest(`Chain ${e} is not supported, please add chainConfig for it`);return r}updateProviderEngineProxy(e){this._providerEngineProxy?this._providerEngineProxy.setTarget(e):this._providerEngineProxy=(0,l.qY)(e)}getProviderEngineProxy(){return this._providerEngineProxy}}function p(e){return(t,r,i,n)=>"chainId"===t.method?(r.result=e,n()):i()}function g(e){return(t,r,i,n)=>"provider_config"===t.method?(r.result=e,n()):i()}function m(e){let{chainId:t,rpcTarget:r}=e,i=(0,l.v$)({rpcTarget:r});return{networkMiddleware:(0,u.UZ)([p(t),g(e),i]),fetchMiddleware:i}}
2class w extends f{constructor(e){let{config:t,state:r}=e;super({config:t,state:r})}async setupProvider(){let{networkMiddleware:e}=m(this.config.chainConfig),t=new u.eI;t.push(e);let r=(0,u.Xj)(t);this.updateProviderEngineProxy(r);let i=this.config.chainConfig.chainId;this.state.chainId!==i&&(this.emit("chainChanged",i),this.emit("connect",{chainId:i})),this.update({chainId:this.config.chainConfig.chainId})}async switchChain(e){if(!this._providerEngineProxy)throw a.gK.custom({message:"Provider is not initialized",code:4902});let t=this.getChainConfig(e.chainId);this.update({chainId:"loading"}),this.configure({chainConfig:t}),await this.setupProvider()}updateProviderEngineProxy(e){this._providerEngineProxy?this._providerEngineProxy.setTarget(e):this._providerEngineProxy=(0,l.qY)(e)}getProviderEngineProxy(){return this._providerEngineProxy}lookupNetwork(){throw Error("Method not implemented.")}}i=w,(0,s.Z)(w,"getProviderInstance",async e=>{let t=new i({config:{chainConfig:e.chainConfig}});return await t.setupProvider(),t});
2class y extends f{constructor(e){let{config:t,state:r}=e;super({config:{chainConfig:(0,o.Z)((0,o.Z)({},t.chainConfig),{},{chainNamespace:c.EN.OTHER})},state:r}),(0,s.Z)(this,"_providerEngineProxy",null)}get provider(){return this._providerEngineProxy}set provider(e){throw Error("Method not implemented.")}addChain(e){throw Error("Method not implemented.")}async setupProvider(e){let t=this.getPrivKeyMiddleware(e),r=new u.eI;r.push(t);let i=(0,u.Xj)(r);this.updateProviderEngineProxy(i)}updateProviderEngineProxy(e){this._providerEngineProxy?this._providerEngineProxy.setTarget(e):this._providerEngineProxy=(0,l.qY)(e)}async switchChain(e){return Promise.resolve()}getProviderEngineProxy(){return this._providerEngineProxy}async lookupNetwork(){return Promise.resolve("")}getPrivKeyMiddleware(e){let t={getPrivatekey:async()=>e};return this.createPrivKeyMiddleware(t)}createPrivKeyMiddleware(e){let{getPrivatekey:t}=e;async function r(e,r){r.result=await t()}return(0,u.v0)({private_key:(0,u.Pk)(r)})}}n=y,(0,s.Z)(y,"getProviderInstance",async e=>{let t=new n({config:{chainConfig:e.chainConfig}});return await t.setupProvider(e.privKey),t}),h()()},53248:function(e,t,r){"use strict";r.d(t,{$E:function(){return L},$z:function(){return k},Cb:function(){return $},EN:function(){return h},Fr:function(){return U},H2:function(){return D},J5:function(){return O},MP:function(){return T},O7:function(){return A},RM:function(){return v},Ty:function(){return b},XM:function(){return _},cM:function(){return N},dr:function(){return s.dr},h2:function(){return w},hN:function(){return I},hf:function(){return C},n2:function(){return R},oZ:function(){return M},qz:function(){return F},rW:function(){return S},rn:function(){return B},tV:function(){return j},up:function(){return y},w7:function(){return x},yk:function(){return f}});var i=r(56127),n=r(31686),o=r(91785),s=r(18045),a=r(15400),l=r(75114),c=r(14474),u=r(86005),d=r.n(u);let h={EIP155:"eip155",SOLANA:"solana",OTHER:"other"},f={EIP155:"eip155",SOLANA:"solana",XRPL:"xrpl",MULTICHAIN:"multichain"},p=e=>{if(e===h.EIP155||e===h.SOLANA)return 1;throw Error(`Chain namespace ${e} is not supported`)},g=e=>{let t=h.EIP155;return 1===e?{chainNamespace:t,chainId:"0x1",rpcTarget:"https://rpc.ankr.com/eth",displayName:"Ethereum Mainnet",blockExplorer:"https://etherscan.io/",ticker:"ETH",tickerName:"Ethereum",decimals:18}:5===e?{chainNamespace:t,chainId:"0x5",rpcTarget:"https://rpc.ankr.com/eth_goerli",displayName:"Goerli Testnet",blockExplorer:"https://goerli.etherscan.io/",ticker:"ETH",tickerName:"Ethereum",decimals:18}:11155111===e?{chainNamespace:t,chainId:"0xaa36a7",rpcTarget:"https://rpc.ankr.com/eth_sepolia",displayName:"Sepolia Testnet",blockExplorer:"https://sepolia.etherscan.io/",ticker:"ETH",tickerName:"Ethereum",decimals:18}:137===e?{chainNamespace:t,chainId:"0x89",rpcTarget:"https://rpc.ankr.com/polygon",displayName:"Polygon Mainnet",blockExplorer:"https://polygonscan.com",ticker:"MATIC",tickerName:"Polygon"}:80001===e?{chainNamespace:t,chainId:"0x13881",rpcTarget:"https://rpc.ankr.com/polygon_mumbai",displayName:"Polygon Mumbai Testnet",blockExplorer:"https://mumbai.polygonscan.com/",ticker:"MATIC",tickerName:"Polygon",decimals:18}:56===e?{chainNamespace:t,chainId:"0x38",rpcTarget:"https://rpc.ankr.com/bsc",displayName:"Binance SmartChain Mainnet",blockExplorer:"https://bscscan.com",ticker:"BNB",tickerName:"Binance SmartChain",decimals:18}:97===e?{chainNamespace:t,chainId:"0x61",rpcTarget:"https://rpc.ankr.com/bsc_testnet_chapel",displayName:"Binance SmartChain Testnet",blockExplorer:"https://testnet.bscscan.com",ticker:"BNB",tickerName:"Binance SmartChain",decimals:18}:25===e?{chainNamespace:t,chainId:"0x19",rpcTarget:"https://rpc.cronos.org",displayName:"Cronos Mainnet",blockExplorer:"https://cronoscan.com/",ticker:"CRO",tickerName:"Cronos"}:338===e?{chainNamespace:t,chainId:"0x152",rpcTarget:"https://rpc-t3.cronos.org/",displayName:"Cronos Testnet",blockExplorer:"https://cronoscan.com/",ticker:"CRO",tickerName:"Cronos",decimals:18}:8217===e?{chainNamespace:t,chainId:"0x2019",rpcTarget:"https://public-node-api.klaytnapi.com/v1/cypress",displayName:"Klaytn Mainnet",blockExplorer:"https://scope.klaytn.com",ticker:"KLAY",tickerName:"Klaytn",decimals:18}:null},m=e=>{let t=h.SOLANA;return 1===e?{chainNamespace:t,chainId:"0x1",rpcTarget:"https://rpc.ankr.com/solana",displayName:"Solana Mainnet",blockExplorer:"https://explorer.solana.com",ticker:"SOL",tickerName:"Solana",decimals:9}:2===e?{chainNamespace:t,chainId:"0x2",rpcTarget:"https://api.testnet.solana.com",displayName:"Solana Testnet",blockExplorer:"https://explorer.solana.com?cluster=testnet",ticker:"SOL",tickerName:"Solana",decimals:9}:3===e?{chainNamespace:t,chainId:"0x3",rpcTarget:"https://api.devnet.solana.com",displayName:"Solana Devnet",blockExplorer:"https://explorer.solana.com?cluster=devnet",ticker:"SOL",tickerName:"Solana",decimals:9}:null},w=(e,t)=>{if(e===h.OTHER)return null;let r=t?"number"==typeof t?t:parseInt(t,16):p(e);
2return e===h.EIP155?g(r):e===h.SOLANA?m(r):null};class y extends a.s{constructor(e,t){super(t),(0,i.Z)(this,"code",void 0),(0,i.Z)(this,"message",void 0),this.code=e,this.message=t||"",Object.defineProperty(this,"name",{value:"Web3AuthError"})}toJSON(){return{name:this.name,code:this.code,message:this.message}}toString(){return JSON.stringify(this.toJSON())}}class b extends y{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletInitializationError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new b(e,`${b.messages[e]}, ${t}`)}static notFound(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5001,e)}static notInstalled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5002,e)}static notReady(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5003,e)}static windowBlocked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5004,e)}static windowClosed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5005,e)}static incompatibleChainNameSpace(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5006,e)}static duplicateAdapterError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5007,e)}static invalidProviderConfigError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5008,e)}static providerNotReadyError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5009,e)}static rpcConnectionError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5010,e)}static invalidParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5011,e)}static invalidNetwork(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return b.fromCode(5013,e)}}(0,i.Z)(b,"messages",{5e3:"Custom",5001:"Wallet is not found",5002:"Wallet is not installed",5003:"Wallet is not ready yet",5004:"Wallet window is blocked",5005:"Wallet window has been closed by the user",5006:"Incompatible chain namespace provided",5007:"Adapter has already been included",5008:"Invalid provider Config",5009:"Provider is not ready yet",5010:"Failed to connect with rpc url",5011:"Invalid params passed in",5013:"Invalid network provided"});class v extends y{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletLoginError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new v(e,`${v.messages[e]}. ${t}`)}static connectionError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5111,e)}static disconnectionError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5112,e)}static notConnectedError(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5113,e)}static popupClosed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5114,e)}static mfaEnabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5115,e)}static chainConfigNotAdded(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5116,e)}static unsupportedOperation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5117,e)}static coreKitKeyNotFound(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5118,e)}static userNotLoggedIn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return v.fromCode(5119,e)}}(0,i.Z)(v,"messages",{5e3:"Custom",5111:"Failed to connect with wallet",5112:"Failed to disconnect from wallet",5113:"Wallet is not connected",5114:"Wallet popup has been closed by the user",5115:"User has already enabled mfa, please use the @web3auth/web3auth-web sdk for login with mfa",5116:"Chain config has not been added. Please add the chain config before calling switchChain",5117:"Unsupported operation",5118:"useCoreKitKey flag is enabled but coreKitKey is not available",5119:"User not logged in."});class _ extends y{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletOperationsError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new _(e,`${_.messages[e]}, ${t}`)}static chainIDNotAllowed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.fromCode(5201,e)}static operationNotAllowed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.fromCode(5202,e)}static chainNamespaceNotAllowed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.fromCode(5203,e)}}(0,i.Z)(_,"messages",{5e3:"Custom",5201:"Provided chainId is not allowed",5202:"This operation is not allowed"});class x extends y{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"WalletProviderError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new _(e,`${x.messages[e]}, ${t}`)}
2static invalidRequestArgs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.fromCode(5301,e)}static invalidRequestMethod(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.fromCode(5302,e)}static invalidRequestParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _.fromCode(5303,e)}}(0,i.Z)(x,"messages",{5e3:"Custom",5301:"Expected a single, non-array, object argument.",5302:"'args.method' must be a non-empty string.",5303:"'args.params' must be an object or array if provided."});let E={OPENLOGIN:"openlogin",WALLET_CONNECT_V2:"wallet-connect-v2"},C=(0,n.Z)({TORUS_SOLANA:"torus-solana",PHANTOM:"phantom",SOLFLARE:"solflare",SLOPE:"slope"},E),k=(0,n.Z)({TORUS_EVM:"torus-evm",METAMASK:"metamask",COINBASE:"coinbase"},E),S=(0,n.Z)((0,n.Z)({},k),C),A={[E.OPENLOGIN]:"OpenLogin",[E.WALLET_CONNECT_V2]:"Wallet Connect v2",[C.TORUS_SOLANA]:"Torus",[C.PHANTOM]:"Phantom",[C.SOLFLARE]:"Solflare",[C.SLOPE]:"Slope",[k.TORUS_EVM]:"Torus",[k.METAMASK]:"Metamask",[k.COINBASE]:"Coinbase"},I={EXTERNAL:"external",IN_APP:"in_app"},T={NOT_READY:"not_ready",READY:"ready",CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected",ERRORED:"errored"},R=(0,n.Z)((0,n.Z)({},T),{},{ADAPTER_DATA_UPDATED:"adapter_data_updated",CACHE_CLEAR:"cache_clear"});class O extends o.Ue{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),(0,i.Z)(this,"adapterData",{}),(0,i.Z)(this,"sessionTime",86400),(0,i.Z)(this,"clientId",void 0),(0,i.Z)(this,"web3AuthNetwork",s.dr.MAINNET),(0,i.Z)(this,"useCoreKitKey",void 0),(0,i.Z)(this,"rehydrated",!1),(0,i.Z)(this,"chainConfig",null),(0,i.Z)(this,"knownChainConfigs",{}),(0,i.Z)(this,"adapterNamespace",void 0),(0,i.Z)(this,"currentChainNamespace",void 0),(0,i.Z)(this,"type",void 0),(0,i.Z)(this,"name",void 0),(0,i.Z)(this,"status",void 0),this.setAdapterSettings(e)}get chainConfigProxy(){return this.chainConfig?(0,n.Z)({},this.chainConfig):null}get connnected(){return this.status===T.CONNECTED}setAdapterSettings(e){if(this.status===T.READY)return;null!=e&&e.sessionTime&&(this.sessionTime=e.sessionTime),null!=e&&e.clientId&&(this.clientId=e.clientId),null!=e&&e.web3AuthNetwork&&(this.web3AuthNetwork=e.web3AuthNetwork),(null==e?void 0:e.useCoreKitKey)!==void 0&&(this.useCoreKitKey=e.useCoreKitKey);let t=e.chainConfig;if(t){if(!t.chainNamespace)throw b.notReady("ChainNamespace is required while setting chainConfig");this.currentChainNamespace=t.chainNamespace;let e=w(t.chainNamespace,t.chainId),r=(0,n.Z)((0,n.Z)({},e||{}),t);this.chainConfig=r,this.addChainConfig(r)}}checkConnectionRequirements(){if(this.name!==S.WALLET_CONNECT_V2||this.status!==T.CONNECTING){if(this.status===T.CONNECTING)throw b.notReady("Already connecting");if(this.status===T.CONNECTED)throw v.connectionError("Already connected");if(this.status!==T.READY)throw v.connectionError("Wallet adapter is not ready yet, Please wait for init function to resolve before calling connect/connectTo function")}}checkInitializationRequirements(){if(!this.clientId)throw b.invalidParams("Please initialize Web3Auth with a valid clientId in constructor");if(!this.chainConfig||!this.chainConfig.rpcTarget&&this.chainConfig.chainNamespace!==h.OTHER)throw b.invalidParams("rpcTarget is required in chainConfig");if(!this.chainConfig.chainId&&this.chainConfig.chainNamespace!==h.OTHER)throw b.invalidParams("chainID is required in chainConfig");if(this.status!==T.NOT_READY){if(this.status===T.CONNECTED)throw b.notReady("Already connected");if(this.status===T.READY)throw b.notReady("Adapter is already initialized")}}checkDisconnectionRequirements(){if(this.status!==T.CONNECTED)throw v.disconnectionError("Not connected with wallet")}checkAddChainRequirements(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t&&!this.provider)throw v.notConnectedError("Not connected with wallet.");if(this.currentChainNamespace!==e.chainNamespace)throw _.chainNamespaceNotAllowed("This adapter doesn't support this chainNamespace")}checkSwitchChainRequirements(e){let{chainId:t}=e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!r&&!this.provider)throw v.notConnectedError("Not connected with wallet.");if(!this.knownChainConfigs[t])throw v.chainConfigNotAdded("Invalid chainId")}
2updateAdapterData(e){this.adapterData=e,this.emit(R.ADAPTER_DATA_UPDATED,{adapterName:this.name,data:e})}addChainConfig(e){let t=this.knownChainConfigs[e.chainId];this.knownChainConfigs[e.chainId]=(0,n.Z)((0,n.Z)({},t||{}),e)}getChainConfig(e){return this.knownChainConfigs[e]||null}}let P="https://authjs.web3auth.io";var N=d().getLogger("web3auth-logger");function M(e){let t,r=!1,i=0;try{t=window[e],r=!0,i=t.length;let n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(t){let e=t;return!!(e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&r&&0!==i)}}let D=e=>("string"==typeof e||"number"==typeof e)&&/^(-)?0x[0-9a-f]*$/i.test(e),L=e=>{let t=(0,c.o)(e);return!!(!t.exp||t.exp<Math.floor(Date.now()/1e3))},j=async(e,t)=>{let r={payload:e,header:{t:"solana"===t?"sip99":"eip191"},network:"solana"===t?"solana":"ethereum"},i=await (0,l.v_)(`${P}/siww/get`,r);if(!i.success)throw Error("Failed to authenticate user, Please reach out to Web3Auth Support team");return i.challenge},B=async(e,t,r,i,n,o,s)=>{let a={signature:{s:t,t:"solana"===e?"sip99":"eip191"},message:r,issuer:i,audience:void 0!==window.location?window.location.hostname:"com://reactnative",timeout:n},c=await (0,l.v_)(`${P}/siww/verify`,a,{headers:{client_id:o,wallet_provider:i,web3auth_network:s}});if(!c.success)throw N.error("Failed to authenticate user, ,message verification failed",c.error),Error("Failed to authenticate user, ,message verification failed");return c.token},$=(e,t)=>M("localStorage")?localStorage.getItem(`${e.toLowerCase()}_${t}`):null,U=(e,t,r)=>M("localStorage")?localStorage.setItem(`${e.toLowerCase()}_${t}`,r):null,F=(e,t)=>M("localStorage")?localStorage.removeItem(`${e.toLowerCase()}_${t}`):null},48063:function(e,t,r){"use strict";let i;r.d(t,{$L:function(){return tA}});var n=r(53248),o=r(31686),s=r(56127),a=r(78687),l=r(91785);let c=(0,o.Z)((0,o.Z)({},n.EN),{},{MULTICHAIN:"multichain"}),u="Web3Auth-cachedAdapter";class d extends l.Ue{constructor(e){var t,r,i,a;if(super(),(0,s.Z)(this,"coreOptions",void 0),(0,s.Z)(this,"connectedAdapterName",null),(0,s.Z)(this,"status",n.MP.NOT_READY),(0,s.Z)(this,"cachedAdapter",null),(0,s.Z)(this,"walletAdapters",{}),(0,s.Z)(this,"commonJRPCProvider",null),(0,s.Z)(this,"plugins",{}),(0,s.Z)(this,"storage","localStorage"),!e.clientId)throw n.Ty.invalidParams("Please provide a valid clientId in constructor");if(e.enableLogging?n.cM.enableAll():n.cM.setLevel("error"),!(null!==(t=e.chainConfig)&&void 0!==t&&t.chainNamespace)||!Object.values(n.EN).includes(null===(r=e.chainConfig)||void 0===r?void 0:r.chainNamespace))throw n.Ty.invalidParams("Please provide a valid chainNamespace in chainConfig");"session"===e.storageKey&&(this.storage="sessionStorage"),this.cachedAdapter=(0,n.oZ)(this.storage)?window[this.storage].getItem(u):null,this.coreOptions=(0,o.Z)((0,o.Z)({},e),{},{chainConfig:(0,o.Z)((0,o.Z)({},(0,n.h2)(null===(i=e.chainConfig)||void 0===i?void 0:i.chainNamespace,null===(a=e.chainConfig)||void 0===a?void 0:a.chainId)||{}),e.chainConfig)}),this.subscribeToAdapterEvents=this.subscribeToAdapterEvents.bind(this)}get connected(){return!!this.connectedAdapterName}get provider(){return this.status!==n.MP.NOT_READY&&this.commonJRPCProvider?this.commonJRPCProvider:null}set provider(e){throw Error("Not implemented")}
2async init(){this.commonJRPCProvider=await a.QT.getProviderInstance({chainConfig:this.coreOptions.chainConfig});let e=Object.keys(this.walletAdapters).map(e=>{if(this.subscribeToAdapterEvents(this.walletAdapters[e]),this.walletAdapters[e].chainConfigProxy)this.walletAdapters[e].setAdapterSettings({sessionTime:this.coreOptions.sessionTime,clientId:this.coreOptions.clientId,web3AuthNetwork:this.coreOptions.web3AuthNetwork,useCoreKitKey:this.coreOptions.useCoreKitKey});else{let t=this.coreOptions.chainConfig;if(!t.chainNamespace)throw n.Ty.invalidParams("Please provide chainNamespace in chainConfig");this.walletAdapters[e].setAdapterSettings({chainConfig:t,sessionTime:this.coreOptions.sessionTime,clientId:this.coreOptions.clientId,web3AuthNetwork:this.coreOptions.web3AuthNetwork,useCoreKitKey:this.coreOptions.useCoreKitKey})}return this.walletAdapters[e].init({autoConnect:this.cachedAdapter===e}).catch(e=>n.cM.error(e))});this.status=n.MP.READY,await Promise.all(e)}configureAdapter(e){this.checkInitRequirements();let t=this.coreOptions.chainConfig;if(!t.chainNamespace)throw n.Ty.invalidParams("Please provide chainNamespace in chainConfig");if(this.walletAdapters[e.name])throw n.Ty.duplicateAdapterError(`Wallet adapter for ${e.name} already exists`);if(e.adapterNamespace!==n.yk.MULTICHAIN&&e.adapterNamespace!==t.chainNamespace)throw n.Ty.incompatibleChainNameSpace(`This wallet adapter belongs to ${e.adapterNamespace} which is incompatible with currently used namespace: ${t.chainNamespace}`);return e.adapterNamespace===n.yk.MULTICHAIN&&e.currentChainNamespace&&t.chainNamespace!==e.currentChainNamespace&&e.setAdapterSettings({chainConfig:t}),this.walletAdapters[e.name]=e,this}clearCache(){(0,n.oZ)(this.storage)&&(window[this.storage].removeItem(u),this.cachedAdapter=null)}async addChain(e){if(this.status===n.MP.CONNECTED&&this.connectedAdapterName)return this.walletAdapters[this.connectedAdapterName].addChain(e);if(this.commonJRPCProvider)return this.commonJRPCProvider.addChain(e);throw n.Ty.notReady("No wallet is ready")}async switchChain(e){if(this.status===n.MP.CONNECTED&&this.connectedAdapterName)return this.walletAdapters[this.connectedAdapterName].switchChain(e);if(this.commonJRPCProvider)return this.commonJRPCProvider.switchChain(e);throw n.Ty.notReady("No wallet is ready")}async connectTo(e,t){if(!this.walletAdapters[e]||!this.commonJRPCProvider)throw n.Ty.notFound(`Please add wallet adapter for ${e} wallet, before connecting`);let r=await this.walletAdapters[e].connect(t);return this.commonJRPCProvider.updateProviderEngineProxy(r.provider||r),this.provider}async logout(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cleanup:!1};if(this.status!==n.MP.CONNECTED||!this.connectedAdapterName)throw n.RM.notConnectedError("No wallet is connected");await this.walletAdapters[this.connectedAdapterName].disconnect(e)}async getUserInfo(){if(n.cM.debug("Getting user info",this.status,this.connectedAdapterName),this.status!==n.MP.CONNECTED||!this.connectedAdapterName)throw n.RM.notConnectedError("No wallet is connected");return this.walletAdapters[this.connectedAdapterName].getUserInfo()}async authenticateUser(){if(this.status!==n.MP.CONNECTED||!this.connectedAdapterName)throw n.RM.notConnectedError("No wallet is connected");return this.walletAdapters[this.connectedAdapterName].authenticateUser()}async addPlugin(e){if(this.plugins[e.name])throw Error(`Plugin ${e.name} already exist`);if(e.pluginNamespace!==c.MULTICHAIN&&e.pluginNamespace!==this.coreOptions.chainConfig.chainNamespace)throw Error(`This plugin belongs to ${e.pluginNamespace} namespace which is incompatible with currently used namespace: ${this.coreOptions.chainConfig.chainNamespace}`);return this.plugins[e.name]=e,this}subscribeToAdapterEvents(e){e.on(n.n2.CONNECTED,async e=>{if(!this.commonJRPCProvider)throw n.Ty.notFound("CommonJrpcProvider not found");let{provider:t}=this.walletAdapters[e.adapter];this.commonJRPCProvider.updateProviderEngineProxy(t.provider||t),this.status=n.MP.CONNECTED,this.connectedAdapterName=e.adapter,this.cacheWallet(e.adapter),n.cM.debug("connected",this.status,this.connectedAdapterName),Object.values(this.plugins).map(async t=>{try{if(!t.SUPPORTED_ADAPTERS.includes(e.adapter))return;await t.initWithWeb3Auth(this),await t.connect()}catch(e){if(5211===e.code)return;n.cM.error(e)}}
2),this.emit(n.n2.CONNECTED,(0,o.Z)({},e))}),e.on(n.n2.DISCONNECTED,async e=>{if(this.status=n.MP.READY,(0,n.oZ)(this.storage)){let e=window[this.storage].getItem(u);this.connectedAdapterName===e&&this.clearCache()}n.cM.debug("disconnected",this.status,this.connectedAdapterName),await Promise.all(Object.values(this.plugins).map(e=>e.disconnect().catch(e=>{5211!==e.code&&n.cM.error(e)}))),this.connectedAdapterName=null,this.emit(n.n2.DISCONNECTED,e)}),e.on(n.n2.CONNECTING,e=>{this.status=n.MP.CONNECTING,this.emit(n.n2.CONNECTING,e),n.cM.debug("connecting",this.status,this.connectedAdapterName)}),e.on(n.n2.ERRORED,e=>{this.status=n.MP.ERRORED,this.clearCache(),this.emit(n.n2.ERRORED,e),n.cM.debug("errored",this.status,this.connectedAdapterName)}),e.on(n.n2.ADAPTER_DATA_UPDATED,e=>{n.cM.debug("adapter data updated",e),this.emit(n.n2.ADAPTER_DATA_UPDATED,e)}),e.on(n.n2.CACHE_CLEAR,e=>{n.cM.debug("adapter cache clear",e),(0,n.oZ)(this.storage)&&this.clearCache()})}checkInitRequirements(){if(this.status===n.MP.CONNECTING)throw n.Ty.notReady("Already pending connection");if(this.status===n.MP.CONNECTED)throw n.Ty.notReady("Already connected");if(this.status===n.MP.READY)throw n.Ty.notReady("Adapter is already initialized")}cacheWallet(e){(0,n.oZ)(this.storage)&&(window[this.storage].setItem(u,e),this.cachedAdapter=e)}}var h=r(18045),f=r(34040),p=r(34357),g=r.n(p),m=r(97928),w=r.n(m),y=r(2265);function b(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}r(69917),Object.create(null);let v={};function _(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&v[t[0]]||("string"==typeof t[0]&&(v[t[0]]=new Date),b(...t))}let x=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function E(e,t,r){e.loadNamespaces(t,x(e,r))}function C(e,t,r,i){"string"==typeof r&&(r=[r]),r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,x(e,i))}function k(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.languages[0],n=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===i.toLowerCase())return!0;let s=(e,r)=>{let i=t.services.backendConnector.state[`${e}|${r}`];return -1===i||2===i};return(!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!s(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(i,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(i,e)&&(!n||s(o,e)))}function S(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):k(e,t,r):(_("i18n.languages were undefined or empty",t.languages),!0)}let A=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,I={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},T=e=>I[e],R={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(A,T)};function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};R={...R,...e}}function P(){return R}function N(e){i=e}function M(){return i}let D={type:"3rdParty",init(e){O(e.options.react),N(e)}},L=(0,y.createContext)();class j{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let B=(e,t)=>{let r=(0,y.useRef)();return(0,y.useEffect)(()=>{r.current=t?r.current:e},[e,t]),r.current};function $(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:r}=t,{i18n:i,defaultNS:n}=(0,y.useContext)(L)||{},o=r||i||M();
2if(o&&!o.reportNamespaces&&(o.reportNamespaces=new j),!o){_("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}o.options.react&&void 0!==o.options.react.wait&&_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let s={...P(),...o.options.react,...t},{useSuspense:a,keyPrefix:l}=s,c=e||n||o.options&&o.options.defaultNS;c="string"==typeof c?[c]:c||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(c);let u=(o.isInitialized||o.initializedStoreOnce)&&c.every(e=>S(e,o,s));function d(){return o.getFixedT(t.lng||null,"fallback"===s.nsMode?c:c[0],l)}let[h,f]=(0,y.useState)(d),p=c.join();t.lng&&(p=`${t.lng}${p}`);let g=B(p),m=(0,y.useRef)(!0);(0,y.useEffect)(()=>{let{bindI18n:e,bindI18nStore:r}=s;function i(){m.current&&f(d)}return m.current=!0,u||a||(t.lng?C(o,t.lng,c,()=>{m.current&&f(d)}):E(o,c,()=>{m.current&&f(d)})),u&&g&&g!==p&&m.current&&f(d),e&&o&&o.on(e,i),r&&o&&o.store.on(r,i),()=>{m.current=!1,e&&o&&e.split(" ").forEach(e=>o.off(e,i)),r&&o&&r.split(" ").forEach(e=>o.store.off(e,i))}},[o,p]);let w=(0,y.useRef)(!0);(0,y.useEffect)(()=>{m.current&&!w.current&&f(d),w.current=!1},[o,l]);let b=[h,o,u];if(b.t=h,b.i18n=o,b.ready=u,u||!u&&!a)return b;throw new Promise(e=>{t.lng?C(o,t.lng,c,()=>e()):E(o,c,()=>e())})}let U={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class F{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||U,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new F(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new F(this.logger,e)}}var z=new F;class q{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,i]=e;for(let e=0;e<i;e++)t(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[i,n]=t;for(let t=0;t<n;t++)i.apply(i,[e,...r])})}}function W(){let e,t;let r=new Promise((r,i)=>{e=r,t=i});return r.resolve=e,r.reject=t,r}function H(e){return null==e?"":""+e}function V(e,t,r){e.forEach(e=>{t[e]&&(r[e]=t[e])})}let Z=/###/g;function K(e,t,r){function i(e){return e&&e.indexOf("###")>-1?e.replace(Z,"."):e}function n(){return!e||"string"==typeof e}let o="string"!=typeof t?t:t.split("."),s=0;for(;s<o.length-1;){if(n())return{};let t=i(o[s]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return n()?{}:{obj:e,k:i(o[s])}}function G(e,t,r){let{obj:i,k:n}=K(e,t,Object);if(void 0!==i||1===t.length){i[n]=r;return}let o=t[t.length-1],s=t.slice(0,t.length-1),a=K(e,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,(a=K(e,s=s.slice(0,s.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=r}
2function Y(e,t,r,i){let{obj:n,k:o}=K(e,t,Object);n[o]=n[o]||[],i&&(n[o]=n[o].concat(r)),i||n[o].push(r)}function J(e,t){let{obj:r,k:i}=K(e,t);if(r)return r[i]}function Q(e,t,r){let i=J(e,r);return void 0!==i?i:J(t,r)}function X(e,t,r){for(let i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?r&&(e[i]=t[i]):X(e[i],t[i],r):e[i]=t[i]);return e}function ee(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var et={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function er(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>et[e]):e}class ei{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let en=[" ",",","?","!",";"],eo=new ei(20);function es(e,t,r){t=t||"",r=r||"";let i=en.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===i.length)return!0;let n=eo.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),o=!n.test(e);if(!o){let t=e.indexOf(r);t>0&&!n.test(e.substring(0,t))&&(o=!0)}return o}function ea(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(r),n=e;for(let e=0;e<i.length;){let t;if(!n||"object"!=typeof n)return;let o="";for(let s=e;s<i.length;++s)if(s!==e&&(o+=r),o+=i[s],void 0!==(t=n[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&s<i.length-1)continue;e+=s-e+1;break}n=t}return n}function el(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class ec extends q{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let i,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):"string"==typeof r&&o?i.push(...r.split(o)):i.push(r)));let a=J(this.data,i);return(!a&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),a||!s||"string"!=typeof r)?a:ea(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,i){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(s=e.split("."),i=t,t=s[1]),this.addNamespaces(t),G(this.data,s,i),n.silent||this.emit("added",e,t,r,i)}addResources(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let i in r)("string"==typeof r[i]||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});i.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,i,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=t,t=s[1]),this.addNamespaces(t);let a=J(this.data,s)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?X(a,r,n):a={...a,...r},G(this.data,s,a),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var eu={processors:{},addPostProcessor(e){this.processors[e.name]=e}
2,handle(e,t,r,i,n){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,i,n))}),t}};let ed={};class eh extends q{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),V(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=z.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!es(e,r,i);if(o&&!s){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:n};let o=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(o[0])>-1)&&(n=o.shift()),e=o.join(i)}return"string"==typeof n&&(n=[n]),{key:e,namespaces:n}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],t),a=s[s.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:o}let u=this.resolve(e,t),d=u&&u.res,h=u&&u.usedKey||o,f=u&&u.exactUsedKey||o,p=Object.prototype.toString.apply(d),g=["[object Number]","[object Function]","[object RegExp]"],m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,y="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(w&&d&&y&&0>g.indexOf(p)&&!("string"==typeof m&&Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,d,{...t,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(n){let e=Array.isArray(d),r=e?[]:{},i=e?f:h;for(let e in d)if(Object.prototype.hasOwnProperty.call(d,e)){let o=`${i}${n}${e}`;r[e]=this.translate(o,{...t,joinArrays:!1,ns:s}),r[e]===o&&(r[e]=d[e])}d=r}}else if(w&&"string"==typeof m&&Array.isArray(d))(d=d.join(m))&&(d=this.extendTranslation(d,e,t,r));else{let i=!1,s=!1,c=void 0!==t.count&&"string"!=typeof t.count,h=eh.hasDefaultValue(t),f=c?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&h&&(i=!0,d=m),this.isValidLookup(d)||(s=!0,d=o);let w=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:d,y=h&&m!==d&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?"updateKey":"missingKey",l,a,o,y?m:d),n){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let i=(e,r,i)=>{let n=h&&i!==d?i:w;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,r,n,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,r,n,y,t),this.emit
2("missingKey",e,a,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{i([e],o+r,t[`defaultValue${r}`]||m)})}):i(e,o,m))}d=this.extendTranslation(d,e,t,u,r),s&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,i?d:void 0):this.options.parseMissingKeyHandler(d))}return i?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,r,i,n){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let a="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language,r),a){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(r.lng=i.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),s=0;s<e;s++)i[s]=arguments[s];return n&&n[0]===i[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${t[0]}`),null):o.translate(...i,t)},r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,a="string"==typeof s?[s]:s;return null!=e&&a&&a.length&&!1!==r.applyPostProcessor&&(e=eu.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,i,n,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let a=this.extractFromKey(e,s),l=a.key;r=l;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==s.count&&"string"!=typeof s.count,d=u&&!s.ordinal&&0===s.count&&this.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);
2c.forEach(e=>{this.isValidLookup(t)||(o=e,!ed[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ed[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{let o;if(this.isValidLookup(t))return;n=r;let a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,s);else{let e;u&&(e=this.pluralResolver.getSuffix(r,s.count,s));let t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(a.push(l+e),s.ordinal&&0===e.indexOf(i)&&a.push(l+e.replace(i,this.options.pluralSeparator)),d&&a.push(l+t)),h){let r=`${l}${this.options.contextSeparator}${s.context}`;a.push(r),u&&(a.push(r+e),s.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),d&&a.push(r+t))}}for(;o=a.pop();)this.isValidLookup(t)||(i=o,t=this.getResource(r,e,o,s))}))})}),{res:t,usedKey:r,exactUsedKey:i,usedLng:n,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&"string"!=typeof e.replace,i=r?e.replace:e;if(r&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r)for(let e of(i={...i},t))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function ef(e){return e.charAt(0).toUpperCase()+e.slice(1)}class ep{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=z.create("languageUtils")}getScriptPartFromCode(e){if(!(e=el(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=el(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ef(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=ef(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=ef(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];
vendor: 4,741 bytes, line 2
2return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],n=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):"string"==typeof e&&n(this.formatLanguageCode(e)),r.forEach(e=>{0>i.indexOf(e)&&n(this.formatLanguageCode(e))}),i}}let eg=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],em={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ew=["v1","v2","v3"],ey=["v4"],eb={zero:0,one:1,two:2,few:3,many:4,other:5};function ev(){let e={};return eg.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:em[t.fc]}})}),e}class e_{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=z.create("pluralResolver"),(!this.options.compatibilityJSON||ey.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=ev()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(el("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
vendor: 1,278 bytes, line 2
2return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>eb[e]-eb[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));let n=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}
2shouldUseIntlApi(){return!ew.includes(this.options.compatibilityJSON)}}function ex(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",n=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=Q(e,t,r);return!o&&n&&"string"==typeof r&&void 0===(o=ea(e,r,i))&&(o=ea(t,r,i)),o}class eE{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=z.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:i,prefix:n,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:f,nestingSuffixEscaped:p,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:w}=e.interpolation;this.escape=void 0!==t?t:er,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==i&&i,this.prefix=n?ee(n):o||"{{",this.suffix=s?ee(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?ee(d):h||ee("$t("),this.nestingSuffix=f?ee(f):p||ee(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==w&&w,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,i){let n,o,s;let a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}let c=e=>{if(0>e.indexOf(this.formatSeparator)){let n=ex(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(n,void 0,r,{...i,...t,interpolationkey:e}):n}let n=e.split(this.formatSeparator),o=n.shift().trim(),s=n.join(this.formatSeparator).trim();return this.format(ex(t,a,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,r,{...i,...t,interpolationkey:o})};this.resetRegExp();let u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach(t=>{for(s=0;n=t.regex.exec(e);){let r=n[1].trim();if(void 0===(o=c(r))){if("function"==typeof u){let t=u(e,n,i);o="string"==typeof t?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,r))o="";else if(d){o=n[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=H(o));let a=t.safeValue(o);if(e=e.replace(n[0],a),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=n[0].length):t.regex.lastIndex=0,++s>=this.maxReplaces)break}}),e}nest(e,t){let r,i,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let i=e.split(RegExp(`${r}[ ]*{`)),o=`{${i[1]}`;e=i[0];let s=(o=this.interpolate(o,n)).match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{n=JSON.parse(o),t&&(n={...t,...n})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${o}`}return n.defaultValue&&n.defaultValue.indexOf(this.prefix)>-1&&delete n.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let a=[];(n=(n={...o}).replace&&"string"!=typeof n.replace?n.replace:n).applyPostProcessor=!1,delete n.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),a=e,l=!0}if((i=t(s.call(this,r[1].trim(),n),n))&&r[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=H(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),l&&(i=a.reduce((e,t)=>
2this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}function eC(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let n=i[1].substring(0,i[1].length-1);"currency"===t&&0>n.indexOf(":")?r.currency||(r.currency=n.trim()):"relativetime"===t&&0>n.indexOf(":")?r.range||(r.range=n.trim()):n.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),n=i.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=n),"false"===n&&(r[o]=!1),"true"===n&&(r[o]=!0),isNaN(n)||(r[o]=parseInt(n,10))}})}return{formatName:t,formatOptions:r}}function ek(e){let t={};return function(r,i,n){let o=i+JSON.stringify(n),s=t[o];return s||(s=e(el(i),n),t[o]=s),s(r)}}class eS{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=z.create("formatter"),this.options=e,this.formats={number:ek((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:ek((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:ek((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:ek((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:ek((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ek(t)}format(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:n,formatOptions:o}=eC(t);if(this.formats[n]){let t=e;try{let s=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=s.locale||s.lng||i.locale||i.lng||r;t=this.formats[n](e,a,{...o,...i,...s})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${n}`),e},e)}}function eA(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}class eI extends q{constructor(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=z.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(e,t,r,i){let n={},o={},s={},a={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let s=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===n[s]&&(n[s]=!0),void 0===a[t]&&(a[t]=!0)))}),i||(s[e]=!0)}),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let i=e.split("|"),n=i[0],o=i[1];t&&this.emit("failedLoading",n,o,t),r&&this.store.addResourceBundle(n,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let s={};this.queue.forEach(r=>{Y(r.loaded,[n],o),eA(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{s[e]||(s[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===s[e][t]&&(s[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:n,callback:o});return}this.readingCalls++;let s=(s,a)=>
2{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(s&&a&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,i+1,2*n,o)},n);return}o(s,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>s(null,e)).catch(s):s(null,r)}catch(e){s(e)}return}return a(e,t,s)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let n=this.queueLoad(e,t,r,i);if(!n.toLoad.length)return n.pending.length||i(),null;n.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],n=r[1];this.read(i,n,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${n} for language ${i} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${n} for language ${i}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,i,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){let a={...o,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let n;(n=5===l.length?l(e,t,r,i,a):l(e,t,r,i))&&"function"==typeof n.then?n.then(e=>s(null,e)).catch(s):s(null,n)}catch(e){s(e)}else l(e,t,r,i,s,a)}e&&e[0]&&this.store.addResource(e[0],t,r,i)}}}function eT(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function eR(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function eO(){}function eP(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}class eN extends q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=eR(e),this.services={},this.logger=z,this.modules={external:[]},eP(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let i=eT();function n(e){return e?"function"==typeof e?new e:e:null}if(this.options={...i,...this.options,...eR(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?z.init(n(this.modules.logger),this.options):z.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=eS);let r=new ep(this.options);this.store=new ec(this.options.resources,this.options);let o=this.services;o.logger=z,o.resourceStore=this.store,o.languageUtils=r,o.pluralResolver=new e_(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(o.formatter=n(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new eE(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new eI(n(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];e.emit(t,...i)}),this.modules.languageDetector&&(o.languageDetector=n(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=n(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new eh(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];e.emit(t,...i)}
2),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=eO),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let o=W(),s=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eO,r=t,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let i=W();return e||(e=this.languages),t||(t=this.options.ns),r||(r=eO),this.services.backendConnector.reload(e,t,e=>{i.resolve(),r(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&eu.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let i=W();this.emit("languageChanging",e);let n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(n(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},s=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||n(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),i}getFixedT(e,t,r){var i=this;let n=function(e,t){let o,s;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),c=2;c<a;c++)l[c-2]=arguments[c];o=i.options.overloadTranslationOptionHandler([e,t].concat(l))}else o={...t};o.lng=o.lng||n.lng,o.lngs=o.lngs||n.lngs,o.ns=o.ns||n.ns,o.keyPrefix=o.keyPrefix||r||n.keyPrefix;let u=i.options.keySeparator||".";return s=o.keyPrefix&&Array.isArray(e)?e.map(e=>`${o.keyPrefix}${u}${e}`):o.keyPrefix?`${o.keyPrefix}${u}${e}`:e,i.t(s,o)};return"string"==typeof e?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let o=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!i||o(n,e)))}loadNamespaces(e,t){let r=W();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=W();"string"==typeof e&&(e=[e]);let i=this.options.preload||[],n=e.filter(e=>0>i.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return n.length?(this.options.preload=i.concat(n),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new ep(eT())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new eN(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eO,r=e.forkResourceStore;r&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},n=new eN(i);return(void 0!==e.debug||void 0!==e.prefix)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(e=>{n[e]=this[e]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r&&(n.store=new ec(this.store.data,i),n.services.resourceStore=n.store),n.translator=new eh(n.services,i),n.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit(e,...r)}),n.init(i,t),n.translator.options=i,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let eM=eN.createInstance();eM.createInstance=eN.createInstance,eM.createInstance,eM.dir,eM.init,eM.loadResources,eM.reloadResources,eM.use,eM.changeLanguage,eM.getFixedT,eM.t,eM.exists,eM.setDefaultNamespace,eM.hasLoadedNamespace,eM.loadNamespaces,eM.loadLanguages;var eD=r(57437),eL=r(73493),ej=r.n(eL),eB=r(49211),e$=r.n(eB),eU=r(61911),eF=r(75114),ez=r(36760),eq=r.n(ez);function eW(e){return e.charAt(0).toUpperCase()+e.slice(1)}let eH=Object.values(h.hG).filter(e=>e!==h.hG.WEBAUTHN&&e!==h.hG.JWT),eV=eH.reduce((e,t)=>("email_passwordless"===t?e[t]="Email":"sms_passwordless"===t?e[t]="Mobile":e[t]=eW(t),e),{}),eZ={INIT_EXTERNAL_WALLETS:"INIT_EXTERNAL_WALLETS",LOGIN:"LOGIN",DISCONNECT:"DISCONNECT",MODAL_VISIBILITY:"MODAL_VISIBILITY"},eK={INITIALIZED:"initialized",CONNECTED:"connected",CONNECTING:"connecting",ERRORED:"errored"},eG="https://images.web3auth.io/web3auth-logo-w-light.svg",eY="https://images.web3auth.io/web3auth-logo-w.svg",eJ="https://images.web3auth.io/login-wallet-connect.svg";function eQ(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}eQ('/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/.w3a-parent-container *,.w3a-parent-container :after,.w3a-parent-container :before{border:0 solid #e5e7eb;box-sizing:border-box}.w3a-parent-container :after,.w3a-parent-container :before{--tw-content:""}.w3a-parent-container :host,.w3a-parent-container html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}.w3a-parent-container body{line-height:inherit;margin:0}.w3a-parent-container hr{border-top-width:1px;color:inherit;height:0}.w3a-parent-container abbr:where([title]){text-decoration:underline dotted}.w3a-parent-container h1,.w3a-parent-container h2,.w3a-parent-container h3,.w3a-parent-container h4,.w3a-parent-container h5,.w3a-parent-container h6{font-size:inherit;font-weight:inherit}.w3a-parent-container a{color:inherit;text-decoration:inherit}.w3a-parent-container b,.w3a-parent-container strong{font-weight:bolder}.w3a-parent-container code,.w3a-parent-container kbd,.w3a-parent-container pre,.w3a-parent-container samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}.w3a-parent-container small{font-size:80%}.w3a-parent-container sub,.w3a-parent-container sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}.w3a-parent-container sub{bottom:-.25em}.w3a-parent-container sup{top:-.5em}.w3a-parent-container table{border-collapse:collapse;border-color:inherit;text-indent:0}.w3a-parent-container button,.w3a-parent-container input,.w3a-parent-container optgroup,.w3a-parent-container select,.w3a-parent-container textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}.w3a-parent-container button,.w3a-parent-container select{text-transform:none}.w3a-parent-container [type=button],.w3a-parent-container [type=reset],.w3a-parent-container [type=submit],.w3a-parent-container button{-webkit-appearance:button;background-color:initial;background-image:none}.w3a-parent-container :-moz-focusring{outline:auto}.w3a-parent-container :-moz-ui-invalid{box-shadow:none}.w3a-parent-container progress{vertical-align:initial}.w3a-parent-container ::-webkit-inner-spin-button,.w3a-parent-container ::-webkit-outer-spin-button{height:auto}.w3a-parent-container [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.w3a-parent-container ::-webkit-search-decoration{-webkit-appearance:none}.w3a-parent-container ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.w3a-parent-container summary{display:list-item}.w3a-parent-container blockquote,.w3a-parent-container dd,.w3a-parent-container dl,.w3a-parent-container figure,.w3a-parent-container h1,.w3a-parent-container h2,.w3a-parent-container h3,.w3a-parent-container h4,.w3a-parent-container h5,.w3a-parent-container h6,.w3a-parent-container hr,.w3a-parent-container p,.w3a-parent-container pre{margin:0}.w3a-parent-container fieldset{margin:0;padding:0}.w3a-parent-container legend{padding:0}.w3a-parent-container menu,.w3a-parent-container ol,.w3a-parent-container ul{list-style:none;margin:0;padding:0}.w3a-parent-container dialog{padding:0}.w3a-parent-container textarea{resize:vertical}.w3a-parent-container input::placeholder,.w3a-parent-container textarea::placeholder{color:#9ca3af;opacity:1}.w3a-parent-container [role=button],.w3a-parent-container button{curs
2or:pointer}.w3a-parent-container :disabled{cursor:default}.w3a-parent-container audio,.w3a-parent-container canvas,.w3a-parent-container embed,.w3a-parent-container iframe,.w3a-parent-container img,.w3a-parent-container object,.w3a-parent-container svg,.w3a-parent-container video{display:block;vertical-align:middle}.w3a-parent-container img,.w3a-parent-container video{height:auto;max-width:100%}.w3a-parent-container [hidden]{display:none}.w3a-parent-container *,.w3a-parent-container :after,.w3a-parent-container :before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.w3a-parent-container ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.w3a-parent-container .container{width:100%}@media (min-width:640px){.w3a-parent-container .container{max-width:640px}}@media (min-width:768px){.w3a-parent-container .container{max-width:768px}}@media (min-width:1024px){.w3a-parent-container .container{max-width:1024px}}@media (min-width:1280px){.w3a-parent-container .container{max-width:1280px}}@media (min-width:1536px){.w3a-parent-container .container{max-width:1536px}}.w3a-parent-container .absolute{position:absolute}.w3a-parent-container .relative{position:relative}.w3a-parent-container .top-4{top:1rem}.w3a-parent-container .z-20{z-index:20}.w3a-parent-container .col-span-2{grid-column:span 2/span 2}.w3a-parent-container .col-span-3{grid-column:span 3/span 3}.w3a-parent-container .col-span-6{grid-column:span 6/span 6}.w3a-parent-container .-mb-2{margin-bottom:-.5rem}.w3a-parent-container .-ml-\\[100px\\]{margin-left:-100px}.w3a-parent-container .mb-1{margin-bottom:.25rem}.w3a-parent-container .mb-4{margin-bottom:1rem}.w3a-parent-container .mb-5{margin-bottom:1.25rem}.w3a-parent-container .ml-2{margin-left:.5rem}.w3a-parent-container .ml-\\[3px\\]{margin-left:3px}.w3a-parent-container .mt-4{margin-top:1rem}.w3a-parent-container .block{display:block}.w3a-parent-container .flex{display:flex}.w3a-parent-container .hidden{display:none}.w3a-parent-container .h-12{height:3rem}.w3a-parent-container .h-3{height:.75rem}.w3a-parent-container .w-3{width:.75rem}.w3a-parent-container .w-\\[300px\\]{width:300px}.w3a-parent-container .w-full{width:100%}.w3a-parent-container .rotate-45{--tw-rotate:45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.w3a-parent-container .cursor-pointer{cursor:pointer}.w3a-parent-container .flex-col{flex-direction:column}.w3a-parent-container .items-center{align-items:center}.w3a-parent-container .rounded-md{border-radius:.375rem}.w3a-parent-container .bg-app-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.w3a-parent-container .p-4{padding:1rem}.w3a-parent-container .text-left{text-align:left}.w3a-parent-container .text-right{text-align:right}.w3a-parent-container .text-xs{font-size:.75rem;line-height:1rem}.w3a-parent-container .font-medium{font-weight:500}.w3a-parent-container .leading-none{line-height:1}.w3a-parent-container .text-app-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.w3a-parent-container .text-app-gray-900{--tw-text-opacity:1;color:rgb(17 25 40/var(--tw-text-opacity))}.w3a-parent-container .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container .shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;
2--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.w3a-parent-container .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.w3a-parent-container input[type=number]::-webkit-inner-spin-button,.w3a-parent-container input[type=number]::-webkit-outer-spin-button{appearance:none}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:500;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:500;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:500;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:500;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:500;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:500;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:500;
2src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:700;src:url(https://fonts.gstatic.com/s/inter/v12/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.w3a-parent-container #w3a-modal{align-items:center;box-sizing:border-box;display:flex;font-family:Inter;inset:0;justify-content:center;padding:1rem;position:fixed}.w3a-parent-container #w3a-modal.w3a-modal--hidden{display:none}.w3a-parent-container #w3a-modal .w3a-modal__inner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-shadow:0px 4px 16px #00000014;
2--tw-shadow-colored:0px 4px 16px var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(243 244 246/var(--tw-border-opacity));border-radius:32px;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:flex;flex-direction:column;max-height:95%;max-width:392px;min-height:630px;opacity:0;overflow-x:hidden;overflow-y:hidden;position:relative;width:100%}.w3a-parent-container :is(.dark #w3a-modal .w3a-modal__inner){--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity))}.w3a-parent-container #w3a-modal .w3a-modal__inner{transform:scale(0);transform-origin:center center;transition:all .15s cubic-bezier(.92,0,1,.67)}.w3a-parent-container #w3a-modal .w3a-modal__inner.w3a-modal__inner--active{opacity:1;transform:scale(1);transform-origin:center center;transition:all .15s cubic-bezier(0,.73,.71,1)}.w3a-parent-container #w3a-modal .w3a-modal__header{padding:.5rem 2rem;position:relative}.w3a-parent-container #w3a-modal .w3a-modal__content{overflow-y:auto;padding:1rem 2rem}.w3a-parent-container #w3a-modal .w3a-modal__footer{--tw-bg-opacity:1;align-items:center;background-color:rgb(249 250 251/var(--tw-bg-opacity));justify-content:center;margin-top:auto;padding:1rem 2rem;text-align:center}.w3a-parent-container :is(.dark #w3a-modal .w3a-modal__footer){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-header{align-items:center;display:flex;padding-top:2rem}.w3a-parent-container #w3a-modal .w3a-header__logo{margin-bottom:1rem}.w3a-parent-container #w3a-modal .w3a-header__logo img{height:auto;width:2.5rem}.w3a-parent-container #w3a-modal .w3a-header__title{--tw-text-opacity:1;color:rgb(17 25 40/var(--tw-text-opacity));font-size:1.25rem;font-weight:700;line-height:1.75rem}.w3a-parent-container :is(.dark #w3a-modal .w3a-header__title){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal div.w3a-header__subtitle{--tw-text-opacity:1;align-items:center;color:rgb(107 114 128/var(--tw-text-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.25rem}.w3a-parent-container :is(.dark #w3a-modal div.w3a-header__subtitle){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal div.w3a-header__subtitle img{height:14px;margin-left:.25rem;width:14px}.w3a-parent-container #w3a-modal button.w3a-header__button{border-width:0;cursor:pointer;padding:0;position:absolute;right:1.75rem;top:1.25rem}.w3a-parent-container #w3a-modal button.w3a-header__button:active,.w3a-parent-container #w3a-modal button.w3a-header__button:focus{outline-color:#f9fafb}.w3a-parent-container :is(.dark #w3a-modal button.w3a-header__button:focus){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container :is(.dark #w3a-modal button.w3a-header__button:active){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container #w3a-modal div.w3a-social__policy{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity));font-size:.75rem;font-weight:500;line-height:1rem;margin-top:1rem;text-align:left}.w3a-parent-container :is(.dark #w3a-modal div.w3a-social__policy){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-group{margin-bottom:1rem}.w3a-parent-container #w3a-modal .w3a-group:last-child{margin-bottom:0}.w3a-parent-container #w3a-modal .w3ajs-passwordless div.w3a-group__title{align-items:center;display:flex}.w3a-parent-container #w3a-modal .w3ajs-passwordless div.w3a-group__title img{height:14px;margin-left:.25rem;width:14px}.w3a-parent-container #w3a-modal .w3a-group.w3a-group--email-hidden,.w3a-parent-container #w3a-modal .w3a-group.w3a-group--ext-wallet-hidden,.w3a-parent-container #w3a-modal .w3a-group.w3a-group--hidden,.w3a-parent-container #w3a-modal .w3a-group.w3a-group--social-hidden{display:none}.w3a-parent-container #w3a-modal div.w3a-group__title{--tw-text-opacity:1;color:rgb(17 25 40/var(--tw-text-opacity));font-size:.875rem;font-weight:500;line-height:1.25rem;margin-bottom:.5rem}.w3a-parent-container :is(.dark #w3a-modal div.w3a-group__title){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal ul.w3a-adapter-list{column-gap:.5rem;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));max-height:500px;overflow-y:hidden;padding:1px;row-gap:1rem;transition:max-height .35s;transition-timing-function:cubic-bezier(.92,0,.74,1)}.w3a-parent-container #w3a-modal ul.w3a-adapter-list.w3a-adapter-list--shrink{max-height:108px;transition:max-height .3s;transition-timing-function:cubic-bezier(0,.73,.71,1)}.w3a-parent-container #w3a-modal ul.w3a-adapter-list.w3a-adapter-list--hidden{display:none}.w3a-parent-container #w3a-modal li.w3a-adapter-item{list-style-type:none}.w3a-parent-container #w3a-modal li.w3a-adapter-item--full{grid-column:span 6/span 6}.w3a-parent-container #w3a-modal .w3a-adapter-item--hide{display:none}.w3a-parent-container #w3a-modal .w3a-external-toggle{display:block}.w3a-parent-container #w3a-modal .w3a-external-toggle.w3a-external-toggle--hidden{display:none}.w3a-parent-container #w3a-modal .w3a-external-container{display:block;margin-bottom:0}.w3a-parent-container #w3a-modal .w3a-external-container.w3a-external-container--hidden{display:none}
2.w3a-parent-container #w3a-modal .w3a-external-group{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.w3a-parent-container #w3a-modal .w3a-external-group__left{flex-grow:1}.w3a-parent-container #w3a-modal button.w3a-external-back{--tw-text-opacity:1;align-items:center;background-image:none;border-width:0;color:rgb(107 114 128/var(--tw-text-opacity));cursor:pointer;display:inline-flex;margin-bottom:.5rem;padding:0}.w3a-parent-container #w3a-modal button.w3a-external-back:active,.w3a-parent-container #w3a-modal button.w3a-external-back:focus{outline-color:#f9fafb}.w3a-parent-container :is(.dark #w3a-modal button.w3a-external-back){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.w3a-parent-container :is(.dark #w3a-modal button.w3a-external-back:focus){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container :is(.dark #w3a-modal button.w3a-external-back:active){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container #w3a-modal .w3a-external-back .w3a-group__title{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity));margin-bottom:0;margin-left:5px}.w3a-parent-container #w3a-modal .w3a-external-loader{display:flex;justify-content:center}.w3a-parent-container #w3a-modal .w3a-wallet-connect{display:block;margin-bottom:1rem;text-align:center}.w3a-parent-container #w3a-modal .w3a-wallet-connect.w3a-wallet-connect--hidden{display:none}.w3a-parent-container #w3a-modal .w3a-wallet-connect__container{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:10px;color:rgb(107 114 128/var(--tw-text-opacity));font-size:.625rem;margin-left:auto;margin-right:auto;min-width:250px;padding:1rem .75rem;width:fit-content}.w3a-parent-container :is(.dark #w3a-modal .w3a-wallet-connect__container){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-wallet-connect__container-android,.w3a-parent-container #w3a-modal .w3a-wallet-connect__container-desktop{margin:auto}.w3a-parent-container #w3a-modal .w3a-wallet-connect__container-btn-group{display:flex;gap:18px}.w3a-parent-container #w3a-modal .w3a-wallet-connect__container-ios{box-sizing:border-box;column-gap:1.25rem;display:flex;flex-wrap:wrap;padding:0 0 1.75rem;row-gap:30px}.w3a-parent-container #w3a-modal .w3a-wallet-connect-qr{margin:1rem}.w3a-parent-container #w3a-modal .w3a-wallet-connect-qr>canvas,.w3a-parent-container #w3a-modal .w3a-wallet-connect-qr>svg{margin:auto}.w3a-parent-container #w3a-modal .w3a-wallet-connect__container-android a{text-decoration-line:none}.w3a-parent-container #w3a-modal .w3a-wallet-connect__logo>img{margin:0 auto 1rem;width:115px}.w3a-parent-container #w3a-modal .w3a-footer{--tw-text-opacity:1;align-items:center;color:rgb(156 163 175/var(--tw-text-opacity));display:flex;font-size:.75rem;justify-content:center;line-height:1rem}.w3a-parent-container #w3a-modal .w3a-footer__links a:active,.w3a-parent-container #w3a-modal .w3a-footer__links a:focus{outline-color:#f9fafb}.w3a-parent-container :is(.dark #w3a-modal .w3a-footer__links a:focus){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container :is(.dark #w3a-modal .w3a-footer__links a:active){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container #w3a-modal .w3a-footer__links span{margin:0 4px}.w3a-parent-container #w3a-modal.w3a-modal--light .w3a-footer__links a:focus-visible{outline:1px solid #0f1222}.w3a-parent-container #w3a-modal.w3a-modal--light .w3a-external-back:focus-visible{outline:1px solid #0f1222}.w3a-parent-container .hover-icon{display:none;transition:display .15s;transition-timing-function:cubic-bezier(0,.54,.63,.99)}.w3a-parent-container #w3a-modal .w3a-text-field{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity));border-color:rgb(209 213 219/var(--tw-border-opacity));border-radius:9999px;border-width:1px;color:rgb(17 25 40/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;margin-top:.5rem;padding:.75rem 1.5rem}.w3a-parent-container #w3a-modal .w3a-text-field::placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity))}.w3a-parent-container #w3a-modal .w3a-text-field{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
2dow,0 0 #0000);outline-width:0}.w3a-parent-container #w3a-modal .w3a-text-field:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(3 100 255/var(--tw-ring-opacity));border-color:#0000;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.w3a-parent-container #w3a-modal .w3a-text-field:disabled{cursor:not-allowed}.w3a-parent-container #w3a-modal .w3a-text-field:disabled::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-text-field){--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity));border-color:rgb(107 114 128/var(--tw-border-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-text-field)::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-text-field:focus){--tw-ring-opacity:1;--tw-ring-color:rgb(63 131 248/var(--tw-ring-opacity));border-color:#0000}.w3a-parent-container :is(.dark #w3a-modal .w3a-text-field:disabled)::placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity))}.w3a-parent-container #w3a-modal .w3a-text-field{line-height:1.25em}.w3a-parent-container #w3a-modal .w3a-text-field--country-code{display:flex;justify-content:space-between;padding-left:1rem;padding-right:1rem;width:100%}.w3a-parent-container #w3a-modal .w3a-text-field--number{appearance:none}.w3a-parent-container #w3a-modal .w3a-sms-field--error{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;margin-bottom:.5rem;margin-left:.375rem;margin-top:-.5rem}.w3a-parent-container #w3a-container #w3a-modal input.w3a-text-field:-webkit-autofill,.w3a-parent-container #w3a-container #w3a-modal input.w3a-text-field:-webkit-autofill:active,.w3a-parent-container #w3a-container #w3a-modal input.w3a-text-field:-webkit-autofill:focus,.w3a-parent-container #w3a-container #w3a-modal input.w3a-text-field:-webkit-autofill:hover{--tw-shadow:0 0 0 3
20px #f9fafb inset;--tw-shadow-colored:inset 0 0 0 30px var(--tw-shadow-color);-webkit-text-fill-color:#111928!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.w3a-parent-container #w3a-container.dark #w3a-modal input.w3a-text-field:-webkit-autofill,.w3a-parent-container #w3a-container.dark #w3a-modal input.w3a-text-field:-webkit-autofill:active,.w3a-parent-container #w3a-container.dark #w3a-modal input.w3a-text-field:-webkit-autofill:focus,.w3a-parent-container #w3a-container.dark #w3a-modal input.w3a-text-field:-webkit-autofill:hover{--tw-shadow:0 0 0 30px #374151 inset;--tw-shadow-colored:inset 0 0 0 30px var(--tw-shadow-color);-webkit-text-fill-color:#fff!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.w3a-parent-container #w3a-modal .w3a-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:9999px;color:rgb(17 25 40/var(--tw-text-opacity));font-size:1rem;font-weight:500;line-height:1.5rem;padding:.75rem 1.5rem}.w3a-parent-container #w3a-modal .w3a-button:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-button:focus{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity));color:rgb(55 65 81/var(--tw-text-opacity));outline-color:#f9fafb}.w3a-parent-container #w3a-modal .w3a-button:active{outline-color:#f9fafb}.w3a-parent-container #w3a-modal .w3a-button:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-button){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(17 25 40/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-button:hover){--tw-bg-opacity:1;background-color:rgb(31 42 55/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-button:focus){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(17 25 40/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container :is(.dark #w3a-modal .w3a-button:active){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container :is(.dark #w3a-modal .w3a-button:disabled){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(59 69 85/var(--tw-bg-opacity));color:rgb(107 114 128/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-button--primary{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(3 100 255/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-button--primary:hover{--tw-bg-opacity:1;background-color:rgb(30 66 159/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-button--primary:focus{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(3 100 255/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity));outline-color:#a4cafe}.w3a-parent-container #w3a-modal .w3a-button--primary:active{outline-color:#a4cafe}.w3a-parent-container #w3a-modal .w3a-button--primary:disabled{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(195 221 253/var(--tw-bg-opacity));color:rgb(235 245 255/var(--tw-text-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-button--primary){--tw-bg-opacity:1;background-color:rgb(63 131 248/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-button--primary:hover){--tw-bg-opacity:1;background-color:rgb(30 66 159/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-button--primary:focus){--tw-bg-opacity:1;background-color:rgb(63 131 248/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-button--primary:disabled){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(45 72 116/var(--tw-bg-opacity));color:rgb(107 114 128/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-button--login{align-items:center;display:inline-flex;height:2.75rem;justify-content:center}.w3a-parent-container #w3a-modal button.w3a-button--login:hover>.hover-icon{display:block;transition:display .15s;transition-timing-function:cubic-bezier(0,.54,.63,.99)}.w3a-parent-container #w3a-modal button.w3a-button--login:hover>.image-icon{display:none;transition:display .15s;transition-timing-function:cubic-bezier(0,.54,.63,.99)}.w3a-parent-container #w3a-modal button.w3a-button-expand{--tw-text-opacity:1;color:rgb(3 100 255/var(--tw-text-opacity));font-size:.875rem;height:auto;line-height:1.25rem;margin-left:auto;margin-top:1rem;width:auto}.w3a-parent-container #w3a-modal button.w3a-button-expand:hover{--tw-text-opacity:1;color:rgb(30 66 159/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal button.w3a-button-expand:focus-visible{outline-color:#f9fafb;outline-style:solid;outline-width:1px}.w3a-parent-container :is(.dark #w3a-modal button.w3a-button-expand){--tw-text-opacity:1;color:rgb(63 131 248/var(--tw-text-opacity))}.w3a-parent-container :is(.dark #w3a-modal button.w3a-button-expand:hover){--tw-text-opacity:1;color:rgb(118 169 250/var(--tw-text-opacity))}.w3a-parent-container :is(.dark #w3a-modal button.w3a-button-expand:focus-visible){outline-color:#9ca3af;outline-style:solid;outline-width:1px}.w3a-parent-container #w3a-modal .w3a-sms-field__container{display:grid;gap:.5rem;grid-template-columns:repeat(12,minmax(0,1fr))}.w3a-parent-container #w3a-modal .w3a-sms-field__code-selected{display:flex}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown{height:185px;position:absolute;width:120px;z-index:10}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown>
2:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;--tw-divide-opacity:1;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-color:rgb(243 244 246/var(--tw-divide-opacity));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown{--tw-bg-opacity:1;--tw-shadow:0px 4px 16px #00000014;--tw-shadow-colored:0px 4px 16px var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-radius:.5rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);overflow-y:scroll}.w3a-parent-container :is(.dark #w3a-modal .w3a-sms-field__code-dropdown){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown{transform:translateY(-230px)}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown--hidden{display:none}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown ul{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding-bottom:.5rem;padding-top:.5rem}.w3a-parent-container :is(.dark #w3a-modal .w3a-sms-field__code-dropdown ul){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown li{cursor:pointer;padding:0}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown li:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-sms-field__code-dropdown li:hover){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown li button{height:100%;padding:.5rem 1rem;text-align:left;width:100%}.w3a-parent-container #w3a-modal .w3a-sms-field__code-dropdown li button div{align-items:center;display:flex}.w3a-parent-container #w3a-modal .w3a-sms-field__code{grid-column:span 5/span 5}.w3a-parent-container #w3a-modal .w3a-sms-field__number{grid-column:span 7/span 7}.w3a-parent-container #w3a-modal .w3a-modal__loader{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));display:flex;inset:0;justify-content:center;position:absolute;z-index:10}.w3a-parent-container :is(.dark #w3a-modal .w3a-modal__loader){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-modal__loader.w3a-modal__loader--hidden{display:none}.w3a-parent-container #w3a-modal .w3a-modal__loader-content{display:flex;flex-direction:column;margin-bottom:50px;position:relative;text-align:center}.w3a-parent-container #w3a-modal .w3a-modal__loader-info{align-items:center;display:flex;flex-direction:column;flex-grow:1;justify-content:center;padding:0 30px}.w3a-parent-container #w3a-modal .w3a-spinner-label{--tw-text-opacity:1;color:rgb(3 100 255/var(--tw-text-opacity));font-size:1rem;font-weight:500;line-height:1.5rem;margin-top:10px}.w3a-parent-container :is(.dark #w3a-modal .w3a-spinner-label){--tw-text-opacity:1;color:rgb(63 131 248/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-spinner-message{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;margin-top:10px}.w3a-parent-container #w3a-modal .w3a-spinner-message:first-letter{text-transform:capitalize}.w3a-parent-container :is(.dark #w3a-modal .w3a-spinner-message){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-spinner-message.w3a-spinner-message--error{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-spinner-power{--tw-text-opacity:1;color:rgb(183 184 189/var(--tw-text-opacity));font-size:.75rem;line-height:1rem;margin-top:auto}.w3a-parent-container #w3a-modal .w3a-spinner-power>img{display:inline;height:2rem;width:auto}.w3a-parent-container #w3a-modal .w3a-spinner{--tw-bg-opacity:1;background-color:rgb(3 100 255/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-spinner){--tw-text-opacity:1;color:rgb(63 131 248/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-spinner{animation:rotate 1s linear infinite;background:conic-gradient(#0000,#0364ff);border-radius:50%;display:inline-block;height:60px;position:relative;width:60px}.w3a-parent-container #w3a-modal .w3a-spinner__head,.w3a-parent-container #w3a-modal .w3a-spinner__mask{border-radius:100%;content:"";position:absolute}.w3a-parent-container #w3a-modal .w3a-spinner__mask{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-spinner__mask){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-spinner__mask{height:50px;left:5px;top:5px;width:50px}.w3a-parent-container #w3a-modal .w3a-spinner__head{--tw-bg-opacity:1;background-color:rgb(3 100 255/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark #w3a-modal .w3a-spinner__head){--tw-text-opacity:1;color:rgb(63 131 248/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-spinner__head{height:5px;left:26px;top:0;width:5px}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.w3a-parent-container #w3a-modal .w3a-modal__loader-bridge{align-items:center;display:flex;justify-content:center;margin-bottom:14px}.w3a-parent-container #w3a-modal .w3a-modal__loader-bridge-message{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-modal__loader-bridge-message:first-letter{text-transform:capitalize}.w3a-parent-container :is(.dark #w3a-modal .w3a-modal__loader-bridge-message){
2--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.w3a-parent-container #w3a-modal .w3a-modal__loader-app-logo{display:flex;padding:.5rem}.w3a-parent-container #w3a-modal .w3a-modal__loader-app-logo--default{--tw-bg-opacity:1;align-items:center;background-color:rgb(3 100 255/var(--tw-bg-opacity));border-radius:9999px;height:72px;justify-content:center;width:72px}.w3a-parent-container :is(.dark #w3a-modal .w3a-modal__loader-app-logo--default){--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-modal__loader-app-logo img{height:auto;max-height:72px;max-width:72px;width:72px}.w3a-parent-container #w3a-modal .w3a-modal__loader-app-logo--default img{max-height:45px;max-width:45px;width:45px}.w3a-parent-container #w3a-modal .w3a-modal__loader-social-logo{--tw-bg-opacity:1;align-items:center;background-color:rgb(243 244 246/var(--tw-bg-opacity));border-radius:9999px;display:flex;height:72px;justify-content:center;width:72px}.w3a-parent-container :is(.dark #w3a-modal .w3a-modal__loader-social-logo){--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.w3a-parent-container #w3a-modal .w3a-modal__loader-social-logo img{height:4rem;width:4rem}.w3a-parent-container #w3a-modal .w3a-modal__loader-adapter img{height:auto;width:84px}.w3a-parent-container #w3a-modal .w3a-modal__connector{align-items:center;display:flex}.w3a-parent-container .w3a-modal__connector-beat{display:inline-block;height:80px;position:relative;width:80px}.w3a-parent-container .w3a-modal__connector-beat div{animation-timing-function:cubic-bezier(0,1,1,0);background:grey;border-radius:50%;height:13px;position:absolute;top:33px;width:13px}.w3a-parent-container .w3a-modal__connector-beat div:first-child{animation:beat1 2.4s infinite;left:8px}.w3a-parent-container .w3a-modal__connector-beat div:nth-child(2){animation:beat2 2.4s infinite;left:8px}.w3a-parent-container .w3a-modal__connector-beat div:nth-child(3){animation:beat3 2.4s infinite;left:8px}.w3a-parent-container .w3a-modal__connector-beat div:nth-child(4){animation:beat4 2.4s infinite;left:32px}.w3a-parent-container .w3a-modal__connector-beat div:nth-child(5){animation:beat5 2.4s infinite;left:56px}@keyframes beat1{0%{transform:scale(0)}25%{transform:scale(0)}50%{transform:scale(1)}75%{transform:scale(0)}to{transform:scale(0)}}@keyframes beat2{0%{transform:scale(0)}25%{transform:scale(1)}50%{transform:translate(24px)}75%{transform:translate(0)}to{transform:translate(0) scale(0)}}@keyframes beat3{0%{transform:translate(0)}25%{transform:translate(24px)}50%{transform:translate(48px)}75%{transform:translate(24px)}to{transform:translate(0)}}@keyframes beat4{0%{transform:translate(0)}25%{transform:translate(24px)}50%{transform:translate(24px) scale(0)}75%{transform:translate(24px) scale(1)}to{transform:translate(0)}}@keyframes beat5{0%{transform:scale(1)}25%{transform:scale(0)}50%{transform:scale(0)}75%{transform:scale(0)}to{transform:scale(1)}}.w3a-parent-container .group:hover .group-hover\\:flex{display:flex}.w3a-parent-container :is(.dark .dark\\:bg-app-gray-600){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.w3a-parent-container :is(.dark .dark\\:text-white){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}');let eX=(0,y.createContext)({isDark:!0});var e0={modal:{"adapter-loader.message":"Verify your {{adapter}} account to continue","adapter-loader.message1":"Verify your {{adapter}}","adapter-loader.message2":"account to continue","errors-invalid-number-email":"Invalid Email or Phone Number","errors-required":"Required","external.back":"Back","external.connect":"Connect with Wallet","external.title":"External Wallet","external.walletconnect-connect":"Connect","external.walletconnect-copy":"Click on the QR Code to copy to clipboard","external.walletconnect-subtitle":"Scan the QR code with a WalletConnect-compatible wallet","footer.message":"Self-custodial login by","footer.message-new":"Self-custodial login by Web3Auth","footer.policy":"Privacy Policy","footer.terms":"Terms of Use","footer.terms-service":"Terms of Service","footer.version":"Version","header-subtitle":"Select one of the following options to continue","header-subtitle-name":"Your {{appName}} wallet with one click","header-subtitle-new":"Your blockchain wallet with one click","header-title":"Sign in","header-tooltip-desc":"The wallet serves as an account to store and manage your digital assets on the blockchain.","header-tooltip-title":"Wallet","network.add-request":"This site is requesting to add a network","network.c
2ancel":"Cancel","network.from":"From","network.proceed":"Proceed","network.switch-request":"This site is requesting to switch networks","network.to":"To","popup.phone-body":"Your country code will be detected automatically, but if you're using a phone number from a different country, you'll need to enter the correct country code manually.","popup.phone-header":"Phone number and country code","social.continue":"Continue with","social.continueCustom":"Continue with {{adapter}}","social.email":"Email","social.email-continue":"Continue with Email","social.email-new":"[email protected]","social.passwordless-cta":"Continue","social.passwordless-title":"Email or Phone","social.phone":"Phone","social.policy":"We do not store any data related to your social logins.","social.sms":"Mobile","social.sms-continue":"Continue with Mobile","social.sms-invalid-number":"Invalid phone number","social.sms-placeholder-text":"E.g.:","social.view-less":"View fewer options","social.view-less-new":"View fewer","social.view-more":"View more options","social.view-more-new":"View more","post-loading.connected":"You are connected with your account","post-loading.something-wrong":"Something went wrong!"}};let e1=eM.createInstance();e1.use(D).init({resources:{en:{translation:e0}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1},debug:!1,react:{useSuspense:!0}});let e2={"arrow-left":{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%2224%20%2F%20arrows%20%2F%20circle-arrow-left%22%3E%3Cpath%20id%3D%22icon%22%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M12%2023C5.92487%2023%201%2018.0751%201%2012C1%205.92487%205.92487%201%2012%201C18.0751%201%2023%205.92487%2023%2012C23%2018.0751%2018.0751%2023%2012%2023ZM12%2021C16.9706%2021%2021%2016.9706%2021%2012C21%207.02944%2016.9706%203%2012%203C7.02944%203%203%207.02944%203%2012C3%2016.9706%207.02944%2021%2012%2021ZM17%2011H10.4142L12.7071%208.70711L11.2929%207.29289L6.58579%2012L11.2929%2016.7071L12.7071%2015.2929L10.4142%2013H17V11Z%22%20fill%3D%22%23D3D3D4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"},close:{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M13.4142%2012L19.7782%2018.364L18.364%2019.7782L12%2013.4143L5.63604%2019.7782L4.22183%2018.364L10.5858%2012L4.22183%205.63608L5.63604%204.22187L12%2010.5858L18.364%204.22187L19.7782%205.63608L13.4142%2012Z%22%20fill%3D%22%23DFDFDF%22%2F%3E%3C%2Fsvg%3E"},"expand-light":{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.0991%2015.6785C11.694%2016.1072%2011.0119%2016.1072%2010.6068%2015.6785L4.98828%209.73136C4.36988%209.0768%204.83393%208%205.73441%208L16.9715%208C17.872%208%2018.336%209.0768%2017.7176%209.73136L12.0991%2015.6785Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%3C%2Fsvg%3E"},expand:{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.0991%2015.6785C11.694%2016.1072%2011.0119%2016.1072%2010.6068%2015.6785L4.98828%209.73136C4.36988%209.0768%204.83393%208%205.73441%208L16.9715%208C17.872%208%2018.336%209.0768%2017.7176%209.73136L12.0991%2015.6785Z%22%20fill%3D%22%23B7B8BD%22%2F%3E%3C%2Fsvg%3E"},connected:{image:"data:image/svg+xml,%3Csvg%20width%3D%22141%22%20height%3D%22107%22%20viewBox%3D%220%200%20141%20107%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M22.5276%2083.0535C22.5745%2083.0354%2022.613%2082.9958%2022.6292%2082.9402C22.6821%2082.7569%2022.6159%2082.1413%2022.4252%2081.0511C23.204%2080.5866%2023.6245%2080.2954%2023.7147%2080.1668C23.7483%2080.1143%2023.7517%2080.0538%2023.7224%2080.0059C23.6705%2079.9274%2023.6072%2079.8336%2022.0991%2080.112
2C20.9422%2078.3357%2020.7713%2078.3673%2020.6693%2078.3822C20.66%2078.3858%2020.6489%2078.3852%2020.6349%2078.3906C20.5881%2078.4087%2020.5495%2078.4483%2020.5334%2078.5039C20.4744%2078.6994%2020.5567%2079.4123%2020.7783%2080.6237C19.4856%2081.4304%2019.502%2081.5424%2019.5165%2081.6354C19.5224%2081.6923%2019.5658%2081.7347%2019.6306%2081.7491C19.7839%2081.7834%2020.2955%2081.7134%2021.1934%2081.5284C22.2344%2083.103%2022.3865%2083.0786%2022.4915%2083.0576C22.5072%2083.0565%2022.5183%2083.0571%2022.5276%2083.0535Z%22%20fill%3D%22%239D4492%22%2F%3E%3Cpath%20d%3D%22M38.1699%2024.3125L36.5906%2023.6967L34.7166%2027.4815L36.2959%2028.0974L38.1699%2024.3125Z%22%20fill%3D%22%239BEC7D%22%2F%3E%3Cpath%20d%3D%22M48.5645%2034.7988L49.9232%2035.2505L51.3245%2032.0124L49.9658%2031.5607L48.5645%2034.7988Z%22%20fill%3D%22%23FFBF19%22%2F%3E%3Cpath%20d%3D%22M34.4449%2075.5265L33.4902%2076.6264L36.2729%2078.6922L37.2275%2077.5924L34.4449%2075.5265Z%22%20fill%3D%22%23FFBF19%22%2F%3E%3Cpath%20d%3D%22M35.969%2054.562L35.5664%2056.1768L39.8078%2056.8795L40.2104%2055.2647L35.969%2054.562Z%22%20fill%3D%22%239D4492%22%2F%3E%3Cpath%20d%3D%22M38.1949%2089.7319L37.135%2091.092L40.6027%2093.371L41.6626%2092.0109L38.1949%2089.7319Z%22%20fill%3D%22%239D4492%22%2F%3E%3Cpath%20d%3D%22M35.664%2043.2933L36.2599%2041.7217L32.1621%2040.5607L31.5662%2042.1323L35.664%2043.2933Z%22%20fill%3D%22%239BEC7D%22%2F%3E%3Cpath%20d%3D%22M65.9671%209.19276C65.9998%209.18006%2066.023%209.15631%2066.0317%209.12332C66.0671%209.00603%2066.1432%208.66753%2066.0171%207.96665C66.5192%207.66361%2066.6733%207.41471%2066.733%207.3324C66.7575%207.29825%2066.7582%207.2585%2066.7356%207.22781C66.6999%207.1775%2066.6827%206.98733%2065.706%207.16352C64.9602%206.0171%2064.827%206.16686%2064.7612%206.17758C64.7565%206.1794%2064.7471%206.18303%2064.7424%206.18484C64.7097%206.19754%2064.6865%206.2213%2064.6778%206.25429C64.641%206.38196%2064.5887%206.75785%2064.7307%207.54138C63.8979%208.06133%2064.0099%208.21478%2064.0221%208.27417C64.026%208.31211%2064.0534%208.34097%2064.0945%208.34972C64.194%208.37033%2064.4345%208.4035%2065.019%208.28554C65.6929%209.30198%2065.8761%209.20827%2065.9467%209.19573C65.9513%209.19392%2065.9624%209.19458%2065.9671%209.19276Z%22%20fill%3D%22%239BEC7D%22%2F%3E%3Cpath%20d%3D%22M88.1272%2023.1029C88.16%2023.0902%2088.1831%2023.0665%2088.1919%2023.0335C88.2272%2022.9162%2088.3034%2022.5777%2088.1773%2021.8768C88.6794%2021.5738%2088.8335%2021.3249%2088.8932%2021.2426C88.9176%2021.2084%2088.9184%2021.1687%2088.8957%2021.138C88.8601%2021.0877%2088.8429%2020.8975%2087.8661%2021.0737C87.1203%2019.9273%2086.9872%2020.077%2086.9213%2020.0877C86.9166%2020.0896%2086.9073%2020.0932%2086.9026%2020.095C86.8698%2020.1077%2086.8467%2020.1315%2086.8379%2020.1644C86.8012%2020.2921%2086.7489%2020.668%2086.8908%2021.4515C86.0581%2021.9715%2086.17%2022.1249%2086.1823%2022.1843C86.1862%2022.2223%2086.2135%2022.2511%2086.2546%2022.2599C86.3542%2022.2805%2086.5946%2022.3137%2087.1792%2022.1957C87.8531%2023.2121%2088.0363%2023.1184%2088.1068%2023.1059C88.1115%2023.1041%2088.1225%2023.1047%2088.1272%2023.1029Z%22%20fill%3D%22%23FFBF19%22%2F%3E%3Cpath%20d%3D%22M106.127%2076.1029C106.16%2076.0902%20106.183%2076.0665%20106.192%2076.0335C106.227%2075.9162%20106.303%2075.5777%20106.177%2074.8768C106.679%2074.5738%20106.833%2074.3249%20106.893%2074.2426C106.918%2074.2084%20106.918%2074.1687%20106.896%2074.138C106.86%2074.0877%20106.843%2073.8975%20105.866%2074.0737C105.12%2072.9273%20104.987%2073.077%20104.921%2073.0877C104.917%2073.0896%20104.907%2073.0932%20104.903%2073.095C104.87%2073.1077%20104.847%2073.1315%20104.838%2073.1644C104.801%2073.2921%20104.749%2073.668%20104.891%2074.4515C104.058%2074.9715%20104.17%2075.1249%20104.182%2075.1843C104.186%2075.2223%20104.214%2075.2511%20104.255%2075.2599C104.354%2075.2805%20104.595%2075.3137%20105.179%2075.1957C105.853%2076.2121%20106.036%2076.1184%20106.107%2076.1059C106.111%2076.1041%20106.123%2076.1047%20106.127%2076.1029Z%22%20fill%3D%22%23FFBF19%22%2F%3E%3Cpath%20d%3D%22M28.1272%2065.1029C28.16%2065.0902%2028.1831%2065.0665%2028.1919%2065.0335C28.2272%2064.9162%2028.3034%2064.5777%2028.1773%2063.8768C28.6794%2063.5738%2028.8335%2063.3249%2028.8932%2063.2426C28.9176%2063.2084%2028.9184%2063.1687%2028.8957%2063.138C28.8601%2063.0877%2028.8429%2062.8975%2027.8661%2063.0737C27.1203%2061.9273%2026.9872%2062.077%2026.9213%2062.0877C26.9166%2062.0896%2026.9073%2062.0932%2026.9026%2062.095C26.8698%2062.1077%2026.8467%2062.1315%2026.8379%2062.1644C26.8012%2062.2921%2026.7489%2062.668%2026.8908%2063.4515C26.0581%2063.9715%2026.17%2064.1249%2026.1823%2064.1843C26.1862%2064.2223%2026.2135%2064.2511%2026.2546%2064.2599C26.3542%2064.2805%2026.5946%2064.3137%2027.1792%2064.1957C27.8531%2065.2121%2028.0363%2065.1184%2028.1068%2065.1059C28.1115%2065.1041%2028.1225%2065.1047%2028.1272%2065.1029Z%22%20fill%3D%22%23FFBF19%22%2F%3
2E%3Cpath%20d%3D%22M24.1272%2035.1049C24.16%2035.0922%2024.1831%2035.0684%2024.1919%2035.0354C24.2272%2034.9181%2024.3034%2034.5796%2024.1773%2033.8788C24.6794%2033.5757%2024.8335%2033.3268%2024.8932%2033.2445C24.9176%2033.2104%2024.9184%2033.1706%2024.8957%2033.1399C24.8601%2033.0896%2024.8429%2032.8994%2023.8661%2033.0756C23.1203%2031.9292%2022.9872%2032.079%2022.9213%2032.0897C22.9166%2032.0915%2022.9073%2032.0951%2022.9026%2032.097C22.8698%2032.1097%2022.8467%2032.1334%2022.8379%2032.1664C22.8012%2032.2941%2022.7489%2032.67%2022.8908%2033.4535C22.0581%2033.9734%2022.17%2034.1269%2022.1823%2034.1863C22.1862%2034.2242%2022.2135%2034.2531%2022.2546%2034.2618C22.3542%2034.2824%2022.5946%2034.3156%2023.1792%2034.1977C23.8531%2035.2141%2024.0363%2035.1204%2024.1068%2035.1078C24.1115%2035.106%2024.1225%2035.1067%2024.1272%2035.1049Z%22%20fill%3D%22%239BEC7D%22%2F%3E%3Cpath%20d%3D%22M15.0937%2054.5618L14.5682%2055.7761L17.7171%2056.8229L18.2426%2055.6086L15.0937%2054.5618Z%22%20fill%3D%22%23FF623A%22%2F%3E%3Cpath%20d%3D%22M96.078%2032.6055C96.0647%2032.6548%2096.0739%2032.7102%2096.1097%2032.7569C96.2279%2032.9107%2096.7718%2033.2274%2097.7795%2033.7279C97.6907%2034.6456%2097.6758%2035.1653%2097.7268%2035.3167C97.7496%2035.3757%2097.7971%2035.4151%2097.8539%2035.4199C97.9495%2035.4246%2098.0645%2035.4293%2098.745%2034.0266C100.897%2034.1494%20100.974%2033.9904%20101.023%2033.8979C101.026%2033.8881%20101.033%2033.8794%20101.037%2033.8646C101.05%2033.8153%20101.041%2033.7599%20101.005%2033.7132C100.881%2033.5472%20100.247%2033.1851%2099.1216%2032.6367C99.2398%2031.0922%2099.1382%2031.0382%2099.0533%2030.994C99.0031%2030.9645%2098.9423%2030.9745%2098.8915%2031.0189C98.771%2031.1239%2098.5201%2031.5849%2098.1308%2032.4317C96.2142%2032.3356%2096.1425%2032.4749%2096.0964%2032.5735C96.0879%2032.587%2096.0807%2032.5957%2096.078%2032.6055Z%22%20fill%3D%22%239D4492%22%2F%3E%3Cpath%20d%3D%22M126.156%2049.8145C126.143%2049.8638%20126.152%2049.9192%20126.188%2049.9659C126.306%2050.1196%20126.85%2050.4363%20127.858%2050.9369C127.769%2051.8546%20127.754%2052.3743%20127.805%2052.5257C127.828%2052.5847%20127.875%2052.624%20127.932%2052.6289C128.028%2052.6336%20128.143%2052.6383%20128.823%2051.2356C130.975%2051.3584%20131.052%2051.1994%20131.101%2051.1069C131.104%2051.097%20131.111%2051.0884%20131.115%2051.0736C131.128%2051.0243%20131.119%2050.9689%20131.083%2050.9222C130.959%2050.7562%20130.325%2050.3941%20129.2%2049.8457C129.318%2048.3012%20129.216%2048.2472%20129.131%2048.203C129.081%2048.1735%20129.02%2048.1835%20128.97%2048.2279C128.849%2048.3328%20128.598%2048.7939%20128.209%2049.6407C126.292%2049.5445%20126.221%2049.6838%20126.175%2049.7824C126.166%2049.796%20126.159%2049.8046%20126.156%2049.8145Z%22%20fill%3D%22%23A7EE8D%22%2F%3E%3Cpath%20d%3D%22M120.338%2059.8887L121.794%2058.9664L119.823%2055.1516L118.367%2056.0739L120.338%2059.8887Z%22%20fill%3D%22%239BEC7D%22%2F%3E%3Cpath%20d%3D%22M117.531%2036.5586L116.343%2037.3991L118.15%2040.4974L119.339%2039.6569L117.531%2036.5586Z%22%20fill%3D%22%23FFBF19%22%2F%3E%3Cpath%20d%3D%22M80.6419%2025.9833L80.3163%2024.539L76.9483%2025.5732L77.2738%2027.0175L80.6419%2025.9833Z%22%20fill%3D%22%23FFBF19%22%2F%3E%3Cpath%20d%3D%22M109.829%2048.4349L108.749%2047.1323L105.618%2050.1823L106.698%2051.4849L109.829%2048.4349Z%22%20fill%3D%22%239D4492%22%2F%3E%3Cpath%20d%3D%22M66.7549%2020.4988L66.2797%2018.8115L62.3243%2020.2783L62.7995%2021.9656L66.7549%2020.4988Z%22%20fill%3D%22%239D4492%22%2F%3E%3Cpath%20d%3D%22M104.749%2024.9248L105.677%2026.3595L109.097%2023.7033L108.169%2022.2685L104.749%2024.9248Z%22%20fill%3D%22%239BEC7D%22%2F%3E%3Cpath%20d%3D%22M115.977%2091.7592C115.968%2091.7937%20115.973%2091.827%20115.995%2091.854C116.07%2091.9536%20116.301%2092.2199%20116.951%2092.5389C116.897%2093.1326%20117.008%2093.4088%20117.039%2093.5072C117.052%2093.5478%20117.084%2093.5724%20117.123%2093.5723C117.186%2093.5734%20117.352%2093.6739%20117.796%2092.7679C119.184%2092.8478%20119.142%2092.6486%20119.173%2092.5882C119.174%2092.5832%20119.177%2092.5734%20119.178%2092.5685C119.187%2092.534%20119.182%2092.5007%20119.16%2092.4737C119.078%2092.3667%20118.801%2092.0974%20118.074%2091.7416C118.15%2090.7464%20117.957%2090.7457%20117.901%2090.7199C117.868%2090.7003%20117.827%2090.7053%20117.796%2090.7336C117.719%2090.8028%20117.547%2090.9797%20117.291%2091.5294C116.053%2091.4689%20116.019%2091.6754%20115.987%2091.7407C115.986%2091.7457%20115.978%2091.7543%20115.977%2091.7592Z%22%20fill%3D%22%239BEC7D%22%2F%3E%3Cpath%20d%3D%22M127.489%2078.9367L126.811%2077.7749L124.057%2079.7229L124.735%2080.8847L127.489%2078.9367Z%22%20fill%3D%22%23FF623A%22%2F%3
2E%3Ccircle%20cx%3D%2273.5%22%20cy%3D%2264.7305%22%20r%3D%2227.5%22%20fill%3D%22%230E9F6E%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M68.5539%2071.8815C68.8439%2072.1793%2069.3223%2072.1793%2069.6122%2071.8815L84.2185%2056.8765C84.9214%2056.1545%2086.0815%2056.1545%2086.7843%2056.8765C87.461%2057.5716%2087.461%2058.6791%2086.7843%2059.3742L70.0456%2076.5698C69.5183%2077.1115%2068.6479%2077.1115%2068.1206%2076.5698L60.2157%2068.4491C59.539%2067.754%2059.539%2066.6465%2060.2157%2065.9515C60.9185%2065.2294%2062.0786%2065.2294%2062.7815%2065.9515L68.5539%2071.8815Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"},"information-circle-light":{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cpath%20d%3D%22M13%2016H12V12H11M12%208H12.01M21%2012C21%2013.1819%2020.7672%2014.3522%2020.3149%2015.4442C19.8626%2016.5361%2019.1997%2017.5282%2018.364%2018.364C17.5282%2019.1997%2016.5361%2019.8626%2015.4442%2020.3149C14.3522%2020.7672%2013.1819%2021%2012%2021C10.8181%2021%209.64778%2020.7672%208.55585%2020.3149C7.46392%2019.8626%206.47177%2019.1997%205.63604%2018.364C4.80031%2017.5282%204.13738%2016.5361%203.68508%2015.4442C3.23279%2014.3522%203%2013.1819%203%2012C3%209.61305%203.94821%207.32387%205.63604%205.63604C7.32387%203.94821%209.61305%203%2012%203C14.3869%203%2016.6761%203.94821%2018.364%205.63604C20.0518%207.32387%2021%209.61305%2021%2012Z%22%20stroke%3D%22%239CA3AF%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%2F%3E%3C%2Fsvg%3E"},"information-circle":{image:"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%20%20%20%3Cpath%20d%3D%22M13%2016H12V12H11M12%208H12.01M21%2012C21%2013.1819%2020.7672%2014.3522%2020.3149%2015.4442C19.8626%2016.5361%2019.1997%2017.5282%2018.364%2018.364C17.5282%2019.1997%2016.5361%2019.8626%2015.4442%2020.3149C14.3522%2020.7672%2013.1819%2021%2012%2021C10.8181%2021%209.64778%2020.7672%208.55585%2020.3149C7.46392%2019.8626%206.47177%2019.1997%205.63604%2018.364C4.80031%2017.5282%204.13738%2016.5361%203.68508%2015.4442C3.23279%2014.3522%203%2013.1819%203%2012C3%209.61305%203.94821%207.32387%205.63604%205.63604C7.32387%203.94821%209.61305%203%2012%203C14.3869%203%2016.6761%203.94821%2018.364%205.63604C20.0518%207.32387%2021%209.61305%2021%2012Z%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%2F%3E%3C%2Fsvg%3E"}};function e3(e){let{iconName:t,iconTitle:r="",height:i="auto",width:n="auto"}=e;return e2[t]?(0,eD.jsx)("img",{className:r?"cursor-pointer":"",height:i,width:n,src:e2[t].image,alt:t,title:r}):null}function e5(e){let{hoverImageId:t,imageId:r,isButton:i=!1,height:n="auto",width:o="auto"}=e;return(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsx)("img",{src:`https://images.web3auth.io/${r}.svg`,height:n,width:o,alt:r,className:"image-icon"}),i?(0,eD.jsx)("img",{src:`https://images.web3auth.io/${t}.svg`,height:n,width:o,alt:t,className:"hover-icon"}):null]})}let e4=(0,eD.jsx)(e3,{iconName:"close"});function e6(e){let{adapter:t,appLogo:r,message:i,modalStatus:o,adapterName:s,onClose:a}=e,l=(0,eD.jsx)(e5,{imageId:"web3auth"}),c="twitter"===t?(0,eD.jsx)(e5,{imageId:"login-x-dark"}):(0,eD.jsx)(e5,{imageId:`login-${t}`}),[u]=$(void 0,{i18n:e1}),d=[eY,eG].includes(r);return(0,y.useEffect)(()=>{n.cM.debug("adapter loader re-rendering"),o===eK.CONNECTED&&setTimeout(()=>{a()},3e3)},[o,a]),o!==eK.INITIALIZED?(0,eD.jsxs)("div",{className:"w3ajs-modal-loader w3a-modal__loader",children:[(0,eD.jsxs)("div",{className:"w3a-modal__loader-content",children:[(0,eD.jsxs)("div",{className:"w3a-modal__loader-info",children:[o===eK.CONNECTING&&(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsxs)("div",{className:"w3a-modal__loader-bridge",children:[(0,eD.jsx)("div",{className:["w3a-modal__loader-app-logo",d?"w3a-modal__loader-app-logo--default":""].join(" "),children:(0,eD.jsx)("img",{src:r,alt:""})}),(0,eD.jsx)("div",{className:"w3a-modal__connector",children:(0,eD.jsxs)("div",{className:"w3a-modal__connector-beat",children:[(0,eD.jsx)("div",{}),(0,eD.jsx)("div",{}),(0,eD.jsx)("div",{}),(0,eD.jsx)("div",{}),(0,eD.jsx)("div",{})]})}),(0,eD.jsx)("div",{className:"w3a-modal__loader-social-logo",children:c})]}),(0,eD.jsxs)("div",{children:[(0,eD.jsx)("div",{className:"w3a-modal__loader-bridge-message",children:u("modal.adapter-loader.message1",{adapter:s})}),(0,eD.jsx)("div",{className:"w3a-modal__loader-bridge-message",children:u("modal.adapter-loader.message2",{adapter:s})})]})]}),o===n.MP.CONNECTED&&(0,eD.jsxs)("div",{className:"flex flex-col items-center",children:[(0,eD.jsx)(e3,{iconName:"
2connected"}),(0,eD.jsx)("div",{className:"w3ajs-modal-loader__message w3a-spinner-message mt-4",children:i})]}),o===n.MP.ERRORED&&(0,eD.jsx)("div",{className:"w3ajs-modal-loader__message w3a-spinner-message w3a-spinner-message--error",children:i})]}),(0,eD.jsxs)("div",{className:"w3a-spinner-power",children:[(0,eD.jsx)("div",{children:u("modal.footer.message")}),l]})]}),(o===n.MP.CONNECTED||o===n.MP.ERRORED)&&(0,eD.jsx)("button",{type:"button",className:"w3a-header__button w3ajs-loader-close-btn",onClick:a,children:e4})]}):null}let e8=(0,eD.jsx)(e3,{iconName:"close"});function e7(e){let{message:t,modalStatus:r,label:i,onClose:o,canEmit:s=!0}=e,a=(0,eD.jsx)(e5,{imageId:"web3auth"}),[l]=$(void 0,{i18n:e1});return(0,y.useEffect)(()=>{n.cM.debug("loader re-rendering"),r===eK.CONNECTED&&s&&setTimeout(()=>{o()},3e3)},[s,r,o]),r!==eK.INITIALIZED?(0,eD.jsxs)("div",{className:"w3ajs-modal-loader w3a-modal__loader",children:[(0,eD.jsxs)("div",{className:"w3a-modal__loader-content",children:[(0,eD.jsxs)("div",{className:"w3a-modal__loader-info",children:[r===eK.CONNECTING&&(0,eD.jsxs)("div",{className:"w3ajs-modal-loader__spinner w3a-spinner",children:[(0,eD.jsx)("div",{className:"w3a-spinner__head"}),(0,eD.jsx)("div",{className:"w3a-spinner__mask"})]}),(0,eD.jsx)("div",{className:"w3ajs-modal-loader__label w3a-spinner-label",children:i}),r===n.MP.CONNECTED&&(0,eD.jsx)("div",{className:"w3ajs-modal-loader__message w3a-spinner-message",children:t}),r===n.MP.ERRORED&&(0,eD.jsx)("div",{className:"w3ajs-modal-loader__message w3a-spinner-message w3a-spinner-message--error",children:t})]}),(0,eD.jsxs)("div",{className:"w3a-spinner-power",children:[(0,eD.jsx)("div",{children:l("modal.footer.message")}),a]})]}),(r===n.MP.CONNECTED||r===n.MP.ERRORED)&&(0,eD.jsx)("button",{type:"button",className:"w3a-header__button w3ajs-loader-close-btn",onClick:o,children:e8})]}):null}function e9(e){let{walletConnectUri:t}=e,[r]=$(void 0,{i18n:e1});return(0,eD.jsx)("div",{className:"w3ajs-wallet-connect w3a-wallet-connect",children:(0,eD.jsx)("div",{className:"w3ajs-wallet-connect__container w3a-wallet-connect__container",children:(0,eD.jsxs)("div",{className:"w3a-wallet-connect__container-desktop",children:[(0,eD.jsx)("div",{children:r("modal.external.walletconnect-subtitle")}),(0,eD.jsx)("div",{className:"w3ajs-wallet-connect-qr w3a-wallet-connect-qr",tabIndex:0,role:"button",onClick:()=>e$()(t),onKeyDown:()=>e$()(t),children:(0,eD.jsx)(eU.QRCode,{size:200,eyeRadius:5,qrStyle:"dots",removeQrCodeBehindLogo:!0,logoImage:eJ,value:t})}),(0,eD.jsx)("div",{children:r("modal.external.walletconnect-copy")})]})})})}var te=(0,y.memo)(e9);function tt(e){let t=encodeURIComponent(e.uri);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function tr(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mobile",n=e[i].universal||"",o=e[i].native||"";return{name:e.name||"",logo:e.logo||"",universalLink:n,deepLink:o,href:r===ej().OS_MAP.iOS?tt({uri:t,universalLink:n,deepLink:o}):t}}function ti(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mobile";return Object.values(e).filter(e=>!!e[i].universal||!!e[i].native).map(e=>tr(e,t,r,i))}function tn(e){let{hideExternalWallets:t,handleExternalWalletClick:r,config:i={},walletConnectUri:o,showBackButton:s,modalStatus:a,wcAdapters:l}=e,[c,u]=(0,y.useState)(!0),[d,h]=(0,y.useState)({}),[f,p]=(0,y.useState)([]),g=(0,y.useMemo)(()=>ej().getParser(window.navigator.userAgent).getPlatformType(),[]),m=(0,y.useMemo)(()=>{let e=ej().getParser(window.navigator.userAgent);return{platform:e.getPlatformType(),os:e.getOSName()}},[]),[w]=$(void 0,{i18n:e1});return(0,y.useEffect)(()=>{var e;n.cM.debug("loaded external wallets",i,o,g);let t=n.rW.WALLET_CONNECT_V2;!1===((null===(e=i[t])||void 0===e?void 0:e.showOnModal)||!1)||o?Object.keys(i).length>0&&u(!0):(u(!1),r({adapter:t}));let s={};
2Object.keys(i).forEach(e=>{let t=i[e];if(!t.showOnModal){s[e]=!1;return}if("desktop"===g&&t.showOnDesktop||("mobile"===g||"tablet"===g)&&t.showOnMobile){s[e]=!0;return}s[e]=!1}),h(s)},[i,r,o,g]),(0,y.useEffect)(()=>{let e=[];if(m.platform===ej().PLATFORMS_MAP.mobile){let r=ti(l,o,m.os,m.platform);if(m.os===ej().OS_MAP.iOS){var t;null!==(t=window.ethereum)&&void 0!==t&&t.isMetaMask&&(r=r.filter(e=>"MetaMask"!==e.name)),e.push(...r.map(e=>({name:e.name,href:e.href,logo:e.logo,isLink:!0,block:!1})))}else r.length>0&&e.push({name:"WalletConnect",href:r[0].href,logo:eJ,isLink:!0,block:!0})}let r=Object.keys(i).filter(e=>![n.rW.WALLET_CONNECT_V2].includes(e)&&d[e]).map(e=>({name:e,isLink:!1,block:!1}));1===r.length&&m.os!==ej().OS_MAP.iOS&&(r[0].block=!0),e.push(...r),p(e)},[l,i,m.os,m.platform,o,d]),(0,eD.jsx)("div",{className:"w3ajs-external-wallet w3a-group",children:(0,eD.jsxs)("div",{className:"w3a-external-container w3ajs-external-container",children:[s&&(0,eD.jsxs)("button",{type:"button",className:"w3a-external-back w3ajs-external-back",onClick:()=>t(),children:[(0,eD.jsx)(e3,{iconName:"arrow-left"}),(0,eD.jsx)("div",{className:"w3a-group__title",children:w("modal.external.back")})]}),!c&&(0,eD.jsx)(e7,{modalStatus:eK.CONNECTING,canEmit:!1}),Object.keys(i).map(e=>o&&m.platform===ej().PLATFORMS_MAP.desktop&&[n.rW.WALLET_CONNECT_V2].includes(e)?(0,eD.jsx)(te,{walletConnectUri:o},e):null),a===eK.INITIALIZED&&(0,eD.jsx)("ul",{className:"w3a-adapter-list w3ajs-wallet-adapters",children:f.map(e=>{var t,n;let o=e.isLink?(0,eD.jsx)("img",{src:e.logo,height:"auto",width:"auto",alt:`login-${e.name}`}):(0,eD.jsx)(e5,{imageId:`login-${e.name}`,hoverImageId:`login-${e.name}`,isButton:!0}),s=1===f.length||e.block,a=s?(0,eD.jsx)("p",{className:"ml-2 text-left",children:(null===(t=i[e.name])||void 0===t?void 0:t.label)||e.name}):"";return(0,eD.jsx)("li",{className:["w3a-adapter-item",s?"w3a-adapter-item--full":"col-span-2"].join(" "),children:e.isLink?(0,eD.jsx)("a",{href:e.href,rel:"noopener noreferrer",target:"_blank",children:(0,eD.jsxs)("button",{type:"button",className:"w-full w3a-button w3a-button--login",children:[o,a]})},e.name):(0,eD.jsxs)("button",{type:"button",onClick:()=>r({adapter:e.name}),className:"w-full w3a-button w3a-button--login",title:(null===(n=i[e.name])||void 0===n?void 0:n.label)||e.name,children:[o,a]})},e.name)})})]})})}function to(e){let{privacyPolicy:t,tncLink:r,defaultLanguage:i="en"}=e,[n]=$(void 0,{i18n:e1}),o=(0,y.useCallback)(()=>(null==t?void 0:t[i])||(null==t?void 0:t.en)||"https://docs.web3auth.io/legal/privacy-policy",[t,i]),s=(0,y.useCallback)(()=>(null==r?void 0:r[i])||(null==r?void 0:r.en)||"https://docs.web3auth.io/legal/terms-and-conditions",[r,i]);return(0,eD.jsx)("div",{className:"w3a-modal__footer",children:(0,eD.jsx)("div",{className:"w3a-footer",children:(0,eD.jsxs)("div",{children:[(0,eD.jsx)("div",{children:(0,eD.jsx)("div",{children:n("modal.footer.message-new")})}),(0,eD.jsxs)("div",{className:"w3a-footer__links",children:[(0,eD.jsx)("a",{href:s(),target:"_blank",rel:"noreferrer noopener",children:n("modal.footer.terms-service")}),(0,eD.jsx)("span",{children:"|"}),(0,eD.jsx)("a",{href:o(),target:"_blank",rel:"noreferrer noopener",children:n("modal.footer.policy")})]})]})})})}var ts=(0,y.memo)(to);function ta(e){let{isDark:t}=(0,y.useContext)(eX),{onClose:r,appLogo:i,appName:n}=e,[o]=$(void 0,{i18n:e1}),s=[eY,eG].includes(i)?"":i;return(0,eD.jsxs)("div",{className:"w3a-modal__header",children:[(0,eD.jsx)("div",{className:"w3a-header",children:(0,eD.jsxs)("div",{children:[s&&(0,eD.jsx)("div",{className:"w3a-header__logo",children:(0,eD.jsx)("img",{src:s,alt:""})}),(0,eD.jsx)("div",{className:"w3a-header__title",children:o("modal.header-title")}),(0,eD.jsxs)("div",{className:"w3a-header__subtitle",children:[o("modal.header-subtitle-name",{appName:n}),(0,eD.jsxs)("div",{className:"relative flex flex-col items-center group cursor-pointer",children:[(0,eD.jsx)(e3,{iconName:`information-circle${t?"-light":""}`}),(0,eD.jsxs)("div",{className:"absolute top-4 z-20 flex-col items-center hidden mb-5 group-hover:flex",children:[(0,eD.jsx)("div",{className:"w-3 h-3 ml-[3px] -mb-2 rotate-45 bg-app-gray-50 dark:bg-app-gray-600"}),(0,eD.jsxs)("div",{className:"relative -ml-[100px] p-4 w-[300px] text-xs leading-none text-white rounded-md bg-app-gray-50 dark:bg-app-gray-600 shadow-lg",children:[(0,eD.jsx)("div",{className:"text-xs font-medium mb-1 text-app-gray-900 dark:text-white",children:o("modal.header-tooltip-title")}),(0,eD.jsx)("div",{className:"text-xs text-app-gray-400",children:o("modal.header-tooltip-desc")})]})]})]})]})]})}),(0,eD.jsx)("button",{type:"button",onClick:r,className:"w3a-header__button w3ajs-close-btn",children:(0,eD.jsx)(e3,{iconName:"
2close"})})]})}let tl=(0,y.memo)(ta,(e,t)=>e.appLogo!==t.appLogo);tl.displayName="Header";let tc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};if(e===n.rW.OPENLOGIN)eH.forEach(e=>{let i=t[e]||{name:eV[e],showOnMobile:!0,showOnModal:!0,showOnDesktop:!0};r[e]=(0,o.Z)({},i)}),n.cM.debug("OpenLogin login method ui config",r);else throw Error(`${e} is not a valid adapter`);return r},tu="https://api-passwordless.web3auth.io",td=async()=>{try{let e=await (0,eF.U2)(`${tu}/api/v3/user/location`);if(e&&e.data.country)return{country:e.data.country,dialCode:e.data.dial_code};return null}catch(e){return n.cM.error("error getting user country",e),null}},th=async e=>{try{let t=await (0,eF.v_)(`${tu}/api/v3/phone_number/validate`,{phone_number:e});if(t&&t.success)return t.parsed_number;return!1}catch(e){if(n.cM.error("error validating phone number",e),400===e.status)return!1;return!0}},tf={en:"english",de:"german",ja:"japanese",ko:"korean",zh:"mandarin",es:"spanish",fr:"french",pt:"portuguese",nl:"dutch",tr:"turkish"},tp=e=>{let t=e;return t||(t=("undefined"!=typeof window&&(window.navigator.userLanguage||window.navigator.language)||"en-US").split("-")[0]),Object.prototype.hasOwnProperty.call(tf,t)?t:"en"};function tg(e){let{handleSocialLoginClick:t,adapter:r,isPrimaryBtn:i,isEmailVisible:n,isSmsVisible:o,primaryColor:s}=e,{isDark:a}=(0,y.useContext)(eX),[l,c]=(0,y.useState)(""),[u,d]=(0,y.useState)(""),[f,p]=(0,y.useState)(null),[g]=$(void 0,{i18n:e1}),m=async e=>{e.preventDefault();let i=l;if(i.match(/^([\w.%+-]+)@([\w-]+\.)+([\w]{2,})$/i))return t({adapter:r,loginParams:{loginProvider:h.hG.EMAIL_PASSWORDLESS,login_hint:i,name:"Email"}});let n=i.startsWith("+")?i:`${u}${i}`,o=await th(n);if(o)return t({adapter:r,loginParams:{loginProvider:h.hG.SMS_PASSWORDLESS,login_hint:"string"==typeof o?o:n,name:"Mobile"}});p(!1)};(0,y.useEffect)(()=>{let e=async()=>{let e=await td();e&&e.dialCode&&d(e.dialCode)};o&&e()},[o]);let w=e=>{c(e.target.value),!1===f&&p(null)},b=(0,y.useMemo)(()=>n&&o?"modal.social.passwordless-title":n?"modal.social.email":"modal.social.phone",[
2n,o]),v=(0,y.useMemo)(()=>n&&o?"+(00)123456/[email protected]":n?"[email protected]":"+(00)123456",[n,o]);return(0,eD.jsxs)("div",{className:"w3ajs-passwordless w3a-group w3a-group--passwordless",children:[(0,eD.jsxs)("div",{className:"w3a-group__title",children:[g(b),o&&(0,eD.jsxs)("div",{className:"relative flex flex-col items-center cursor-pointer group",children:[(0,eD.jsx)(e3,{iconName:`information-circle${a?"-light":""}`}),(0,eD.jsxs)("div",{className:"absolute z-20 flex-col items-center hidden mb-5 top-4 group-hover:flex",children:[(0,eD.jsx)("div",{className:"w-3 h-3 ml-[3px] -mb-2 rotate-45 bg-app-gray-50 dark:bg-app-gray-600"}),(0,eD.jsxs)("div",{className:"relative p-4 w-[300px] text-xs leading-none text-white rounded-md bg-app-gray-50 dark:bg-app-gray-600 shadow-lg",children:[(0,eD.jsx)("div",{className:"mb-1 text-xs font-medium text-app-gray-900 dark:text-white",children:g("modal.popup.phone-header")}),(0,eD.jsx)("div",{className:"text-xs text-app-gray-400",children:g("modal.popup.phone-body")})]})]})]})]}),(0,eD.jsxs)("form",{className:"w3ajs-passwordless-form",onSubmit:e=>m(e),children:[(0,eD.jsx)("input",{className:"w-full mb-4 w3a-text-field",name:"passwordless-input",required:!0,placeholder:`${g("modal.social.sms-placeholder-text")} ${v}`,onFocus:e=>e.target.placeholder="",onBlur:e=>e.target.placeholder=`${g("modal.social.sms-placeholder-text")} ${v}`,onChange:e=>w(e)}),!1===f&&(0,eD.jsx)("div",{className:"w3a-sms-field--error",children:g("modal.errors-invalid-number-email")}),(0,eD.jsx)("button",{disabled:""===l,className:`w3a-button ${i?"w3a-button--primary":""} w-full`,style:{backgroundColor:i&&s||""},type:"submit",children:g("modal.social.passwordless-cta")})]})]})}function tm(e){let[t,r]=(0,y.useState)(!1),[i,n]=(0,y.useState)(!1),{socialLoginsConfig:o={loginMethods:{},loginMethodsOrder:[],adapter:"",uiConfig:{}},handleSocialLoginClick:s}=e,{isDark:a}=(0,y.useContext)(eX),[l]=$(void 0,{i18n:e1}),c=()=>{n(!i)};(0,y.useEffect)(()=>{r(Object.keys(o.loginMethods).filter(e=>o.loginMethods[e].showOnModal).length>4)},[o.loginMethods]);let u=eq()("w3a-adapter-list","w3ajs-socials-adapters",i?"":" w3a-adapter-list--shrink"),d=eq()("w3a-button-expand","w3ajs-button-expand",i?"w3a-button--rotate":""),f=i?l("modal.social.view-less"):l("modal.social.view-more"),p=Object.keys(o.loginMethods).length+1,g=[h.hG.WEBAUTHN,h.hG.JWT,h.hG.SMS_PASSWORDLESS,h.hG.EMAIL_PASSWORDLESS];return(0,eD.jsxs)("div",{className:"w3ajs-social-logins w3a-group",children:[(0,eD.jsx)("ul",{className:u,children:Object.keys(o.loginMethods).map(e=>{var t,r,i;let n=eW(o.loginMethods[e].name||e),c=o.loginMethodsOrder.indexOf(e)+1||Object.keys(o.loginMethods).length+1,u=o.loginMethods[e].mainOption,d=(null==o||null===(t=o.uiConfig)||void 0===t?void 0:t.primaryButton)==="socialLogin"&&1===c,f=(null==o||null===(r=o.uiConfig)||void 0===r||null===(r=r.theme)||void 0===r?void 0:r.primary)||"",m=e===h.hG.TWITTER?`login-twitter-x${a||d?"-light":"-dark"}`:`login-${e}${a||d?"-light":"-dark"}`,w=`login-${e}-active`,y=e===h.hG.APPLE||e===h.hG.GITHUB||e===h.hG.TWITTER?m:w,b=(0,eD.jsx)(e5,{width:"20",imageId:m,hoverImageId:y,isButton:!0});if(!1===o.loginMethods[e].showOnModal||g.includes(e))return null;let v=eq()("w3a-adapter-item",(null==o||null===(i=o.uiConfig)||void 0===i?void 0:i.loginGridCol)===2?"col-span-3":"col-span-2");return u||1===c?(0,eD.jsx)("li",{className:"col-span-6 w3a-adapter-item",style:{order:c},children:(0,eD.jsxs)("button",{type:"button",onClick:()=>s({adapter:o.adapter,loginParams:{loginProvider:e,name:n,login_hint:""}}),className:`w3a-button ${d?"w3a-button--primary":""} w3a-button--login h-12 w-full`,style:{backgroundColor:d?f:""},title:n,children:[b,(0,eD.jsx)("p",{className:"ml-2",children:l("modal.social.continueCustom",{adapter:n})})]})},e):(0,eD.jsx)("li",{className:v,style:{order:c+p},children:(0,eD.jsx)("button",{type:"button",onClick:()=>s({adapter:o.adapter,loginParams:{loginProvider:e,name:n,login_hint:""}}),className:"w-full w3a-button w3a-button--login",title:n,children:b})},e)})}),(0,eD.jsx)("div",{className:"w3a-social__policy",children:l("modal.social.policy")}),t&&(0,eD.jsx)("div",{className:"text-right",children:(0,eD.jsx)("button",{type:"button",className:d,onClick:c,children:(0,eD.jsx)("span",{className:"w3ajs-button-expand-text",children:f})})})]})}function tw(e){var t,r,i,s,a,l,c;let[u,d]=(0,y.useState)(["w3a-modal__inner"]),[f,p]=(0,y.useState)({externalWalletsVisibility:!1,status:eK.INITIALIZED,hasExternalWallets:!1,externalWalletsInitialized:!1,modalVisibility:!1,modalVisibilityDelayed:!1,postLoadingMessage:"",walletConnectUri:"",socialLoginsConfig:{loginMethods:{},loginMethodsOrder:[],adapter:"",uiConfig:{}},externalWalletsConfig:{}
2,detailedLoaderAdapter:"",detailedLoaderAdapterName:"",showExternalWalletsOnly:!1,wcAdapters:[]}),{isDark:m}=(0,y.useContext)(eX),[b]=$(void 0,{i18n:e1}),{stateListener:v,appLogo:_,appName:x,handleSocialLoginClick:E,handleExternalWalletClick:C,handleShowExternalWallets:k,closeModal:S,whiteLabel:A}=e;(0,y.useEffect)(()=>{v.emit("MOUNTED"),v.on("STATE_UPDATED",e=>{n.cM.debug("state updated",e),p(t=>g()(w()(t,e)))})},[v]),(0,y.useEffect)(()=>{let e;return f.modalVisibility?(p(e=>(0,o.Z)((0,o.Z)({},e),{},{modalVisibilityDelayed:f.modalVisibility})),e=window.setTimeout(()=>{d(["w3a-modal__inner",f.modalVisibility?"w3a-modal__inner--active":""])},100)):(d(["w3a-modal__inner",f.modalVisibility?"w3a-modal__inner--active":""]),e=window.setTimeout(()=>{p(e=>(0,o.Z)((0,o.Z)({},e),{},{modalVisibilityDelayed:f.modalVisibility}))},250)),()=>{clearTimeout(e)}},[f.modalVisibility]);let I=(0,y.useCallback)(()=>{f.status===eK.CONNECTED&&S(),f.status===eK.ERRORED&&p(e=>(0,o.Z)((0,o.Z)({},e),{},{modalVisibility:!0,status:eK.INITIALIZED}))},[S,f.status]),T=(0,y.useCallback)(e=>{let{adapter:t}=e;p(e=>(0,o.Z)((0,o.Z)({},e),{},{detailedLoaderAdapter:t,detailedLoaderAdapterName:n.O7[t]})),C(e)},[C]),R=e=>{let{loginParams:t}=e;p(e=>(0,o.Z)((0,o.Z)({},e),{},{detailedLoaderAdapter:t.loginProvider,detailedLoaderAdapterName:t.name})),E(e)},O=(null===(t=f.socialLoginsConfig)||void 0===t||null===(t=t.uiConfig)||void 0===t?void 0:t.primaryButton)==="emailLogin",P=(null===(r=f.socialLoginsConfig)||void 0===r||null===(r=r.uiConfig)||void 0===r?void 0:r.primaryButton)==="externalLogin",N=(null==A||null===(i=A.theme)||void 0===i?void 0:i.primary)||"",M=(0,eD.jsx)("div",{className:"w3ajs-external-wallet w3a-group",children:(0,eD.jsxs)("div",{className:"w3a-external-toggle w3ajs-external-toggle",children:[(0,eD.jsx)("div",{className:"w3a-group__title",children:b("modal.external.title")}),(0,eD.jsx)("button",{type:"button",className:`w3a-button ${P?"w3a-button--primary":""} w-full w3ajs-external-toggle__button`,style:{backgroundColor:P?N:""},onClick:()=>{k(f.externalWalletsInitialized),p(e=>(0,o.Z)((0,o.Z)({},e),{},{externalWalletsVisibility:!0}))},children:b("modal.external.connect")})]})}),D=(0,y.useMemo)(()=>{var e,t;return!f.showExternalWalletsOnly&&0!==Object.keys((null===(e=f.socialLoginsConfig)||void 0===e?void 0:e.loginMethods)||{}).length&&!!Object.entries((null===(t=f.socialLoginsConfig)||void 0===t?void 0:t.loginMethods)||{}).some(e=>{let[t,r]=e;return t!==h.hG.EMAIL_PASSWORDLESS&&!1!==r.showOnModal})},[f.showExternalWalletsOnly,null===(s=f.socialLoginsConfig)||void 0===s?void 0:s.loginMethods]);n.cM.info("modal state",f,D);let L=(0,y.useMemo)(()=>{var e;return null===(e=f.socialLoginsConfig)||void 0===e||null===(e=e.loginMethods[h.hG.EMAIL_PASSWORDLESS])||void 0===e?void 0:e.showOnModal},[null===(a=f.socialLoginsConfig)||void 0===a?void 0:a.loginMethods]),j=(0,y.useMemo)(()=>{var e;return null===(e=f.socialLoginsConfig)||void 0===e||null===(e=e.loginMethods[h.hG.SMS_PASSWORDLESS])||void 0===e?void 0:e.showOnModal},[null===(l=f.socialLoginsConfig)||void 0===l?void 0:l.loginMethods]),B="w3a-modal ";return f.modalVisibilityDelayed&&(0,eD.jsx)("div",{id:"w3a-modal",className:B,children:(0,eD.jsxs)("div",{className:u.join(" "),children:[(0,eD.jsx)(tl,{onClose:S,appLogo:_,appName:x}),f.status!==eK.INITIALIZED?(0,eD.jsx)("div",{className:"w3a-modal__content w3ajs-content",children:(0,eD.jsx)(e6,{onClose:I,appLogo:_,modalStatus:f.status,message:b(f.postLoadingMessage),adapter:f.detailedLoaderAdapter,adapterName:f.detailedLoaderAdapterName})}):(0,eD.jsx)("div",{className:"w3a-modal__content w3ajs-content",children:(D||L||j)&&!f.externalWalletsVisibility?(0,eD.jsxs)(eD.Fragment,{children:[D?(0,eD.jsx)(tm,{handleSocialLoginClick:e=>R(e),socialLoginsConfig:f.socialLoginsConfig}):null,(L||j)&&(0,eD.jsx)(tg,{isEmailVisible:L,isSmsVisible:j,adapter:null===(c=f.socialLoginsConfig)||void 0===c?void 0:c.adapter,handleSocialLoginClick:e=>R(e),isPrimaryBtn:O,primaryColor:N}),f.hasExternalWallets&&M]}):(0,eD.jsx)(tn,{modalStatus:f.status,showBackButton:D,handleExternalWalletClick:T,walletConnectUri:f.walletConnectUri,wcAdapters:f.wcAdapters,config:f.externalWalletsConfig,hideExternalWallets:()=>p(e=>(0,o.Z)((0,o.Z)({},e),{},{externalWalletsVisibility:!1}))})}),(0,eD.jsx)(ts,{privacyPolicy:null==A?void 0:A.privacyPolicy,tncLink:null==A?void 0:A.tncLink,defaultLanguage:A.defaultLanguage})]})})}function ty(e){let t=document.getElementById("w3a-parent-container");t&&t.remove();let r=document.createElement("section");r.classList.add("w3a-parent-container"),r.setAttribute("id","w3a-parent-container"),r.style.zIndex=e,r.style.position="relative";let i=document.createElement("section");return i.setAttribute("id","w3a-container"),r.appendChild(i),document.body.appendChild(r),i}n.cM.enableAll();
2class tb extends l.Ue{constructor(e){super(),(0,s.Z)(this,"uiConfig",void 0),(0,s.Z)(this,"stateEmitter",void 0),(0,s.Z)(this,"initModal",async()=>{let e={isDark:this.isDark},t=this.uiConfig.defaultLanguage||"en";return"de"===t?r.e(3033).then(r.bind(r,73033)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"ja"===t?r.e(4758).then(r.bind(r,4758)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"ko"===t?r.e(2394).then(r.bind(r,22394)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"zh"===t?r.e(9269).then(r.bind(r,69269)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"es"===t?r.e(7315).then(r.bind(r,97315)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"fr"===t?r.e(4803).then(r.bind(r,14803)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"pt"===t?r.e(1707).then(r.bind(r,91707)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"nl"===t?r.e(2280).then(r.bind(r,82280)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}):"tr"===t&&r.e(1898).then(r.bind(r,31898)).then(e=>(e1.addResourceBundle(t,"translation",e.default),e1.changeLanguage(t))).catch(e=>{n.cM.error(e)}),new Promise(t=>{this.stateEmitter.once("MOUNTED",()=>(n.cM.info("rendered"),this.setState({status:eK.INITIALIZED}),t()));let r=ty(this.uiConfig.modalZIndex);e.isDark?r.classList.add("dark"):r.classList.remove("dark"),(0,f.createRoot)(r).render((0,eD.jsx)(eX.Provider,{value:e,children:(0,eD.jsx)(tw,{closeModal:this.closeModal,stateListener:this.stateEmitter,handleShowExternalWallets:this.handleShowExternalWallets,handleExternalWalletClick:this.handleExternalWalletClick,handleSocialLoginClick:this.handleSocialLoginClick,appLogo:e.isDark?this.uiConfig.logoDark:this.uiConfig.logoLight,appName:this.uiConfig.appName,whiteLabel:this.uiConfig})}))})}),(0,s.Z)(this,"addSocialLogins",(e,t,r,i)=>{this.setState({socialLoginsConfig:{adapter:e,loginMethods:t,loginMethodsOrder:r,uiConfig:i}}),n.cM.info("addSocialLogins",e,t,r,i)}),(0,s.Z)(this,"addWalletLogins",(e,t)=>{this.setState({externalWalletsConfig:e,externalWalletsInitialized:!0,showExternalWalletsOnly:!!(null!=t&&t.showExternalWalletsOnly),externalWalletsVisibility:!0})}),(0,s.Z)(this,"open",()=>{this.setState({modalVisibility:!0}),this.emit(eZ.MODAL_VISIBILITY,!0)}),(0,s.Z)(this,"closeModal",()=>{this.setState({modalVisibility:!1,externalWalletsVisibility:!1}),this.emit(eZ.MODAL_VISIBILITY,!1)}),(0,s.Z)(this,"initExternalWalletContainer",()=>{this.setState({hasExternalWallets:!0})}),(0,s.Z)(this,"handleShowExternalWallets",e=>{this.emit(eZ.INIT_EXTERNAL_WALLETS,{externalWalletsInitialized:e})}),(0,s.Z)(this,"handleExternalWalletClick",e=>{n.cM.info("external wallet clicked",e);let{adapter:t}=e;this.emit(eZ.LOGIN,{adapter:t})}),(0,s.Z)(this,"handleSocialLoginClick",e=>{n.cM.info("social login clicked",e);let{adapter:t,loginParams:r}=e;this.emit(eZ.LOGIN,{adapter:t,loginParams:{loginProvider:r.loginProvider,login_hint:r.login_hint,name:r.name}})}),(0,s.Z)(this,"setState",e=>{this.stateEmitter.emit("STATE_UPDATED",e)}),(0,s.Z)(this,"updateWalletConnect",(e,t)=>{e&&this.setState({walletConnectUri:e,wcAdapters:t})}),(0,s.Z)(this,"handleAdapterData",e=>{if(e.adapterName===n.rW.WALLET_CONNECT_V2){let t=e.data;this.updateWalletConnect(t.uri,t.extensionAdapters)}}),(0,s.Z)(this,"subscribeCoreEvents",e=>{e.on(n.n2.CONNECTING,e=>{n.cM.info("connecting with adapter",e),(null==e?void 0:e.adapter)!==n.rW.WALLET_CONNECT_V2&&this.setState({status:eK.CONNECTING})}),e.on(n.n2.CONNECTED,e=>{n.cM.debug("connected with adapter",e),e.reconnected?this.setState({status:eK.CONNECTED}):this.setState({status:eK.CONNECTED,modalVisibility:!0,postLoadingMessage:"modal.post-loading.connected"})}),e.on(n.n2.ERRORED,e=>{n.cM.error("error",e,e.message),5e3===e.code?this.uiConfig.displayErrorsOnModal?this.setState({modalVisibility:!0,postLoadingMessage:e.message||"modal.post-loading.something-wrong",status:eK.ERRORED}):this.setState({modalVisibility:!1}):this.setState({modalVisibility:!0,status:eK.INITIALIZED})}),e.on(n.n2.DISCONNECTED,()=>{this.setState({status:eK.INITIALIZED,externalWalletsVisibility:!1})}),e.on(n.n2.ADAPTER_DATA_UPDATED,e=>{this.handleAdapterData(e)})}),this.uiConfig=e,e.logoDark||(this.uiConfig.logoDark=eY),e.logoLight||(this.uiConfig.logoLight=eG),e.mode||(this.uiConfig.mode="auto"),e.modalZIndex||(this.uiConfig.modalZIndex="99998"),void 0===e.displayErrorsOnModal&&(this.uiConfig.displayErrorsOnModal=!0),e.defaultLanguage||(this.uiConfig.defaultLanguage="en"),e.a
2ppName||(this.uiConfig.appName="Web3Auth"),e.loginGridCol||(this.uiConfig.loginGridCol=3),e.primaryButton||(this.uiConfig.primaryButton="socialLogin"),e.defaultLanguage||(this.uiConfig.defaultLanguage=tp(e.defaultLanguage)),this.stateEmitter=new l.Ue,this.subscribeCoreEvents(this.uiConfig.adapterListener)}get isDark(){return"dark"===this.uiConfig.mode||"auto"===this.uiConfig.mode&&window.matchMedia("(prefers-color-scheme: dark)").matches}}eQ('@font-face{font-family:Poppins;font-style:normal;font-weight:600;src:url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z11lFd2JQEl8qw.woff2) format("woff2");unicode-range:u+0900-097f,u+1cd0-1cf6,u+1cf8-1cf9,u+200c-200d,u+20a8,u+20b9,u+25cc,u+a830-a839,u+a8e0-a8fb}@font-face{font-family:Poppins;font-style:normal;font-weight:600;src:url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1JlFd2JQEl8qw.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Poppins;font-style:normal;font-weight:600;src:url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZ2IHTWEBlwu8Q.woff2) format("woff2");unicode-range:u+0100-024f,u+0259,u+1e??,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:DM Sans;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/dmsans/v6/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}.w3a-parent-container #w3a-network-modal{--bg1:#fff;--bg2:#f9f9fb;--text-color1:#a2a5b5;--text-color2:#5c6c7f;--text-header:"Poppins",Helvetica,sans-serif;--text-body:"DM Sans",Helvetica,sans-serif;background:#000;color:var(--text-color1);height:100vh;left:0;padding:15px;position:fixed;top:0;width:100vw}.w3a-parent-container #w3a-network-modal,.w3a-parent-container #w3a-network-modal button.w3a-button{align-items:center;box-sizing:border-box;display:flex;font-family:var(--text-body);justify-content:center}.w3a-parent-container #w3a-network-modal button.w3a-button{background-color:#fff;border:1px solid #f3f3f4;border-radius:24px;box-shadow:none;color:#b7b8bd;cursor:pointer;font-size:16px;font-style:normal;font-weight:400;height:48px;padding:8px;width:100%}.w3a-parent-container #w3a-network-modal .w3a-switch-network{align-items:center;background:#f9f9fb;border-radius:10px;box-sizing:border-box;display:flex;flex-direction:column;font-family:var(--text-body);padding:20px;width:375px}.w3a-parent-container #w3a-network-modal .w3a-switch-network__title{color:var(--text-color2);font-family:var(--text-header);font-size:20px;margin-bottom:16px;text-align:center}.w3a-parent-container #w3a-network-modal .w3a-switch-network__link{background-color:#fff;border-radius:12px;color:#b7b8bd;font-size:12px;height:24px;padding:4px 16px}.w3a-parent-container #w3a-network-modal .w3a-switch-network__connect{display:flex;margin:40px auto 0}.w3a-parent-container #w3a-network-modal .w3a-switch-network__connect>div{color:var(--text-color2);font-size:10px;text-align:center}.w3a-parent-container .w3a-switch-network__connect-divider{margin-top:20px}.w3a-parent-container #w3a-network-modal .w3a-switch-network__logo{align-items:center;background:#fff;border-radius:50%;box-shadow:2px 2px 12px #0364ff0d;display:flex;height:58px;justify-content:center;margin:0 auto 6px;width:58px}.w3a-parent-container #w3a-network-modal .w3a-switch-network__logo img{height:34px;width:34px}.w3a-parent-container #w3a-network-modal .w3a-switch-network__buttons{column-gap:16px;display:flex;margin-top:60px;width:100%}.w3a-parent-container #w3a-network-modal .w3a-button.w3a-button--primary{background-color:#0364ff;color:#fff}');let tv={chainNamespace:n.EN.SOLANA,adapters:{[n.hf.TORUS_SOLANA]:{label:"Torus Wallet",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0},[n.hf.OPENLOGIN]:{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0},[n.hf.PHANTOM]:{label:"Phantom",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}}},t_={chainNamespace:n.EN.EIP155,adapters:{[n.$z.TORUS_EVM]:{label:"Torus Wallet",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0},[n.$z.METAMASK]:{label:"MetaMask",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0},[n.$z.OPENLOGIN]:{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0},[n.$z.WALLET_CONNECT_V2]:{label:"Wallet Connect",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}}},tx={chainNamespace:n.EN.SOLANA,adapters:{[n.hf.OPENLOGIN]:{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}}},tE={chainNamespace:n.EN.EIP155,adapters:{[n.$z.OPENLOGIN]:{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}}},tC={chainNamespace:n.EN.OTHER,adapters:{[n.$z.OPENLOGIN]:{label:"OpenLogin",showOnModal:!0,showOnMobile:!0,showOnDesktop:!0}}};async function tk(e){if(e.chainNamespace===n.EN.SOLANA){let{SolanaPrivateKeyProvider:t}
2=await Promise.all([r.e(3814),r.e(9367),r.e(8575),r.e(8848)]).then(r.bind(r,56171));return new t({config:{chainConfig:e}})}if(e.chainNamespace===n.EN.EIP155){let{EthereumPrivateKeyProvider:t}=await Promise.all([r.e(6764),r.e(9367),r.e(4665),r.e(5024)]).then(r.bind(r,94665));return new t({config:{chainConfig:e}})}if(e.chainNamespace===n.EN.OTHER)return new a.FL({config:{chainConfig:e}});throw Error(`Invalid chainNamespace: ${e.chainNamespace} found while connecting to wallet`)}let tS=async e=>{let{name:t,customChainConfig:i,clientId:s,sessionTime:a,web3AuthNetwork:l,uiConfig:c,useCoreKitKey:u}=e;if(!Object.values(n.EN).includes(i.chainNamespace))throw Error(`Invalid chainNamespace: ${i.chainNamespace}`);let d=(0,o.Z)((0,o.Z)({},(0,n.h2)(i.chainNamespace,null==i?void 0:i.chainId)),i||{});if(t===n.rW.TORUS_EVM){let{TorusWalletAdapter:e}=await r.e(5465).then(r.bind(r,75465));return new e({chainConfig:d,clientId:s,sessionTime:a,web3AuthNetwork:l,useCoreKitKey:u})}if(t===n.rW.TORUS_SOLANA){let{SolanaWalletAdapter:e}=await Promise.all([r.e(3814),r.e(9367),r.e(8575),r.e(6050),r.e(833)]).then(r.bind(r,16050));return new e({chainConfig:d,clientId:s,sessionTime:a,web3AuthNetwork:l,useCoreKitKey:u})}if(t===n.rW.METAMASK){let{MetamaskAdapter:e}=await r.e(4378).then(r.bind(r,4378));return new e({chainConfig:d,clientId:s,sessionTime:a,web3AuthNetwork:l,useCoreKitKey:u})}if(t===n.rW.PHANTOM){let{PhantomAdapter:e}=await Promise.all([r.e(3814),r.e(9367),r.e(8575),r.e(353)]).then(r.bind(r,80833));return new e({chainConfig:d,clientId:s,sessionTime:a,web3AuthNetwork:l,useCoreKitKey:u})}if(t===n.rW.WALLET_CONNECT_V2){let{WalletConnectV2Adapter:e}=await Promise.all([r.e(6764),r.e(9367),r.e(4665),r.e(5232),r.e(7451)]).then(r.bind(r,75232));return new e({chainConfig:d,clientId:s,sessionTime:a,web3AuthNetwork:l,useCoreKitKey:u,adapterSettings:{walletConnectInitOptions:{projectId:"d3c63f19f9582f8ba48e982057eb096b"}}})}if(t===n.rW.OPENLOGIN){let{OpenloginAdapter:e,getOpenloginDefaultOptions:t}=await Promise.resolve().then(r.bind(r,29440)),i=await tk(d),n=t();return new e((0,o.Z)((0,o.Z)({},n),{},{clientId:s,useCoreKitKey:u,chainConfig:(0,o.Z)({},d),adapterSettings:(0,o.Z)((0,o.Z)({},n.adapterSettings),{},{clientId:s,network:l,whiteLabel:c}),sessionTime:a,web3AuthNetwork:l,privateKeyProvider:i}))}throw Error("Invalid wallet adapter name")};class tA extends d{constructor(e){super(e),(0,s.Z)(this,"loginModal",void 0),(0,s.Z)(this,"options",void 0),(0,s.Z)(this,"modalConfig",t_),this.options=(0,o.Z)({},e);let t=this.options.chainConfig;if(t.chainNamespace===n.EN.SOLANA)"WALLET"===e.authMode?this.modalConfig=tx:this.modalConfig=tv;else if(t.chainNamespace===n.EN.EIP155)"WALLET"===e.authMode?this.modalConfig=tE:this.modalConfig=t_;else if(t.chainNamespace===n.EN.OTHER)this.modalConfig=tC;else throw Error(`Invalid chainNamespace provided: ${t.chainNamespace}`);this.options.uiConfig||(this.options.uiConfig={}),this.options.uiConfig.defaultLanguage||(this.options.uiConfig.defaultLanguage=tp(this.options.uiConfig.defaultLanguage)),this.options.uiConfig.mode||(this.options.uiConfig.mode="auto"),this.loginModal=new tb((0,o.Z)((0,o.Z)({},this.options.uiConfig),{},{adapterListener:this})),this.subscribeToLoginModalEvents()}async initModal(e){super.checkInitRequirements(),await this.loginModal.initModal();let t=this.options.chainConfig,r=[...new Set([...Object.keys(this.modalConfig.adapters||{}),...Object.keys(this.walletAdapters)])],i=r.map(async r=>{var i,s,a,l,c,u;let d=(null===(i=this.modalConfig.adapters)||void 0===i?void 0:i[r])||{label:r,showOnModal:!0,showOnMobile:!0,showOnDesktop:!0};null!=e&&null!==(s=e.modalConfig)&&void 0!==s&&s[r]&&(d=(0,o.Z)((0,o.Z)({},d),e.modalConfig[r])),this.modalConfig.adapters[r]=d;let h=this.walletAdapters[r];if(n.cM.debug("adapter config",r,null===(a=this.modalConfig.adapters)||void 0===a?void 0:a[r].showOnModal,h),!h&&null!==(l=this.modalConfig.adapters)&&void 0!==l&&l[r].showOnModal){let e=await tS({name:r,customChainConfig:this.options.chainConfig,clientId:this.options.clientId,sessionTime:this.options.sessionTime,web3AuthNetwork:this.options.web3AuthNetwork,uiConfig:this.options.uiConfig,useCoreKitKey:this.coreOptions.useCoreKitKey});return this.walletAdapters[r]=e,r}if((null==h?void 0:h.type)===n.hN.IN_APP||(null==h?void 0:h.type)===n.hN.EXTERNAL||r===this.cachedAdapter){if(!(null!==(c=this.modalConfig.adapters)&&void 0!==c&&c[r].showOnModal))return;if(this.walletAdapters[r].setAdapterSettings({clientId:this.options.clientId,sessionTime:this.options.sessionTime,web3AuthNetwork:this.options.web3AuthNetwork,useCoreKitKey:this.coreOptions.useCoreKitKey}),!h.chainConfigProxy){let e=(0,o.Z)((0,o.Z)({},(0,n.h2)(t.chainNamespace,null===(u=this.coreOptions.chainConfig)||void 0===u?void 0:u.chainId)),this.coreOptions.chainConfig);this.walletAdapters[r].setAdapterSettings({chainConfig:e})}if(r===n.rW.OPENLOGIN){let e=this.walletAdapters[r];if(!e.privateKeyProvider){let t=await tk(e.chainConfigProxy);e.setAdapterSettings({privateKeyProvider:t,whiteLabel:this.options.uiConfig})}}return r}}),s=await Promise.all(i),l=Object.values(this.walletAdapters).some(e=>{var t,r,i;return e.type===n.hN.IN_APP&&(null===(t=this.modalConfig.adapters)||void 0===t||null===(t=t[e.name])||void 0===t?void 0:t.showOnModal)===!0&&!!(!(null!==(r=this.modalConfig.adapters)&&void 0!==r&&null!==(r=r[e.name])&&void 0!==r&&r.loginMethods)||Object.values(tc(e.name,null===(i=this.modalConfig.adapters[e.name])||void 0===i?void 0:i.loginMethods)).some(e=>e.showOnModal))});n.cM.debug(l,this.walletAdapters,s,"hasInAppWallets");let c=s.map(async e=>{if(e)try{let t=this.walletAdapters[e];if(this.cachedAdapter!==e&&t.type===n.hN.EXTERNAL)return;this.subscribeToAdapterEvents(t),t.status===n.MP.NOT_READY&&await t.init({autoConnect:this.cachedAdapter===e}),t.type===n.hN.IN_APP&&this.initializeInAppWallet(e)}catch(e){n.cM.error(e,"error while initializing adapter")}});this.commonJRPCProvider=await a.QT.getProviderInstance({chainConfig:this.coreOptions.chainConfig}),this.status=n.MP.READY,await Promise.all(c);let u=r.some(e=>{var t,r;return(null===(t=this.walletAdapters[e])||void 0===t?void 0:t.type)===n.hN.EXTERNAL&&(null===(r=this.modalConfig.adapters)||void 0===r?void 0:r[e].showOnModal)});
2u&&this.loginModal.initExternalWalletContainer(),!l&&u&&await this.initExternalWalletAdapters(!1,{showExternalWalletsOnly:!0})}async connect(){return this.connectedAdapterName&&this.status===n.MP.CONNECTED&&this.provider?this.provider:(this.loginModal.open(),new Promise((e,t)=>{this.once(n.n2.CONNECTED,()=>e(this.provider)),this.once(n.n2.ERRORED,e=>t(e)),this.once(eZ.MODAL_VISIBILITY,e=>{if(!e&&this.status!==n.MP.CONNECTED)return t(Error("User closed the modal"))})}))}async initExternalWalletAdapters(e,t){if(e)return;let r={};Object.keys(this.walletAdapters).forEach(async e=>{let i=this.walletAdapters[e];if((null==i?void 0:i.type)===n.hN.EXTERNAL){if(n.cM.debug("init external wallet",this.cachedAdapter,e),this.subscribeToAdapterEvents(i),this.cachedAdapter===e)return;i.status===n.MP.NOT_READY?await i.init({autoConnect:this.cachedAdapter===e}).then(()=>{r[e]=this.modalConfig.adapters[e],this.loginModal.addWalletLogins(r,{showExternalWalletsOnly:!!(null!=t&&t.showExternalWalletsOnly)})}).catch(e=>n.cM.error(e,"error while initializing adapter")):i.status===n.MP.READY&&(r[e]=this.modalConfig.adapters[e],this.loginModal.addWalletLogins(r,{showExternalWalletsOnly:!!(null!=t&&t.showExternalWalletsOnly)}))}})}initializeInAppWallet(e){if(n.cM.info("adapterInitResults",e),this.walletAdapters[e].type===n.hN.IN_APP){var t,r,i,s;this.loginModal.addSocialLogins(e,tc(e,null===(t=this.modalConfig.adapters[e])||void 0===t?void 0:t.loginMethods),(null===(r=this.options.uiConfig)||void 0===r?void 0:r.loginMethodsOrder)||eH,(0,o.Z)((0,o.Z)({},this.options.uiConfig),{},{loginGridCol:(null===(i=this.options.uiConfig)||void 0===i?void 0:i.loginGridCol)||3,primaryButton:(null===(s=this.options.uiConfig)||void 0===s?void 0:s.primaryButton)||"socialLogin"}))}}subscribeToLoginModalEvents(){this.loginModal.on(eZ.LOGIN,async e=>{try{await this.connectTo(e.adapter,e.loginParams)}catch(t){n.cM.error(`Error while connecting to adapter: ${e.adapter}`,t)}}),this.loginModal.on(eZ.INIT_EXTERNAL_WALLETS,async e=>{await this.initExternalWalletAdapters(e.externalWalletsInitialized)}),this.loginModal.on(eZ.DISCONNECT,async()=>{try{await this.logout()}catch(e){n.cM.error("Error while disconnecting",e)}}),this.loginModal.on(eZ.MODAL_VISIBILITY,async e=>{n.cM.debug("is login modal visible",e),this.emit(eZ.MODAL_VISIBILITY,e);let t=this.walletAdapters[n.rW.WALLET_CONNECT_V2];if(t){let r=null==t?void 0:t.status;if(n.cM.debug("trying refreshing wc session",e,r),e&&(r===n.MP.READY||r===n.MP.CONNECTING)){n.cM.debug("refreshing wc session");try{t.connect()}catch(e){n.cM.error("Error while disconnecting to wallet connect in core",e)}}e||this.status!==n.MP.CONNECTED||r!==n.MP.READY&&r!==n.MP.CONNECTING||(n.cM.debug("this stops wc adapter from trying to reconnect once proposal expires"),t.status=n.MP.READY)}})}}},29440:function(e,t,r){"use strict";r.d(t,{OpenloginAdapter:function(){return ee},getOpenloginDefaultOptions:function(){return X}});var i=r(18045),n=r(31686),o=r(56127),s=r(15400),a=r(86005),l=r.n(a),c=r(75114);class u{constructor(){(0,o.Z)(this,"sessionId",void 0)}checkSessionParams(){if(!this.sessionId)throw Error("Session id is required");this.sessionId=this.sessionId.padStart(64,"0")}request(e){let{method:t="GET",url:r,data:i={},headers:n={}}=e,o={headers:n};switch(t){case"GET":return(0,c.U2)(r,o);case"POST":return(0,c.v_)(r,i,o);case"PUT":return(0,c.gz)(r,i,o);case"PATCH":return(0,c.r$)(r,i,o)}throw Error("Invalid method type")}}var d=r(77869),h=r(27163),f=r(82957).Buffer;let p=86400;class g extends u{constructor(){let{sessionServerBaseUrl:e,sessionNamespace:t,sessionTime:r,sessionId:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),(0,o.Z)(this,"sessionServerBaseUrl","https://session.web3auth.io"),(0,o.Z)(this,"sessionNamespace",void 0),(0,o.Z)(this,"sessionTime",p),(0,o.Z)(this,"sessionId",""),e&&(this.sessionServerBaseUrl=e),t&&(this.sessionNamespace=t),r&&(this.sessionTime=r),i&&(this.sessionId=i.padStart(64,"0"))}static generateRandomSessionKey(){return(0,d.generatePrivate)().toString("hex").padStart(64,"0")}async createSession(e){super.checkSessionParams();let t=f.from(this.sessionId,"hex"),r=(0,d.getPublic)(t).toString("hex"),i=await (0,h.encryptData)(this.sessionId,e),n=(await (0,d.sign)(t,(0,h.keccak256)(f.from(i,"utf8")))
2).toString("hex"),o={key:r,data:i,signature:n,namespace:this.sessionNamespace,timeout:this.sessionTime};return await super.request({method:"POST",url:`${this.sessionServerBaseUrl}/store/set`,data:o}),this.sessionId}async authorizeSession(){super.checkSessionParams();let e=(0,d.getPublic)(f.from(this.sessionId,"hex")).toString("hex"),t=new URL(`${this.sessionServerBaseUrl}/store/get`);t.searchParams.append("key",e),this.sessionNamespace&&t.searchParams.append("namespace",this.sessionNamespace);let r=await super.request({url:t.toString()});if(!r.message)throw Error("Session Expired or Invalid public key");let i=await (0,h.decryptData)(this.sessionId,r.message);if(i.error)throw Error("There was an error decrypting data.");return i}async updateSession(e){super.checkSessionParams();let t=f.from(this.sessionId,"hex"),r=(0,d.getPublic)(t).toString("hex"),i=await (0,h.encryptData)(this.sessionId,e),n=(await (0,d.sign)(t,(0,h.keccak256)(f.from(i,"utf8")))).toString("hex"),o={key:r,data:i,signature:n,namespace:this.sessionNamespace};await super.request({method:"PUT",url:`${this.sessionServerBaseUrl}/store/update`,data:o})}async invalidateSession(){super.checkSessionParams();let e=f.from(this.sessionId,"hex"),t=(0,d.getPublic)(e).toString("hex"),r=await (0,h.encryptData)(this.sessionId,{}),i=(await (0,d.sign)(e,(0,h.keccak256)(f.from(r,"utf8")))).toString("hex"),n={key:t,data:r,signature:i,namespace:this.sessionNamespace,timeout:1};return await super.request({method:"POST",url:`${this.sessionServerBaseUrl}/store/set`,data:n}),this.sessionId="",!0}}var m=r(97928),w=r.n(m);let y=l().getLogger("http-helpers");y.setLevel(a.levels.INFO);let b="torus-default",v="",_="x-api-key",x="x-embed-host",E=null,C=[],k=[];function S(e){y.setLevel(e)}async function A(e,t){let r=null;try{r=new URL(e)}catch(e){}if(E&&r&&(C.includes(r.origin)||k.includes(r.pathname))){let r=E.startTransaction({name:e}),i=r.startChild({op:"http"}),n=await fetch(e,t);return i.finish(),r.finish(),n}return fetch(e,t)}function I(){let e={};return b&&(e[_]=b),v&&(e[x]=v),e}function T(e){y.info(`Response: ${e.status} ${e.statusText}`),y.info(`Url: ${e.url}`)}function R(e){y.info(`Request tracing with traceID=${e.headers.get("x-web3-correlation-id")}`)}let O=(e,t)=>Promise.race([t,new Promise((t,r)=>{let i=setTimeout(()=>{clearTimeout(i),r(Error(`Timed out in ${e}ms`))},e)})]),P=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={mode:"cors",headers:{"Content-Type":"application/json; charset=utf-8"}};i.useAPIKey&&(o.headers=(0,n.Z)((0,n.Z)({},o.headers),I()));let s=w()(o,r,{method:"POST"});return i.isUrlEncodedData?(s.body=t,"application/json; charset=utf-8"===s.headers["Content-Type"]&&delete s.headers["Content-Type"]):s.body=JSON.stringify(t),O(i.timeout||6e4,A(e,s).then(e=>{if(i.logTracingHeader&&R(e),e.ok){let t=e.headers.get("content-type");return null!=t&&t.includes("application/json")?e.json():e.text()}throw T(e),e}))};var N=r(79482),M=r(82957).Buffer,D=l().getLogger("SecurePubSub");class L{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,"options",void 0),(0,o.Z)(this,"SOCKET_CONN",null),this.options=e,this.options.timeout=e.timeout||600,this.options.serverUrl=e.serverUrl||"https://broadcast-server.tor.us",this.options.enableLogging=e.enableLogging||!1,this.options.namespace=e.namespace||"",this.options.enableLogging?D.enableAll():D.disableAll()}static setLogLevel(e){D.setLevel(e),S(e)}async publish(e,t){let r=(0,h.keccak256)(M.from(e,"utf8")),i=await (0,h.encryptData)(r.toString("hex"),t),n=await (0,d.sign)(r,(0,h.keccak256)(M.from(i,"utf8"))),o={key:(0,d.getPublic)(r).toString("hex"),data:i,signature:n.toString("hex"),timeout:this.options.timeout,namespace:this.options.namespace};return P(`${this.options.serverUrl}/channel/set`,o)}async subscribe(e){let t=!0,r=(0,h.keccak256)(M.from(e,"utf8")),i=(0,d.getPublic)(r).toString("hex"),n=this.getSocketConnection();n.connected?(D.debug("already connected with socket"),n.emit("check_auth_status",i,{namespace:this.options.namespace})):n.once("connect",()=>{D.debug("connected with socket"),n.emit("check_auth_status",i,{namespace:this.options.namespace})});let o=()=>{n.once("connect",async()=>{D.debug("connected with socket using reconnect"),t&&n.emit("check_auth_status",i,{namespace:this.options.namespace})})},s=()=>{t||document.removeEventListener("visibilitychange",s),n.connected||"visible"!==document.visibilityState||o()},a=()=>{D.debug("socket disconnected",t),t?(D.error("socket disconnected unexpectedly, reconnecting socket"),o()):n.removeListener("disconnect",a)};n.on("disconnect",a);let l=new Promise((e,o)=>{let a=async i=>{try{let t=await (0,h.decryptData)(r.toString("hex"),i);D.info("got data",t),e(t)}catch(e){D.error(e),o(e)}finally{t=!1,document.removeEventListener("visibilitychange",s)}};D.info("listening to",`${i}_success`),n.once(`${i}_success`,a)});return"undefined"!=typeof document&&document.addEventListener("visibilitychange",s),l}cleanup(){this.SOCKET_CONN&&(this.SOCKET_CONN.disconnect(),this.SOCKET_CONN=null)}getSocketConnection(){if(this.SOCKET_CONN)return this.SOCKET_CONN;let e=(0,N.io)(this.options.serverUrl,{transports:["websocket","polling"],withCredentials:!0,reconnectionDelayMax:1e4,reconnectionAttempts:10});return e.on("connect_error",t=>{e.io.opts.transports=["polling","websocket"],D.error("connect error",t)}),e.on("connect",async()=>{let{engine:t}=e.io;D.debug("initially connected to",t.transport.name),t.once("upgrade",()=>{D.debug("upgraded",t.transport.name)}
2),t.once("close",e=>{D.debug("connection closed",e)})}),e.on("error",t=>{D.error("socket errored",t),e.disconnect()}),this.SOCKET_CONN=e,this.SOCKET_CONN}}var j=r(55445),B=r(73493),$=r.n(B);r(82957).Buffer;class U extends s.s{constructor(e,t){super(t),(0,o.Z)(this,"code",void 0),(0,o.Z)(this,"message",void 0),this.code=e,this.message=t||"",Object.defineProperty(this,"name",{value:"OpenloginError"})}toJSON(){return{name:this.name,code:this.code,message:this.message}}toString(){return JSON.stringify(this.toJSON())}}class F extends U{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"InitializationError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new F(e,`${F.messages[e]}, ${t}`)}static invalidParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return F.fromCode(5001,e)}static notInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return F.fromCode(5002,e)}}(0,o.Z)(F,"messages",{5e3:"Custom",5001:"Invalid constructor params",5002:"SDK not initialized. please call init first"});class z extends U{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:"LoginError"})}static fromCode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new z(e,`${z.messages[e]}, ${t}`)}static invalidLoginParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.fromCode(5111,e)}static userNotLoggedIn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.fromCode(5112,e)}static popupClosed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.fromCode(5113,e)}static loginFailed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.fromCode(5114,e)}static popupBlocked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.fromCode(5115,e)}static mfaAlreadyEnabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.fromCode(5116,e)}static mfaNotEnabled(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return z.fromCode(5117,e)}}(0,o.Z)(z,"messages",{5e3:"Custom",5111:"Invalid login params",5112:"User not logged in.",5113:"login popup has been closed by the user",5114:"Login failed",5115:"Popup was blocked. Please call this function as soon as user clicks button or use redirect mode",5116:"MFA already enabled",5117:"MFA not yet enabled. Please call `enableMFA` first"});let q=(0,a.getLogger)("openlogin");q.setLevel("error");let W="6.2.11";function H(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={},r=new URL(window.location.href);r.searchParams.forEach((e,r)=>{"result"!==r&&(t[r]=e)});let o=r.searchParams.get("result");if(o)try{let e=JSON.parse((0,i.sX)(o));Object.keys(e).forEach(r=>{t[r]=e[r]})}catch(e){q.error(e)}let s=r.hash.substring(1),a=new URL(`${window.location.origin}/?${s}`);a.searchParams.forEach((e,r)=>{"result"!==r&&(t[r]=e)});let l=a.searchParams.get("result");if(l)try{let e=JSON.parse((0,i.sX)(l));Object.keys(e).forEach(r=>{t[r]=e[r]})}catch(e){q.error(e)}if(e){let e=new URL(window.location.origin+window.location.pathname);if(e.search=window.location.search,l){let t=JSON.parse((0,i.sX)(l));delete t.sessionId,delete t.sessionNamespace,delete t.error,e.hash=(0,i.rb)(JSON.stringify(t))}window.history.replaceState((0,n.Z)((0,n.Z)({},window.history.state),{},{as:e.href,url:e.href}),"",e.href)}return t}function V(e){let{baseURL:t,query:r,hash:i}=e,n=new URL(t);if(r&&Object.keys(r).forEach(e=>{n.searchParams.append(e,r[e])}),i){let e=new URL(V({baseURL:t,query:i})).searchParams.toString();n.hash=e}return n.toString()}function Z(){if("undefined"==typeof window)return"";let e=void 0!==window.screenLeft?window.screenLeft:window.screenX,t=void 0!==window.screenTop?window.screenTop:window.screenY,r=1200,i=700,n=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,o=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,s=1,a=Math.abs((n-r)/2/1+e),l=Math.abs((o-i)/2/1+t);return`titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=${i/s},width=${r/s},top=${l}
2,left=${a}`}function K(){if("undefined"==typeof window)return!1;let e=$().getParser(window.navigator.userAgent).getPlatform();return e.type===$().PLATFORMS_MAP.tablet||e.type===$().PLATFORMS_MAP.mobile}function G(e){return(e===i.hG.FACEBOOK||e===i.hG.LINE)&&K()?3e5:1e4}class Y extends j.EventEmitter{constructor(e){let{url:t,target:r,features:i,timeout:n=3e4}=e;super(),(0,o.Z)(this,"url",void 0),(0,o.Z)(this,"target",void 0),(0,o.Z)(this,"features",void 0),(0,o.Z)(this,"window",void 0),(0,o.Z)(this,"windowTimer",void 0),(0,o.Z)(this,"iClosedWindow",void 0),(0,o.Z)(this,"timeout",void 0),this.url=t,this.target=r||"_blank",this.features=i||Z(),this.window=void 0,this.windowTimer=void 0,this.iClosedWindow=!1,this.timeout=n,this._setupTimer()}_setupTimer(){this.windowTimer=Number(setInterval(()=>{this.window&&this.window.closed&&(clearInterval(this.windowTimer),setTimeout(()=>{this.iClosedWindow||this.emit("close"),this.iClosedWindow=!1,this.window=void 0},this.timeout)),void 0===this.window&&clearInterval(this.windowTimer)},500))}open(){var e;if(this.window=window.open(this.url,this.target,this.features),!this.window)throw z.popupBlocked();null!==(e=this.window)&&void 0!==e&&e.focus&&this.window.focus()}close(){this.iClosedWindow=!0,this.window&&this.window.close()}redirect(e){e?window.location.replace(this.url):window.location.href=this.url}async listenOnChannel(e){let t=new L,r=await t.subscribe(e);this.close(),t.cleanup();let i=JSON.parse(r);return i.error?{error:i.error,state:i.state}:i.data}}class J{constructor(e){if((0,o.Z)(this,"state",{}),(0,o.Z)(this,"options",void 0),(0,o.Z)(this,"sessionManager",void 0),(0,o.Z)(this,"currentStorage",void 0),(0,o.Z)(this,"_storageBaseKey","openlogin_store"),(0,o.Z)(this,"dappState",void 0),(0,o.Z)(this,"addVersionInUrls",!0),!e.clientId)throw F.invalidParams("clientId is required");if(e.network||(e.network=i.dr.SAPPHIRE_MAINNET),e.buildEnv||(e.buildEnv=i.Re.PRODUCTION),(e.buildEnv===i.Re.DEVELOPMENT||e.buildEnv===i.Re.TESTING||e.sdkUrl)&&(this.addVersionInUrls=!1),e.sdkUrl||e.useMpc||(e.buildEnv===i.Re.DEVELOPMENT?(e.sdkUrl="http://localhost:3000",e.dashboardUrl="http://localhost:5173/wallet/account"):e.buildEnv===i.Re.STAGING?(e.sdkUrl="https://staging-auth.web3auth.io",e.dashboardUrl="https://staging-account.web3auth.io/wallet/account"):e.buildEnv===i.Re.TESTING?(e.sdkUrl="https://develop-auth.web3auth.io",e.dashboardUrl="https://develop-account.web3auth.io/wallet/account"):(e.sdkUrl="https://auth.web3auth.io",e.dashboardUrl="https://account.web3auth.io/wallet/account")),e.useMpc&&!e.sdkUrl){if(Object.values(i.Ad).includes(e.network))throw Error("MPC is not supported on legacy networks, please use sapphire_devnet or sapphire_mainnet.");
2e.buildEnv===i.Re.DEVELOPMENT?e.sdkUrl="http://localhost:3000":e.buildEnv===i.Re.STAGING?e.sdkUrl="https://staging-mpc-auth.web3auth.io":e.buildEnv===i.Re.TESTING?e.sdkUrl="https://develop-mpc-auth.web3auth.io":e.sdkUrl="https://mpc-auth.web3auth.io"}e.redirectUrl||"undefined"==typeof window||(e.redirectUrl=`${window.location.protocol}//${window.location.host}${window.location.pathname}`),e.uxMode||(e.uxMode=i.$e.REDIRECT),"boolean"!=typeof e.replaceUrlOnRedirect&&(e.replaceUrlOnRedirect=!0),e.originData||(e.originData={}),e.whiteLabel||(e.whiteLabel={}),e.loginConfig||(e.loginConfig={}),e.mfaSettings||(e.mfaSettings={}),e.storageServerUrl||(e.storageServerUrl="https://broadcast-server.tor.us"),e.storageKey||(e.storageKey="local"),e.webauthnTransports||(e.webauthnTransports=["internal"]),e.sessionTime||(e.sessionTime=86400),this.options=e}get privKey(){return this.options.useMpc?this.state.factorKey||"":this.state.privKey?this.state.privKey.padStart(64,"0"):""}get coreKitKey(){return this.state.coreKitKey?this.state.coreKitKey.padStart(64,"0"):""}get ed25519PrivKey(){return this.state.ed25519PrivKey?this.state.ed25519PrivKey.padStart(128,"0"):""}get coreKitEd25519Key(){return this.state.coreKitEd25519PrivKey?this.state.coreKitEd25519PrivKey.padStart(128,"0"):""}get sessionId(){return this.state.sessionId||""}get sessionNamespace(){return this.options.sessionNamespace||""}get appState(){return this.state.userInfo.appState||this.dappState||""}get baseUrl(){return this.addVersionInUrls?`${this.options.sdkUrl}/v${W.split(".")[0]}`:`${this.options.sdkUrl}`}async init(){let e=H(this.options.replaceUrlOnRedirect);e.sessionNamespace&&(this.options.sessionNamespace=e.sessionNamespace);let t=this.options.sessionNamespace?`${this._storageBaseKey}_${this.options.sessionNamespace}`:this._storageBaseKey;this.currentStorage=i.BN.getInstance(t,this.options.storageKey);let r=this.currentStorage.get("sessionId");if(this.sessionManager=new g({sessionServerBaseUrl:this.options.storageServerUrl,sessionNamespace:this.options.sessionNamespace,sessionTime:this.options.sessionTime,sessionId:r}),(this.options.network===i.dr.TESTNET||this.options.network===i.dr.SAPPHIRE_DEVNET)&&console.log(`%c WARNING! You are on ${this.options.network}. Please set network: 'mainnet' or 'sapphire_mainnet' in production`,"color: #FF0000"),this.options.buildEnv!==i.Re.PRODUCTION&&console.log(`%c WARNING! You are using build env ${this.options.buildEnv}. Please set buildEnv: 'production' in production`,"color: #FF0000"),e.error)throw this.dappState=e.state,z.loginFailed(e.error);if(e.sessionId&&(this.currentStorage.set("sessionId",e.sessionId),this.sessionManager.sessionId=e.sessionId),this.sessionManager.sessionId){let e=await this._authorizeSession();this.updateState(e),0===Object.keys(e).length&&this.currentStorage.set("sessionId","")}}async login(e){if(!e.loginProvider)throw z.invalidLoginParams("loginProvider is required");let t={redirectUrl:this.options.redirectUrl},r=(0,n.Z)((0,n.Z)({loginProvider:e.loginProvider},t),e),o={actionType:i.RW.LOGIN,options:this.options,params:r},s=await this.openloginHandler(`${this.baseUrl}/start`,o,G(e.loginProvider));if(this.options.uxMode===i.$e.REDIRECT)return null;if(s.error)throw this.dappState=s.state,z.loginFailed(s.error);return this.sessionManager.sessionId=s.sessionId,this.options.sessionNamespace=s.sessionNamespace,this.currentStorage.set("sessionId",s.sessionId),await this.rehydrateSession(),{privKey:this.privKey}}async logout(){if(!this.sessionManager.sessionId)throw z.userNotLoggedIn();await this.sessionManager.invalidateSession(),this.updateState({privKey:"",coreKitKey:"",coreKitEd25519PrivKey:"",ed25519PrivKey:"",walletKey:"",oAuthPrivateKey:"",tKey:"",metadataNonce:"",keyMode:void 0,userInfo:{name:"",profileImage:"",dappShare:"",idToken:"",oAuthIdToken:"",oAuthAccessToken:"",appState:"",email:"",verifier:"",verifierId:"",aggregateVerifier:"",typeOfLogin:"",isMfaEnabled:!1},authToken:"",sessionId:"",factorKey:"",signatures:[],tssShareIndex:-1,tssPubKey:"",tssShare:"",tssNonce:-1}),this.currentStorage.set("sessionId","")}async enableMFA(e){var t;if(!this.sessionId)throw z.userNotLoggedIn();if(this.state.userInfo.isMfaEnabled)throw z.mfaAlreadyEnabled();let r={redirectUrl:this.options.redirectUrl},o={actionType:i.RW.ENABLE_MFA,options:this.options,params:(0,n.Z)((0,n.Z)((0,n.Z)({},r),e),{},{loginProvider:this.state.userInfo.typeOfLogin,extraLoginOptions:{login_hint:this.state.userInfo.verifierId},mfaLevel:"mandatory"}),sessionId:this.sessionId},s=await this.openloginHandler(`${this.baseUrl}/start`,o,G(o.params.loginProvider));if(this.options.uxMode===i.$e.REDIRECT)return null;if(s.error)throw this.dappState=s.state,z.loginFailed(s.error);return this.sessionManager.sessionId=s.sessionId,this.options.sessionNamespace=s.sessionNamespace,this.currentStorage.set("sessionId",s.sessionId),await this.rehydrateSession(),!!(null===(t=this.state.userInfo)||void 0===t?void 0:t.isMfaEnabled)}async manageMFA(e){if(!this.sessionId)throw z.userNotLoggedIn();if(!this.state.userInfo.isMfaEnabled)throw z.mfaNotEnabled();let t={redirectUrl:this.options.dashboardUrl,dappUrl:`${window.location.origin}${window.location.pathname}`},r={actionType:i.RW.MANAGE_MFA,options:this.options,params:(0,n.Z)((0,n.Z)((0,n.Z)({},t),e),{},{loginProvider:this.state.userInfo.typeOfLogin,extraLoginOptions:{login_hint:this.state.userInfo.verifierId}})},o={loginId:await this.getLoginId(r),sessionNamespace:this.options.network,storageServerUrl:this.options.storageServerUrl},s=V({baseURL:`${this.baseUrl}/start`,hash:{b64Params:(0,i.zc)(o)}});window.open(s,"_blank")}async changeSocialFactor(e){if(!this.sessionId)throw z.userNotLoggedIn();let t={redirectUrl:this.options.redirectUrl},r={actionType:i.RW.MODIFY_SOCIAL_FACTOR,options:this.options,params:(0,n.Z)((0,n.Z)({},t),e),sessionId:this.sessionId},o=await this.openloginHandler(`${this.baseUrl}/start`,r);
2if(this.options.uxMode!==i.$e.REDIRECT)return this.sessionManager.sessionId=o.sessionId,this.options.sessionNamespace=o.sessionNamespace,this.currentStorage.set("sessionId",o.sessionId),await this.rehydrateSession(),!0}getUserInfo(){if(!this.sessionManager.sessionId)throw z.userNotLoggedIn();return this.state.userInfo}async getLoginId(e){if(!this.sessionManager)throw F.notInitialized();let t=g.generateRandomSessionKey(),r=new g({sessionServerBaseUrl:this.options.storageServerUrl,sessionNamespace:this.options.sessionNamespace,sessionTime:600,sessionId:t});return await r.createSession(JSON.parse(JSON.stringify(e))),t}async _authorizeSession(){try{if(!this.sessionManager.sessionId)return{};return await this.sessionManager.authorizeSession()}catch(e){return q.error("authorization failed",e),{}}}updateState(e){this.state=(0,n.Z)((0,n.Z)({},this.state),e)}async rehydrateSession(){let e=await this._authorizeSession();this.updateState(e)}async openloginHandler(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4,n=await this.getLoginId(t),o={loginId:n,sessionNamespace:this.options.sessionNamespace,storageServerUrl:this.options.storageServerUrl};if(this.options.uxMode===i.$e.REDIRECT){let t=V({baseURL:e,hash:{b64Params:(0,i.zc)(o)}});window.location.href=t;return}let s=new Y({url:V({baseURL:e,hash:{b64Params:(0,i.zc)(o)}}),timeout:r});return new Promise((e,t)=>{s.on("close",()=>{t(z.popupClosed())}),s.listenOnChannel(n).then(e).catch(t);try{s.open()}catch(e){t(e)}})}}var Q=r(53248);let X=()=>({adapterSettings:{network:i.dr.SAPPHIRE_MAINNET,clientId:"",uxMode:i.$e.POPUP},loginSettings:{},privateKeyProvider:void 0});class ee extends Q.J5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(e),(0,o.Z)(this,"name",Q.rW.OPENLOGIN),(0,o.Z)(this,"adapterNamespace",Q.yk.MULTICHAIN),(0,o.Z)(this,"type",Q.hN.IN_APP),(0,o.Z)(this,"openloginInstance",null),(0,o.Z)(this,"status",Q.MP.NOT_READY),(0,o.Z)(this,"currentChainNamespace",Q.EN.EIP155),(0,o.Z)(this,"privateKeyProvider",null),(0,o.Z)(this,"openloginOptions",void 0),(0,o.Z)(this,"loginSettings",{loginProvider:""}),this.setAdapterSettings((0,n.Z)((0,n.Z)({},e.adapterSettings),{},{chainConfig:e.chainConfig,clientId:e.clientId||"",sessionTime:e.sessionTime,web3AuthNetwork:e.web3AuthNetwork,useCoreKitKey:e.useCoreKitKey,privateKeyProvider:e.privateKeyProvider})),this.loginSettings=e.loginSettings||{loginProvider:""},this.privateKeyProvider=e.privateKeyProvider||null}get chainConfigProxy(){return this.chainConfig?(0,n.Z)({},this.chainConfig):null}get provider(){return this.status!==Q.MP.NOT_READY&&this.privateKeyProvider?this.privateKeyProvider:null}set provider(e){throw Error("Not implemented")}async init(e){if(super.checkInitializationRequirements(),!this.clientId)throw Q.Ty.invalidParams("clientId is required before openlogin's initialization");if(!this.openloginOptions)throw Q.Ty.invalidParams("openloginOptions is required before openlogin's initialization");let t=this.openloginOptions.uxMode===i.$e.REDIRECT;if(this.openloginOptions=(0,n.Z)((0,n.Z)({},this.openloginOptions),{},{replaceUrlOnRedirect:t}),this.openloginInstance=new J((0,n.Z)((0,n.Z)({},this.openloginOptions),{},{clientId:this.clientId,network:this.openloginOptions.network||this.web3AuthNetwork||i.dr.SAPPHIRE_MAINNET})),Q.cM.debug("initializing openlogin adapter init"),await this.openloginInstance.init(),!this.chainConfig)throw Q.Ty.invalidParams("chainConfig is required before initialization");this.status=Q.MP.READY,this.emit(Q.n2.READY,Q.rW.OPENLOGIN);try{Q.cM.debug("initializing openlogin adapter"),this._getFinalPrivKey()&&(e.autoConnect||t)&&(this.rehydrated=!0,await this.connect())}catch(e){Q.cM.error("Failed to connect with cached openlogin provider",e),this.emit("ERRORED",e)}}async connect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loginProvider:""};super.checkConnectionRequirements(),this.status=Q.MP.CONNECTING,this.emit(Q.n2.CONNECTING,(0,n.Z)((0,n.Z)({},e),{},{adapter:Q.rW.OPENLOGIN}));try{return await this.connectWithProvider(e),this.provider}catch(e){if(Q.cM.error("Failed to connect with openlogin provider",e),this.status=Q.MP.READY,this.emit
2(Q.n2.ERRORED,e),null!=e&&e.message.includes("user closed popup"))throw Q.RM.popupClosed();if(e instanceof Q.up)throw e;throw Q.RM.connectionError("Failed to login with openlogin")}}async disconnect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cleanup:!1};if(this.status!==Q.MP.CONNECTED)throw Q.RM.notConnectedError("Not connected with wallet");if(!this.openloginInstance)throw Q.Ty.notReady("openloginInstance is not ready");await this.openloginInstance.logout(),e.cleanup?(this.status=Q.MP.NOT_READY,this.openloginInstance=null,this.privateKeyProvider=null):this.status=Q.MP.READY,this.rehydrated=!1,this.emit(Q.n2.DISCONNECTED)}async authenticateUser(){if(this.status!==Q.MP.CONNECTED)throw Q.RM.notConnectedError("Not connected with wallet, Please login/connect first");return{idToken:(await this.getUserInfo()).idToken}}async getUserInfo(){if(this.status!==Q.MP.CONNECTED)throw Q.RM.notConnectedError("Not connected with wallet");if(!this.openloginInstance)throw Q.Ty.notReady("openloginInstance is not ready");return this.openloginInstance.getUserInfo()}setAdapterSettings(e){super.setAdapterSettings(e);let t=X();Q.cM.info("setting adapter settings",e),this.openloginOptions=(0,n.Z)((0,n.Z)((0,n.Z)({},t.adapterSettings),this.openloginOptions),e),e.web3AuthNetwork&&(this.openloginOptions.network=e.web3AuthNetwork),e.privateKeyProvider&&(this.privateKeyProvider=e.privateKeyProvider)}async addChain(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.checkAddChainRequirements(e,r),null===(t=this.privateKeyProvider)||void 0===t||t.addChain(e),this.addChainConfig(e)}async switchChain(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.checkSwitchChainRequirements(e,r),await (null===(t=this.privateKeyProvider)||void 0===t?void 0:t.switchChain(e)),this.setAdapterSettings({chainConfig:this.getChainConfig(e.chainId)})}_getFinalPrivKey(){if(!this.openloginInstance)return"";let e=this.openloginInstance.privKey;if(this.useCoreKitKey){if(this.openloginInstance.privKey&&!this.openloginInstance.coreKitKey)throw Q.RM.coreKitKeyNotFound();e=this.openloginInstance.coreKitKey}return e}_getFinalEd25519PrivKey(){if(!this.openloginInstance)return"";let e=this.openloginInstance.ed25519PrivKey;if(this.useCoreKitKey){if(this.openloginInstance.ed25519PrivKey&&!this.openloginInstance.coreKitEd25519Key)throw Q.RM.coreKitKeyNotFound();e=this.openloginInstance.coreKitEd25519Key}return e}async connectWithProvider(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{loginProvider:""};if(!this.privateKeyProvider)throw Q.Ty.invalidParams("PrivateKey Provider is required before initialization");if(!this.openloginInstance)throw Q.Ty.notReady("openloginInstance is not ready");if(!this._getFinalPrivKey()||null!==(e=r.extraLoginOptions)&&void 0!==e&&e.id_token){if(this.loginSettings.curve||(this.loginSettings.curve=this.currentChainNamespace===Q.EN.SOLANA?i.x7.ED25519:i.x7.SECP256K1),!r.loginProvider&&!this.loginSettings.loginProvider)throw Q.Ty.invalidParams("loginProvider is required for login");await this.openloginInstance.login(w()(this.loginSettings,r,{extraLoginOptions:(0,n.Z)((0,n.Z)({},r.extraLoginOptions||{}),{},{login_hint:r.login_hint||(null===(t=r.extraLoginOptions)||void 0===t?void 0:t.login_hint)})}))}let o=this._getFinalPrivKey();o&&(this.currentChainNamespace===Q.EN.SOLANA&&(o=this._getFinalEd25519PrivKey()),await this.privateKeyProvider.setupProvider(o),this.status=Q.MP.CONNECTED,this.emit(Q.n2.CONNECTED,{adapter:Q.rW.OPENLOGIN,reconnected:this.rehydrated}))}}},45792:function(e){!function(t,r){e.exports=r()}(0,function(){"use strict";var e=1e3,t=6e4,r=36e5,i="millisecond",n="second",o="minute",s="hour",a="day",l="week",c="month",u="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","
2st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},w=function(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},y={s:w,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),i=Math.floor(r/60),n=r%60;return(t<=0?"+":"-")+w(i,2,"0")+":"+w(n,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var i=12*(r.year()-t.year())+(r.month()-t.month()),n=t.clone().add(i,c),o=r-n<0,s=t.clone().add(i+(o?-1:1),c);return+(-(i+(r-n)/(o?n-s:s-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:c,y:d,w:l,d:a,D:h,h:s,m:o,s:n,ms:i,Q:u})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",v={};v[b]=m;var _="$isDayjsObject",x=function(e){return e instanceof S||!(!e||!e[_])},E=function e(t,r,i){var n;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();v[o]&&(n=o),r&&(v[o]=r,n=o);var s=t.split("-");if(!n&&s.length>1)return e(s[0])}else{var a=t.name;v[a]=t,n=a}return!i&&n&&(b=n),n||!i&&b},C=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new S(r)},k=y;k.l=E,k.i=x,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function m(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var w=m.prototype;return w.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var n=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},w.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},w.$utils=function(){return k},w.isValid=function(){return this.$d.toString()!==f},w.isSame=function(e,t){var r=C(e);return this.startOf(t)<=r&&r<=this.endOf(t)},w.isAfter=function(e,t){return C(e)<this.startOf(t)},w.isBefore=function(e,t){return this.endOf(t)<C(e)},w.$g=function(e,t,r){return k.u(e)?this[t]:this.set(r,e)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(e,t){var r=this,i=!!k.u(t)||t,u=k.p(e),f=function(e,t){var n=k.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return i?n:n.endOf(a)},p=function(e,t){return k.w(r.toDate()[e].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,m=this.$M,w=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return i?f(1,0):f(31,11);case c:return i?f(1,m):f(0,m+1);case l:var b=this.$locale().weekStart||0,v=(g<b?g+7:g)-b;return f(i?w-v:w+(6-v),m);case a:case h:return p(y+"Hours",0);case s:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case n:return p(y+"Milliseconds",3);default:return this.clone()}},w.endOf=function(e){return this.startOf(e,!1)},w.$set=function(e,t){var r,l=k.p(e),u="set"+(this.$u?"UTC":""),f=((r={})[a]=u+"Date",r[h]=u+"Date",r[c]=u+"Month",r[d]=u+"FullYear",r[s]=u+"Hours",r[o]=u+"Minutes",r[n]=u+"Seconds",r[i]=u+"Milliseconds",r)[l],p=l===a?this.$D+(t-this.$W):t;if(l===c||l===d){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},w.set=function(e,t){return this.clone().$set(e,t)},w.get=function(e){return this[k.p(e)]()},w.add=function(i,u){var h,f=this;i=Number(i);var p=k.p(u),g=function(e){var t=C(f);return k.w(t.date(t.date()+Math.round(e*i)),f)};if(p===c)return this.set(c,this.$M+i);if(p===d)return this.set(d,this.$y+i);if(p===a)return g(1);if(p===l)return g(7);var m=((h={})[o]=t,h[s]=r,h[n]=e,h)[p]||1,w=this.$d.getTime()+i*m;return k.w(w,this)},w.subtract=function(e,t){return this.add(-1*e,t)},w.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var i=e||"YYYY-MM-DDTHH:mm:ssZ",n=k.z(this),o=this.$H,s=this.$m,a=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,d=function(e,r,n,o){return e&&(e[r]||e(t,i))||n[r].slice(0,o)},h=function(e){return k.s(o%12||12,e,"0")},p=u||function(e,t,r){var i=e<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(g,function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return a+1;case"MM":return k.s(a+1,2,"0");case"MMM":return d(r.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(r.weekdaysMin,t.$W,l,2);case"ddd":return d(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return k.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,s,!0);case"A":return p(o,s,!1);case"m":return String(s);case"mm":return k.s(s,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")})},w.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},w.diff=function(i,h,f){var p,g=this,m=k.p(h),w=C(i),y=(w.utcOffset()-this.utcOffset())*t,b=this-w,v=function(){return k.m(g,w)};switch(m){case d:p=v()/12;break;case c:p=v();break;case u:p=v()/3;break;case l:p=(b-y)/6048e5;break;case a:p=(b-y)/864e5;break;case s:p=b/r;break;case o:p=b/t;break;case n:p=b/e;break;default:p=b}return f?p:k.a(p)},w.daysInMonth=function(){return this.endOf(c).$D},w.$locale=function(){return v[this.$L]},w.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),i=E(e,t,!0);return i&&(r.$L=i),r},w.clone=function(){return k.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},m}(),A=S.prototype;return C.prototype=A,[["$ms",i],["$s",n],["$m",o],["$H",s],["$W",a],["$M",c],["$y",d],["$D",h]].forEac
2h(function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),C.extend=function(e,t){return e.$i||(e(t,S,C),e.$i=!0),C},C.locale=E,C.isDayjs=x,C.unix=function(e){return C(1e3*e)},C.en=v[b],C.Ls=v,C.p={},C})},67408:function(e){!function(t,r){e.exports=r()}(0,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}}})},69367:function(e){!function(t,r){e.exports=r()}(0,function(){return function(e,t,r){e=e||{};var i=t.prototype,n={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,r,n){return i.fromToBase(e,t,r,n)}r.en.relativeTime=n,i.fromToBase=function(t,i,o,s,a){for(var l,c,u,d=o.$locale().relativeTime||n,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,p=0;p<f;p+=1){var g=h[p];g.d&&(l=s?r(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,m<=g.r||!g.r){m<=1&&p>0&&(g=h[p-1]);var w=d[g.l];a&&(m=a(""+m)),c="string"==typeof w?w.replace("%d",m):w(m,i,g.l,u);break}}if(i)return c;var y=u?d.future:d.past;return"function"==typeof y?y(c):y.replace("%s",c)},i.to=function(e,t){return o(e,t,this,!0)},i.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?r.utc():r()};i.toNow=function(e){return this.to(s(this),e)},i.fromNow=function(e){return this.from(s(this),e)}}})},60645:function(e){!function(t,r){e.exports=r()}(0,function(){return function(e,t,r){r.updateLocale=function(e,t){var i=r.Ls[e];if(i)return(t?Object.keys(t):[]).forEach(function(e){i[e]=t[e]}),i}}})},5461:function(e,t,r){"use strict";var i=this&&this.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;let o=n(r(77625)),s=r(86119),a=r(15651),l=r(86800),c=r(82254),u=r(63514),d=r(68763),h=r(55882),f=r(77284),p=r(1483),g=r(74493),m=r(17211);class w extends o.default{constructor(e){var t,r,{metadata:n}=e,o=e.preference,{keysUrl:a}=o,u=i(o,["keysUrl"]);super(),this.accounts=[],this.handlers={handshake:async e=>{try{if(this.connected)return this.emit("connect",{chainId:(0,c.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id))}),this.accounts;let e=await this.requestSignerSelection(),t=this.initSigner(e),r=await t.handshake();return this.signer=t,(0,d.storeSignerType)(e),this.emit("connect",{chainId:(0,c.hexStringFromIntNumber)((0,l.IntNumber)(this.chain.id))}),r}catch(e){throw this.handleUnauthorizedError(e),e}},sign:async e=>{if(!this.connected||!this.signer)throw s.standardErrors.provider.unauthorized("Must call 'eth_requestAccounts' before other methods");try{return await this.signer.request(e)}catch(e){throw this.handleUnauthorizedError(e),e}},fetch:e=>(0,f.fetchRPCRequest)(e,this.chain),state:e=>{let t=()=>{if(this.connected)return this.accounts;throw s.standardErrors.provider.unauthorized("Must call 'eth_requestAccounts' before other methods")};switch(e.method){case"eth_chainId":case"net_version":return this.chain.id;case"eth_accounts":return t();case"eth_coinbase":return t()[0];default:return this.handlers.unsupported(e)}},deprecated:({method:e})=>{throw s.standardErrors.rpc.methodNotSupported(`Method ${e} is deprecated.`)},unsupported:({method:e})=>{throw s.standardErrors.rpc.methodNotSupported(`Method ${e} is not supported.`)}},this.isCoinbaseWallet=!0,this.updateListener={onAccountsUpdate:({accounts:e,source:t})=>{(0,c.areAddressArraysEqual)(this.accounts,e)||(this.accounts=e,"storage"!==t&&this.emit
2("accountsChanged",this.accounts))},onChainUpdate:({chain:e,source:t})=>{(e.id!==this.chain.id||e.rpcUrl!==this.chain.rpcUrl)&&(this.chain=e,"storage"!==t&&this.emit("chainChanged",(0,c.hexStringFromIntNumber)((0,l.IntNumber)(e.id))))}},this.metadata=n,this.preference=u,this.communicator=new p.Communicator(a),this.chain={id:null!==(r=null===(t=n.appChainIds)||void 0===t?void 0:t[0])&&void 0!==r?r:1};let h=(0,d.loadSignerType)();this.signer=h?this.initSigner(h):null}get connected(){return this.accounts.length>0}async request(e){var t;try{let r=(0,f.checkErrorForInvalidRequestArgs)(e);if(r)throw r;let i=null!==(t=(0,g.determineMethodCategory)(e.method))&&void 0!==t?t:"fetch";return this.handlers[i](e)}catch(t){return Promise.reject((0,a.serializeError)(t,e.method))}}handleUnauthorizedError(e){e.code===s.standardErrorCodes.provider.unauthorized&&this.disconnect()}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: "eth_requestAccounts" }) instead.'),await this.request({method:"eth_requestAccounts"})}async disconnect(){this.accounts=[],this.chain={id:1},m.ScopedLocalStorage.clearAll(),this.emit("disconnect",s.standardErrors.provider.disconnected("User initiated disconnection"))}requestSignerSelection(){return(0,d.fetchSignerType)({communicator:this.communicator,preference:this.preference,metadata:this.metadata})}initSigner(e){switch(e){case"scw":return new u.SCWSigner({metadata:this.metadata,updateListener:this.updateListener,postMessageToPopup:this.communicator.postRequestAndWaitForResponse});case"walletlink":return new h.WalletLinkSigner({metadata:this.metadata,updateListener:this.updateListener});case"extension":{let e=(0,f.getCoinbaseInjectedSigner)();if(!e)throw s.standardErrors.rpc.internal("injected signer not found");return e}}}}t.CoinbaseWalletProvider=w},93537:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;let i=r(65752),n=r(5461),o=r(17211),s=r(13975),a=r(82254),l=r(77284);class c{constructor(e){this.metadata={appName:e.appName||"Dapp",appLogoUrl:e.appLogoUrl||(0,a.getFavicon)(),appChainIds:e.appChainIds||[]},this.storeLatestVersion()}makeWeb3Provider(e={options:"all"}){var t;let r={metadata:this.metadata,preference:e};return null!==(t=(0,l.getCoinbaseInjectedProvider)(r))&&void 0!==t?t:new n.CoinbaseWalletProvider(r)}getCoinbaseWalletLogo(e,t=240){return(0,i.walletLogo)(e,t)}storeLatestVersion(){new o.ScopedLocalStorage("CBWSDK").setItem("VERSION",s.LIB_VERSION)}}t.CoinbaseWalletSDK=c},65752:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0;let r=(e,t)=>{let r;switch(e){case"standard":default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3
2V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7
2h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}};t.walletLogo=r},1483:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Communicator=void 0;let i=r(13975),n=r(42065),o=r(39016),s=r(86119);class a{constructor(e=o.CB_KEYS_URL){this.popup=null,this.listeners=new Map,this.postMessage=async e=>{(await this.waitForPopupLoaded()).postMessage(e,this.url.origin)},this.postRequestAndWaitForResponse=async e=>{let t=this.onMessage(({requestId:t})=>t===e.id);return this.postMessage(e),await t},this.onMessage=async e=>new Promise((t,r)=>{let i=r=>{if(r.origin!==this.url.origin)return;let n=r.data;e(n)&&(t(n),window.removeEventListener("message",i),this.listeners.delete(i))};window.addEventListener("message",i),this.listeners.set(i,{reject:r})}),this.disconnect=()=>{(0,n.closePopup)(this.popup),this.popup=null,this.listeners.forEach(({reject:e},t)=>{e(s.standardErrors.provider.userRejectedRequest("Request rejected")),window.removeEventListener("message",t)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup?this.popup:(this.popup=(0,n.openPopup)(this.url),this.onMessage(({event:e})=>"PopupUnload"===e).then(this.disconnect).catch(()=>{}),this.onMessage(({event:e})=>"PopupLoaded"===e).then(e=>{this.postMessage({requestId:e.id,data:{version:i.LIB_VERSION}})}).then(()=>{if(!this.popup)throw s.standardErrors.rpc.internal();return this.popup})),this.url=new URL(e)}}t.Communicator=a},42065:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closePopup=t.openPopup=void 0;let i=r(86119),n=420,o=540;function s(e){let t=(window.innerWidth-n)/2+window.screenX,r=(window.innerHeight-o)/2+window.screenY,s=window.open(e,"Smart Wallet",`width=${n}, height=${o}, left=${t}, top=${r}`);if(null==s||s.focus(),!s)throw i.standardErrors.rpc.internal("Pop up window failed to open");return s}function a(e){e&&!e.closed&&e.close()}t.openPopup=s,t.closePopup=a},39016:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CBW_MOBILE_DEEPLINK_URL=t.WALLETLINK_URL=t.CB_KEYS_URL=void 0,t.CB_KEYS_URL="https://keys.coinbase.com/connect",t.WALLETLINK_URL="https://www.walletlink.org",t.CBW_MOBILE_DEEPLINK_URL="https://go.cb-w.com/walletlink"},65046:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.standardErrorCodes=void 0,t.standardErrorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}}},40218:function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=void 0;let i=r(65046),n=r(38858);function o(e,t){let[r,i]=a(t);return new l(e,r||(0,n.getMessageFromCode)(e),i)}function s(e,t){let[r,i]=a(t);return new c(e,r||(0,n.getMessageFromCode)(e),i)}function a(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,r]}}return[]}t.standardErrors={rpc:{parse:e=>o(i.standardErrorCodes.rpc.parse,e),invalidRequest:e=>o(i.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>o(i.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>o(i.standardErrorCodes.rpc.methodNotFound,e),internal:e=>o(i.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code
2<= -32005');return o(t,e)},invalidInput:e=>o(i.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>o(i.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>o(i.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>o(i.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>o(i.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>o(i.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>s(i.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>s(i.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>s(i.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>s(i.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>s(i.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>s(i.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:r,data:i}=e;if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string');return new c(t,r,i)}}};class l extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}}class c extends l{constructor(e,t,r){if(!u(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}function u(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}},86119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=t.standardErrorCodes=void 0;var i=r(65046);Object.defineProperty(t,"standardErrorCodes",{enumerable:!0,get:function(){return i.standardErrorCodes}});var n=r(40218);Object.defineProperty(t,"standardErrors",{enumerable:!0,get:function(){return n.standardErrors}})},15651:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=void 0;let i=r(25962),n=r(13975),o=r(65046),s=r(38858);function a(e,t){let r=(0,s.serialize)(l(e),{shouldIncludeStack:!0}),i=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");i.searchParams.set("version",n.LIB_VERSION),i.searchParams.set("code",r.code.toString());let o=c(r.data,t);return o&&i.searchParams.set("method",o),i.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:i.href})}function l(e){return"string"==typeof e?{message:e,code:o.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function c(e,t){let r=null==e?void 0:e.method;if(r)return r;if(void 0===t);else if("string"==typeof t)return t;else if(!Array.isArray(t))return t.method;else if(t.length>0)return t[0].method}t.serializeError=a},38858:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.getErrorCode=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=r(65046),n="Unspecified error message.";function o(e,r=n){if(e&&Number.isInteger(e)){let r=e.toString();if(h(i.errorValues,r))return i.errorValues[r].message;if(u(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function s(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(i.errorValues[t]||u(e))}function a(e){var t;return"number"==typeof e?e:l(e)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}function l(e){return"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)}function c(e,{shouldIncludeStack:t=!1}={}){let r={};if(e&&"object"==typeof e&&!Array.isArray(e)&&h(e,"code")&&s(e.code)){let t=e;r.code=t.code,t.message&&"string"==typeof t.message?(r.message=t.message,h(t,"data")&&(r.data=t.data)):(r.message=o(r.code),r.data={originalError:d(e)})}else r.code=i.standardErrorCodes.rpc.internal,r.message=f(e,"message")?e.message:n,r.data={originalError:d(e)};return t&&(r.stack=f(e,"stack")?e.stack:void 0),r}function u(e){return e>=-32099&&e<=-32e3}function d(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=o,t.isValidCode=s,t.getErrorCode=a,t.serialize=c},74493:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.determineMethodCategory=void 0;let r={handshake:["eth_requestAccounts"],sign:["eth_ecRecover","personal_sign","personal_ecRecover","eth_signTransaction","eth_sendTransaction","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4","eth_signTypedData","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_watchAsset","wallet_getCapabilities","wallet_sendCalls","wallet_showCallsStatus"],state:["eth_chainId","eth_accounts","eth_coinbase","net_version"],deprecated:["eth_sign","eth_signTypedData_v2"],unsupported:["eth_subscribe","eth_unsubscribe"],fetch:[]};function i(e){for(let t in r){let i=t;if(r[i].includes(e))return i}}t.determineMethodCategory=i},86800:function(e,t){"use strict";function r(){return e=>e}function i(e){return Math.floor(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=r,t.HexString=r(),t.AddressString=r(),t.BigIntString=r(),t.IntNumber=i,t.RegExpString=r()},82254:function(e,t,r){"use strict";var i=r(82957).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.areAddressArraysEqual=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBigInt=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBigInt=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let n=r(86119),o=r(86800),s=/^[0-9]*$/,a=/^[a-f0-9]*$/;function l(e){return c(crypto.getRandomValues(new Uint8Array(e)))}function c(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function u(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))}function d(e,t=!1){let r=e.toString("hex");return(0,o.HexString)(t?`0x${r}`:r)}function h(e){return(0,o.BigIntString)(e.toString(10))}function f(e){return(0,o.IntNumber)(Number(BigInt(v(e,!0))))}function p(e){return(0,o.HexString)(`0x${BigInt(e).toString(16)}`)}function g(e){return e.startsWith("0x")||e.startsWith("0X")}function m(e){return g(e)?e.slice(2):e}function w(e){return g(e)?`0x${e.slice(2)}`:`0x${e}`}function y(e){if("string"!=typeof e)return!1;let t=m(e).toLowerCase();return a.test(t)}function b(e,t=!1){if("string"==typeof e){let r=m(e).toLowerCase();if(a.test(r))return(0,o.HexString)(t?`0x${r}`:r)}throw n.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function v(e,t=!1){let r=b(e,!1);return r.length%2==1&&(r=(0,o.HexString)(`0${r}`)),t?(0,o.HexString)(`0x${r}`):r}function _(e){if("string"==typeof e){let t=m(e).toLowerCase();if(y(t)&&40===t.length)return(0,o.AddressString)(w(t))}throw n.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function x(e){if(i.isBuffer(e))return e;if("string"==typeof e){if(y(e)){let t=v(e,!1);return i.from(t,"hex")}return i.from(e,"utf8")}throw n.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}function E(e){if("number"==typeof e&&Number.isInteger(e))return(0,o.IntNumber)(e);if("string"==typeof e){if(s.test(e))return(0,o.IntNumber)(Number(e));if(y(e))return(0,o.IntNumber)(Number(BigInt(v(e,!0))))}throw n.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function C(e){if(e instanceof RegExp)return(0,o.RegExpString)(e.toString());throw n.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}function k(e){if(null!==e&&("bigint"==typeof e||A(e)))return BigInt(e.toString(10));if("number"==typeof e)return BigInt(E(e));if("string"==typeof e){if(s.test(e))return BigInt(e);if(y(e))return BigInt(v(e,!0))}throw n.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function S(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw n.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function A(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}function I(e,t){return Array.from({length:t-e},(t,r)=>e+r)}function T(){let e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,i=e?e.getAttribute("href"):null;return!i||i.startsWith("javascript:")||i.startsWith("vbscript:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?t+i:`${t}//${r}${i}`}function R(e,t){return e.length===t.length&&e.every((e,r)=>e===t[r])}t.randomBytesHex=l,t.uint8ArrayToHex=c,t.hexStringToUint8Array=u,t.hexStringFromBuffer=d,t.bigIntStringFromBigInt=h,t.intNumberFromHexString=f,t.hexStringFromIntNumber=p,t.has0xPrefix=g,t.strip0x=m,t.prepend0x=w,t.isHexString=y,t.ensureHexString=b,t.ensureEvenLengthHexString=v,t.ensureAddressString=_,t.ensureBuffer=x,t.ensureIntNumber=E,t.ensureRegExpString=C,t.ensureBigInt=k,t.ensureParsedJSONObject=S,t.isBigNumber=A,t.range=I,t.getFavicon=T,t.areAddressArraysEqual=R},73863:function(e,t,r){"use strict";i={value:!0},t.jp=void 0,i=r(93537).CoinbaseWalletSDK;var i,n=r(93537);Object.defineProperty(t,"jp",{enumerable:!0,get:function(){return n.CoinbaseWalletSDK}})},87988:function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.SCWKeyManager=void 0;let i=r(52912),n=r(17211),o={storageKey:"ownPrivateKey",keyType:"private"},s={storageKey:"ownPublicKey",keyType:"public"},a={storageKey:"peerPublicKey",keyType:"public"};class l{constructor(){this.storage=new n.ScopedLocalStorage("CBWSDK","SCWKeyManager"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(a,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(s.storageKey),this.storage.removeItem(o.storageKey),this.storage.removeItem(a.storageKey)}async generateKeyPair(){let e=await (0,i.generateKeyPair)();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(o,e.privateKey),await this.storeKey(s,e.publicKey)}async loadKeysIfNeeded(){null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(o)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(s)),(null===this.ownPrivateKey||null===this.ownPublicKey)&&await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(a)),null===this.sharedSecret&&null!==this.ownPrivateKey&&null!==this.peerPublicKey&&(this.sharedSecret=await (0,i.deriveSharedSecret)(this.ownPrivateKey,this.peerPublicKey))}async loadKey(e){let t=this.storage.getItem(e.storageKey);return t?(0,i.importKeyFromHexString)(e.keyType,t):null}async storeKey(e,t){let r=await (0,i.exportKeyToHexString)(e.keyType,t);this.storage.setItem(e.storageKey,r)}}t.SCWKeyManager=l},63514:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SCWSigner=void 0;let i=r(87988),n=r(29213),o=r(86119),s=r(82254),a=r(52912);class l{constructor(e){this.metadata=e.metadata,this.postMessageToPopup=e.postMessageToPopup,this.keyManager=new i.SCWKeyManager,this.stateManager=new n.SCWStateManager({appChainIds:this.metadata.appChainIds,updateListener:e.updateListener}),this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(){let e=await this.createRequestMessage({handshake:{method:"eth_requestAccounts",params:this.metadata}}),t=await this.postMessageToPopup(e);if("failure"in t.content)throw t.content.failure;let r=await (0,a.importKeyFromHexString)("public",t.sender);await this.keyManager.setPeerPublicKey(r);let i=await this.decryptResponseMessage(t);this.updateInternalState({method:"eth_requestAccounts"},i);let n=i.result;if("error"in n)throw n.error;return this.stateManager.accounts}async request(e){let t=this.tryLocalHandling(e);if(void 0!==t){if(t instanceof Error)throw t;return t}let r=await this.sendEncryptedRequest(e),i=await this.decryptResponseMessage(r);this.updateInternalState(e,i);let n=i.result;if("error"in n)throw n.error;return n.value}async disconnect(){this.stateManager.clear(),await this.keyManager.clear()}tryLocalHandling(e){var t;switch(e.method){case"wallet_switchEthereumChain":{let r=e.params;if(!r||!(null===(t=r[0])||void 0===t?void 0:t.chainId))throw o.standardErrors.rpc.invalidParams();let i=(0,s.ensureIntNumber)(r[0].chainId);return this.stateManager.switchChain(i)?null:void 0}case"wallet_getCapabilities":{let e=this.stateManager.walletCapabilities;if(!e)throw o.standardErrors.provider.unauthorized("No wallet capabilities found, please disconnect and reconnect");return e}default:return}}async sendEncryptedRequest(e){let t=await this.keyManager.getSharedSecret();if(!t)throw o.standardErrors.provider.unauthorized("No valid session found, try requestAccounts before other methods");let r=await (0,a.encryptContent)({action:e,chainId:this.stateManager.activeChain.id},t),i=await this.createRequestMessage({encrypted:r});return this.postMessageToPopup(i)}async createRequestMessage(e){let t=await (0,a.exportKeyToHexString)("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:t,content:e,timestamp:new Date}}async decryptResponseMessage(e){let t=e.content;if("failure"in t)throw t.failure;let r=await this.keyManager.getSharedSecret();if(!r)throw o.standardErrors.provider.unauthorized("Invalid session");return(0,a.decryptContent)(t.encrypted,r)}updateInternalState(e,t){var r,i;let n=null===(r=t.data)||void 0===r?void 0:r.chains;n&&this.stateManager.updateAvailableChains(n);let o=null===(i=t.data)||void 0===i?void 0:i.capabilities;o&&this.stateManager.updateWalletCapabilities(o);let a=t.result;if(!("error"in a))switch(e.method){case"eth_requestAccounts":{let e=a.value;this.stateManager.updateAccounts(e);break}case"wallet_switchEthereumChain":{if(null!==a.value)return;let t=e.params,r=(0,s.ensureIntNumber)(t[0].chainId);this.stateManager.switchChain(r)}}}}t.SCWSigner=l},29213:function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.SCWStateManager=void 0;let i=r(17211),n="accounts",o="activeChain",s="availableChains",a="walletCapabilities";class l{get accounts(){return this._accounts}get activeChain(){return this._activeChain}get walletCapabilities(){return this._walletCapabilities}constructor(e){var t,r;this.storage=new i.ScopedLocalStorage("CBWSDK","SCWStateManager"),this.updateListener=e.updateListener,this.availableChains=this.loadItemFromStorage(s),this._walletCapabilities=this.loadItemFromStorage(a);let l=this.loadItemFromStorage(n),c=this.loadItemFromStorage(o);l&&this.updateListener.onAccountsUpdate({accounts:l,source:"storage"}),c&&this.updateListener.onChainUpdate({chain:c,source:"storage"}),this._accounts=l||[],this._activeChain=c||{id:null!==(r=null===(t=e.appChainIds)||void 0===t?void 0:t[0])&&void 0!==r?r:1}}updateAccounts(e){this._accounts=e,this.storeItemToStorage(n,e),this.updateListener.onAccountsUpdate({accounts:e,source:"wallet"})}switchChain(e){var t;let r=null===(t=this.availableChains)||void 0===t?void 0:t.find(t=>t.id===e);return!!r&&(r===this._activeChain||(this._activeChain=r,this.storeItemToStorage(o,r),this.updateListener.onChainUpdate({chain:r,source:"wallet"}),!0))}updateAvailableChains(e){if(!e||0===Object.keys(e).length)return;let t=Object.entries(e).map(([e,t])=>({id:Number(e),rpcUrl:t}));this.availableChains=t,this.storeItemToStorage(s,t),this.switchChain(this._activeChain.id)}updateWalletCapabilities(e){this._walletCapabilities=e,this.storeItemToStorage(a,e)}storeItemToStorage(e,t){this.storage.setItem(e,JSON.stringify(t))}loadItemFromStorage(e){let t=this.storage.getItem(e);return t?JSON.parse(t):void 0}clear(){this.storage.clear()}}t.SCWStateManager=l},68763:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSignerType=t.storeSignerType=t.loadSignerType=void 0;let i=r(55882),n=r(17211),o="SignerType",s=new n.ScopedLocalStorage("CBWSDK","SignerConfigurator");function a(){return s.getItem(o)}function l(e){s.setItem(o,e)}async function c(e){let{communicator:t,metadata:r}=e;u(t,r).catch(()=>{});let i={id:crypto.randomUUID(),event:"selectSignerType",data:e.preference},{data:n}=await t.postRequestAndWaitForResponse(i);return n}async function u(e,t){await e.onMessage(({event:e})=>"WalletLinkSessionRequest"===e);let r=new i.WalletLinkSigner({metadata:t});e.postMessage({event:"WalletLinkUpdate",data:{session:r.getSession()}}),await r.handshake(),e.postMessage({event:"WalletLinkUpdate",data:{connected:!0}})}t.loadSignerType=a,t.storeSignerType=l,t.fetchSignerType=c},55882:function(e,t,r){"use strict";var i=r(82957).Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkSigner=void 0;let o=n(r(60730)),s=r(5654),a=r(32193),l=r(25962),c=r(62917),u=r(39016),d=r(86119),h=r(82254),f=r(17211),p="DefaultChainId",g="DefaultJsonRpcUrl";class m{constructor(e){var t,r;this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1;let{appName:i,appLogoUrl:n}=e.metadata;this._appName=i,this._appLogoUrl=n,this._storage=new f.ScopedLocalStorage("walletlink",u.WALLETLINK_URL),this.updateListener=e.updateListener,this._relayEventManager=new a.RelayEventManager,this._jsonRpcUrlFromOpts="";let o=this._storage.getItem(s.LOCAL_STORAGE_ADDRESSES_KEY);if(o){let e=o.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,h.ensureAddressString)(e)),null===(t=this.updateListener)||void 0===t||t.onAccountsUpdate({accounts:this._addresses,source:"storage"}))}this._storage.getItem(p)&&(null===(r=this.updateListener)||void 0===r||r.onChainUpdate({chain:{id:this.getChainId(),rpcUrl:this.jsonRpcUrl},source:"storage"}),this.hasMadeFirstChainChangedEmission=!0),this.initializeRelay()}getSession(){let{id:e,secret:t}=this.initializeRelay().getWalletLinkSession();return{id:e,secret:t}}async handshake(){return await this.request({method:"eth_requestAccounts"})}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(g))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(g,e)}updateProviderInfo(e,t){var r;this.jsonRpcUrl=e;let i=this.getChainId();this._storage.setItem(p,t.toString(10)),(0,h.ensureIntNumber)(t)===i&&this.hasMadeFirstChainChangedEmission||(null===(r=this.updateListener)||void 0===r||r.onChainUpdate({chain:{id:t,rpcUrl:e},source:"wallet"}),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,r,i,n,o){let s=this.initializeRelay(),a=await s.watchAsset(e,t,r,i,n,null==o?void 0:o.toString());return!(0,l.isErrorResponse)(a)&&!!a.result}async addEthereumChain(e,t,r,i,n,o){var s,a;if((0,h.ensureIntNumber)(e)===this.getChainId())return!1;let c=this.initializeRelay();this._isAuthorized()||await c.requestEthereumAccounts();let u=await c.addEthereumChain(e.toString(),t,n,r,i,o);return!(0,l.isErrorResponse)(u)&&((null===(s=u.result)||void 0===s?void 0:s.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(a=u.result)||void 0===a?void 0:a.isApproved)===!0)}async switchEthereumChain(e){let t=this.initializeRelay(),r=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0);if((0,l.isErrorResponse)(r)){if(!r.errorCode)return;if(r.errorCode===d.standardErrorCodes.provider.unsupportedChain)throw d.standardErrors.provider.unsupportedChain();throw d.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode})}let i=r.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e)}async disconnect(){this._relay&&this._relay.resetAndReload(),this._storage.clear()}async request(e){try{return this._request(e).catch(e=>{throw e})}catch(e){return Promise.reject(e)}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw d.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:r}=e;if("string"!=typeof t||0===t.length)throw d.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw d.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let i=void 0===r?[]:r,n=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:i,jsonrpc:"2.0",id:n})).result}_setAddresses(e,t){var r;if(!Array.isArray(e))throw Error("addresses is not an array");let i=e.map(e=>(0,h.ensureAddressString)(e));JSON.stringify(i)!==JSON.stringify(this._addresses)&&(this._addresses=i,null===(r=this.updateListener)||void 0===r||r.onAccountsUpdate({accounts:i,source:"wallet"}),this._storage.setItem(s.LOCAL_STORAGE_ADDRESSES_KEY,i.join(" ")))}_sendRequestAsync(e){return new Promise((t,r)=>{try{let r=this._handleSynchronousMethods(e);if(void 0!==r)return t({jsonrpc:"2.0",id:e.id,result:r})}catch(e){return r(e)}this._handleAsynchronousMethods(e).then(r=>r&&t(Object.assign(Object.assign({},r),{id:e.id}))).catch(e=>r(e))})}_handleSynchronousMethods(e){let{method:t}=e;switch(t){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,r=e.params||[];switch(t){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(r);case"eth_ecRecover":return this._eth_ecRecover(r);case"personal_sign":return this._personal_sign(r);case"personal_ecRecover":return this._personal_ecRecover(r);case"eth_signTransaction":return this._eth_signTransaction(r);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(r);case"eth_sendTransaction":return this._eth_sendTransaction(r);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(r);case"eth_signTypedData_v2":default:return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(r);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(r);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(r);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(r);case"wallet_watchAsset":return this._wallet_watchAsset(r)}}_isKnownAddress(e){try{let t=(0,h.ensureAddressString)(e);return this._addresses.map(e=>(0,h.ensureAddressString)(e)).includes(t)}catch(e){}return!1}_ensureKnownAddress(e){if(!this._isKnownAddress(e))throw Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,h.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let r=e.to?(0,h.ensureAddressString)(e.to):null,n=null!=e.value?(0,h.ensureBigInt)(e.value):BigInt(0),o=e.data?(0,h.ensureBuffer)(e.data):i.alloc(0),s=null!=e.nonce?(0,h.ensureIntNumber)(e.nonce):null,a=null!=e.gasPrice?(0,h.ensureBigInt)(e.gasPrice):null,l=null!=e.maxFeePerGas?(0,h.ensureBigInt)(e.maxFeePerGas):null;return{fromAddress:t,toAddress:r,weiValue:n,data:o,nonce:s,gasPriceInWei:a,maxFeePerGas:l,maxPriorityFeePerGas:null!=e.maxPriorityFeePerGas?(0,h.ensureBigInt)(e.maxPriorityFeePerGas):null,gasLimit:null!=e.gas?(0,h.ensureBigInt)(e.gas):null,chainId:e.chainId?(0,h.ensureIntNumber)(e.chainId):this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw d.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw d.standardErrors.provider.unsupportedMethod({})}
2async _signEthereumMessage(e,t,r,i){this._ensureKnownAddress(t);try{let n=this.initializeRelay(),o=await n.signEthereumMessage(e,t,r,i);if((0,l.isErrorResponse)(o))throw Error(o.errorMessage);return{jsonrpc:"2.0",id:0,result:o.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,r){let i=this.initializeRelay(),n=await i.ethereumAddressFromSignedMessage(e,t,r);if((0,l.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:"2.0",id:0,result:n.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,h.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(p);if(!e)return(0,h.ensureIntNumber)(1);let t=parseInt(e,10);return(0,h.ensureIntNumber)(t)}async _eth_requestAccounts(){let e;if(this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let t=this.initializeRelay();if(e=await t.requestEthereumAccounts(),(0,l.isErrorResponse)(e))throw Error(e.errorMessage)}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!e.result)throw Error("accounts received is empty");return this._setAddresses(e.result),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._signEthereumMessage(r,t,!1)}_eth_ecRecover(e){let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureAddressString)(e[1]);return this._signEthereumMessage(t,r,!0)}_personal_ecRecover(e){let t=(0,h.ensureBuffer)(e[0]),r=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),r=await e.signEthereumTransaction(t);if((0,l.isErrorResponse)(r))throw Error(r.errorMessage);return{jsonrpc:"2.0",id:0,result:r.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let t=(0,h.ensureBuffer)(e[0]),r=this.initializeRelay(),i=await r.submitEthereumTransaction(t,this.getChainId());if((0,l.isErrorResponse)(i))throw Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=this.initializeRelay(),r=await e.signAndSubmitEthereumTransaction(t);if((0,l.isErrorResponse)(r))throw Error(r.errorMessage);return{jsonrpc:"2.0",id:0,result:r.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw d.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,h.ensureParsedJSONObject)(e[0]),r=(0,h.ensureAddressString)(e[1]);this._ensureKnownAddress(r);let i=o.default.hashForSignTypedDataLegacy({data:t}),n=JSON.stringify(t,null,2);return this._signEthereumMessage(i,r,!1,n)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=o.default.hashForSignTypedData_v3({data:r}),n=JSON.stringify(r,null,2);return this._signEthereumMessage(i,t,!1,n)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,h.ensureAddressString)(e[0]),r=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=o.default.hashForSignTypedData_v4({data:r}),n=JSON.stringify(r,null,2);return this._signEthereumMessage(i,t,!1,n)}async _wallet_addEthereumChain(e){var t,r,i,n;let o=e[0];if((null===(t=o.rpcUrls)||void 0===t?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw d.standardErrors.rpc.invalidParams("chainName is a required field");if(!o.nativeCurrency)throw d.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let s=parseInt(o.chainId,16);return await this.addEthereumChain(s,null!==(r=o.rpcUrls)&&void 0!==r?r:[],null!==(i=o.blockExplorerUrls)&&void 0!==i?i:[],o.chainName,null!==(n=o.iconUrls)&&void 0!==n?n:[],o.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw d.standardErrors.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw d.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw d.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw d.standardErrors.rpc.invalidParams("Address is required");let r=this.getChainId(),{address:i,symbol:n,image:o,decimals:s}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,i,n,s,o,r)}}initializeRelay(){if(!this._relay){let e=new c.WalletLinkRelay({linkAPIUrl:u.WALLETLINK_URL,storage:this._storage});e.setAppInfo(this._appName,this._appLogoUrl),e.attachUI(),e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),this._relay=e}return this._relay}}t.WalletLinkSigner=m},32193:function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.RelayEventManager=void 0;let i=r(82254);class n{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,i.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}t.RelayEventManager=n},62917:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelay=void 0;let i=r(94595),n=r(5654),o=r(32193),s=r(14388),a=r(25962),l=r(40357),c=r(73685),u=r(91212),d=r(86119),h=r(82254),f=r(17211);class p{constructor(e){this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.isMobileWeb=(0,l.isMobileWeb)(),this.appName="",this.appLogoUrl=null,this.linkedUpdated=e=>{this.isLinked=e;let t=this.storage.getItem(n.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this._session.linked=e),this.isUnlinkedErrorState=!1,t){let r=t.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");""===r[0]||e||!this._session.linked||i||(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(e,t))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),p.accountRequestCallbackIds.size>0&&(Array.from(p.accountRequestCallbackIds.values()).forEach(t=>{let r={type:"WEB3_RESPONSE",id:t,response:{method:"requestEthereumAccounts",result:[e]}};this.invokeCallback(Object.assign(Object.assign({},r),{id:t}))}),p.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage;let{session:t,ui:r,connection:i}=this.subscribe();this._session=t,this.connection=i,this.relayEventManager=new o.RelayEventManager,this.ui=r}subscribe(){let e=s.WalletLinkSession.load(this.storage)||new s.WalletLinkSession(this.storage).save(),{linkAPIUrl:t}=this,r=new i.WalletLinkConnection({session:e,linkAPIUrl:t,listener:this}),n=this.isMobileWeb?new u.WLMobileRelayUI:new c.WalletLinkRelayUI;return r.connect(),{session:e,ui:n,connection:r}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(e=>setTimeout(()=>e(null),1e3))]).then(()=>{this.connection.destroy();let e=s.WalletLinkSession.load(this.storage);(null==e?void 0:e.id)===this._session.id&&f.ScopedLocalStorage.clearAll(),document.location.reload()}).catch(e=>{})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,r,i){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,h.hexStringFromBuffer)(e,!0),address:t,addPrefix:r,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,t,r){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,h.hexStringFromBuffer)(e,!0),signature:(0,h.hexStringFromBuffer)(t,!0),addPrefix:r}})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,h.bigIntStringFromBigInt)(e.weiValue),data:(0,h.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,h.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,h.bigIntStringFromBigInt)(e.weiValue),data:(0,h.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,h.bigIntStringFromBigInt)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,h.bigIntStringFromBigInt)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,h.bigIntStringFromBigInt)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLim
2it?(0,h.bigIntStringFromBigInt)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,h.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:"scanQRCode",params:{regExp:e}})}getWalletLinkSession(){return this._session}genericRequest(e,t){return this.sendRequest({method:"generic",params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,r=(0,h.randomBytesHex)(8),i=i=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,i),null==t||t()};return new Promise((n,o)=>{t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(r,e=>{if(null==t||t(),(0,a.isErrorResponse)(e))return o(Error(e.errorMessage));n(e)}),this.publishWeb3RequestEvent(r,e)})}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChain=e}publishWeb3RequestEvent(e,t){let r={type:"WEB3_REQUEST",id:e,request:t};this.publishEvent("Web3Request",r,!0).then(e=>{}).catch(e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:r.id,response:{method:t.method,errorMessage:e.message}})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(t.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof u.WLMobileRelayUI)switch(e){case"requestEthereumAccounts":case"switchEthereumChain":return;default:window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink()}}publishWeb3RequestCanceledEvent(e){let t={type:"WEB3_REQUEST_CANCELED",id:e};this.publishEvent("Web3RequestCanceled",t,!1).then()}publishEvent(e,t,r){return this.connection.publishEvent(e,t,r)}handleWeb3ResponseMessage(e){let{response:t}=e;if("requestEthereumAccounts"===t.method){p.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),p.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,r){var i;let n=null!==(i=null==r?void 0:r.message)&&void 0!==i?i:"Unspecified error message.";this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:e,response:{method:t,errorMessage:n}})}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:"requestEthereumAccounts",params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,r=(0,h.randomBytesHex)(8);return new Promise((i,n)=>{this.relayEventManager.callbacks.set(r,e=>{if(null==t||t(),(0,a.isErrorResponse)(e))return n(Error(e.errorMessage));i(e)}),p.accountRequestCallbackIds.add(r),this.publishWeb3RequestEvent(r,e)})}watchAsset(e,t,r,i,n,o){let s={method:"watchAsset",params:{type:e,options:{address:t,symbol:r,decimals:i,image:n},chainId:o}},l=null,c=(0,h.randomBytesHex)(8),u=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,s.method,e),null==l||l()};return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:u,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(c,r=>{if(null==l||l(),(0,a.isErrorResponse)(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(c,s)})}addEthereumChain(e,t,r,i,n,o){let s={method:"addEthereumChain",params:{chainId:e,rpcUrls:t,blockExplorerUrls:i,chainName:n,iconUrls:r,nativeCurrency:o}},l=null,c=(0,h.randomBytesHex)(8),u=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,s.method,e),null==l||l()};return l=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:u,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(c,r=>{if(null==l||l(),(0,a.isErrorResponse)(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(c,s)})}switchEthereumChain(e,t){let r={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:t})},i=(0,h.randomBytesHex)(8);return new Promise((e,t)=>
2{this.relayEventManager.callbacks.set(i,r=>(0,a.isErrorResponse)(r)&&r.errorCode?t(d.standardErrors.provider.custom({code:r.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):(0,a.isErrorResponse)(r)?t(Error(r.errorMessage)):void e(r)),this.publishWeb3RequestEvent(i,r)})}}t.WalletLinkRelay=p,p.accountRequestCallbackIds=new Set},40510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkCipher=void 0;let i=r(82254);class n{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");let r=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,s=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},n,o.encode(e)),a=16,l=s.slice(s.byteLength-a),c=s.slice(0,s.byteLength-a),u=new Uint8Array(l),d=new Uint8Array(c),h=new Uint8Array([...r,...u,...d]);return(0,i.uint8ArrayToHex)(h)}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((r,n)=>{!async function(){let o=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=(0,i.hexStringToUint8Array)(e),a=s.slice(0,12),l=s.slice(12,28),c=new Uint8Array([...s.slice(28),...l]),u={name:"AES-GCM",iv:new Uint8Array(a)};try{let e=await window.crypto.subtle.decrypt(u,o,c),t=new TextDecoder;r(t.decode(e))}catch(e){n(e)}}()})}}t.WalletLinkCipher=n},94595:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkConnection=void 0;let i=r(5654),n=r(40510),o=r(78971),s=r(38035),a=r(86800),l=1e4,c=6e4;class u{constructor({session:e,linkAPIUrl:t,listener:r,WebSocketClass:c=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{e&&new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]).forEach((t,r)=>{let i=e[r];void 0!==i&&t(i)})},this.handleDestroyed=e=>{var t;"1"===e&&(null===(t=this.listener)||void 0===t||t.resetAndReload())},this.handleAccountUpdated=async e=>{var t;{let r=await this.cipher.decrypt(e);null===(t=this.listener)||void 0===t||t.accountUpdated(r)}},this.handleMetadataUpdated=async(e,t)=>{var r;{let i=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.metadataUpdated(e,i)}},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated(i.WALLET_USER_NAME_KEY,e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated(i.APP_VERSION_KEY,e)},this.handleChainUpdated=async(e,t)=>{var r;{let i=await this.cipher.decrypt(e),n=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.chainUpdated(i,n)}},this.session=e,this.cipher=new n.WalletLinkCipher(e.secret),this.listener=r;let u=new s.WalletLinkWebSocket(`${t}/rpc`,c);u.setConnectionStateListener(async e=>{let t=!1;switch(e){case s.ConnectionState.DISCONNECTED:if(!this.destroyed){let e=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||u.connect().catch(()=>{e()})};e()}break;case s.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),t=!0}catch(e){}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},l),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case s.ConnectionState.CONNECTING:}this.connected!==t&&(this.connected=t)}),u.setIncomingDataListener(e=>{var t;switch(e.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{let t="IsLinkedOK"===e.type?e.linked:void 0;this.linked=t||e.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":this.handleSessionMetadataUpdated(e.metadata);break;case"Event":this.handleIncomingEvent(e)}void 0!==e.id&&(null===(t=this.requestResolutions.get(e.id))||void 0===t||t(e))}),this.ws=u,this.http=new o.WalletLinkHTTP(t,e.id,e.key)}connect(){if(this.destroyed)throw Error("instance is destroyed");this.ws.connect()}destroy(){this.destroyed=!0,this.ws.disconnect(),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(e){var t;this._connected=e,e&&(null===(t=this.onceConnected)||void 0===t||t.call(this))}setOnceConnected(e){return new Promise(t=>{this.connected?e().then(t):this.onceConnected=()=>{e().then(t),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(e){var t,r;this._linked=e,e&&(null===(t=this.onceLinked)||void 0===t||t.call(this)),null===(r=this.listener)||void 0===r||r.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t;if("Event"===e.type&&"Web3Response"===e.event){let r=JSON.parse(await this.cipher.decrypt(e.data));if("WEB3_RESPONSE"!==r.type)return;null===(t=this.listener)||void 0===t||t.handleWeb3ResponseMessage(r)}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEac
2h(e=>this.handleIncomingEvent(e))}async setSessionMetadata(e,t){let r={type:"SetSessionConfig",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[e]:t}};return this.setOnceConnected(async()=>{let e=await this.makeRequest(r);if("Fail"===e.type)throw Error(e.error||"failed to set session metadata")})}async publishEvent(e,t,r=!1){let i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,relaySource:"coinbaseWalletExtension"in window&&window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),n={type:"PublishEvent",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:e,data:i,callWebhook:r};return this.setOnceLinked(async()=>{let e=await this.makeRequest(n);if("Fail"===e.type)throw Error(e.error||"failed to publish event");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2*l){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(e){}}async makeRequest(e,t=c){let r;let i=e.id;return this.sendData(e),Promise.race([new Promise((e,n)=>{r=window.setTimeout(()=>{n(Error(`request ${i} timed out`))},t)}),new Promise(e=>{this.requestResolutions.set(i,t=>{clearTimeout(r),e(t),this.requestResolutions.delete(i)})})])}async authenticate(){let e={type:"HostSession",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},t=await this.makeRequest(e);if("Fail"===t.type)throw Error(t.error||"failed to authenticate")}sendIsLinked(){let e={type:"IsLinked",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}sendGetSessionConfig(){let e={type:"GetSessionConfig",id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}}t.WalletLinkConnection=u},78971:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkHTTP=void 0;class r{constructor(e,t,r){this.linkAPIUrl=e,this.sessionId=t;let i=`${t}:${r}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(e=>console.error("Unabled to mark event as failed:",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:r,error:i}=await t.json();if(i)throw Error(`Check unseen events failed: ${i}`);let n=null!==(e=null==r?void 0:r.filter(e=>"Web3Response"===e.event).map(e=>({type:"Event",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))&&void 0!==e?e:[];return this.markUnseenEventsAsSeen(n),n}throw Error(`Check unseen events failed: ${t.status}`)}}t.WalletLinkHTTP=r},38035:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkWebSocket=t.ConnectionState=void 0,function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"}(r||(t.ConnectionState=r={}));
2class i{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw Error("webSocket object is not null");return new Promise((e,t)=>{var i;let n;try{this.webSocket=n=new this.WebSocketClass(this.url)}catch(e){t(e);return}null===(i=this.connectionStateListener)||void 0===i||i.call(this,r.CONNECTING),n.onclose=e=>{var i;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null===(i=this.connectionStateListener)||void 0===i||i.call(this,r.DISCONNECTED)},n.onopen=t=>{var i;e(),null===(i=this.connectionStateListener)||void 0===i||i.call(this,r.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(e=>this.sendData(e)),this.pendingData=[])},n.onmessage=e=>{var t,r;if("h"===e.data)null===(t=this.incomingDataListener)||void 0===t||t.call(this,{type:"Heartbeat"});else try{let t=JSON.parse(e.data);null===(r=this.incomingDataListener)||void 0===r||r.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null===(e=this.connectionStateListener)||void 0===e||e.call(this,r.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}t.WalletLinkWebSocket=i},5654:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0,t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion"},14388:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkSession=void 0;let i=r(2032),n=r(82254),o="session:id",s="session:secret",a="session:linked";class l{constructor(e,t,r,o){this._storage=e,this._id=t||(0,n.randomBytesHex)(16),this._secret=r||(0,n.randomBytesHex)(32),this._key=new i.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(e){let t=e.getItem(o),r=e.getItem(a),i=e.getItem(s);return t&&i?new l(e,t,i,"1"===r):null}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(o,this._id),this._storage.setItem(s,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(a,this._linked?"1":"0")}}t.WalletLinkSession=l},25962:function(e,t){"use strict";function r(e){return void 0!==e.errorMessage}Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorResponse=void 0,t.isErrorResponse=r},91212:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WLMobileRelayUI=void 0;let i=r(30856),n=r(40357),o=r(39016);class s{constructor(){this.attached=!1,this.redirectDialog=new i.RedirectDialog}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let t=new URL(o.CBW_MOBILE_DEEPLINK_URL);t.searchParams.append("redirect_url",(0,n.getLocation)().href),e&&t.searchParams.append("wl_url",e);let r=document.createElement("a");r.target="cbw-opener",r.href=t.href,r.rel="noreferrer noopener",r.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}t.WLMobileRelayUI=s},73685:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelayUI=void 0;let i=r(89265),n=r(33756);class o{constructor(){this.attached=!1,this.snackbar=new n.Snackbar}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.snackbar.attach(t),this.attached=!0,(0,i.injectCssReset)()}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.9687
25C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}}t.WalletLinkRelayUI=o},41790:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}
2.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}"},30856:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectDialog=void 0;let n=i(r(54365)),o=r(79080),s=r(89265),a=r(33756),l=r(40357),c=i(r(41790));class u{constructor(){this.root=null,this.darkMode=(0,l.isDarkMode)()}attach(){let e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),(0,s.injectCssReset)()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,o.render)(null,this.root),e&&(0,o.render)((0,o.h)(d,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}t.RedirectDialog=u;let d=({title:e,buttonText:t,darkMode:r,onButtonClick:i,onDismiss:s})=>{let l=r?"dark":"light";return(0,o.h)(a.SnackbarContainer,{darkMode:r},(0,o.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,o.h)("style",null,c.default),(0,o.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:s}),(0,o.h)("div",{class:(0,n.default)("-cbwsdk-redirect-dialog-box",l)},(0,o.h)("p",null,e),(0,o.h)("button",{onClick:i},t))))}},11147:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}
2.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},33756:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let n=i(r(54365)),o=r(79080),s=r(99799),a=r(40357),l=i(r(11147)),c="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",u="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class d{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=(0,a.isDarkMode)()}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,r])=>(0,o.h)(t.SnackbarInstance,Object.assign({},r,{key:e}))))),this.root)}}t.Snackbar=d;let h=e=>(0,o.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,l.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},e.children));t.SnackbarContainer=h;let f=({autoExpand:e,message:t,menuItems:r})=>
2{let[i,a]=(0,s.useState)(!0),[l,d]=(0,s.useState)(null!=e&&e);(0,s.useEffect)(()=>{let e=[window.setTimeout(()=>{a(!1)},1),window.setTimeout(()=>{d(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}});let h=()=>{d(!l)};return(0,o.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-instance",i&&"-cbwsdk-snackbar-instance-hidden",l&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:h},(0,o.h)("img",{src:c,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,o.h)("div",{class:"-gear-container"},!l&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:u,class:"-gear-icon",title:"Expand"}))),r&&r.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},r.map((e,t)=>(0,o.h)("div",{class:(0,n.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,o.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,n.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))};t.SnackbarInstance=f},38614:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},89265:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;let n=i(r(38614));function o(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(n.default)),document.documentElement.appendChild(e)}t.injectCssReset=o},40357:function(e,t){"use strict";function r(e,t,r,i,n,o){let s=new URLSearchParams({[i?"parent-id":"id"]:e,secret:t,server:r,v:n,chainId:o.toString()}).toString();return`${r}/#/link?${s}`}function i(){try{return null!==window.frameElement}catch(e){return!1}}function n(){try{if(i()&&window.top)return window.top.location;return window.location}catch(e){return window.location}}function o(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null===(e=null==window?void 0:window.navigator)||void 0===e?void 0:e.userAgent)}function s(){var e,t;return null!==(t=null===(e=null==window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)&&void 0!==t&&t}Object.defineProperty(t,"__esModule",{value:!0}),t.isDarkMode=t.isMobileWeb=t.getLocation=t.createQrUrl=void 0,t.createQrUrl=r,t.getLocation=n,t.isMobileWeb=o,t.isDarkMode=s},17211:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0;class r{constructor(e,t){this.scope=e,this.module=t}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let r=0;r<localStorage.length;r++){let i=localStorage.key(r);"string"==typeof i&&i.startsWith(e)&&t.push(i)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:""}:${e}`}static clearAll(){new r("CBWSDK").clear(),new r("walletlink").clear()}}t.ScopedLocalStorage=r},52912:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptContent=t.encryptContent=t.importKeyFromHexString=t.exportKeyToHexString=t.decrypt=t.encrypt=t.deriveSharedSecret=t.generateKeyPair=void 0;let i=r(82254);async function n(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}async function o(e,t){return crypto.subtle.deriveKey({name:"ECDH",public:t},e,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function s(e,t){let r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,new TextEncoder().encode(t));return{iv:r,cipherText:i}}async function a(e,{iv:t,cipherText:r}){let i=await crypto.subtle.decrypt({name:"AES-GCM",iv:t},e,r);return new TextDecoder().decode(i)}function l(e){switch(e){case"public":return"spki";case"private":return"pkcs8"}}async function c(e,t){let r=l(e),n=await crypto.subtle.exportKey(r,t);return(0,i.uint8ArrayToHex)(new Uint8Array(n))}async function u(e,t){let r=l(e),n=(0,i.hexStringToUint8Array)(t).buffer;return await crypto.subtle.importKey(r,n,{name:"ECDH",namedCurve:"P-256"},!0,"private"===e?["deriveKey"]:[])}async function d(e,t){return s(t,JSON.stringify(e,(e,t)=>{if(!(t instanceof Error))return t;let r=t;return Object.assign(Object.assign({},r.code?{code:r.code}:{}),{message:r.message})}))}async function h(e,t){return JSON.parse(await a(t,e))}t.generateKeyPair=n,t.deriveSharedSecret=o,t.encrypt=s,t.decrypt=a,t.exportKeyToHexString=c,t.importKeyFromHexString=u,t.encryptContent=d,t.decryptContent=h},77284:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkErrorForInvalidRequestArgs=t.getCoinbaseInjectedProvider=t.getCoinbaseInjectedSigner=t.fetchRPCRequest=void 0;let i=r(13975),n=r(86119);async function o(e,t){if(!t.rpcUrl)throw n.standardErrors.rpc.internal("No RPC URL set for chain");let r=Object.assign(Object.assign({},e),{jsonrpc:"2.0",id:crypto.randomUUID()}),o=await window.fetch(t.rpcUrl,{method:"POST",body:JSON.stringify(r),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":i.LIB_VERSION}});return(await o.json()).result}function s(){return globalThis.coinbaseWalletSigner}function a({metadata:e,preference:t}){var r,i,n;let o=globalThis;if("smartWalletOnly"!==t.options){if(s())return;let t=o.coinbaseWalletExtension;if(t){let{appName:i,appLogoUrl:n,appChainIds:o}=e;return null===(r=t.setAppInfo)||void 0===r||r.call(t,i,n,o),t}}let a=null!==(i=o.ethereum)&&void 0!==i?i:null===(n=o.top)||void 0===n?void 0:n.ethereum;if(null==a?void 0:a.isCoinbaseBrowser)return a}function l(e){if(!e||"object"!=typeof e||Array.isArray(e))return n.standardErrors.rpc.invalidParams({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:r}=e;return"string"!=typeof t||0===t.length?n.standardErrors.rpc.invalidParams({message:"'args.method' must be a non-empty string.",data:e}):void 0===r||Array.isArray(r)||"object"==typeof r&&null!==r?void 0:n.standardErrors.rpc.invalidParams({message:"'args.params' must be an object or array if provided.",data:e})}t.fetchRPCRequest=o,t.getCoinbaseInjectedSigner=s,t.getCoinbaseInjectedProvider=a,t.checkErrorForInvalidRequestArgs=l},33977:function(e,t,r){var i=r(82957).Buffer;let n=r(58984);function o(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);if("fixed"===e)return"fixed128x128";if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function a(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function l(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function c(e){var t=typeof e;if("string"===t||"number"===t)return BigInt(e);if("bigint"===t)return e;throw Error("Argument is not a number")}function u(e,t){var r,o,d,f;if("address"===e)return u("uint160",c(t));if("bool"===e)return u("uint8",t?1:0);if("string"===e)return u("bytes",new i(t,"utf8"));if(h(e)){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(r=l(e))&&0!==r&&t.length>r)throw Error("Elements exceed array size: "+r);for(f in d=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)d.push(u(e,t[f]));if("dynamic"===r){var p=u("uint256",t.length);d.unshift(p)}return i.concat(d)}if("bytes"===e)return t=new i(t),d=i.concat([u("uint256",t.length),t]),t.length%32!=0&&(d=i.concat([d,n.zeros(32-t.length%32)])),d;if(e.startsWith("bytes")){if((r=s(e))<1||r>32)throw Error("Invalid bytes<N> width: "+r);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((r=s(e))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);o=c(t);let i=n.bitLengthFromBigInt(o);if(i>r)throw Error("Supplied uint exceeds width: "+r+" vs "+i);if(o<0)throw Error("Supplied uint is negative");return n.bufferBEFromBigInt(o,32)}else if(e.startsWith("int")){if((r=s(e))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);o=c(t);let i=n.bitLengthFromBigInt(o);if(i>r)throw Error("Supplied int exceeds width: "+r+" vs "+i);let a=n.twosFromBigInt(o,256);return n.bufferBEFromBigInt(a,32)}else if(e.startsWith("ufixed")){if(r=a(e),(o=c(t))<0)throw Error("Supplied ufixed is negative");return u("uint256",o*BigInt(2)**BigInt(r[1]))}else if(e.startsWith("fixed"))return r=a(e),u("int256",c(t)*BigInt(2)**BigInt(r[1]));throw Error("Unsupported or invalid type: "+e)}function d(e){return"string"===e||"bytes"===e||"dynamic"===l(e)}function h(e){return e.lastIndexOf("]")===e.length-1}function f(e,t){var r=[],n=[],s=32*e.length;for(var a in e){var l=o(e[a]),c=u(l,t[a]);d(l)?(r.push(u("uint256",s)),n.push(c),s+=c.length):r.push(c)}return i.concat(r.concat(n))}function p(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var r,a,l=[],u=0;u<e.length;u++){var d=o(e[u]),h=t[u];
vendor: 5,285 bytes, line 2
2if("bytes"===d)l.push(h);else if("string"===d)l.push(new i(h,"utf8"));else if("bool"===d)l.push(new i(h?"01":"00","hex"));else if("address"===d)l.push(n.setLength(h,20));else if(d.startsWith("bytes")){if((r=s(d))<1||r>32)throw Error("Invalid bytes<N> width: "+r);l.push(n.setLengthRight(h,r))}else if(d.startsWith("uint")){if((r=s(d))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>r)throw Error("Supplied uint exceeds width: "+r+" vs "+e);l.push(n.bufferBEFromBigInt(a,r/8))}else if(d.startsWith("int")){if((r=s(d))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>r)throw Error("Supplied int exceeds width: "+r+" vs "+e);let t=n.twosFromBigInt(a,r);l.push(n.bufferBEFromBigInt(t,r/8))}else throw Error("Unsupported or invalid type: "+d)}return i.concat(l)}function g(e,t){return n.keccak(p(e,t))}e.exports={rawEncode:f,solidityPack:p,soliditySHA3:g}},60730:function(e,t,r){var i=r(82957).Buffer;let n=r(58984),o=r(33977),s={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(e,t,r,s=!0){let a=["bytes32"],l=[this.hashType(e,r)];if(s){let c=(e,t,a)=>{if(void 0!==r[t])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":n.keccak(this.encodeData(t,a,r,s))];if(void 0===a)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",n.keccak(a)];if("string"===t)return"string"==typeof a&&(a=i.from(a,"utf8")),["bytes32",n.keccak(a)];if(t.lastIndexOf("]")===t.length-1){let r=t.slice(0,t.lastIndexOf("[")),i=a.map(t=>c(e,r,t));return["bytes32",n.keccak(o.rawEncode(i.map(([e])=>e),i.map(([,e])=>e)))]}return[t,a]};for(let i of r[e]){let[e,r]=c(i.name,i.type,t[i.name]);a.push(e),l.push(r)}}else for(let o of r[e]){let e=t[o.name];if(void 0!==e){if("bytes"===o.type)a.push("bytes32"),e=n.keccak(e),l.push(e);else if("string"===o.type)a.push("bytes32"),"string"==typeof e&&(e=i.from(e,"utf8")),e=n.keccak(e),l.push(e);else if(void 0!==r[o.type])a.push("bytes32"),e=n.keccak(this.encodeData(o.type,e,r,s)),l.push(e);else if(o.type.lastIndexOf("]")===o.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else a.push(o.type),l.push(e)}}return o.rawEncode(a,l)},encodeType(e,t){let r="",i=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let n of i=[e].concat(i.sort())){if(!t[n])throw Error("No type definition specified: "+n);r+=n+"("+t[n].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||void 0===t[e])return r;for(let i of(r.push(e),t[e]))for(let e of this.findTypeDependencies(i.type,t,r))r.includes(e)||r.push(e);return r},hashStruct(e,t,r,i=!0){return n.keccak(this.encodeData(e,t,r,i))},hashType(e,t){return n.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let r in s.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let r=this.sanitizeData(e),o=[i.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),"EIP712Domain"!==r.primaryType&&o.push(this.hashStruct(r.primaryType,r.message,r.types,t)),n.keccak(i.concat(o))}};function l(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let r=e.map(function(e){return"bytes"===e.type?n.toBuffer(e.value):e.value}),i=e.map(function(e){return e.type}),s=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(e.length).fill("string"),s),o.soliditySHA3(i,r)])}e.exports={TYPED_MESSAGE_SCHEMA:s,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return l(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}},58984:function(e,t,r){var i=r(82957).Buffer;let n=r(39268);function o(e){return i.allocUnsafe(e).fill(0)}function s(e){return e.toString(2).length}function a(e,t){let r=e.toString(16);r.length%2!=0&&(r="0"+r);let n=r.match(/.{1,2}/g).map(e=>parseInt(e,16));for(;n.length<t;)n.unshift(0);return i.from(n)}function l(e,t){return(e<0n?(~e&(1n<<BigInt(t))-1n)+1n:e)&(1n<<BigInt(t))-1n}function c(e,t,r){let i=o(t);return(e=d(e),r)?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)}function u(e,t){return c(e,t,!0)}function d(e){if(!i.isBuffer(e)){if(Array.isArray(e))e=i.from(e);else if("string"==typeof e)e=g(e)?i.from(p(m(e)),"hex"):i.from(e);else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=i.allocUnsafe(0);else if("bigint"==typeof e)e=a(e);else if(e.toArray)e=i.from(e.toArray());else throw Error("invalid type")}return e}function h(e){return"0x"+(e=d(e)).toString("hex")}function f(e,t){return e=d(e),t||(t=256),n("keccak"+t).update(e).digest()}function p(e){return e.length%2?"0"+e:e}function g(e){return"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function m(e){return"string"==typeof e&&e.startsWith("0x")?e.slice(2):e}
2e.exports={zeros:o,setLength:c,setLengthRight:u,isHexString:g,stripHexPrefix:m,toBuffer:d,bufferToHex:h,keccak:f,bitLengthFromBigInt:s,bufferBEFromBigInt:a,twosFromBigInt:l}},13975:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="4.0.0"},78918:function(e){"use strict";let{AbortController:t,AbortSignal}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=AbortSignal,e.exports.default=t},59196:function(e,t){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=p;for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function c(e){var t=l(e),r=t[0],i=t[1];return(r+i)*3/4-i}function u(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,o=l(e),s=o[0],a=o[1],c=new n(u(e,s,a)),d=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,r){for(var i=[],n=t;n<r;n+=3)i.push(h((e[n]<<16&16711680)+(e[n+1]<<8&65280)+(255&e[n+2])));return i.join("")}function p(e){for(var t,i=e.length,n=i%3,o=[],s=16383,a=0,l=i-n;a<l;a+=s)o.push(f(e,a,a+s>l?l:a+s));return 1===n?o.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&o.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},42214:function(e,t,r){"use strict";var i,n=r(82957).Buffer;i={value:!0};var o=r(26486);function s(e,t){return(void 0===t&&(t="utf8"),n.isBuffer(e))?c(e.toString("base64")):c(n.from(e,t).toString("base64"))}function a(e,t){return void 0===t&&(t="utf8"),n.from(l(e),"base64").toString(t)}function l(e){return e=e.toString(),o.default(e).replace(/\-/g,"+").replace(/_/g,"/")}function c(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function u(e){return n.from(l(e),"base64")}var d=s;d.encode=s,d.decode=a,d.toBase64=l,d.fromBase64=c,d.toBuffer=u,t.default=d},26486:function(e,t,r){"use strict";var i=r(82957).Buffer;function n(e){var t=4,r=e.length,n=r%t;if(!n)return e;var o=r,s=t-n,a=r+s,l=i.alloc(a);for(l.write(e);s--;)l.write("=",o++);return l.toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},6089:function(e,t,r){e.exports=r(42214).default,e.exports.default=e.exports},62113:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},i=0;i<t.length;i++){var n=t.charAt(i);if(void 0!==r[n])throw TypeError(n+" is ambiguous");r[n]=i}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function s(e){for(var t=1,r=0;r<e.length;++r){var i=e.charCodeAt(r);if(i<33||i>126)return"Invalid prefix ("+e+")";t=o(t)^i>>5}for(r=0,t=o(t);r<e.length;++r){var n=e.charCodeAt(r);t=o(t)^31&n}return t}function a(e,r,i){if(i=i||90,e.length+7+r.length>i)throw TypeError("Exceeds length limit");var n=s(e=e.toLowerCase());if("string"==typeof n)throw Error(n);for(var a=e+"1",l=0;l<r.length;++l){var c=r[l];if(c>>5!=0)throw Error("Non 5-bit word");n=o(n)^c,a+=t.charAt(c)}for(l=0;l<6;++l)n=o(n);for(n^=1,l=0;l<6;++l){var u=n>>(5-l)*5&31;a+=t.charAt(u)}return a}function l(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var i=e.toLowerCase(),n=e.toUpperCase();if(e!==i&&e!==n)return"Mixed-case string "+e;var a=(e=i).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var l=e.slice(0,a),c=e.slice(a+1);if(c.length<6)return"Data too short";var u=s(l);if("string"==typeof u)return u;for(var d=[],h=0;h<c.length;++h){var f=c.charAt(h),p=r[f];if(void 0===p)return"Unknown character "+f;u=o(u)^p,h+6>=c.length||d.push(p)}return 1!==u?"Invalid checksum for "+e:{prefix:l,words:d}}function c(){var e=l.apply(null,arguments);if("object"==typeof e)return e}function u(e){var t=l.apply(null,arguments);if("object"==typeof t)return t;throw Error(t)}function d(e,t,r,i){for(var n=0,o=0,s=(1<<r)-1,a=[],l=0;l<e.length;++l)for(n=n<<t|e[l],o+=t;o>=r;)a.push(n>>(o-=r)&s);if(i)o>0&&a.push(n<<r-o&s);else{if(o>=t)return"Excess padding";if(n<<r-o&s)return"Non-zero padding"}return a}function h(e){var t=d(e,8,5,!0);if(Array.isArray(t))return t}function f(e){var t=d(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)}function p(e){var t=d(e,5,8,!1);if(Array.isArray(t))return t}function g(e){var t=d(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}e.exports={decodeUnsafe:c,decode:u,encode:a,toWordsUnsafe:h,toWords:f,fromWordsUnsafe:p,fromWords:g}},44373:function(e,t,r){!function(e,t){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 11,230 bytes, line 2
2"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void i(!1,"Invalid character in "+e)}function a(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function l(e,t,r,n){for(var o=0,s=0,a=Math.min(e.length,r),l=t;l<a;l++){var c=e.charCodeAt(l)-48;o*=n,s=c>=49?c-49+10:c>=17?c-17+10:c,i(c>=0&&s<n,"Invalid character"),o+=s}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<e.length&&(16===t?this._parseHex(e,n,r):(this._parseBase(e,t,n),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=e.length-1,n=0;s>=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);else if("le"===r)for(s=0,n=0;s<e.length;s+=3)o=e[s]|e[s+1]<<8|e[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n<this.length;n++)this.words[n]=0;var o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,s=o%i,a=Math.min(o,o-s)+r,c=0,u=r;u<a;u+=i)c=l(e,u,u+i,t),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var d=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){c(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d,h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=((a<<n|o)&16777215).toString(16);o=a>>>24-n&16777215,(n+=2)>=26&&(n-=26,s--),r=0!==o||s!==this.length-1?h[6-l.length]+l+r:l+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=f[e],u=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(u).toString(e);r=(d=d.idivn(u)).isZero()?g+r:h[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},d&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(d,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var g=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=e.words[i]>>>n&1}return t}function w(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],s=n*o,a=67108863&s,l=s/67108864|0;r.words[0]=a;for(var c=1;c<i;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(s=(n=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&s}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),o=r||Math.max(1,n);i(n<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0");var s=g(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,n),s},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===o?(r<e.length&&(e[r++]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,i=0,n=0,o=0;n<this.length;n++){var s=this.words[n]<<o|i;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),i=0,o=0):(i=s>>>24,o+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return i((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return i((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return i((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<n:this.words[r]=this.words[r]&~(1<<n),this._strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,o=0;o<i.length;o++)t=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=67108863&t,n=t>>>26;for(;0!==n&&o<r.length;o++)t=(0|r.words[o])+n,this.words[o]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;
vendor: 15,572 bytes, line 2
2var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(i=(0|t.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&i;for(;0!==o&&s<t.length;s++)o=(i=(0|t.words[s])+o)>>26,this.words[s]=67108863&i;if(0===o&&s<t.length&&t!==this)for(;s<t.length;s++)this.words[s]=t.words[s];return this.length=Math.max(this.length,s),t!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,r){var i,n,o,s=e.words,a=t.words,l=r.words,c=0,u=0|s[0],d=8191&u,h=u>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],w=8191&m,y=m>>>13,b=0|s[3],v=8191&b,_=b>>>13,x=0|s[4],E=8191&x,C=x>>>13,k=0|s[5],S=8191&k,A=k>>>13,I=0|s[6],T=8191&I,R=I>>>13,O=0|s[7],P=8191&O,N=O>>>13,M=0|s[8],D=8191&M,L=M>>>13,j=0|s[9],B=8191&j,$=j>>>13,U=0|a[0],F=8191&U,z=U>>>13,q=0|a[1],W=8191&q,H=q>>>13,V=0|a[2],Z=8191&V,K=V>>>13,G=0|a[3],Y=8191&G,J=G>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],er=8191&et,ei=et>>>13,en=0|a[6],eo=8191&en,es=en>>>13,ea=0|a[7],el=8191&ea,ec=ea>>>13,eu=0|a[8],ed=8191&eu,eh=eu>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(c+(i=Math.imul(d,F))|0)+((8191&(n=(n=Math.imul(d,z))+Math.imul(h,F)|0))<<13)|0;c=((o=Math.imul(h,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,F),n=(n=Math.imul(p,z))+Math.imul(g,F)|0,o=Math.imul(g,z);var ew=(c+(i=i+Math.imul(d,W)|0)|0)+((8191&(n=(n=n+Math.imul(d,H)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,H)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(w,F),n=(n=Math.imul(w,z))+Math.imul(y,F)|0,o=Math.imul(y,z),i=i+Math.imul(p,W)|0,n=(n=n+Math.imul(p,H)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,H)|0;var ey=(c+(i=i+Math.imul(d,Z)|0)|0)+((8191&(n=(n=n+Math.imul(d,K)|0)+Math.imul(h,Z)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(_,F)|0,o=Math.imul(_,z),i=i+Math.imul(w,W)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,H)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,K)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,K)|0;var eb=(c+(i=i+Math.imul(d,Y)|0)|0)+((8191&(n=(n=n+Math.imul(d,J)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,J)|0)+(n>>>13)|0)+(eb>>>26)|0,eb&=67108863,i=Math.imul(E,F),n=(n=Math.imul(E,z))+Math.imul(C,F)|0,o=Math.imul(C,z),i=i+Math.imul(v,W)|0,n=(n=n+Math.imul(v,H)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,H)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,K)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,K)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var ev=(c+(i=i+Math.imul(d,X)|0)|0)+((8191&(n=(n=n+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(S,F),n=(n=Math.imul(S,z))+Math.imul(A,F)|0,o=Math.imul(A,z),i=i+Math.imul(E,W)|0,n=(n=n+Math.imul(E,H)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,H)|0,i=i+Math.imul(v,Z)|0,n=(n=n+Math.imul(v,K)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,K)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var e_=(c+(i=i+Math.imul(d,er)|0)|0)+((8191&(n=(n=n+Math.imul(d,ei)|0)+Math.imul(h,er)|0))<<13)|0;c=((o=o+Math.imul(h,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(T,F),n=(n=Math.imul(T,z))+Math.imul(R,F)|0,o=Math.imul(R,z),i=i+Math.imul(S,W)|0,n=(n=n+Math.imul(S,H)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,H)|0,i=i+Math.imul(E,Z)|0,n=(n=n+Math.imul(E,K)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,K)|0,i=i+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,ei)|0;var ex=(c+(i=i+Math.imul(d,eo)|0)|0)+((8191&(n=(n=n+Math.imul(d,es)|0)+Math.imul(h,eo)|0))<<13)|0;c=((o=o+Math.imul(h,es)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(N,F)|0,o=Math.imul(N,z),i=i+Math.imul(T,W)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,H)|0,i=i+Math.imul(S,Z)|0,n=(n=n+Math.imul(S,K)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,K)|0,i=i+Math.imul(E,Y)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,i=i+Math.imul(v,X)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(y,er)|0,o=o+Math.imul(y,ei)|0,i=i+Math.imul(p,eo)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,es)|0;var eE=(c+(i=i+Math.imul(d,el)|0)|0)+((8191&(n=(n=n+Math.imul(d,ec)|0)+Math.imul(h,el)|0))<<13)|0;c=((o=o+Math.imul(h,ec)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(L,F)|0,o=Math.imul(L,z),i=i+Math.imul(P,W)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,H)|0,i=i+Math.imul(T,Z)|0,n=(n=n+Math.imul(T,K)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,K)|0,i=i+Math.imul(S,Y)|0,n=(n=n+Math.imul(S,J)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,i=i+Math.imul(v,er)|0,n=(n=n+Math.imul(v,ei)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,ei)|0,i=i+Math.imul(w,eo)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(y,eo)|0,o=o+Math.imul(y,es)|0,i=i+Math.imul(p,el)|0,n=(n=n+Math.imul(p,ec)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,ec)|0;var eC=(c+(i=i+Math.imul(d,ed)|0)|0)+((8191&(n=(n=n+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;c=((o=o+Math.imul(h,eh)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(B,F),n=(n=Math.imul(B,z))+Math.imul($,F)|0,o=Math.imul($,z),i=i+Math.imul(D,W)|0,n=(n=n+Math.imul(D,H)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,H)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,K)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,K)|0,i=i+Math.imul(T,Y)|0,n=(n=n+Math.imul(T,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,i=i+Math.imul(S,X)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,ei)|0,i=i+Math.imul(v,eo)|0,n=(n=n+Math.imul(v,es)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,es)|0,i=i+Math.imul(w,el)|0,n=(n=n+Math.imul(w,ec)|0)+Math.imul(y,el)|0,o=o+Math.imul(y,ec)|0,i=i+Math.imul(p,ed)|0,n=(n=n+Math.imul(p,eh)|0)+Math.imul(g,ed)|0,o=o+Math.imul(g,eh)|0;var ek=(c+(i=i+Math.imul(d,ep)|0)|0)+((8191&(n=(n=n+Math.imul(d,eg)|0)+Math.imul(h,ep)|0))<<13)|0;c=((o=o+Math.imul(h,eg)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(B,W),n=(n=Math.imul(B,H))+Math.imul($,W)|0,o=Math.imul($,H),i=i+Math.imul(D,Z)|0,n=(n=n+Math.imul(D,K)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,K)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,i=i+Math.imul(T,X)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,i=i+Math.imul(S,er)|0,n=(n=n+Math.imul(S,ei)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,ei)|0,i=i+Math.imul(E,eo)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,es)|0,i=i+Math.imul(v,el)|0,n=(n=n+Math.imul(v,ec)|0)+Math.imul(_,el)|0,o=o+Math.imul(_,ec)|0,i=i+Math.imul(w,ed)|0,n=(n=n+Math.imul(w,eh)|0)+Math.imul(y,ed)|0,o=o+Math.imul(y,eh)|0;var eS=(c+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;c=((o=o+Math.imul(g,eg)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(B,Z),n=(n=Math.imul(B,K))+Math.imul($,Z)|0,o=Math.imul($,K),i=i+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,i=i+Math.imul(T,er)|0,n=(n=n+Math.imul(T,ei)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,ei)|0,i=i+Math.imul(S,eo)|0,n=(n=n+Math.imul(S,es)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,es)|0,i=i+Math.imul(E,el)|0,n=(n=n+Math.imul(E,ec)|0)+Math.imul(C,el)|0,o=o+Math.imul(C,ec)|0,i=i+Math.imul(v,ed)|0,n=(n=n+Math.imul(v,eh)|0)+Math.imul(_,ed)|0,o=o+Math.imul(_,eh)|0;var eA=(c+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eg)|0)+Math.imul(y,ep)|0))<<13)|0;c=((o=o+Math.imul(y,eg)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(B,Y),n=(n=Math.imul(B,J))+Math.imul($,Y)|0,o=Math.imul($,J),i=i+Math.imul(D,X)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(N,er)|0,o=o+Math.imul(N,ei)|0,i=i+Math.imul(T,eo)|0,n=(n=n+Math.imul(T,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,i=i+Math.imul(S,el)|0,n=(n=n+Math.imul(S,ec)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,ec)|0,i=i+Math.imul(E,ed)|0,n=(n=n+Math.imul(E,eh)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,eh)|0;var eI=(c+(i=i+Math.imul(v,ep)|0)|0)+((8191&(n=(n=n+Math.imul(v,eg)|0)+Math.imul(_,ep)|0))<<13)|0;c=((o=o+Math.imul(_,eg)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(B,X),n=(n=Math.imul(B,ee))+Math.imul($,X)|0,o=Math.imul($,ee),i=i+Math.imul(D,er)|0,n=(n=n+Math.imul(D,ei)|0)+Math.imul(L,er)|0,o=o+Math.imul(L,ei)|0,i=i+Math.imul(P,eo)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(N,eo)|0,o=o+Math.imul(N,es)|0,i=i+Math.imul(T,el)|0,n=(n=n+Math.imul(T,ec)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,ec)|0,i=i+Math.imul(S,ed)|0,n=(n=n+Math.imul(S,eh)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,eh)|0;var eT=(c+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eg)|0)+Math.imul(C,ep)|0))<<13)|0;c=((o=o+Math.imul(C,eg)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(B,er),n=(n=Math.imul(B,ei))+Math.imul($,er)|0,o=Math.imul($,ei),i=i+Math.imul(D,eo)|0,n=(n=n+Math.imul(D,es)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,es)|0,i=i+Math.imul(P,el)|0,n=(n=n+Math.imul(P,ec)|0)+Math.imul(N,el)|0,o=o+Math.imul(N,ec)|0,i=i+Math.imul(T,ed)|0,n=(n=n+Math.imul(T,eh)|0)+Math.imul(R,ed)|0,o=o+Math.imul(R,eh)|0;var eR=(c+(i=i+Math.imul(S,ep)|0)|0)+((8191&(n=(n=n+Math.imul(S,eg)|0)+Math.imul(A,ep)|0))<<13)|0;c=((o=o+Math.imul(A,eg)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(B,eo),n=(n=Math.imul(B,es))+Math.imul($,eo)|0,o=Math.imul($,es),i=i+Math.imul(D,el)|0,n=(n=n+Math.imul(D,ec)|0)+Math.imul(L,el)|0,o=o+Math.imul(L,ec)|0,i=i+Math.imul(P,ed)|0,n=(n=n+Math.imul(P,eh)|0)+Math.imul(N,ed)|0,o=o+Math.imul(N,eh)|0;var eO=(c+(i=i+Math.imul(T,ep)|0)|0)+((8191&(n=(n=n+Math.imul(T,eg)|0)+Math.imul(R,ep)|0))<<13)|0;c=((o=o+Math.imul(R,eg)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863,i=Math.imul(B,el),n=(n=Math.imul(B,ec))+Math.imul($,el)|0,o=Math.imul($,ec),i=i+Math.imul(D,ed)|0,n=(n=n+Math.imul(D,eh)|0)+Math.imul(L,ed)|0,o=o+Math.imul(L,eh)|0;var eP=(c+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eg)|0)+Math.imul(N,ep)|0))<<13)|0;c=((o=o+Math.imul(N,eg)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(B,ed),n=(n=Math.imul(B,eh))+Math.imul($,ed)|0,o=Math.imul($,eh);var eN=(c+(i=i+Math.imul(D,ep)|0)|0)+((8191&(n=(n=n+Math.imul(D,eg)|0)+Math.imul(L,ep)|0))<<13)|0;c=((o=o+Math.imul(L,eg)|0)+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863;var eM=(c+(i=Math.imul(B,ep))|0)+((8191&(n=(n=Math.imul(B,eg))+Math.imul($,ep)|0))<<13)|0;return c=((o=Math.imul($,eg))+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,l[0]=em,l[1]=ew,l[2]=ey,l[3]=eb,l[4]=ev,l[5]=e_,l[6]=ex,l[7]=eE,l[8]=eC,l[9]=ek,l[10]=eS,l[11]=eA,l[12]=eI,l[13]=eT,l[14]=eR,l[15]=eO,l[16]=eP,l[17]=eN,l[18]=eM,0!==c&&(l[19]=c,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var a=67108863&i,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=s+(d/67108864|0)|0,a=67108863&(h=h+a|0),n+=(s=s+(h>>>26)|0)>>>26,s&=67108863}r.words[o]=a,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r._strip()}function v(e,t,r){return b(e,t,r)}function _(e,t){this.x=e,this.y=t}Math.imul||(y=w),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):r<63?w(this,e,t):r<1024?b(this,e,t):v(this,e,t)},_.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},_.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},_.prototype.permute=function(e,t,r,i,n,o){for(var s=0;s<o;s++)i[s]=t[e[s]],n[s]=r[e[s]]},_.prototype.transform=function(e,t,r,i,n,o){this.permute(o,e,t,r,i,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),u=0;u<n;u+=a)for(var d=l,h=c,f=0;f<s;f++){var p=r[u+f],g=i[u+f],m=r[u+f+s],w=i[u+f+s],y=d*m-h*w;w=d*w+h*m,m=y,r[u+f]=p+m,i[u+f]=g+w,r[u+f+s]=p-m,i[u+f+s]=g-w,f!==a&&(y=l*d-c*h,h=l*h+c*d,d=y)}},_.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},_.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},_.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},_.prototype.convert13b=function(e,t,r,n){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<n;++s)r[s]=0;i(0===o),i((-8192&o)==0)},_.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},_.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),o=this.stub(i),s=Array(i),a=Array(i),l=Array(i),c=Array(i),u=Array(i),d=Array(i),h=r.words;h.length=i,this.convert13b(e.words,e.length,s,i),this.convert13b(t.words,t.length,c,i),this.transform(s,o,a,l,i,n),this.transform(c,o,u,d,i,n);for(var f=0;f<i;f++){var p=a[f]*u[f]-l[f]*d[f];l[f]=a[f]*d[f]+l[f]*u[f],a[f]=p}return this.conjugate(a,l,i),this.transform(a,l,h,o,i,n),this.conjugate(h,o,i),this.normalize13b(h,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"==typeof e),i(e<67108864);for(var r=0,n=0;n<this.length;n++){var o=(0|this.words[n])*e,s=(67108863&o)+(67108863&r);r>>=26,r+=(o/67108864|0)+(s>>>26),this.words[n]=67108863&s}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=m(e);if(0===t.length)return new o(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},o.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,l=(0|this.words[t])-a<<r;this.words[t]=l|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},o.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){i("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var n,o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,l=r;if(n-=s,n=Math.max(0,n),l){for(var c=0;c<s;
vendor: 15,171 bytes, line 2
2c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&a}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},o.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(i("number"==typeof e),i(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var n,o,s=e.length+r;this._expand(s);var a=0;for(n=0;n<e.length;n++){o=(0|this.words[n+r])+a;var l=(0|e.words[n])*t;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)a=(o=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&o;if(0===a)return this._strip();for(i(-1===a),a=0,n=0;n<this.length;n++)a=(o=-(0|this.words[n])+a)>>26,this.words[n]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,a=0|s.words[s.length-1];0!=(i=26-this._countBits(a))&&(s=s.ushln(i),n.iushln(i),a=0|s.words[s.length-1]);var l=n.length-s.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=n.clone()._ishlnsubmul(s,1,l);0===u.negative&&(n=u,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|n.words[s.length+d])*67108864+(0|n.words[s.length+d-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(s,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(s,1,d),n.isZero()||(n.negative^=1);r&&(r.words[d]=h)}return r&&r._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},o.prototype.divmod=function(e,t,r){var n,s,a;return(i(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(n=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(n=a.div.neg()),{div:n,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=67108864%e,n=0,o=this.length-1;o>=0;o--)n=(r*n+(0|this.words[o]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*r;this.words[n]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),s=new o(0),a=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(u),s.isub(d)),n.iushrn(1),s.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(u),l.isub(d)),a.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(a),s.isub(l)):(r.isub(t),a.isub(n),l.isub(s))}return{a:a,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new o(1),a=new o(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;(r.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var d=0,h=1;(n.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(a)):(n.isub(r),a.isub(s))}return 0>(t=0===r.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){i<n?t=-1:i>n&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new I(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function E(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){E.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){E.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){E.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}E.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},E.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},E.prototype.split=function(e,t){e.iushrn(this.n,0,t)},E.prototype.imulK=function(e){return e.imul(this.k)},n(C,E),C.prototype.split=function(e,t){for(var r=4194303,i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(n=10,t.words[t.length++]=o&r;n<e.length;n++){var s=0|e.words[n];e.words[n-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(k,E),n(S,E),n(A,E),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(x[e])return x[e];if("k256"===e)t=new C;else if("p224"===e)t=new k;else if("p192"===e)t=new S;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return x[e]=t,t},I.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},I.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var a=new o(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),f=this.pow(e,n),p=s;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();i(m<p);var w=this.pow(d,new o(1).iushln(p-m-1));
2h=h.redMul(w),d=w.redSqr(),f=f.redMul(d),p=m}return h},I.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},I.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,i=Array(16);i[0]=new o(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var s=i[0],a=0,l=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],d=c-1;d>=0;d--){var h=u>>d&1;if(s!==i[0]&&(s=this.sqr(s)),0===h&&0===a){l=0;continue}a<<=1,a|=h,(++l===r||0===n&&0===d)&&(s=this.mul(s,i[a]),l=0,a=0)}c=26}return s},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new T(e)},n(T,I),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},73493:function(e){!function(t,r){e.exports=r()}(0,function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,(function(t){return e[t]}).bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i=r(18),n=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,i){void 0===i&&(i=!1);var n=e.getVersionPrecision(t),o=e.getVersionPrecision(r),s=Math.max(n,o),a=0,l=e.map([t,r],function(t){var r=s-e.getVersionPrecision(t),i=t+Array(r+1).join(".0");return e.map(i.split("."),function(e){return Array(20-e.length).join("0")+e}).reverse()});for(i&&(a=s-Math.min(n,o)),s-=1;s>=a;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===a)return 0;s-=1}else if(l[0][s]<l[1][s])return -1}},e.map=function(e,t){var r,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)i.push(t(e[r]));return i},e.find=function(e,t){var r,i;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,i=e.length;r<i;r+=1){var n=e[r];if(t(n,r))return n}},e.assign=function(e){for(var t,r,i=e,n=arguments.length,o=Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var a=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){i[t]=e[t]})};for(t=0,r=o.length;t<r;t+=1)a();return e},e.getBrowserAlias=function(e){return i.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return i.BROWSER_MAP[e]||""},e}();t.default=n,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i,n=(i=r(91))&&i.__esModule?i:{default:i},o=r(18);function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];
vendor: 7,709 bytes, line 2
2i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var a=function(){var e;function t(){}return t.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw Error("UserAgent should be a string");return new n.default(e,t)},t.parse=function(e){return new n.default(e).getResult()},e=null,s(t,[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}]),t}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i=l(r(92)),n=l(r(93)),o=l(r(94)),s=l(r(95)),a=l(r(17));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=a.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=a.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=a.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=a.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return a.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},i=0,n={},o=0;if(Object.keys(e).forEach(function(t){var s=e[t];"string"==typeof s?(n[t]=s,o+=1):"object"==typeof s&&(r[t]=s,i+=1)}),i>0){var s=Object.keys(r),l=a.default.find(s,function(e){return t.isOS(e)});if(l){var c=this.satisfies(r[l]);if(void 0!==c)return c}var u=a.default.find(s,function(e){return t.isPlatform(e)});if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}}if(o>0){var h=Object.keys(n),f=a.default.find(h,function(e){return t.isBrowser(e,!0)});if(void 0!==f)return this.compareVersion(n[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),i=e.toLowerCase(),n=a.default.getBrowserTypeByAlias(i);return t&&n&&(i=n.toLowerCase()),i===r},t.compareVersion=function(e){var t=[0],r=e,i=!1,n=this.getBrowserVersion();if("string"==typeof n)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(i=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(i=!0,r=e.substr(1)),t.indexOf(a.default.compareVersions(n,r,i))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=c,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i,n=(i=r(17))&&i.__esModule?i:{default:i},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=n.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=n.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=n.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=n.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=n.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=n.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=n.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"}
vendor: 7,818 bytes, line 2
2,r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=n.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=n.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=n.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=n.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=n.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=n.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=n.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=n.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=n.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=n.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=n.default.getFirstMatch(o,e)||n.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=n.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=n.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=n.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=n.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=n.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=n.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=n.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=n.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=n.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=n.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:n.default.getFirstMatch(t,e),version:n.default.getSecondMatch(t,e)}}}];t.default=s,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i,n=(i=r(17))&&i.__esModule?i:{default:i},o=r(18),s=[{test:[/Roku\/DVP/],describe:function(e){var t=n.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=n.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=n.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=n.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=n.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=n.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=n.default.getMacOSVersionName(t),i={name:o.OS_MAP.MacOS,version:t};return r&&(i.versionName=r),i}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=n.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=n.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=n.default.getAndroidVersionName(t),i={name:o.OS_MAP.Android,version:t};return r&&(i.versionName=r),i}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=n.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=n.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||n.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||n.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=n.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=n.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=n.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);
2return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=s,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i,n=(i=r(17))&&i.__esModule?i:{default:i},o=r(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=n.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=n.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=s,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i,n=(i=r(17))&&i.__esModule?i:{default:i},o=r(18),s=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=n.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=n.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=n.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=n.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=n.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=s,e.exports=t.default}})})},47223:function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(89214);if("function"!=typeof o.randomBytes)throw Error("Not supported");n.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},82957:function(e,t,r){"use strict";let i=r(59196),n=r(68848),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50;let s=2147483647;function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function l(e){if(e>
vendor: 23,061 bytes, line 2
2s)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(es(e,ArrayBuffer)||e&&es(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(es(e,SharedArrayBuffer)||e&&es(e.buffer,SharedArrayBuffer)))return w(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return c.from(i,t,r);let n=y(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function h(e,t,r){return(d(e),e<=0)?l(e):void 0!==t?"string"==typeof r?l(e).fill(t,r):l(e).fill(t):l(e)}function f(e){return d(e),l(e<0?0:0|b(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|_(e,t),i=l(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function g(e){let t=e.length<0?0:0|b(e.length),r=l(t);for(let i=0;i<t;i+=1)r[i]=255&e[i];return r}function m(e){if(es(e,Uint8Array)){let t=new Uint8Array(e);return w(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function w(e,t,r){let i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),c.prototype),i}function y(e){if(c.isBuffer(e)){let t=0|b(e.length),r=l(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||ea(e.length)?l(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function b(e){if(e>=s)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||es(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return et(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return en(e).length;default:if(n)return i?-1:et(e).length;t=(""+t).toLowerCase(),n=!0}}function x(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return P(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return O(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function E(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function C(e,t,r,i,n){if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),ea(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return -1;r=e.length-1}else if(r<0){if(!n)return -1;r=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:k(e,t,r,i,n);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):k(e,[t],r,i,n);throw TypeError("val must be string, number or Buffer")}function k(e,t,r,i,n){let o,s=1,a=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){let i=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===i?0:o-i)){if(-1===i&&(i=o),o-i+1===l)return i*s}else -1!==i&&(o-=o-i),i=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){let r=!0;for(let i=0;i<l;i++)if(c(e,o+i)!==c(t,i)){r=!1;break}if(r)return o}return -1}function S(e,t,r,i){let n;r=Number(r)||0;let o=e.length-r;i?(i=Number(i))>o&&(i=o):i=o;let s=t.length;for(i>s/2&&(i=s/2),n=0;n<i;++n){let i=parseInt(t.substr(2*n,2),16);if(ea(i))break;e[r+n]=i}return n}function A(e,t,r,i){return eo(et(t,e.length-r),e,r,i)}function I(e,t,r,i){return eo(er(t),e,r,i)}function T(e,t,r,i){return eo(en(t),e,r,i)}function R(e,t,r,i){return eo(ei(t,e.length-r),e,r,i)}function O(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function P(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n<r;){let t=e[n],o=null,s=t>239?4:t>223?3:t>191?2:1;if(n+s<=r){let r,i,a,l;switch(s){case 1:t<128&&(o=t);break;case 2:(192&(r=e[n+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[n+1],i=e[n+2],(192&r)==128&&(192&i)==128&&(l=(15&t)<<12|(63&r)<<6|63&i)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[n+1],i=e[n+2],a=e[n+3],(192&r)==128&&(192&i)==128&&(192&a)==128&&(l=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&a)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),n+=s}return M(i)}t.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=a(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return h(e,t,r)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(es(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),es(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,i=t.length;for(let n=0,o=Math.min(r,i);n<o;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let i=c.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){let t=e[r];if(es(t,Uint8Array))n+t.length>i.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else if(c.isBuffer(t))t.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=t.length}return i},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)E(this,t,t+1);return this},c.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},c.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},c.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?P(this,0,e):x.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,i,n){if(es(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;let o=n-i,s=r-t,a=Math.min(o,s),l=this.slice(i,n),u=e.slice(t,r);for(let e=0;e<a;++e)if(l[e]!==u[e]){o=l[e],s=u[e];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return C(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return C(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return A(this,e,t,r);case"ascii":case"latin1":case"binary":return I(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(o)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let N=4096;function M(e){let t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=N));return r}function D(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function L(e,t,r){let i="";r=Math.min(e.length,r);for(let n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function j(e,t,r){let i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=t;i<r;++i)n+=el[e[i]];return n}function B(e,t,r){let i=e.slice(t,r),n="";for(let e=0;e<i.length-1;e+=2)n+=String.fromCharCode(i[e]+256*i[e+1]);return n}function $(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function U(e,t,r,i,n,o){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<o)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function F(e,t,r,i,n){Y(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function z(e,t,r,i,n){Y(t,i,n,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function q(e,t,r,i,n,o){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function W(e,t,r,i,o){return t=+t,r>>>=0,o||q(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function H(e,t,r,i,o){return t=+t,r>>>=0,o||q(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let i=this.subarray(e,t);return Object.setPrototypeOf(i,c.prototype),i},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);let i=this[e],n=1,o=0;for(;++o<t&&(n*=256);)i+=this[e+o]*n;return i},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||$(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||$(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||$(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||$(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||$(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=ec(function(e){J(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let i=t+256*this[++e]+65536*this[++e]+16777216*this[++e],n=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(i)+(BigInt(n)<<BigInt(32))}),c.prototype.readBigUInt64BE=ec(function(e){J(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&Q(e,this.length-8);let i=16777216*t+65536*this[++e]+256*this[++e]+this[++e],n=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<<BigInt(32))+BigInt(n)}),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);let i=this[e],n=1,o=0;for(;++o<t&&(n*=256);)i+=this[e+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||$(e,t,this.length);let i=t,n=1,o=this[e+--i];for(;i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return(e>>>=0,t||$(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||$(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||$(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||$(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||$(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=ec(function(e){J(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),c.prototype.readBigInt64BE=ec(function(e){J(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&Q(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||$(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||$(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||$(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||$(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;U(this,e,t,r,i,0)}let n=1,o=0;for(this[t]=255&e;++o<r&&(n*=256);)this[t+o]=e/n&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;U(this,e,t,r,i,0)}let n=r-1,o=1;for(this[t+n]=255&e;--n>=0&&(o*=256);)this[t+n]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=ec(function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=ec(function(e,t=0){return z(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){let i=Math.pow(2,8*r-1);U(this,e,t,r,i-1,-i)}let n=0,o=1,s=0;for(this[t]=255&e;++n<r&&(o*=256);)e<0&&0===s&&0!==this[t+n-1]&&(s=1),this[t+n]=(e/o>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){let i=Math.pow(2,8*r-1);U(this,e,t,r,i-1,-i)}let n=r-1,o=1,s=0;for(this[t+n]=255&e;--n>=0&&(o*=256);)e<0&&0===s&&0!==this[t+n+1]&&(s=1),this[t+n]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=ec(function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=ec(function(e,t=0){return z(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return H(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return H(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);let n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},c.prototype.fill=function(e,t,r,i){let n;if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){let t=e.charCodeAt(0);("utf8"===i&&t<128||"latin1"===i)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{let o=c.isBuffer(e)?e:c.from(e,i),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};let V={};function Z(e,t,r){V[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function K(e){let t="",r=e.length,i="-"===e[0]?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function G(e,t,r){J(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&Q(t,e.length-(r+1))}function Y(e,t,r,i,n,o){if(e>r||e<t){let i;let n="bigint"==typeof t?"n":"";throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${(o+1)*8}${n}`:`>= -(2${n} ** ${(o+1)*8-1}${n}) and < 2 ** ${(o+1)*8-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new V.ERR_OUT_OF_RANGE("value",i,e)}G(i,n,o)}function J(e,t){if("number"!=typeof e)throw new V.ERR_INVALID_ARG_TYPE(t,"number",e)}function Q(e,t,r){if(Math.floor(e)!==e)throw J(e,r),new V.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new V.ERR_BUFFER_OUT_OF_BOUNDS;throw new V.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),Z("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?n=K(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=K(n)),n+="n"),i+=` It must be ${t}. Received ${n}`},RangeError);let X=/[^+/0-9A-Za-z-_]/g;function ee(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function et(e,t){let r;t=t||1/0;let i=e.length,n=null,o=[];for(let s=0;s<i;++s){if((r=e.charCodeAt(s))>
255295&&r<57344){if(!n){if(r>56319||s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function er(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function ei(e,t){let r,i;let n=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)i=(r=e.charCodeAt(o))>>8,n.push(r%256),n.push(i);return n}function en(e){return i.toByteArray(ee(e))}function eo(e,t,r,i){let n;for(n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function es(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ea(e){return e!=e}let el=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function ec(e){return"undefined"==typeof BigInt?eu:e}function eu(){throw Error("BigInt not supported")}},23837:function(e,t,r){"use strict";var i=r(50071),n=r(72884),o=n(i("String.prototype.indexOf"));e.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?n(r):r}},72884:function(e,t,r){"use strict";var i=r(92517),n=r(50071),o=r(69301),s=r(53842),a=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||i.call(l,a),u=r(10816),d=n("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(i,l,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var h=function(){return c(i,a,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},54365:function(e,t,r){"use strict";function i(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=i(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t)}return n}function n(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=i(e))&&(n&&(n+=" "),n+=t);return n}r.r(t),r.d(t,{clsx:function(){return n}}),t.default=n},49211:function(e,t,r){"use strict";var i=r(99623),n={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function s(e){var t=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function a(e,t){var r,a,l,c,u,d,h=!1;t||(t={}),r=t.debug||!1;try{if(l=i(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(i){if(i.stopPropagation(),t.format){if(i.preventDefault(),void 0===i.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=n[t.format]||n.default;window.clipboardData.setData(o,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e)}t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(i){r&&console.error("unable to copy using execCommand: ",i),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(i){r&&console.error("unable to copy using clipboardData: ",i),r&&console.error("falling back to prompt"),a=s("message"in t?t.message:o),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}e.exports=a},31464:function(e,t,r){var i=r(25566);function n(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
2("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(n=i))}),t.splice(n,0,r)}function s(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function a(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG),e}function l(){try{return localStorage}catch(e){}}t.formatArgs=o,t.save=s,t.load=a,t.useColors=n,t.storage=l(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(27244)(t);let{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},27244:function(e,t,r){function i(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){let t,r,o;let s=null;function a(...e){if(!a.enabled)return;let r=a,n=Number(new Date),o=n-(t||n);r.diff=o,r.prev=t,r.curr=n,t=n,e[0]=i.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,n)=>{if("%%"===t)return"%";s++;let o=i.formatters[n];if("function"==typeof o){let i=e[s];t=o.call(r,i),e.splice(s,1),s--}return t}),i.formatArgs.call(r,e),(r.log||i.log).apply(r,e)}return a.namespace=e,a.useColors=i.useColors(),a.color=i.selectColor(e),a.extend=n,a.destroy=i.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==i.namespaces&&(r=i.namespaces,o=i.enabled(e)),o),set:e=>{s=e}}),"function"==typeof i.init&&i.init(a),a}function n(e,t){let r=i(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function o(e){let t;i.save(e),i.namespaces=e,i.names=[],i.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(t=0;t<n;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?i.skips.push(RegExp("^"+e.slice(1)+"$")):i.names.push(RegExp("^"+e+"$")))}function s(){let e=[...i.names.map(l),...i.skips.map(l).map(e=>"-"+e)].join(",");return i.enable(""),e}function a(e){let t,r;if("*"===e[e.length-1])return!0;for(t=0,r=i.skips.length;t<r;t++)if(i.skips[t].test(e))return!1;for(t=0,r=i.names.length;t<r;t++)if(i.names[t].test(e))return!0;return!1}function l(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function c(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.debug=i,i.default=i,i.coerce=c,i.disable=s,i.enable=o,i.enabled=a,i.humanize=r(35169),i.destroy=u,Object.keys(e).forEach(t=>{i[t]=e[t]}),i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}e.exports=i},89445:function(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),i=RegExp("("+t+")+","gi");function n(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],n(r),n(i))}function o(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],i=1;i<t.length;i++)t=(e=n(t,i).join("")).match(r)||[];return e}}function s(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=o(r[0]);n!==r[0]&&(t[r[0]]=n)}r=i.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var l=s[a];e=e.replace(RegExp(l,"g"),t[l])}return e}e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return s(e)}}},33832:function(e,t,r){"use strict";var i=r(10816),n=r(5014),o=r(53842),s=r(50297);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");
2if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!s&&s(e,t);if(i)i(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===a&&d?d.enumerable:!a,value:r,writable:null===l&&d?d.writable:!l});else if(!u&&(a||l||c))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},65383:function(e,t,r){"use strict";r.d(t,{qY:function(){return p}});var i=r(25566),n=function(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},o=function(){return function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"}}(),s=function(){return function(e){this.version=e,this.type="node",this.name="node",this.os=i.platform}}(),a=function(){return function(e,t,r,i){this.name=e,this.version=t,this.os=r,this.bot=i,this.type="bot-device"}}(),l=function(){return function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}}(),c=function(){return function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}}(),u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=3,h=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function p(e){return e?m(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?m(navigator.userAgent):y()}function g(e){return""!==e&&h.reduce(function(t,r){var i=r[0],n=r[1];if(t)return t;var o=n.exec(e);return!!o&&[i,o]},!1)}function m(e){var t=g(e);
vendor: 13,877 bytes, line 2
2if(!t)return null;var r=t[0],i=t[1];if("searchbot"===r)return new l;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<d&&(s=n(n([],s,!0),b(d-s.length),!0)):s=[];var c=s.join("."),h=w(e),f=u.exec(e);return f&&f[1]?new a(r,c,h,f[1]):new o(r,c,h)}function w(e){for(var t=0,r=f.length;t<r;t++){var i=f[t],n=i[0];if(i[1].exec(e))return n}return null}function y(){return void 0!==i&&i.version?new s(i.version.slice(1)):null}function b(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}},46946:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,i){var n,o,s,a,l,c,u,d={},h={};h[r]=0;var f=t.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(s in o=(n=f.pop()).value,a=n.cost,l=e[o]||{})l.hasOwnProperty(s)&&(c=a+l[s],u=h[s],(void 0===h[s]||u>c)&&(h[s]=c,f.push(s,c),d[s]=o));if(void 0!==i&&void 0===h[i])throw Error(["Could not find a path from ",r," to ",i,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r,i=[],n=t;n;)i.push(n),r=e[n],n=e[n];return i.reverse(),i},find_path:function(e,r,i){var n=t.single_source_shortest_paths(e,r,i);return t.extract_shortest_path_from_predecessor_list(n,i)},PriorityQueue:{make:function(e){var r,i=t.PriorityQueue,n={};for(r in e=e||{},i)i.hasOwnProperty(r)&&(n[r]=i[r]);return n.queue=[],n.sorter=e.sorter||i.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},61984:function(e,t,r){"use strict";var i=t;i.version=r(58274).i8,i.utils=r(36321),i.rand=r(47223),i.curve=r(64358),i.curves=r(83475),i.ec=r(90063),i.eddsa=r(37115)},21398:function(e,t,r){"use strict";var i=r(21803),n=r(36321),o=n.getNAF,s=n.getJSF,a=n.assert;function l(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw Error("Not implemented")},l.prototype.validate=function(){throw Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r,i,n=e._getDoubles(),s=o(t,1,this._bitLength),l=(1<<n.step+1)-(n.step%2==0?2:1);l/=3;var c=[];for(r=0;r<s.length;r+=n.step){i=0;for(var u=r+n.step-1;u>=r;u--)i=(i<<1)+s[u];c.push(i)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=l;f>0;f--){for(r=0;r<c.length;r++)(i=c[r])===f?h=h.mixedAdd(n.points[r]):i===-f&&(h=h.mixedAdd(n.points[r].neg()));d=d.add(h)}return d.toP()},l.prototype._wnafMul=function(e,t){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var n=i.points,s=o(t,r,this._bitLength),l=this.jpoint(null,null,null),c=s.length-1;c>=0;c--){for(var u=0;c>=0&&0===s[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var d=s[c];a(0!==d),l="affine"===e.type?d>0?l.mixedAdd(n[d-1>>1]):l.mixedAdd(n[-d-1>>1].neg()):d>0?l.add(n[d-1>>1]):l.add(n[-d-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,i,n){var a,l,c,u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,f=0;for(a=0;a<i;a++){var p=(c=t[a])._getNAFPoints(e);u[a]=p.wnd,d[a]=p.points}for(a=i-1;a>=1;a-=2){var g=a-1,m=a;if(1!==u[g]||1!==u[m]){h[g]=o(r[g],u[g],this._bitLength),h[m]=o(r[m],u[m],this._bitLength),f=Math.max(h[g].length,f),f=Math.max(h[m].length,f);continue}var w=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(w[1]=t[g].add(t[m]),w[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(w[1]=t[g].toJ().mixedAdd(t[m]),w[2]=t[g].add(t[m].neg())):(w[1]=t[g].toJ().mixedAdd(t[m]),w[2]=t[g].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=s(r[g],r[m]);for(l=0,f=Math.max(b[0].length,f),h[g]=Array(f),h[m]=Array(f);l<f;l++){var v=0|b[0][l],_=0|b[1][l];h[g][l]=y[(v+1)*3+(_+1)],h[m][l]=0,d[g]=w}}var x=this.jpoint(null,null,null),E=this._wnafT4;for(a=f;a>=0;a--){for(var C=0;a>=0;){var k=!0;for(l=0;l<i;l++)E[l]=0|h[l][a],0!==E[l]&&(k=!1);if(!k)break;C++,a--}if(a>=0&&C++,x=x.dblp(C),a<0)break;for(l=0;l<i;l++){var S=E[l];0!==S&&(S>0?c=d[l][S-1>>1]:S<0&&(c=d[l][-S-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(a=0;a<i;a++)d[a]=null;return n?x:x.toP()},l.BasePoint=c,c.prototype.eq=function(){throw Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=n.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return n.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var o=0;o<e;o++)i=i.dbl();r.push(i)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=1===r?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},98343:function(e,t,r){"use strict";var i=r(36321),n=r(21803),o=r(56853),s=r(21398),a=i.assert;function l(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,i,o){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=o&&new n(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(l,s),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},l.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var l=a.fromRed().isOdd();return(t&&!l||!t&&l)&&(a=a.redNeg()),this.point(e,a)},l.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},o(c,s.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,i){return new c(this,e,t,r,i)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=i.redAdd(t),s=o.redSub(r),a=i.redSub(t),l=n.redMul(s),c=o.redMul(a),u=n.redMul(a),d=s.redMul(o);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,r,i,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(i=this.curve._mulA(a)).redAdd(l);this.zOne?(e=s.redSub(a).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(i.redSub(l)),r=c.redSqr().redSub(c).redSub(c)):(n=this.z.redSqr(),o=c.redSub(n).redISub(n),e=s.redSub(a).redISub(l).redMul(o),t=c.redMul(i.redSub(l)),r=c.redMul(o))}else i=a.redAdd(l),n=this.curve._mulC(this.z).redSqr(),o=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(o),t=this.curve._mulC(i).redMul(a.redISub(l)),r=i.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=n.redSub(i),a=n.redAdd(i),l=r.redAdd(t),c=o.redMul(s),u=a.redMul(l),d=o.redMul(l),h=s.redMul(a);return this.curve.point(c,u,h,d)},c.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),l=n.redSub(a),c=n.redAdd(a),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),d=i.redMul(l).redMul(u);return this.curve.twisted?(t=i.redMul(c).redMul(s.redSub(this.curve._mulA(o))),r=l.redMul(c)):(t=i.redMul(c).redMul(s.redSub(o)),r=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},64358:function(e,t,r){"use strict";var i=t;i.base=r(21398),i.short=r(13770),i.mont=r(75656),i.edwards=r(98343)},75656:function(e,t,r){"use strict";var i=r(21803),n=r(56853),o=r(21398),s=r(36321);function a(e){o.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(l,o.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},a.prototype.point=function(e,t){return new l(this,e,t)},a.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>
2":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},l.prototype.add=function(){throw Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),s=n.redMul(i),a=t.z.redMul(o.redAdd(s).redSqr()),l=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var s=o.length-1;s>=0;s--)0===o[s]?(r=r.diffAdd(i,n),i=i.dbl()):(i=r.diffAdd(i,n),r=r.dbl());return i},l.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},13770:function(e,t,r){"use strict";var i=r(36321),n=r(21803),o=r(56853),s=r(21398),a=i.assert;function l(e){s.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(e,t,r,i){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}
vendor: 4,143 bytes, line 2
2function u(e,t,r,i){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(r,16),this.z=new n(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(l,s),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new n(e.beta,16).toRed(this.red);else{var t,r,i,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new n(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),o=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(o).fromRed(),i.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,i,o,s,a,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new n(1),g=new n(0),m=new n(0),w=new n(1),y=0;0!==h.cmpn(0);){var b=f.div(h);c=f.sub(b.mul(h)),u=m.sub(b.mul(p));var v=w.sub(b.mul(g));if(!i&&0>c.cmp(d))t=l.neg(),r=p,i=c.neg(),o=u;else if(i&&2==++y)break;l=c,f=h,h=c,m=p,p=u,w=g,g=v}s=c.neg(),a=u;var _=i.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(_)>=0&&(s=t,a=r),i.negative&&(i=i.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:i,b:o},{a:s,b:a}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),a=o.mul(i.a),l=n.mul(r.b),c=o.mul(i.b);return{k1:e.sub(s).sub(a),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=i.fromRed().isOdd();return(t&&!o||!t&&o)&&(i=i.redNeg()),this.point(e,i)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],l=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),i[2*o]=a,i[2*o+1]=l,n[2*o]=s.k1,n[2*o+1]=s.k2}for(var c=this._wnafMulAdd(1,i,n,2*o,r),u=0;u<2*o;u++)i[u]=null,n[u]=null;return c},o(c,s.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);if(!t[2])return i;function n(t){return e.point(t[0],t[1],r)}var o=t[2];return i.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[i].concat(o.doubles.points.map(n))},naf:o.naf&&{wnd:o.naf.wnd,points:[i].concat(o.naf.points.map(n))}},i},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>
2":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),o=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return(e=new n(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},c.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,s.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=i.redSub(n),l=o.redSub(s);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),d=i.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(i),a=n.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),u=r.redMul(l),d=a.redSqr().redIAdd(c).redISub(u).redISub(u),h=a.redMul(u.redISub(d)).redISub(n.redMul(c)),f=this.z.redMul(s);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var i=this.curve.a,n=this.curve.tinv,o=this.x,s=this.y,a=this.z,l=a.redSqr().redSqr(),c=s.redAdd(s);for(t=0;t<e;t++){var u=o.redSqr(),d=c.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(i.redMul(l)),p=o.redMul(d),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),w=f.redMul(m);w=w.redIAdd(w).redISub(h);var y=c.redMul(a);t+1<e&&(l=l.redMul(h)),o=g,a=y,c=w}return this.curve.jpoint(o,c.redMul(n),a)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var a=i.redAdd(i).redIAdd(i),l=a.redSqr().redISub(s).redISub(s),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),g=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),o=n.redSqr(),s=this.x.redAdd(n).redSqr().redISub(i).redISub(o);s=s.redIAdd(s);var a=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),l=a.redSqr().redISub(s).redISub(s);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),g=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(n)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(s),u=a.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=s.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=a.redMul(d).redISub(h),p=r.redAdd(r).redMul(i);return this.curve.jpoint(u,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 6,376 bytes, line 2
2var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),i=t.redSqr(),n=e.redAdd(e).redIAdd(e),o=n.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(i),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=i.redIAdd(i);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=n.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(a).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(s.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(d,h,f)},u.prototype.mul=function(e,t){return e=new n(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var i=t.redMul(this.z),n=r.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(i)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},83475:function(e,t,r){"use strict";var i,n=t,o=r(28714),s=r(64358),a=r(36321).assert;function l(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new l(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(36113)}catch(e){i=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 10,693 bytes, line 2
2,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},90063:function(e,t,r){"use strict";var i=r(21803),n=r(28072),o=r(36321),s=r(83475),a=r(47223),l=o.assert,c=r(61258),u=r(90362);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},d.prototype._truncateToN=function(e,t,r){if(i.isBN(e)||"number"==typeof e)n=(e=new i(e,16)).byteLength();else if("object"==typeof e)n=e.length,e=new i(e,16);else{var n,o=e.toString();n=o.length+1>>>1,e=new i(o,16)}"number"!=typeof r&&(r=8*n);var s=r-this.n.bitLength();return(s>0&&(e=e.ushrn(s)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){if("object"==typeof r&&(o=r,r=null),o||(o={}),"string"!=typeof e&&"number"!=typeof e&&!i.isBN(e)){l("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),l(e.length>>>0===e.length);for(var s=0;s<e.length;s++)l((255&e[s])===e[s])}t=this.keyFromPrivate(t,r),l(!(e=this._truncateToN(e,!1,o.msgBitLength)).isNeg(),"Can not sign a negative message");var a=this.n.byteLength(),c=t.getPrivate().toArray("be",a),d=e.toArray("be",a);l(new i(d).eq(e),"Can not sign message");for(var h=new n({hash:this.hash,entropy:c,nonce:d,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new i(1)),p=0;;p++){var g=o.k?o.k(p):new i(h.generate(this.n.byteLength()));if(!(0>=(g=this._truncateToN(g,!0)).cmpn(1)||g.cmp(f)>=0)){var m=this.g.mul(g);if(!m.isInfinity()){var w=m.getX(),y=w.umod(this.n);if(0!==y.cmpn(0)){var b=g.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var v=(m.getY().isOdd()?1:0)|(0!==w.cmp(y)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),v^=1),new u({r:y,s:b,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,r,i,n){n||(n={}),e=this._truncateToN(e,!1,n.msgBitLength),r=this.keyFromPublic(r,i);var o,s=(t=new u(t,"hex")).r,a=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var l=a.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(s).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&o.eqXToP(s):!(o=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===o.getX().umod(this.n).cmp(s)},d.prototype.recoverPubKey=function(e,t,r,n){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,n);var o=this.n,s=new i(e),a=t.r,c=t.s,d=1&r,h=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error("Unable to find sencond key candinate");a=h?this.curve.pointFromX(a.add(this.curve.n),d):this.curve.pointFromX(a,d);var f=t.r.invm(o),p=o.sub(s).mul(f).umod(o),g=c.mul(f).umod(o);return this.g.mulAdd(p,a,g)},d.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new u(t,i)).recoveryParam)return t.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(e,t,o)}catch(e){continue}if(n.eq(r))return o}throw Error("Unable to find valid recovery factor")}},61258:function(e,t,r){"use strict";var i=r(21803),n=r(36321).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},90362:function(e,t,r){"use strict";var i=r(21803),n=r(36321),o=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4||0===e[t.place])return!1;for(var n=0,o=0,s=t.place;o<i;o++,s++)n<<=8,n|=e[s],n>>>=0;return!(n<=127)&&(t.place=s,n)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=s,s.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new a;if(48!==e[r.place++])return!1;var o=l(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var s=l(e,r);if(!1===s||(128&e[r.place])!=0)return!1;var c=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u||e.length!==u+r.place||(128&e[r.place])!=0)return!1;var d=e.slice(r.place,u+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new i(c),this.s=new i(d),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];u(i,t.length),(i=i.concat(t)).push(2),u(i,r.length);var o=i.concat(r),s=[48];return u(s,o.length),s=s.concat(o),n.encode(s,e)}},37115:function(e,t,r){"use strict";var i=r(28714),n=r(83475),o=r(36321),s=o.assert,a=o.parseBytes,l=r(76244),c=r(55967);function u(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=n[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}e.exports=u,u.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),o=this.encodePoint(n),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),l=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:l,Rencoded:o})},u.prototype.verify=function(e,t,r){if(e=a(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),i=(128&e[t])!=0,n=o.intFromLE(r);return this.curve.pointFromY(n,i)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},76244:function(e,t,r){"use strict";var i=r(36321),n=i.assert,o=i.parseBytes,s=i.cachedProperty;function a(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(a,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i}),s(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},a.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=a},55967:function(e,t,r){"use strict";var i=r(21803),n=r(36321),o=n.assert,s=n.cachedProperty,a=n.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invali
2d size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},36113:function(e
vendor: 26,140 bytes, line 2
2){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
236321:function(e,t,r){"use strict";var i=t,n=r(21803),o=r(73045),s=r(83742);function a(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);for(s=0;s<i.length;s+=1)i[s]=0;var n=1<<t+1,o=e.clone();for(s=0;s<i.length;s++){var s,a,l=o.andln(n-1);o.isOdd()?(a=l>(n>>1)-1?(n>>1)-l:l,o.isubn(a)):a=0,i[s]=a,o.iushrn(1)}return i}function l(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var o,s,a,l=e.andln(3)+i&3,c=t.andln(3)+n&3;3===l&&(l=-1),3===c&&(c=-1),s=(1&l)==0?0:(3==(o=e.andln(7)+i&7)||5===o)&&2===c?-l:l,r[0].push(s),a=(1&c)==0?0:(3==(o=t.andln(7)+n&7)||5===o)&&2===l?-c:c,r[1].push(a),2*i===s+1&&(i=1-i),2*n===a+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r}function c(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}}function u(e){return"string"==typeof e?i.toArray(e,"hex"):e}function d(e){return new n(e,"hex","le")}i.assert=o,i.toArray=s.toArray,i.zero2=s.zero2,i.toHex=s.toHex,i.encode=s.encode,i.getNAF=a,i.getJSF=l,i.cachedProperty=c,i.parseBytes=u,i.intFromLE=d},21803:function(e,t,r){!function(e,t){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 4,182 bytes, line 2
2"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(85568).Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function a(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function l(e,t,r,i){for(var n=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;n*=i,a>=49?n+=a-49+10:a>=17?n+=a-17+10:n+=a}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<e.length&&(16===t?this._parseHex(e,n,r):(this._parseBase(e,t,n),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var n,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=e.length-1,n=0;s>=0;s-=3)o=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);else if("le"===r)for(s=0,n=0;s<e.length;s+=3)o=e[s]|e[s+1]<<8|e[s+2]<<16,this.words[n]|=o<<a&67108863,this.words[n+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,n++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n<this.length;n++)this.words[n]=0;var o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var o=e.length-r,s=o%i,a=Math.min(o,o-s)+r,c=0,u=r;u<a;u+=i)c=l(e,u,u+i,t),this.imuln(n),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var d=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
vendor: 6,204 bytes, line 2
207,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=(e.words[i]&1<<n)>>>n}return t}function p(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],o=0|t.words[0],s=n*o,a=67108863&s,l=s/67108864|0;r.words[0]=a;for(var c=1;c<i;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(s=(n=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&s}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=((a<<n|o)&16777215).toString(16);r=0!=(o=a>>>24-n&16777215)||s!==this.length-1?u[6-l.length]+l+r:l+r,(n+=2)>=26&&(n-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],f=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?g+r:u[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return i(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var n,o,s=this.byteLength(),a=r||Math.max(1,s);i(s<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var l="le"===t,c=new e(a),u=this.clone();if(l){for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),c[o]=n;for(;o<a;o++)c[o]=0}else{for(o=0;o<a-s;o++)c[o]=0;for(o=0;!u.isZero();o++)n=u.andln(255),u.iushrn(8),c[a-o-1]=n}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return i((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return i((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return i((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<n:this.words[r]=this.words[r]&~(1<<n),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,o=0;o<i.length;o++)t=(0|r.words[o])+(0|i.words[o])+n,this.words[o]=67108863&t,n=t>>>26;for(;0!==n&&o<r.length;o++)t=(0|r.words[o])+n,this.words[o]=67108863&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;
vendor: 14,691 bytes, line 2
2var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(i=(0|t.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&i;for(;0!==o&&s<t.length;s++)o=(i=(0|t.words[s])+o)>>26,this.words[s]=67108863&i;if(0===o&&s<t.length&&t!==this)for(;s<t.length;s++)this.words[s]=t.words[s];return this.length=Math.max(this.length,s),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var i,n,o,s=e.words,a=t.words,l=r.words,c=0,u=0|s[0],d=8191&u,h=u>>>13,f=0|s[1],p=8191&f,g=f>>>13,m=0|s[2],w=8191&m,y=m>>>13,b=0|s[3],v=8191&b,_=b>>>13,x=0|s[4],E=8191&x,C=x>>>13,k=0|s[5],S=8191&k,A=k>>>13,I=0|s[6],T=8191&I,R=I>>>13,O=0|s[7],P=8191&O,N=O>>>13,M=0|s[8],D=8191&M,L=M>>>13,j=0|s[9],B=8191&j,$=j>>>13,U=0|a[0],F=8191&U,z=U>>>13,q=0|a[1],W=8191&q,H=q>>>13,V=0|a[2],Z=8191&V,K=V>>>13,G=0|a[3],Y=8191&G,J=G>>>13,Q=0|a[4],X=8191&Q,ee=Q>>>13,et=0|a[5],er=8191&et,ei=et>>>13,en=0|a[6],eo=8191&en,es=en>>>13,ea=0|a[7],el=8191&ea,ec=ea>>>13,eu=0|a[8],ed=8191&eu,eh=eu>>>13,ef=0|a[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(c+(i=Math.imul(d,F))|0)+((8191&(n=(n=Math.imul(d,z))+Math.imul(h,F)|0))<<13)|0;c=((o=Math.imul(h,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,F),n=(n=Math.imul(p,z))+Math.imul(g,F)|0,o=Math.imul(g,z);var ew=(c+(i=i+Math.imul(d,W)|0)|0)+((8191&(n=(n=n+Math.imul(d,H)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,H)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(w,F),n=(n=Math.imul(w,z))+Math.imul(y,F)|0,o=Math.imul(y,z),i=i+Math.imul(p,W)|0,n=(n=n+Math.imul(p,H)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,H)|0;var ey=(c+(i=i+Math.imul(d,Z)|0)|0)+((8191&(n=(n=n+Math.imul(d,K)|0)+Math.imul(h,Z)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(v,F),n=(n=Math.imul(v,z))+Math.imul(_,F)|0,o=Math.imul(_,z),i=i+Math.imul(w,W)|0,n=(n=n+Math.imul(w,H)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,H)|0,i=i+Math.imul(p,Z)|0,n=(n=n+Math.imul(p,K)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,K)|0;var eb=(c+(i=i+Math.imul(d,Y)|0)|0)+((8191&(n=(n=n+Math.imul(d,J)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,J)|0)+(n>>>13)|0)+(eb>>>26)|0,eb&=67108863,i=Math.imul(E,F),n=(n=Math.imul(E,z))+Math.imul(C,F)|0,o=Math.imul(C,z),i=i+Math.imul(v,W)|0,n=(n=n+Math.imul(v,H)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,H)|0,i=i+Math.imul(w,Z)|0,n=(n=n+Math.imul(w,K)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,K)|0,i=i+Math.imul(p,Y)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,J)|0;var ev=(c+(i=i+Math.imul(d,X)|0)|0)+((8191&(n=(n=n+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(S,F),n=(n=Math.imul(S,z))+Math.imul(A,F)|0,o=Math.imul(A,z),i=i+Math.imul(E,W)|0,n=(n=n+Math.imul(E,H)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,H)|0,i=i+Math.imul(v,Z)|0,n=(n=n+Math.imul(v,K)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,K)|0,i=i+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var e_=(c+(i=i+Math.imul(d,er)|0)|0)+((8191&(n=(n=n+Math.imul(d,ei)|0)+Math.imul(h,er)|0))<<13)|0;c=((o=o+Math.imul(h,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(T,F),n=(n=Math.imul(T,z))+Math.imul(R,F)|0,o=Math.imul(R,z),i=i+Math.imul(S,W)|0,n=(n=n+Math.imul(S,H)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,H)|0,i=i+Math.imul(E,Z)|0,n=(n=n+Math.imul(E,K)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,K)|0,i=i+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,J)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,ei)|0;var ex=(c+(i=i+Math.imul(d,eo)|0)|0)+((8191&(n=(n=n+Math.imul(d,es)|0)+Math.imul(h,eo)|0))<<13)|0;c=((o=o+Math.imul(h,es)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(P,F),n=(n=Math.imul(P,z))+Math.imul(N,F)|0,o=Math.imul(N,z),i=i+Math.imul(T,W)|0,n=(n=n+Math.imul(T,H)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,H)|0,i=i+Math.imul(S,Z)|0,n=(n=n+Math.imul(S,K)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,K)|0,i=i+Math.imul(E,Y)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,i=i+Math.imul(v,X)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(y,er)|0,o=o+Math.imul(y,ei)|0,i=i+Math.imul(p,eo)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,es)|0;var eE=(c+(i=i+Math.imul(d,el)|0)|0)+((8191&(n=(n=n+Math.imul(d,ec)|0)+Math.imul(h,el)|0))<<13)|0;c=((o=o+Math.imul(h,ec)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(D,F),n=(n=Math.imul(D,z))+Math.imul(L,F)|0,o=Math.imul(L,z),i=i+Math.imul(P,W)|0,n=(n=n+Math.imul(P,H)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,H)|0,i=i+Math.imul(T,Z)|0,n=(n=n+Math.imul(T,K)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,K)|0,i=i+Math.imul(S,Y)|0,n=(n=n+Math.imul(S,J)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,ee)|0,i=i+Math.imul(v,er)|0,n=(n=n+Math.imul(v,ei)|0)+Math.imul(_,er)|0,o=o+Math.imul(_,ei)|0,i=i+Math.imul(w,eo)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(y,eo)|0,o=o+Math.imul(y,es)|0,i=i+Math.imul(p,el)|0,n=(n=n+Math.imul(p,ec)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,ec)|0;var eC=(c+(i=i+Math.imul(d,ed)|0)|0)+((8191&(n=(n=n+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;c=((o=o+Math.imul(h,eh)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(B,F),n=(n=Math.imul(B,z))+Math.imul($,F)|0,o=Math.imul($,z),i=i+Math.imul(D,W)|0,n=(n=n+Math.imul(D,H)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,H)|0,i=i+Math.imul(P,Z)|0,n=(n=n+Math.imul(P,K)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,K)|0,i=i+Math.imul(T,Y)|0,n=(n=n+Math.imul(T,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,i=i+Math.imul(S,X)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(C,er)|0,o=o+Math.imul(C,ei)|0,i=i+Math.imul(v,eo)|0,n=(n=n+Math.imul(v,es)|0)+Math.imul(_,eo)|0,o=o+Math.imul(_,es)|0,i=i+Math.imul(w,el)|0,n=(n=n+Math.imul(w,ec)|0)+Math.imul(y,el)|0,o=o+Math.imul(y,ec)|0,i=i+Math.imul(p,ed)|0,n=(n=n+Math.imul(p,eh)|0)+Math.imul(g,ed)|0,o=o+Math.imul(g,eh)|0;var ek=(c+(i=i+Math.imul(d,ep)|0)|0)+((8191&(n=(n=n+Math.imul(d,eg)|0)+Math.imul(h,ep)|0))<<13)|0;c=((o=o+Math.imul(h,eg)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(B,W),n=(n=Math.imul(B,H))+Math.imul($,W)|0,o=Math.imul($,H),i=i+Math.imul(D,Z)|0,n=(n=n+Math.imul(D,K)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,K)|0,i=i+Math.imul(P,Y)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(N,Y)|0,o=o+Math.imul(N,J)|0,i=i+Math.imul(T,X)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,i=i+Math.imul(S,er)|0,n=(n=n+Math.imul(S,ei)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,ei)|0,i=i+Math.imul(E,eo)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(C,eo)|0,o=o+Math.imul(C,es)|0,i=i+Math.imul(v,el)|0,n=(n=n+Math.imul(v,ec)|0)+Math.imul(_,el)|0,o=o+Math.imul(_,ec)|0,i=i+Math.imul(w,ed)|0,n=(n=n+Math.imul(w,eh)|0)+Math.imul(y,ed)|0,o=o+Math.imul(y,eh)|0;var eS=(c+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;c=((o=o+Math.imul(g,eg)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(B,Z),n=(n=Math.imul(B,K))+Math.imul($,Z)|0,o=Math.imul($,K),i=i+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,J)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,i=i+Math.imul(T,er)|0,n=(n=n+Math.imul(T,ei)|0)+Math.imul(R,er)|0,o=o+Math.imul(R,ei)|0,i=i+Math.imul(S,eo)|0,n=(n=n+Math.imul(S,es)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,es)|0,i=i+Math.imul(E,el)|0,n=(n=n+Math.imul(E,ec)|0)+Math.imul(C,el)|0,o=o+Math.imul(C,ec)|0,i=i+Math.imul(v,ed)|0,n=(n=n+Math.imul(v,eh)|0)+Math.imul(_,ed)|0,o=o+Math.imul(_,eh)|0;var eA=(c+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eg)|0)+Math.imul(y,ep)|0))<<13)|0;c=((o=o+Math.imul(y,eg)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(B,Y),n=(n=Math.imul(B,J))+Math.imul($,Y)|0,o=Math.imul($,J),i=i+Math.imul(D,X)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(N,er)|0,o=o+Math.imul(N,ei)|0,i=i+Math.imul(T,eo)|0,n=(n=n+Math.imul(T,es)|0)+Math.imul(R,eo)|0,o=o+Math.imul(R,es)|0,i=i+Math.imul(S,el)|0,n=(n=n+Math.imul(S,ec)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,ec)|0,i=i+Math.imul(E,ed)|0,n=(n=n+Math.imul(E,eh)|0)+Math.imul(C,ed)|0,o=o+Math.imul(C,eh)|0;var eI=(c+(i=i+Math.imul(v,ep)|0)|0)+((8191&(n=(n=n+Math.imul(v,eg)|0)+Math.imul(_,ep)|0))<<13)|0;c=((o=o+Math.imul(_,eg)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(B,X),n=(n=Math.imul(B,ee))+Math.imul($,X)|0,o=Math.imul($,ee),i=i+Math.imul(D,er)|0,n=(n=n+Math.imul(D,ei)|0)+Math.imul(L,er)|0,o=o+Math.imul(L,ei)|0,i=i+Math.imul(P,eo)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(N,eo)|0,o=o+Math.imul(N,es)|0,i=i+Math.imul(T,el)|0,n=(n=n+Math.imul(T,ec)|0)+Math.imul(R,el)|0,o=o+Math.imul(R,ec)|0,i=i+Math.imul(S,ed)|0,n=(n=n+Math.imul(S,eh)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,eh)|0;var eT=(c+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eg)|0)+Math.imul(C,ep)|0))<<13)|0;c=((o=o+Math.imul(C,eg)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(B,er),n=(n=Math.imul(B,ei))+Math.imul($,er)|0,o=Math.imul($,ei),i=i+Math.imul(D,eo)|0,n=(n=n+Math.imul(D,es)|0)+Math.imul(L,eo)|0,o=o+Math.imul(L,es)|0,i=i+Math.imul(P,el)|0,n=(n=n+Math.imul(P,ec)|0)+Math.imul(N,el)|0,o=o+Math.imul(N,ec)|0,i=i+Math.imul(T,ed)|0,n=(n=n+Math.imul(T,eh)|0)+Math.imul(R,ed)|0,o=o+Math.imul(R,eh)|0;var eR=(c+(i=i+Math.imul(S,ep)|0)|0)+((8191&(n=(n=n+Math.imul(S,eg)|0)+Math.imul(A,ep)|0))<<13)|0;c=((o=o+Math.imul(A,eg)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(B,eo),n=(n=Math.imul(B,es))+Math.imul($,eo)|0,o=Math.imul($,es),i=i+Math.imul(D,el)|0,n=(n=n+Math.imul(D,ec)|0)+Math.imul(L,el)|0,o=o+Math.imul(L,ec)|0,i=i+Math.imul(P,ed)|0,n=(n=n+Math.imul(P,eh)|0)+Math.imul(N,ed)|0,o=o+Math.imul(N,eh)|0;var eO=(c+(i=i+Math.imul(T,ep)|0)|0)+((8191&(n=(n=n+Math.imul(T,eg)|0)+Math.imul(R,ep)|0))<<13)|0;c=((o=o+Math.imul(R,eg)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863,i=Math.imul(B,el),n=(n=Math.imul(B,ec))+Math.imul($,el)|0,o=Math.imul($,ec),i=i+Math.imul(D,ed)|0,n=(n=n+Math.imul(D,eh)|0)+Math.imul(L,ed)|0,o=o+Math.imul(L,eh)|0;var eP=(c+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eg)|0)+Math.imul(N,ep)|0))<<13)|0;c=((o=o+Math.imul(N,eg)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(B,ed),n=(n=Math.imul(B,eh))+Math.imul($,ed)|0,o=Math.imul($,eh);var eN=(c+(i=i+Math.imul(D,ep)|0)|0)+((8191&(n=(n=n+Math.imul(D,eg)|0)+Math.imul(L,ep)|0))<<13)|0;c=((o=o+Math.imul(L,eg)|0)+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863;var eM=(c+(i=Math.imul(B,ep))|0)+((8191&(n=(n=Math.imul(B,eg))+Math.imul($,ep)|0))<<13)|0;return c=((o=Math.imul($,eg))+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,l[0]=em,l[1]=ew,l[2]=ey,l[3]=eb,l[4]=ev,l[5]=e_,l[6]=ex,l[7]=eE,l[8]=eC,l[9]=ek,l[10]=eS,l[11]=eA,l[12]=eI,l[13]=eT,l[14]=eR,l[15]=eO,l[16]=eP,l[17]=eN,l[18]=eM,0!==c&&(l[19]=c,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,o=0;o<r.length-1;o++){var s=n;n=0;for(var a=67108863&i,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;s=s+(d/67108864|0)|0,a=67108863&(h=h+a|0),n+=(s=s+(h>>>26)|0)>>>26,s&=67108863}r.words[o]=a,i=s,s=n}return 0!==i?r.words[o]=i:r.length--,r.strip()}function w(e,t,r){return new y().mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=p),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?p(this,e,t):r<1024?m(this,e,t):w(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},y.prototype.permute=function(e,t,r,i,n,o){for(var s=0;s<o;s++)i[s]=t[e[s]],n[s]=r[e[s]]},y.prototype.transform=function(e,t,r,i,n,o){this.permute(o,e,t,r,i,n);for(var s=1;s<n;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),u=0;u<n;u+=a)for(var d=l,h=c,f=0;f<s;f++){var p=r[u+f],g=i[u+f],m=r[u+f+s],w=i[u+f+s],y=d*m-h*w;w=d*w+h*m,m=y,r[u+f]=p+m,i[u+f]=g+w,r[u+f+s]=p-m,i[u+f+s]=g-w,f!==a&&(y=l*d-c*h,h=l*h+c*d,d=y)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},y.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=67108863&n,r=n<67108864?0:n/67108864|0}return e},y.prototype.convert13b=function(e,t,r,n){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<n;++s)r[s]=0;i(0===o),i((-8192&o)==0)},y.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),o=this.stub(i),s=Array(i),a=Array(i),l=Array(i),c=Array(i),u=Array(i),d=Array(i),h=r.words;h.length=i,this.convert13b(e.words,e.length,s,i),this.convert13b(t.words,t.length,c,i),this.transform(s,o,a,l,i,n),this.transform(c,o,u,d,i,n);for(var f=0;f<i;f++){var p=a[f]*u[f]-l[f]*d[f];l[f]=a[f]*d[f]+l[f]*u[f],a[f]=p}return this.conjugate(a,l,i),this.transform(a,l,h,o,i,n),this.conjugate(h,o,i),this.normalize13b(h,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),w(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){i("number"==typeof e),i(e<67108864);for(var t=0,r=0;r<this.length;r++){var n=(0|this.words[r])*e,o=(67108863&n)+(67108863&t);t>>=26,t+=(n/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=f(e);
vendor: 17,963 bytes, line 2
2if(0===t.length)return new o(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},o.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,l=(0|this.words[t])-a<<r;this.words[t]=l|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},o.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){i("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var n,o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,l=r;if(n-=s,n=Math.max(0,n),l){for(var c=0;c<s;c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&a}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},o.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(i("number"==typeof e),i(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var n,o,s=e.length+r;this._expand(s);var a=0;for(n=0;n<e.length;n++){o=(0|this.words[n+r])+a;var l=(0|e.words[n])*t;o-=67108863&l,a=(o>>26)-(l/67108864|0),this.words[n+r]=67108863&o}for(;n<this.length-r;n++)a=(o=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&o;if(0===a)return this.strip();for(i(-1===a),a=0,n=0;n<this.length;n++)a=(o=-(0|this.words[n])+a)>>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,a=0|s.words[s.length-1];0!=(i=26-this._countBits(a))&&(s=s.ushln(i),n.iushln(i),a=0|s.words[s.length-1]);var l=n.length-s.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=n.clone()._ishlnsubmul(s,1,l);0===u.negative&&(n=u,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|n.words[s.length+d])*67108864+(0|n.words[s.length+d-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(s,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(s,1,d),n.isZero()||(n.negative^=1);r&&(r.words[d]=h)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},o.prototype.divmod=function(e,t,r){var n,s,a;return(i(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(n=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(n=a.div.neg()),{div:n,mod:a.mod}):(this.negative&e.negative)!=0?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),o=r.cmp(i);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},o.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),s=new o(0),a=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(u),s.isub(d)),n.iushrn(1),s.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(u),l.isub(d)),a.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(a),s.isub(l)):(r.isub(t),a.isub(n),l.isub(s))}return{a:a,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new o(1),a=new o(0),l=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;(r.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var d=0,h=1;(n.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(a)):(n.isub(r),a.isub(s))}return 0>(t=0===r.cmpn(1)?s:a).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var o=t;t=r,r=o}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var o=n,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){i<n?t=-1:i>n&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},n(_,v),_.prototype.split=function(e,t){for(var r=4194303,i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var o=e.words[9];for(n=10,t.words[t.length++]=o&r;n<e.length;n++){var s=0|e.words[n];e.words[n-10]=(s&r)<<4|o>>>22,o=s}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(x,v),n(E,v),n(C,v),C.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+t,n=67108863&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(b[e])return b[e];if("k256"===e)t=new _;else if("p224"===e)t=new x;else if("p192"===e)t=new E;else if("p25519"===e)t=new C;else throw Error("Unknown prime "+e);return b[e]=t,t},k.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var a=new o(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),f=this.pow(e,n),p=s;0!==f.cmp(a);){for(var g=f,m=0;0!==g.cmp(a);m++)g=g.redSqr();i(m<p);var w=this.pow(d,new o(1).iushln(p-m-1));h=h.redMul(w),d=w.redSqr(),f=f.redMul(d),p=m}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,i=Array(16);i[0]=new o(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var s=i[0],a=0,l=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],d=c-1;d>=0;d--){var h=u>>d&1;if(s!==i[0]&&(s=this.sqr(s)),0===h&&0===a){l=0;continue}a<<=1,a|=h,(++l===r||0===n&&0===d)&&(s=this.mul(s,i[a]),l=0,a=0)}c=26}return s},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},n(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},8878:function(e){"use strict";e.exports=function(e){for(var t=[],r=e.length,i=0;i<r;i++){var n=e.charCodeAt(i);if(n>=55296&&n<=56319&&r>i+1){var o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(n=(n-55296)*1024+o-56320+65536,i+=1)}if(n<128){t.push(n);continue}if(n<2048){t.push(n>>6|192),t.push(63&n|128);continue}if(n<55296||n>=57344&&n<65536){t.push(n>>
212|224),t.push(n>>6&63|128),t.push(63&n|128);continue}if(n>=65536&&n<=1114111){t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},32462:function(e,t,r){var i=r(25566),n=r(32251),o=function(){},s=function(e){return e.setHeader&&"function"==typeof e.abort},a=function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},l=function(e,t,r){if("function"==typeof t)return l(e,null,t);t||(t={}),r=n(r||o);var c=e._writableState,u=e._readableState,d=t.readable||!1!==t.readable&&e.readable,h=t.writable||!1!==t.writable&&e.writable,f=!1,p=function(){e.writable||g()},g=function(){h=!1,d||r.call(e)},m=function(){d=!1,h||r.call(e)},w=function(t){r.call(e,t?Error("exited with error code: "+t):null)},y=function(t){r.call(e,t)},b=function(){i.nextTick(v)},v=function(){if(!f&&(d&&!(u&&u.ended&&!u.destroyed)||h&&!(c&&c.ended&&!c.destroyed)))return r.call(e,Error("premature close"))},_=function(){e.req.on("finish",g)};return s(e)?(e.on("complete",g),e.on("abort",b),e.req?_():e.on("request",_)):h&&!c&&(e.on("end",p),e.on("close",p)),a(e)&&e.on("exit",w),e.on("end",m),e.on("finish",g),!1!==t.error&&e.on("error",y),e.on("close",b),function(){f=!0,e.removeListener("complete",g),e.removeListener("abort",b),e.removeListener("request",_),e.req&&e.req.removeListener("finish",g),e.removeListener("end",p),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("exit",w),e.removeListener("end",m),e.removeListener("error",y),e.removeListener("close",b)}};e.exports=l},10816:function(e,t,r){"use strict";var i=r(50071)("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch(e){i=!1}e.exports=i},12107:function(e){"use strict";e.exports=EvalError},22016:function(e){"use strict";e.exports=Error},2706:function(e){"use strict";e.exports=RangeError},926:function(e){"use strict";e.exports=ReferenceError},5014:function(e){"use strict";e.exports=SyntaxError},53842:function(e){"use strict";e.exports=TypeError},34662:function(e){"use strict";e.exports=URIError},77625:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function i(){}function n(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,i,o,s){if("function"!=typeof i)throw TypeError("The listener must be a function");var a=new n(i,o||e,s),l=r?r+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],a]:e._events[l].push(a):(e._events[l]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1)),a.prototype.eventNames=function(){var e,i,n=[];if(0===this._eventsCount)return n;for(i in e=this._events)t.call(e,i)&&n.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},a.prototype.listeners=function(e){var t=r?r+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,o=i.length,s=Array(o);n<o;n++)s[n]=i[n].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,i=this._events[t];return i?i.fn?1:i.length:0},a.prototype.emit=function(e,t,i,n,o,s){var a=r?r+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,i),!0;case 4:return u.fn.call(u.context,t,i,n),!0;case 5:return u.fn.call(u.context,t,i,n,o),!0;case 6:return u.fn.call(u.context,t,i,n,o,s),!0}for(c=1,l=Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,i);break;case 4:u[c].fn.call(u[c].context,t,i,n);break;default:if(!l)for(h=1,l=Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},a.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,i,n){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||n&&!a.once||i&&a.context!==i||s(this,o);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||n&&!a[l].once||i&&a[l].context!==i)&&c.push(a[l]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},55445:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function n(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}
2function u(e,t,r,i){if(l(r),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),a=s[t]),void 0===a)a=s[t]=r,++e._eventsCount;else if("function"==typeof a?a=s[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var o,s,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,n(u)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=d.bind(i);return n.listener=r,i.wrapFn=n,n}function f(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?w(n):g(n,n.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=Array(t),i=0;i<t;++i)r[i]=e[i];return r}function m(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function w(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function y(e,t){return new Promise(function(r,i){function n(r){e.removeListener(t,o),i(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&b(e,n,{once:!0})})}function b(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}function v(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function n(o){i.once&&e.removeEventListener(t,n),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
2,set:function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else for(var c=l.length,u=g(l,c),r=0;r<c;++r)i(u[r],this,t);return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,i,n,o,s;if(l(t),void 0===(i=this._events)||void 0===(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(n=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,n=o;break}if(n<0)return this;0===n?r.shift():m(r,n),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},71107:function(e){e.exports=s,s.default=s,s.stable=u,s.stableStringify=u;var t="[...]",r="[Circular]",i=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,r,s){void 0===s&&(s=o()),l(e,"",0,[],void 0,0,s);try{a=0===n.length?JSON.stringify(e,t,r):JSON.stringify(e,h(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var a,c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return a}function a(e,t,r,o){var s=Object.getOwnPropertyDescriptor(o,r);void 0!==s.get?s.configurable?(Object.defineProperty(o,r,{value:e}),i.push([o,r,t,s])):n.push([t,r,e]):(o[r]=e,i.push([o,r,t]))}function l(e,i,n,o,s,c,u){if(c+=1,"object"==typeof e&&null!==e){for(d=0;d<o.length;d++)if(o[d]===e){a(r,e,i,s);return}if(void 0!==u.depthLimit&&c>u.depthLimit||void 0!==u.edgesLimit&&n+1>u.edgesLimit){a(t,e,i,s);return}if(o.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,o,e,c,u);else{var d,h=Object.keys(e);for(d=0;d<h.length;d++){var f=h[d];l(e[f],f,d,o,e,c,u)}}o.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function u(e,t,r,s){void 0===s&&(s=o());var a,l=d(e,"",0,[],void 0,0,s)||e;try{a=0===n.length?JSON.stringify(l,t,r):JSON.stringify(l,h(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return a}function d(e,n,o,s,l,u,h){if(u+=1,"object"==typeof e&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e){a(r,e,n,l);return}try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==h.depthLimit&&u>h.depthLimit||void 0!==h.edgesLimit&&o+1>h.edgesLimit){a(t,e,n,l);return}if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)d(e[f],f,f,s,e,u,h);else{var f,p={},g=Object.keys(e).sort(c);for(f=0;f<g.length;f++){var m=g[f];d(e[m],m,f,s,e,u,h),p[m]=e[m]}if(void 0===l)return p;i.push([l,n,e]),l[n]=p}s.pop()}}function h(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(n.length>0)for(var i=0;i<n.length;i++){var o=n[i];if(o[1]===t&&o[0]===r){r=o[2],n.splice(i,1);break}}return e.call(this,t,r)}}},90883:function(e){"use strict";e.exports=function(e,t){for(var r={},i=Object.keys(e),n=Array.isArray(t),o=0;o<i.length;o++){var s=i[o],a=e[s];(n?-1!==t.indexOf(s):t(s,a,e))&&(r[s]=a)}return r}},27660:function(e,t,r){"use strict";var i=r(52262),n=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var i=0,n=e.length;i<n;i++)o.call(e,i)&&(null==r?t(e[i],i,e):t.call(r,e[i],i,e))},a=function(e,t,r){for(var i=0,n=e.length;i<n;i++)null==r?t(e.charAt(i),i,e):t.call(r,e.charAt(i),i,e)},l=function(e,t,r){for(var i in e)o.call(e,i)&&(null==r?t(e[i],i,e):t.call(r,e[i],i,e))},c=function(e,t,r){var o;if(!i(t))throw TypeError("iterator must be a function");arguments.length>=3&&(o=r),"[object Array]"===n.call(e)?s(e,t,o):"string"==typeof e?a(e,t,o):l(e,t,o)};e.exports=c},98595:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,i=Math.max,n="[object Function]",o=function(e,t){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},s=function(e,t){for(var r=[],i=t||0,n=0;i<e.length;i+=1,n+=1)r[n]=e[i];return r},a=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};e.exports=function(e){var l,c=this;if("function"!=typeof c||r.apply(c)!==n)throw TypeError(t+c);
vendor: 2,405 bytes, line 2
2for(var u=s(arguments,1),d=function(){if(this instanceof l){var t=c.apply(this,o(u,arguments));return Object(t)===t?t:this}return c.apply(e,o(u,arguments))},h=i(0,c.length-u.length),f=[],p=0;p<h;p++)f[p]="$"+p;if(l=Function("binder","return function ("+a(f,",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var g=function(){};g.prototype=c.prototype,l.prototype=new g,g.prototype=null}return l}},92517:function(e,t,r){"use strict";var i=r(98595);e.exports=Function.prototype.bind||i},50071:function(e,t,r){"use strict";var i,n=r(22016),o=r(12107),s=r(2706),a=r(926),l=r(5014),c=r(53842),u=r(34662),d=Function,h=function(e){try{return d('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var p=function(){throw new c},g=f?function(){try{return arguments.callee,p}catch(e){try{return f(arguments,"callee").get}catch(e){return p}}}():p,m=r(35222)(),w=r(70551)(),y=Object.getPrototypeOf||(w?function(e){return e.__proto__}:null),b={},v="undefined"!=typeof Uint8Array&&y?y(Uint8Array):i,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":m&&y?y([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":m&&y?y(y([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&y?y(new Map()[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&y?y(new Set()[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&y?y(""[Symbol.iterator]()):i,"%Symbol%":m?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":v,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));_["%Error.prototype%"]=x}var E=function e(t){var r;if("%AsyncFunction%"===t)r=h("async function () {}");else if("%GeneratorFunction%"===t)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=h("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&y&&(r=y(n.prototype))}return _[t]=r,r},C={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=r(92517),S=r(2575),A=k.call(Function.call,Array.prototype.concat),I=k.call(Function.apply,Array.prototype.splice),T=k.call(Function.call,String.prototype.replace),R=k.call(Function.call,String.prototype.slice),O=k.
2call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,M=function(e){var t=R(e,0,1),r=R(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return T(e,P,function(e,t,r,n){i[i.length]=r?T(n,N,"$1"):t||e}),i},D=function(e,t){var r,i=e;if(S(C,i)&&(i="%"+(r=C[i])[0]+"%"),S(_,i)){var n=_[i];if(n===b&&(n=E(i)),void 0===n&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=M(e),i=r.length>0?r[0]:"",n=D("%"+i+"%",t),o=n.name,s=n.value,a=!1,u=n.alias;u&&(i=u[0],I(r,A([0,1],u)));for(var d=1,h=!0;d<r.length;d+=1){var p=r[d],g=R(p,0,1),m=R(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&h||(a=!0),i+="."+p,S(_,o="%"+i+"%"))s=_[o];else if(null!=s){if(!(p in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&d+1>=r.length){var w=f(s,p);s=(h=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:s[p]}else h=S(s,p),s=s[p];h&&!a&&(_[o]=s)}}return s}},50297:function(e,t,r){"use strict";var i=r(50071)("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},40927:function(e,t,r){"use strict";var i=r(10816),n=function(){return!!i};n.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=n},70551:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},35222:function(e,t,r){"use strict";var i="undefined"!=typeof Symbol&&Symbol,n=r(38056);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},38056:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var i=42;for(t in e[t]=i,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||!0!==o.enumerable)return!1}return!0}},50212:function(e,t,r){"use strict";var i=r(38056);e.exports=function(){return i()&&!!Symbol.toStringTag}},28714:function(e,t,r){var i=t;i.utils=r(20015),i.common=r(49351),i.sha=r(87647),i.ripemd=r(47826),i.hmac=r(53765),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},49351:function(e,t,r){"use strict";var i=r(20015),n=r(73045);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,i=Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(o=8,i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0;o<this.padLength;o++)i[n++]=0;return i}},53765:function(e,t,r){"use strict";var i=r(20015),n=r(73045);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},47826:function(e,t,r){"use strict";var i=r(20015),n=r(49351),o=i.rotl32,s=i.sum32,a=i.sum32_3,l=i.sum32_4,c=n.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~
vendor: 7,334 bytes, line 2
2i:t^(r|~i)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}i.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],i=this.h[1],n=this.h[2],c=this.h[3],u=this.h[4],y=r,b=i,v=n,_=c,x=u,E=0;E<80;E++){var C=s(o(l(r,d(E,i,n,c),e[p[E]+t],h(E)),m[E]),u);r=u,u=c,c=o(n,10),n=i,i=C,C=s(o(l(y,d(79-E,b,v,_),e[g[E]+t],f(E)),w[E]),x),y=x,x=_,_=o(v,10),v=b,b=C}C=a(this.h[1],n,_),this.h[1]=a(this.h[2],c,x),this.h[2]=a(this.h[3],u,y),this.h[3]=a(this.h[4],r,b),this.h[4]=a(this.h[0],i,v),this.h[0]=C},u.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},87647:function(e,t,r){"use strict";t.sha1=r(4684),t.sha224=r(45261),t.sha256=r(17795),t.sha384=r(84182),t.sha512=r(54358)},4684:function(e,t,r){"use strict";var i=r(20015),n=r(49351),o=r(31964),s=i.rotl32,a=i.sum32,l=i.sum32_5,c=o.ft_1,u=n.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}i.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=s(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],o=this.h[1],u=this.h[2],h=this.h[3],f=this.h[4];for(i=0;i<r.length;i++){var p=~~(i/20),g=l(s(n,5),c(p,o,u,h),f,r[i],d[p]);f=h,h=u,u=s(o,30),o=n,n=g}this.h[0]=a(this.h[0],n),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],u),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],f)},h.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},45261:function(e,t,r){"use strict";var i=r(20015),n=r(17795);function o(){if(!(this instanceof o))return new o;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(o,n),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},17795:function(e,t,r){"use strict";var i=r(20015),n=r(49351),o=r(31964),s=r(73045),a=i.sum32,l=i.sum32_4,c=i.sum32_5,u=o.ch32,d=o.maj32,h=o.s0_256,f=o.s1_256,p=o.g0_256,g=o.g1_256,m=n.BlockHash,w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=Array(64)}i.inherits(y,m),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=l(g(r[i-2]),r[i-7],p(r[i-15]),r[i-16]);var n=this.h[0],o=this.h[1],m=this.h[2],w=this.h[3],y=this.h[4],b=this.h[5],v=this.h[6],_=this.h[7];for(s(this.k.length===r.length),i=0;i<r.length;i++){var x=c(_,f(y),u(y,b,v),this.k[i],r[i]),E=a(h(n),d(n,o,m));_=v,v=b,b=y,y=a(w,x),w=m,m=o,o=n,n=a(x,E)}this.h[0]=a(this.h[0],n),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],w),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],b),this.h[6]=a(this.h[6],v),this.h[7]=a(this.h[7],_)},y.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},84182:function(e,t,r){"use strict";var i=r(20015),n=r(54358);function o(){if(!(this instanceof o))return new o;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(o,n),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},54358:function(e,t,r){"use strict";var i=r(20015),n=r(49351),o=r(73045),s=i.rotr64_hi,a=i.rotr64_lo,l=i.shr64_hi,c=i.shr64_lo,u=i.sum64,d=i.sum64_hi,h=i.sum64_lo,f=i.sum64_4_hi,p=i.sum64_4_lo,g=i.sum64_5_hi,m=i.sum64_5_lo,w=n.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=Array(160)}function v(e,t,r,i,n){var o=e&r^~e&n;return o<0&&(o+=4294967296),o}function _(e,t,r,i,n,o){var s=t&i^~t&o;return s<0&&(s+=4294967296),s}function x(e,t,r,i,n){var o=e&r^e&n^r&n;return o<0&&(o+=4294967296),o}function E(e,t,r,i,n,o){var s=t&i^t&o^i&o;return s<0&&(s+=4294967296),s}function C(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function k(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function I(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function R(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function O(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}i.inherits(b,w),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){var n=R(r[i-4],r[i-3]),o=O(r[i-4],r[i-3]),s=r[i-14],a=r[i-13],l=I(r[i-30],r[i-29]),c=T(r[i-30],r[i-29]),u=r[i-32],d=r[i-31];r[i]=f(n,o,s,a,l,c,u,d),r[i+1]=p(n,o,s,a,l,c,u,d)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,i=this.h[0],n=this.h[1],s=this.h[2],a=this.h[3],l=this.h[4],c=this.h[5],f=this.h[6],p=this.h[7],w=this.h[8],y=this.h[9],b=this.h[10],I=this.h[11],T=this.h[12],R=this.h[13],O=this.h[14],P=this.h[15];o(this.k.length===r.length);for(var N=0;N<r.length;N+=2){var M=O,D=P,L=S(w,y),j=A(w,y),B=v(w,y,b,I,T,R),$=_(w,y,b,I,T,R),U=this.k[N],F=this.k[N+1],z=r[N],q=r[N+1],W=g(M,D,L,j,B,$,U,F,z,q),H=m(M,D,L,j,B,$,U,F,z,q);M=C(i,n);var V=d(M,D=k(i,n),L=x(i,n,s,a,l,c),j=E(i,n,s,a,l,c)),Z=h(M,D,L,j);O=T,P=R,T=b,R=I,b=w,I=y,w=d(f,p,W,H),y=h(p,p,W,H),f=l,p=c,l=s,c=a,s=i,a=n,i=d(W,H,V,Z),n=h(W,H,V,Z)}u(this.h,0,i,n),u(this.h,2,s,a),u(this.h,4,l,c),u(this.h,6,f,p),u(this.h,8,w,y),u(this.h,10,b,I),u(this.h,12,T,R),u(this.h,14,O,P)},b.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},31964:function(e,t,r){"use strict";var i=r(20015).rotr32;function n(e,t,r,i){return 0===e?o(t,r,i):1===e||3===e?a(t,r,i):2===e?s(t,r,i):void 0}function o(e,t,r){return e&t^~e&r}function s(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}function l(e){return i(e,2)^i(e,13)^i(e,22)}function c(e){return i(e,6)^i(e,11)^i(e,25)}function u(e){return i(e,7)^i(e,18)^e>>>3}function d(e){return i(e,17)^i(e,19)^e>>>10}t.ft_1=n,t.ch32=o,t.maj32=s,t.p32=a,t.s0_256=l,t.s1_256=c,t.g0_256=u,t.g1_256=d},20015:function(e,t,r){"use strict";var i=r(73045),n=r(56853);function o(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function s(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var i=0,n=0;n<e.length;n++){var s=e.charCodeAt(n);s<128?r[i++]=s:(s<2048?r[i++]=s>>6|192:(o(e,n)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++n)),r[i++]=s>>18|240,r[i++]=s>>12&63|128):r[i++]=s>>12|224,r[i++]=s>>6&63|128),r[i++]=63&s|128)}}else for(n=0;n<e.length;n++)r[n]=0|e[n];return r}function a(e){for(var t="",r=0;r<e.length;r++)t+=u(e[r].toString(16));return t}function l(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function c(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];"little"===t&&(n=l(n)),r+=d(n.toString(16))}return r}function u(e){return 1===e.length?"0"+e:e}function d(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}function h(e,t,r,n){var o,s=r-t;i(s%4==0);for(var a=Array(s/4),l=0,c=t;l<a.length;l++,c+=4)o="big"===n?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],a[l]=o>>>0;return a}function f(e,t){for(var r=Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var o=e[i];"big"===t?(r[n]=o>>>24,r[n+1]=o>>>16&255,r[n+2]=o>>>8&255,r[n+3]=255&o):(r[n+3]=o>>>24,r[n+2]=o>>>16&255,r[n+1]=o>>>8&255,r[n]=255&o)}return r}function p(e,t){return e>>>t|e<<32-t}function g(e,t){return e<<t|e>>>32-t}function m(e,t){return e+t>>>0}function w(e,t,r){return e+t+r>>>0}function y(e,t,r,i){return e+t+r+i>>>0}function b(e,t,r,i,n){return e+t+r+i+n>>>0}
2function v(e,t,r,i){var n=e[t],o=i+e[t+1]>>>0,s=(o<i?1:0)+r+n;e[t]=s>>>0,e[t+1]=o}function _(e,t,r,i){return(t+i>>>0<t?1:0)+e+r>>>0}function x(e,t,r,i){return t+i>>>0}function E(e,t,r,i,n,o,s,a){var l,c=t;return e+r+n+s+(l=0+((c=c+i>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+a>>>0)<a?1:0))>>>0}function C(e,t,r,i,n,o,s,a){return t+i+o+a>>>0}function k(e,t,r,i,n,o,s,a,l,c){var u,d=t;return e+r+n+s+l+(u=0+((d=d+i>>>0)<t?1:0)+((d=d+o>>>0)<o?1:0)+((d=d+a>>>0)<a?1:0)+((d=d+c>>>0)<c?1:0))>>>0}function S(e,t,r,i,n,o,s,a,l,c){return t+i+o+a+c>>>0}function A(e,t,r){return(t<<32-r|e>>>r)>>>0}function I(e,t,r){return(e<<32-r|t>>>r)>>>0}function T(e,t,r){return e>>>r}function R(e,t,r){return(e<<32-r|t>>>r)>>>0}t.inherits=n,t.toArray=s,t.toHex=a,t.htonl=l,t.toHex32=c,t.zero2=u,t.zero8=d,t.join32=h,t.split32=f,t.rotr32=p,t.rotl32=g,t.sum32=m,t.sum32_3=w,t.sum32_4=y,t.sum32_5=b,t.sum64=v,t.sum64_hi=_,t.sum64_lo=x,t.sum64_4_hi=E,t.sum64_4_lo=C,t.sum64_5_hi=k,t.sum64_5_lo=S,t.rotr64_hi=A,t.rotr64_lo=I,t.shr64_hi=T,t.shr64_lo=R},2575:function(e,t,r){"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=r(92517);e.exports=o.call(i,n)},28072:function(e,t,r){"use strict";var i=r(28714),n=r(83742),o=r(73045);function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=s,s.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,r,i){"string"!=typeof t&&(i=r,r=t,t=null),e=n.toArray(e,t),r=n.toArray(r,i),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(r),this._reseed++,n.encode(s,t)}},68848:function(e,t){t.read=function(e,t,r,i,n){var o,s,a=8*n-i-1,l=(1<<a)-1,c=l>>1,u=-7,d=r?n-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=c}return(f?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,r,i,n,o){var s,a,l,c=8*o-n-1,u=(1<<c)-1,d=u>>1,h=23===n?5960464477539062e-23:0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,n),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;e[r+f]=255&a,f+=p,a/=256,n-=8);for(s=s<<n|a,c+=n;c>0;e[r+f]=255&s,f+=p,s/=256,c-=8);e[r+f-p]|=128*g}},56853:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},23722:function(e,t,r){"use strict";var i=r(50212)(),n=r(23837)("Object.prototype.toString"),o=function(e){return(!i||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===n(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==n(e)&&"[object Function]"===n(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},52262:function(e){"use strict";var t,r,i=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},n(function(){throw 42},null,t)}catch(e){e!==r&&(n=null)}else n=null;var o=/^\s*class\b/,s=function(e){try{var t=i.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{if(s(e))return!1;return i.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,c="[object Object]",u="[object Function]",d="[object GeneratorFunction]",h="[object HTMLAllCollection]",f="[object HTML document.all class]",p="[object HTMLCollection]",g="function"==typeof Symbol&&!!Symbol.toStringTag,m=!(0 in[,]),w=function(){return!1};if("object"==typeof document){var y=document.all;l.call(y)===l.call(document.all)&&(w=function(e){if((m||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return(t===h||t===f||t===p||t===c)&&null==e("")}catch(e){}return!1})}
2e.exports=n?function(e){if(w(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{n(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)&&a(e)}:function(e){if(w(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(g)return a(e);if(s(e))return!1;var t=l.call(e);return!!(t===u||t===d||/^\[object HTML/.test(t))&&a(e)}},80184:function(e,t,r){"use strict";var i,n=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=r(50212)(),l=Object.getPrototypeOf,c=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}};e.exports=function(e){if("function"!=typeof e)return!1;if(s.test(o.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===n.call(e);if(!l)return!1;if(void 0===i){var t=c();i=!!t&&l(t)}return l(e)===i}},87688:function(e,t,r){"use strict";var i=r(93790);e.exports=function(e){return!!i(e)}},96065:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},23883:function(e,t,r){var i,n=r(25566);!function(){"use strict";var o="input is invalid type",s="finalize already called",a="object"==typeof window,l=a?window:{};l.JS_SHA3_NO_WINDOW&&(a=!1);var c=!a&&"object"==typeof self;!l.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?l=r.g:c&&(l=self);var u=!l.JS_SHA3_NO_COMMON_JS&&e.exports,d=r.amdO,h=!l.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,f="0123456789abcdef".split(""),p=[31,7936,2031616,520093696],g=[4,1024,262144,67108864],m=[1,256,65536,16777216],w=[6,1536,393216,100663296],y=[0,8,16,24],b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],v=[224,256,384,512],_=[128,256],x=["hex","buffer","arrayBuffer","array","digest"],E={128:168,256:136};(l.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),h&&(l.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var C=function(e,t,r){return function(i){return new $(e,t,e).update(i)[r]()}},k=function(e,t,r){return function(i,n){return new $(e,t,n).update(i)[r]()}},S=function(e,t,r){return function(t,i,n,o){return O["cshake"+e].update(t,i,n,o)[r]()}},A=function(e,t,r){return function(t,i,n,o){return O["kmac"+e].update(t,i,n,o)[r]()}},I=function(e,t,r,i){for(var n=0;n<x.length;++n){var o=x[n];e[o]=t(r,i,o)}return e},T=function(e,t){var r=C(e,t,"hex");return r.create=function(){return new $(e,t,e)},r.update=function(e){return r.create().update(e)},I(r,C,e,t)},R=[{name:"keccak",padding:m,bits:v,createMethod:T},{name:"sha3",padding:w,bits:v,createMethod:T},{name:"shake",padding:p,bits:_,createMethod:function(e,t){var r=k(e,t,"hex");return r.create=function(r){return new $(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},I(r,k,e,t)}},{name:"cshake",padding:g,bits:_,createMethod:function(e,t){var r=E[e],i=S(e,t,"hex");return i.create=function(i,n,o){return n||o?new $(e,t,i).bytepad([n,o],r):O["shake"+e].create(i)},i.update=function(e,t,r,n){return i.create(t,r,n).update(e)},I(i,S,e,t)}},{name:"kmac",padding:g,bits:_,createMethod:function(e,t){var r=E[e],i=A(e,t,"hex");return i.create=function(i,n,o){return new U(e,t,n).bytepad(["KMAC",o],r).bytepad([i],r)},i.update=function(e,t,r,n){return i.create(e,r,n).update(t)},I(i,A,e,t)}}],O={},P=[],N=0;N<R.length;++N)for(var M=R[N],D=M.bits,L=0;L<D.length;++L){var j=M.name+"_"+D[L];if(P.push(j),O[j]=M.createMethod(D[L],M.padding),"sha3"!==M.name){var B=M.name+D[L];P.push(B),O[B]=O[j]}}function $(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function U(e,t,r){$.call(this,e,t,r)}$.prototype.update=function(e){if(this.finalized)throw Error(s);var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);
2if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!h||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);t=!0}for(var i,n,a=this.blocks,l=this.byteCount,c=e.length,u=this.blockCount,d=0,f=this.s;d<c;){if(this.reset)for(i=1,this.reset=!1,a[0]=this.block;i<u+1;++i)a[i]=0;if(t)for(i=this.start;d<c&&i<l;++d)a[i>>2]|=e[d]<<y[3&i++];else for(i=this.start;d<c&&i<l;++d)(n=e.charCodeAt(d))<128?a[i>>2]|=n<<y[3&i++]:(n<2048?a[i>>2]|=(192|n>>6)<<y[3&i++]:(n<55296||n>=57344?a[i>>2]|=(224|n>>12)<<y[3&i++]:(n=65536+((1023&n)<<10|1023&e.charCodeAt(++d)),a[i>>2]|=(240|n>>18)<<y[3&i++],a[i>>2]|=(128|n>>12&63)<<y[3&i++]),a[i>>2]|=(128|n>>6&63)<<y[3&i++]),a[i>>2]|=(128|63&n)<<y[3&i++]);if(this.lastByteIndex=i,i>=l){for(this.start=i-l,this.block=a[u],i=0;i<u;++i)f[i]^=a[i];F(f),this.reset=!0}else this.start=i}return this},$.prototype.encode=function(e,t){var r=255&e,i=1,n=[r];for(e>>=8,r=255&e;r>0;)n.unshift(r),e>>=8,r=255&e,++i;return t?n.push(i):n.unshift(i),this.update(n),n.length},$.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(o);if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!h||!ArrayBuffer.isView(e)))throw Error(o)}else throw Error(o);t=!0}var i=0,n=e.length;if(t)i=n;else for(var s=0;s<e.length;++s){var a=e.charCodeAt(s);a<128?i+=1:a<2048?i+=2:a<55296||a>=57344?i+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(e),i},$.prototype.bytepad=function(e,t){for(var r=this.encode(t),i=0;i<e.length;++i)r+=this.encodeString(e[i]);var n=t-r%t,o=[];return o.length=n,this.update(o),this},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,i=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)i[t]^=e[t];F(i)}},$.prototype.toString=$.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,a="";s<i;){for(o=0;o<t&&s<i;++o,++s)a+=f[(e=r[o])>>4&15]+f[15&e]+f[e>>12&15]+f[e>>8&15]+f[e>>20&15]+f[e>>16&15]+f[e>>28&15]+f[e>>24&15];s%t==0&&(F(r),o=0)}return n&&(a+=f[(e=r[o])>>4&15]+f[15&e],n>1&&(a+=f[e>>12&15]+f[e>>8&15]),n>2&&(a+=f[e>>20&15]+f[e>>16&15])),a},$.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,o=0,s=0,a=this.outputBits>>3,l=new Uint32Array(e=new ArrayBuffer(n?i+1<<2:a));s<i;){for(o=0;o<t&&s<i;++o,++s)l[s]=r[o];s%t==0&&F(r)}return n&&(l[o]=r[o],e=e.slice(0,a)),e},$.prototype.buffer=$.prototype.arrayBuffer,$.prototype.digest=$.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,i=this.s,n=this.outputBlocks,o=this.extraBytes,s=0,a=0,l=[];a<n;){for(s=0;s<r&&a<n;++s,++a)e=a<<2,t=i[s],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;a%r==0&&F(i)}return o&&(e=a<<2,t=i[s],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},U.prototype=new $,U.prototype.finalize=function(){return this.encode(this.outputBits,!0),$.prototype.finalize.call(this)};var F=function(e){var t,r,i,n,o,s,a,l,c,u,d,h,f,p,g,m,w,y,v,_,x,E,C,k,S,A,I,T,R,O,P,N,M,D,L,j,B,$,U,F,z,q,W,H,V,Z,K,G,Y,J,Q,X,ee,et,er,ei,en,eo,es,ea,el,ec,eu;for(i=0;i<48;i+=2)n=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],f=e[9]^e[19]^e[29]^e[39]^e[49],t=h^(s<<1|a>>>31),r=f^(a<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=n^(l<<1|c>>>31),r=o^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(u<<1|d>>>31),r=a^(d<<1|u>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(h<<1|f>>>31),r=c^(f<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=u^(n<<1|o>>>31),r=d^(o<<1|n>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],g=e[1],Z=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,R=e[21]<<3|e[20]>>>29,ea=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,W=e[41]<<18|e[40]>>>14,D=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,w=e[12]<<12|e[13]>>>20,G=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,ec=e[42]<<2|e[43]>>>30,eu=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,y=e[25]<<11|e[24]>>>21,v=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Q=e[35]<<15|e[34]>>>17,N=e[45]<<29|e[44]>>>3,M=e[44]<<29|e[45]>>>3,k=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,ei=e[17]<<23|e[16]>>>9,en=e[16]<<23|e[17]>>>9,$=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,H=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,A=e[18]<<20|e[19]>>>12,I=e[19]<<20|e[18]>>>12,eo=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,C=e[49]<<14|e[48]>>>
218,e[0]=p^~m&y,e[1]=g^~w&v,e[10]=k^~A&T,e[11]=S^~I&R,e[20]=D^~j&$,e[21]=L^~B&U,e[30]=H^~Z&G,e[31]=V^~K&Y,e[40]=et^~ei&eo,e[41]=er^~en&es,e[2]=m^~y&_,e[3]=w^~v&x,e[12]=A^~T&O,e[13]=I^~R&P,e[22]=j^~$&F,e[23]=B^~U&z,e[32]=Z^~G&J,e[33]=K^~Y&Q,e[42]=ei^~eo&ea,e[43]=en^~es&el,e[4]=y^~_&E,e[5]=v^~x&C,e[14]=T^~O&N,e[15]=R^~P&M,e[24]=$^~F&q,e[25]=U^~z&W,e[34]=G^~J&X,e[35]=Y^~Q&ee,e[44]=eo^~ea&ec,e[45]=es^~el&eu,e[6]=_^~E&p,e[7]=x^~C&g,e[16]=O^~N&k,e[17]=P^~M&S,e[26]=F^~q&D,e[27]=z^~W&L,e[36]=J^~X&H,e[37]=Q^~ee&V,e[46]=ea^~ec&et,e[47]=el^~eu&er,e[8]=E^~p&m,e[9]=C^~g&w,e[18]=N^~k&A,e[19]=M^~S&I,e[28]=q^~D&j,e[29]=W^~L&B,e[38]=X^~H&Z,e[39]=ee^~V&K,e[48]=ec^~et&ei,e[49]=eu^~er&en,e[0]^=b[i],e[1]^=b[i+1]};if(u)e.exports=O;else{for(N=0;N<P.length;++N)l[P[N]]=O[P[N]];d&&void 0!==(i=(function(){return O}).call(t,r,t,e))&&(e.exports=i)}}()},7040:function(e){e.exports=t;function t(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,r=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return r%=t,r++}}},70018:function(e,t,r){"use strict";var i=("undefined"!=typeof JSON?JSON:r(28888)).stringify,n=r(96065),o=r(62122),s=r(72884),a=r(23837),l=a("Array.prototype.join"),c=a("Array.prototype.push"),u=function(e,t){for(var r="",i=0;i<e;i+=1)r+=t;return r},d=function(e,t,r){return r};e.exports=function(e){var t=arguments.length>1?arguments[1]:void 0,r=t&&t.space||"";"number"==typeof r&&(r=u(r," "));var a=!!t&&"boolean"==typeof t.cycles&&t.cycles,h=t&&t.replacer?s(t.replacer):d,f="function"==typeof t?t:t&&t.cmp,p=f&&function(e){var t=f.length>2&&function(t){return e[t]};return function(r,i){return f({key:r,value:e[r]},{key:i,value:e[i]},t?{__proto__:null,get:t}:void 0)}},g=[];return function e(t,s,d,f){var m=r?"\n"+u(f,r):"",w=r?": ":":";if(d&&d.toJSON&&"function"==typeof d.toJSON&&(d=d.toJSON()),void 0!==(d=h(t,s,d))){if("object"!=typeof d||null===d)return i(d);if(n(d)){for(var y=[],b=0;b<d.length;b++){var v=e(d,b,d[b],f+1)||i(null);c(y,m+r+v)}return"["+l(y,",")+m+"]"}if(-1!==g.indexOf(d)){if(a)return i("__cycle__");throw TypeError("Converting circular structure to JSON")}c(g,d);for(var _=o(d).sort(p&&p(d)),y=[],b=0;b<_.length;b++){var s=_[b],x=e(d,s,d[s],f+1);if(x){var E=i(s)+w+x;c(y,m+r+E)}}return g.splice(g.indexOf(d),1),"{"+l(y,",")+m+"}"}}({"":e},"",e,0)}},28888:function(e,t,r){"use strict";t.parse=r(81370),t.stringify=r(57188)},81370:function(e){"use strict";var t,r,i,n={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function o(e){throw{name:"SyntaxError",message:e,at:t,text:i}}function s(e){return e&&e!==r&&o("Expected '"+e+"' instead of '"+r+"'"),r=i.charAt(t),t+=1,r}function a(){var e,t="";for("-"===r&&(t="-",s("-"));r>="0"&&r<="9";)t+=r,s();if("."===r)for(t+=".";s()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,s(),("-"===r||"+"===r)&&(t+=r,s());r>="0"&&r<="9";)t+=r,s();return isFinite(e=Number(t))||o("Bad number"),e}function l(){var e,t,i,a="";if('"'===r)for(;s();){if('"'===r)return s(),a;
2if("\\"===r){if(s(),"u"===r){for(t=0,i=0;t<4&&isFinite(e=parseInt(s(),16));t+=1)i=16*i+e;a+=String.fromCharCode(i)}else if("string"==typeof n[r])a+=n[r];else break}else a+=r}o("Bad string")}function c(){for(;r&&r<=" ";)s()}function u(){switch(r){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null;default:o("Unexpected '"+r+"'")}}function d(){var e=[];if("["===r){if(s("["),c(),"]"===r)return s("]"),e;for(;r;){if(e.push(f()),c(),"]"===r)return s("]"),e;s(","),c()}}o("Bad array")}function h(){var e,t={};if("{"===r){if(s("{"),c(),"}"===r)return s("}"),t;for(;r;){if(e=l(),c(),s(":"),Object.prototype.hasOwnProperty.call(t,e)&&o('Duplicate key "'+e+'"'),t[e]=f(),c(),"}"===r)return s("}"),t;s(","),c()}}o("Bad object")}function f(){switch(c(),r){case"{":return h();case"[":return d();case'"':return l();case"-":return a();default:return r>="0"&&r<="9"?a():u()}}e.exports=function(e,n){var s;return i=e,t=0,r=" ",s=f(),c(),r&&o("Syntax error"),"function"==typeof n?function e(t,r){var i,o,s=t[r];if(s&&"object"==typeof s)for(i in f)Object.prototype.hasOwnProperty.call(s,i)&&(void 0===(o=e(s,i))?delete s[i]:s[i]=o);return n.call(t,r,s)}({"":s},""):s}},57188:function(e){"use strict";var t,r,i,n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return n.lastIndex=0,n.test(e)?'"'+e.replace(n,function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function a(e,n){var o,l,c,u,d,h=t,f=n[e];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(e)),"function"==typeof i&&(f=i.call(n,e,f)),typeof f){case"string":return s(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(t+=r,d=[],"[object Array]"===Object.prototype.toString.apply(f)){for(o=0,u=f.length;o<u;o+=1)d[o]=a(o,f)||"null";return c=0===d.length?"[]":t?"[\n"+t+d.join(",\n"+t)+"\n"+h+"]":"["+d.join(",")+"]",t=h,c}if(i&&"object"==typeof i)for(o=0,u=i.length;o<u;o+=1)"string"==typeof(l=i[o])&&(c=a(l,f))&&d.push(s(l)+(t?": ":":")+c);else for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&(c=a(l,f))&&d.push(s(l)+(t?": ":":")+c);return c=0===d.length?"{}":t?"{\n"+t+d.join(",\n"+t)+"\n"+h+"}":"{"+d.join(",")+"}",t=h,c}}e.exports=function(e,n,o){var s;if(t="",r="","number"==typeof o)for(s=0;s<o;s+=1)r+=" ";else"string"==typeof o&&(r=o);if(i=n,n&&"function"!=typeof n&&("object"!=typeof n||"number"!=typeof n.length))throw Error("JSON.stringify");return a("",{"":e})}},39268:function(e,t,r){e.exports=r(18156)(r(50810))},18156:function(e,t,r){let i=r(20177),n=r(2557);e.exports=function(e){let t=i(e),r=n(e);return function(e,i){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw Error("Invald algorithm: "+e)}}}},20177:function(e,t,r){var i=r(82957).Buffer;let{Transform:n}=r(89654);e.exports=e=>class t extends n{constructor(t,r,i,n,o){super(o),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._hashBitLength=n,this._options=o,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let i=null;try{this.update(e,t)}catch(e){i=e}r(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}
2digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},2557:function(e,t,r){var i=r(82957).Buffer;let{Transform:n}=r(89654);e.exports=e=>class t extends n{constructor(t,r,i,n){super(n),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._options=n,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let i=null;try{this.update(e,t)}catch(e){i=e}r(i)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},79647:function(e,t){let r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){let i=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],f=d^(o<<1|s>>>31),p=h^(s<<1|o>>>31),g=e[0]^f,m=e[1]^p,w=e[10]^f,y=e[11]^p,b=e[20]^f,v=e[21]^p,_=e[30]^f,x=e[31]^p,E=e[40]^f,C=e[41]^p;f=i^(a<<1|l>>>31),p=n^(l<<1|a>>>31);let k=e[2]^f,S=e[3]^p,A=e[12]^f,I=e[13]^p,T=e[22]^f,R=e[23]^p,O=e[32]^f,P=e[33]^p,N=e[42]^f,M=e[43]^p;f=o^(c<<1|u>>>31),p=s^(u<<1|c>>>31);let D=e[4]^f,L=e[5]^p,j=e[14]^f,B=e[15]^p,$=e[24]^f,U=e[25]^p,F=e[34]^f,z=e[35]^p,q=e[44]^f,W=e[45]^p;f=a^(d<<1|h>>>31),p=l^(h<<1|d>>>31);let H=e[6]^f,V=e[7]^p,Z=e[16]^f,K=e[17]^p,G=e[26]^f,Y=e[27]^p,J=e[36]^f,Q=e[37]^p,X=e[46]^f,ee=e[47]^p;f=c^(i<<1|n>>>31),p=u^(n<<1|i>>>31);let et=e[8]^f,er=e[9]^p,ei=e[18]^f,en=e[19]^p,eo=e[28]^f,es=e[29]^p,ea=e[38]^f,el=e[39]^p,ec=e[48]^f,eu=e[49]^p,ed=g,eh=m,ef=y<<4|w>>>28,ep=w<<4|y>>>28,eg=b<<3|v>>>29,em=v<<3|b>>>29,ew=x<<9|_>>>23,ey=_<<9|x>>>23,eb=E<<18|C>>>14,ev=C<<18|E>>>14,e_=k<<1|S>>>31,ex=S<<1|k>>>31,eE=I<<12|A>>>20,eC=A<<12|I>>>20,ek=T<<10|R>>>22,eS=R<<10|T>>>22,eA=P<<13|O>>>19,eI=O<<13|P>>>19,eT=N<<2|M>>>30,eR=M<<2|N>>>30,eO=L<<30|D>>>2,eP=D<<30|L>>>2,eN=j<<6|B>>>26,eM=B<<6|j>>>26,eD=U<<11|$>>>21,eL=$<<11|U>>>21,ej=F<<15|z>>>17,eB=z<<15|F>>>17,e$=W<<29|q>>>3,eU=q<<29|W>>>3,eF=H<<28|V>>>4,ez=V<<28|H>>>4,eq=K<<23|Z>>>9,eW=Z<<23|K>>>9,eH=G<<25|Y>>>7,eV=Y<<25|G>>>7,eZ=J<<21|Q>>>11,eK=Q<<21|J>>>11,eG=ee<<24|X>>>8,eY=X<<24|ee>>>8,eJ=et<<27|er>>>5,eQ=er<<27|et>>>5,eX=ei<<20|en>>>12,e0=en<<20|ei>>>12,e1=es<<7|eo>>>25,e2=eo<<7|es>>>25,e3=ea<<8|el>>>24,e5=el<<8|ea>>>24,e4=ec<<14|eu>>>18,e6=eu<<14|ec>>>18;e[0]=ed^~eE&eD,e[1]=eh^~eC&eL,e[10]=eF^~eX&eg,e[11]=ez^~e0&em,e[20]=e_^~eN&eH,e[21]=ex^~eM&eV,e[30]=eJ^~ef&ek,e[31]=eQ^~ep&eS,e[40]=eO^~eq&e1,e[41]=eP^~eW&e2,e[2]=eE^~eD&eZ,e[3]=eC^~eL&eK,e[12]=eX^~eg&eA,e[13]=e0^~em&eI,e[22]=eN^~eH&e3,e[23]=eM^~eV&e5,e[32]=ef^~ek&ej,e[33]=ep^~eS&eB,e[42]=eq^~e1&ew,e[43]=eW^~e2&ey,e[4]=eD^~eZ&e4,e[5]=eL^~eK&e6,e[14]=eg^~eA&e$,e[15]=em^~eI&eU,e[24]=eH^~e3&eb,e[25]=eV^~e5&ev,e[34]=ek^~ej&eG,e[35]=eS^~eB&eY,e[44]=e1^~ew&eT,e[45]=e2^~ey&eR,e[6]=eZ^~e4&ed,e[7]=eK^~e6&eh,e[16]=eA^~e$&eF,e[17]=eI^~eU&ez,e[26]=e3^~eb&e_,e[27]=e5^~ev&ex,e[36]=ej^~eG&eJ,e[37]=eB^~eY&eQ,e[46]=ew^~eT&eO,e[47]=ey^~eR&eP,e[8]=e4^~ed&eE,e[9]=e6^~eh&eC,e[18]=e$^~eF&eX,e[19]=eU^~ez&e0,e[28]=eb^~e_&eN,e[29]=ev^~ex&eM,e[38]=eG^~eJ&ef,e[39]=eY^~eQ&ep,e[48]=eT^~eO&eq,e[49]=eR^~eP&eW,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},50810:function(e,t,r){var i=r(82957).Buffer;let n=r(79647);function o(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}o.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,(128&e)!=0&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},o.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=i.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return t},o.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=o},34357:function(e,t,r){e=r.nmd(e);var i=200,n="__lodash_hash_undefined__",o=9007199254740991,s="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",p="[object Number]",g="[object Object]",m="[object Promise]",w="[object RegExp]",y="[object Set]",b="[object String]",v="[object Symbol]",_="[object WeakMap]",x="[object ArrayBuffer]",E="[object DataView]",C="[object Float32Array]",k="[object Float64Array
2]",S="[object Int8Array]",A="[object Int16Array]",I="[object Int32Array]",T="[object Uint8Array]",R="[object Uint8ClampedArray]",O="[object Uint16Array]",P="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,M=/\w*$/,D=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,j={};j[s]=j[a]=j[x]=j[E]=j[l]=j[c]=j[C]=j[k]=j[S]=j[A]=j[I]=j[f]=j[p]=j[g]=j[w]=j[y]=j[b]=j[v]=j[T]=j[R]=j[O]=j[P]=!0,j[u]=j[d]=j[_]=!1;var B="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,$="object"==typeof self&&self&&self.Object===Object&&self,U=B||$||Function("return this")(),F=t&&!t.nodeType&&t,z=F&&e&&!e.nodeType&&e,q=z&&z.exports===F;function W(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function V(e,t){for(var r=-1,i=e?e.length:0;++r<i&&!1!==t(e[r],r,e););return e}function Z(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function K(e,t,r,i){var n=-1,o=e?e.length:0;for(i&&o&&(r=e[++n]);++n<o;)r=t(r,e[n],n,e);return r}function G(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function Y(e,t){return null==e?void 0:e[t]}function J(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Q(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function X(e,t){return function(r){return e(t(r))}}function ee(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var et=Array.prototype,er=Function.prototype,ei=Object.prototype,en=U["__core-js_shared__"],eo=function(){var e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),es=er.toString,ea=ei.hasOwnProperty,el=ei.toString,ec=RegExp("^"+es.call(ea).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eu=q?U.Buffer:void 0,ed=U.Symbol,eh=U.Uint8Array,ef=X(Object.getPrototypeOf,Object),ep=Object.create,eg=ei.propertyIsEnumerable,em=et.splice,ew=Object.getOwnPropertySymbols,ey=eu?eu.isBuffer:void 0,eb=X(Object.keys,Object),ev=tm(U,"DataView"),e_=tm(U,"Map"),ex=tm(U,"Promise"),eE=tm(U,"Set"),eC=tm(U,"WeakMap"),ek=tm(Object,"create"),eS=tS(ev),eA=tS(e_),eI=tS(ex),eT=tS(eE),eR=tS(eC),eO=ed?ed.prototype:void 0,eP=eO?eO.valueOf:void 0;function eN(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eM(){this.__data__=ek?ek(null):{}}function eD(e){return this.has(e)&&delete this.__data__[e]}function eL(e){var t=this.__data__;if(ek){var r=t[e];return r===n?void 0:r}return ea.call(t,e)?t[e]:void 0}function ej(e){var t=this.__data__;return ek?void 0!==t[e]:ea.call(t,e)}function eB(e,t){return this.__data__[e]=ek&&void 0===t?n:t,this}function e$(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eU(){this.__data__=[]}function eF(e){var t=this.__data__,r=e4(t,e);return!(r<0)&&(r==t.length-1?t.pop():em.call(t,r,1),!0)}function ez(e){var t=this.__data__,r=e4(t,e);return r<0?void 0:t[r][1]}function eq(e){return e4(this.__data__,e)>-1}function eW(e,t){var r=this.__data__,i=e4(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}function eH(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eV(){this.__data__={hash:new eN,map:new(e_||e$),string:new eN}}function eZ(e){return tg(this,e).delete(e)}function eK(e){return tg(this,e).get(e)}function eG(e){return tg(this,e).has(e)}function eY(e,t){return tg(this,e).set(e,t),this}function eJ(e){this.__data__=new e$(e)}function eQ(){this.__data__=new e$}function eX(e){return this.__data__.delete(e)}function e0(e){return this.__data__.get(e)}function e1(e){return this.__data__.has(e)}function e2(e,t){var r=this.__data__;if(r instanceof e$){var n=r.__data__;if(!e_||n.length<i-1)return n.push([e,t]),this;r=this.__data__=new eH(n)}return r.set(e,t),this}function e3(e,t){var r=tR(e)||tT(e)?G(e.length,String):[],i=r.length,n=!!i;for(var o in e)(t||ea.call(e,o))&&!(n&&("length"==o||tx(o,i)))&&r.push(o);return r}function e5(e,t,r){var i=e[t];ea.call(e,t)&&tI(i,r)&&(void 0!==r||t in e)||(e[t]=r)}function e4(e,t){for(var r=e.length;r--;)if(tI(e[r][0],t))return r;return -1}function e6(e,t){return e&&th(t,tB(t),e)}function e8(e,t,r,i,n,o,a){if(i&&(l=o?i(e,n,o,a):i(e)),void 0!==l)return l;if(!tL(e))return e;var l,c=tR(e);if(c){if(l=tb(e),!t)return td(e,l)}else{var u=ty(e),f=u==d||u==h;if(tN(e))return ti(e,t);if(u==g||u==s||f&&!o){if(J(e))return o?e:{};if(l=tv(f?{}:e),!t)return tf(e,e6(l,e))}else{if(!j[u])return o?e:{};l=t_(e,u,e8,t)}}a||(a=new eJ);var p=a.get(e);if(p)return p;if(a.set(e,l),!c)var m=r?tp(e):tB(e);return V(m||e,function(n,o){m&&(n=e[o=n]),e5(l,o,e8(n,t,r,i,o,e,a))}),l}function e7(e){return tL(e)?ep(e):{}}function e9(e,t,r){var i=t(e);return tR(e)?i:Z(i,r(e))}function te(e){return el.call(e)}function tt(e){return!(!tL(e)||tC(e))&&(tM(e)||J(e)?ec:D).test(tS(e))}function tr(e){if(!tk(e))return eb(e);var t=[];for(var r in Object(e))ea.call(e,r)&&"constructor"!=r&&t.push(r);return t}function ti(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function tn(e){var t=new e.constructor(e.byteLength);return new eh(t).set(new eh(e)),t}function to(e,t){var r=t?tn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ts(e,t,r){return K(t?r(Q(e),!0):Q(e),W,new e.constructor)}function ta(e){var t=new e.constructor(e.source,M.exec(e));return t.lastIndex=e.lastIndex,t}function tl(e,t,r){return K(t?r(ee(e),!0):ee(e),H,new e.constructor)}function tc(e){return eP?Object(eP.call(e)):{}}function tu(e,t){var r=t?tn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function td(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function th(e,t,r,i){r||(r={});for(var n=-1,o=t.length;++n<o;){var s=t[n],a=i?i(r[s],e[s],s,r,e):void 0;e5(r,s,void 0===a?e[s]:a)}return r}function tf(e,t){return th(e,tw(e),t)}function tp(e){return e9(e,tB,tw)}function tg(e,t){var r=e.__data__;
2return tE(t)?r["string"==typeof t?"string":"hash"]:r.map}function tm(e,t){var r=Y(e,t);return tt(r)?r:void 0}eN.prototype.clear=eM,eN.prototype.delete=eD,eN.prototype.get=eL,eN.prototype.has=ej,eN.prototype.set=eB,e$.prototype.clear=eU,e$.prototype.delete=eF,e$.prototype.get=ez,e$.prototype.has=eq,e$.prototype.set=eW,eH.prototype.clear=eV,eH.prototype.delete=eZ,eH.prototype.get=eK,eH.prototype.has=eG,eH.prototype.set=eY,eJ.prototype.clear=eQ,eJ.prototype.delete=eX,eJ.prototype.get=e0,eJ.prototype.has=e1,eJ.prototype.set=e2;var tw=ew?X(ew,Object):t$,ty=te;function tb(e){var t=e.length,r=e.constructor(t);return t&&"string"==typeof e[0]&&ea.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function tv(e){return"function"!=typeof e.constructor||tk(e)?{}:e7(ef(e))}function t_(e,t,r,i){var n=e.constructor;switch(t){case x:return tn(e);case l:case c:return new n(+e);case E:return to(e,i);case C:case k:case S:case A:case I:case T:case R:case O:case P:return tu(e,i);case f:return ts(e,i,r);case p:case b:return new n(e);case w:return ta(e);case y:return tl(e,i,r);case v:return tc(e)}}function tx(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||L.test(e))&&e>-1&&e%1==0&&e<t}function tE(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tC(e){return!!eo&&eo in e}function tk(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ei)}function tS(e){if(null!=e){try{return es.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tA(e){return e8(e,!0,!0)}function tI(e,t){return e===t||e!=e&&t!=t}function tT(e){return tP(e)&&ea.call(e,"callee")&&(!eg.call(e,"callee")||el.call(e)==s)}(ev&&ty(new ev(new ArrayBuffer(1)))!=E||e_&&ty(new e_)!=f||ex&&ty(ex.resolve())!=m||eE&&ty(new eE)!=y||eC&&ty(new eC)!=_)&&(ty=function(e){var t=el.call(e),r=t==g?e.constructor:void 0,i=r?tS(r):void 0;if(i)switch(i){case eS:return E;case eA:return f;case eI:return m;case eT:return y;case eR:return _}return t});var tR=Array.isArray;function tO(e){return null!=e&&tD(e.length)&&!tM(e)}function tP(e){return tj(e)&&tO(e)}var tN=ey||tU;function tM(e){var t=tL(e)?el.call(e):"";return t==d||t==h}function tD(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function tL(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function tj(e){return!!e&&"object"==typeof e}function tB(e){return tO(e)?e3(e):tr(e)}function t$(){return[]}function tU(){return!1}e.exports=tA},15586:function(e,t,r){e=r.nmd(e);var i=200,n="__lodash_hash_undefined__",o=1,s=2,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",w="[object Number]",y="[object Null]",b="[object Object]",v="[object Promise]",_="[object Proxy]",x="[object RegExp]",E="[object Set]",C="[object String]",k="[object Symbol]",S="[object Undefined]",A="[object WeakMap]",I="[object ArrayBuffer]",T="[object DataView]",R="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",j="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,$=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,F={};F["[object Float32Array]"]=F[R]=F[O]=F[P]=F[N]=F[M]=F[D]=F[L]=F[j]=!0,F[l]=F[c]=F[I]=F[d]=F[T]=F[h]=F[f]=F[p]=F[m]=F[w]=F[b]=F[x]=F[E]=F[C]=F[A]=!1;var z="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,q="object"==typeof self&&self&&self.Object===Object&&self,W=z||q||Function("return this")(),H=t&&!t.nodeType&&t,V=H&&e&&!e.nodeType&&e,Z=V&&V.exports===H,K=Z&&z.process,G=function(){try{return K&&K.binding&&K.binding("util")}catch(e){}}(),Y=G&&G.isTypedArray;function J(e,t){for(var r=-1,i=null==e?0:e.length,n=0,o=[];++r<i;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}function Q(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function X(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function ee(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function et(e){return function(t){return e(t)}}function er(e,t){return e.has(t)}function ei(e,t){return null==e?void 0:e[t]}function en(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function eo(e,t){return function(r){return e(t(r))}}function es(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var ea=Array.prototype,el=Function.prototype,ec=Object.prototype,eu=W["__core-js_shared__"],ed=el.toString,eh=ec.hasOwnProperty,ef=function(){var e=/[^.]+$/.exec(eu&&eu.keys&&eu.keys.IE_PROTO||"");
vendor: 3,611 bytes, line 2
2return e?"Symbol(src)_1."+e:""}(),ep=ec.toString,eg=RegExp("^"+ed.call(eh).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),em=Z?W.Buffer:void 0,ew=W.Symbol,ey=W.Uint8Array,eb=ec.propertyIsEnumerable,ev=ea.splice,e_=ew?ew.toStringTag:void 0,ex=Object.getOwnPropertySymbols,eE=em?em.isBuffer:void 0,eC=eo(Object.keys,Object),ek=tm(W,"DataView"),eS=tm(W,"Map"),eA=tm(W,"Promise"),eI=tm(W,"Set"),eT=tm(W,"WeakMap"),eR=tm(Object,"create"),eO=tk(ek),eP=tk(eS),eN=tk(eA),eM=tk(eI),eD=tk(eT),eL=ew?ew.prototype:void 0,ej=eL?eL.valueOf:void 0;function eB(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function e$(){this.__data__=eR?eR(null):{},this.size=0}function eU(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function eF(e){var t=this.__data__;if(eR){var r=t[e];return r===n?void 0:r}return eh.call(t,e)?t[e]:void 0}function ez(e){var t=this.__data__;return eR?void 0!==t[e]:eh.call(t,e)}function eq(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eR&&void 0===t?n:t,this}function eW(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eH(){this.__data__=[],this.size=0}function eV(e){var t=this.__data__,r=tr(t,e);return!(r<0)&&(r==t.length-1?t.pop():ev.call(t,r,1),--this.size,!0)}function eZ(e){var t=this.__data__,r=tr(t,e);return r<0?void 0:t[r][1]}function eK(e){return tr(this.__data__,e)>-1}function eG(e,t){var r=this.__data__,i=tr(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function eY(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eJ(){this.size=0,this.__data__={hash:new eB,map:new(eS||eW),string:new eB}}function eQ(e){var t=tg(this,e).delete(e);return this.size-=t?1:0,t}function eX(e){return tg(this,e).get(e)}function e0(e){return tg(this,e).has(e)}function e1(e,t){var r=tg(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function e2(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new eY;++t<r;)this.add(e[t])}function e3(e){return this.__data__.set(e,n),this}function e5(e){return this.__data__.has(e)}function e4(e){var t=this.__data__=new eW(e);this.size=t.size}function e6(){this.__data__=new eW,this.size=0}function e8(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function e7(e){return this.__data__.get(e)}function e9(e){return this.__data__.has(e)}function te(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eS||n.length<i-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eY(n)}return r.set(e,t),this.size=r.size,this}function tt(e,t){var r=tI(e),i=!r&&tA(e),n=!r&&!i&&tR(e),o=!r&&!i&&!n&&tL(e),s=r||i||n||o,a=s?ee(e.length,String):[],l=a.length;for(var c in e)(t||eh.call(e,c))&&!(s&&("length"==c||n&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||tv(c,l)))&&a.push(c);return a}function tr(e,t){for(var r=e.length;r--;)if(tS(e[r][0],t))return r;return -1}function ti(e,t,r){var i=t(e);return tI(e)?i:Q(i,r(e))}function tn(e){return null==e?void 0===e?S:y:e_&&e_ in Object(e)?tw(e):tC(e)}function to(e){return tD(e)&&tn(e)==l}function ts(e,t,r,i,n){return e===t||(null!=e&&null!=t&&(tD(e)||tD(t))?ta(e,t,r,i,ts,n):e!=e&&t!=t)}function ta(e,t,r,i,n,s){var a=tI(e),u=tI(t),d=a?c:tb(e),h=u?c:tb(t);d=d==l?b:d,h=h==l?b:h;var f=d==b,p=h==b,g=d==h;if(g&&tR(e)){if(!tR(t))return!1;a=!0,f=!1}if(g&&!f)return s||(s=new e4),a||tL(e)?td(e,t,r,i,n,s):th(e,t,d,r,i,n,s);if(!(r&o)){var m=f&&eh.call(e,"__wrapped__"),w=p&&eh.call(t,"__wrapped__");
2if(m||w){var y=m?e.value():e,v=w?t.value():t;return s||(s=new e4),n(y,v,r,i,s)}}return!!g&&(s||(s=new e4),tf(e,t,r,i,n,s))}function tl(e){return!(!tM(e)||tx(e))&&(tP(e)?eg:$).test(tk(e))}function tc(e){return tD(e)&&tN(e.length)&&!!F[tn(e)]}function tu(e){if(!tE(e))return eC(e);var t=[];for(var r in Object(e))eh.call(e,r)&&"constructor"!=r&&t.push(r);return t}function td(e,t,r,i,n,a){var l=r&o,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=a.get(e);if(d&&a.get(t))return d==t;var h=-1,f=!0,p=r&s?new e2:void 0;for(a.set(e,t),a.set(t,e);++h<c;){var g=e[h],m=t[h];if(i)var w=l?i(m,g,h,t,e,a):i(g,m,h,e,t,a);if(void 0!==w){if(w)continue;f=!1;break}if(p){if(!X(t,function(e,t){if(!er(p,t)&&(g===e||n(g,e,r,i,a)))return p.push(t)})){f=!1;break}}else if(!(g===m||n(g,m,r,i,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function th(e,t,r,i,n,a,l){switch(r){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case I:if(e.byteLength!=t.byteLength||!a(new ey(e),new ey(t)))break;return!0;case d:case h:case w:return tS(+e,+t);case f:return e.name==t.name&&e.message==t.message;case x:case C:return e==t+"";case m:var c=en;case E:var u=i&o;if(c||(c=es),e.size!=t.size&&!u)break;var p=l.get(e);if(p)return p==t;i|=s,l.set(e,t);var g=td(c(e),c(t),i,n,a,l);return l.delete(e),g;case k:if(ej)return ej.call(e)==ej.call(t)}return!1}function tf(e,t,r,i,n,s){var a=r&o,l=tp(e),c=l.length;if(c!=tp(t).length&&!a)return!1;for(var u=c;u--;){var d=l[u];if(!(a?d in t:eh.call(t,d)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var f=!0;s.set(e,t),s.set(t,e);for(var p=a;++u<c;){var g=e[d=l[u]],m=t[d];if(i)var w=a?i(m,g,d,t,e,s):i(g,m,d,e,t,s);if(!(void 0===w?g===m||n(g,m,r,i,s):w)){f=!1;break}p||(p="constructor"==d)}if(f&&!p){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(f=!1)}return s.delete(e),s.delete(t),f}function tp(e){return ti(e,tj,ty)}function tg(e,t){var r=e.__data__;return t_(t)?r["string"==typeof t?"string":"hash"]:r.map}function tm(e,t){var r=ei(e,t);return tl(r)?r:void 0}function tw(e){var t=eh.call(e,e_),r=e[e_];try{e[e_]=void 0;var i=!0}catch(e){}var n=ep.call(e);return i&&(t?e[e_]=r:delete e[e_]),n}eB.prototype.clear=e$,eB.prototype.delete=eU,eB.prototype.get=eF,eB.prototype.has=ez,eB.prototype.set=eq,eW.prototype.clear=eH,eW.prototype.delete=eV,eW.prototype.get=eZ,eW.prototype.has=eK,eW.prototype.set=eG,eY.prototype.clear=eJ,eY.prototype.delete=eQ,eY.prototype.get=eX,eY.prototype.has=e0,eY.prototype.set=e1,e2.prototype.add=e2.prototype.push=e3,e2.prototype.has=e5,e4.prototype.clear=e6,e4.prototype.delete=e8,e4.prototype.get=e7,e4.prototype.has=e9,e4.prototype.set=te;var ty=ex?function(e){return null==e?[]:J(ex(e=Object(e)),function(t){return eb.call(e,t)})}:tB,tb=tn;function tv(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||U.test(e))&&e>-1&&e%1==0&&e<t}function t_(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tx(e){return!!ef&&ef in e}function tE(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ec)}function tC(e){return ep.call(e)}function tk(e){if(null!=e){try{return ed.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tS(e,t){return e===t||e!=e&&t!=t}(ek&&tb(new ek(new ArrayBuffer(1)))!=T||eS&&tb(new eS)!=m||eA&&tb(eA.resolve())!=v||eI&&tb(new eI)!=E||eT&&tb(new eT)!=A)&&(tb=function(e){var t=tn(e),r=t==b?e.constructor:void 0,i=r?tk(r):"";if(i)switch(i){case eO:return T;case eP:return m;case eN:return v;case eM:return E;case eD:return A}return t});var tA=to(function(){return arguments}())?to:function(e){return tD(e)&&eh.call(e,"callee")&&!eb.call(e,"callee")},tI=Array.isArray;function tT(e){return null!=e&&tN(e.length)&&!tP(e)}var tR=eE||t$;function tO(e,t){return ts(e,t)}function tP(e){if(!tM(e))return!1;var t=tn(e);return t==p||t==g||t==u||t==_}function tN(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function tM(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tD(e){return null!=e&&"object"==typeof e}var tL=Y?et(Y):tc;function tj(e){return tT(e)?tt(e):tu(e)}function tB(){return[]}function t$(){return!1}e.exports=tO},97928:function(e,t,r){e=r.nmd(e);var i=200,n="__lodash_hash_undefined__",o=800,s=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",w="[object Number]",y="[object Null]",b
vendor: 6,077 bytes, line 2
2="[object Object]",v="[object Proxy]",_="[object RegExp]",x="[object Set]",E="[object String]",C="[object Undefined]",k="[object WeakMap]",S="[object ArrayBuffer]",A="[object DataView]",I="[object Float64Array]",T="[object Int8Array]",R="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",N="[object Uint8ClampedArray]",M="[object Uint16Array]",D="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,$={};$["[object Float32Array]"]=$[I]=$[T]=$[R]=$[O]=$[P]=$[N]=$[M]=$[D]=!0,$[l]=$[c]=$[S]=$[d]=$[A]=$[h]=$[f]=$[p]=$[m]=$[w]=$[b]=$[_]=$[x]=$[E]=$[k]=!1;var U="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,F="object"==typeof self&&self&&self.Object===Object&&self,z=U||F||Function("return this")(),q=t&&!t.nodeType&&t,W=q&&e&&!e.nodeType&&e,H=W&&W.exports===q,V=H&&U.process,Z=function(){try{var e=W&&W.require&&W.require("util").types;if(e)return e;return V&&V.binding&&V.binding("util")}catch(e){}}(),K=Z&&Z.isTypedArray;function G(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Y(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function J(e){return function(t){return e(t)}}function Q(e,t){return null==e?void 0:e[t]}function X(e,t){return function(r){return e(t(r))}}var ee=Array.prototype,et=Function.prototype,er=Object.prototype,ei=z["__core-js_shared__"],en=et.toString,eo=er.hasOwnProperty,es=function(){var e=/[^.]+$/.exec(ei&&ei.keys&&ei.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ea=er.toString,el=en.call(Object),ec=RegExp("^"+en.call(eo).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eu=H?z.Buffer:void 0,ed=z.Symbol,eh=z.Uint8Array,ef=eu?eu.allocUnsafe:void 0,ep=X(Object.getPrototypeOf,Object),eg=Object.create,em=er.propertyIsEnumerable,ew=ee.splice,ey=ed?ed.toStringTag:void 0,eb=function(){try{var e=tl(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ev=eu?eu.isBuffer:void 0,e_=Math.max,ex=Date.now,eE=tl(z,"Map"),eC=tl(Object,"create"),ek=function(){function e(){}return function(t){if(!tO(t))return{};if(eg)return eg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function eS(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eA(){this.__data__=eC?eC(null):{},this.size=0}function eI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function eT(e){var t=this.__data__;if(eC){var r=t[e];return r===n?void 0:r}return eo.call(t,e)?t[e]:void 0}function eR(e){var t=this.__data__;return eC?void 0!==t[e]:eo.call(t,e)}function eO(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eC&&void 0===t?n:t,this}function eP(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function eN(){this.__data__=[],this.size=0}function eM(e){var t=this.__data__,r=eX(t,e);return!(r<0)&&(r==t.length-1?t.pop():ew.call(t,r,1),--this.size,!0)}function eD(e){var t=this.__data__,r=eX(t,e);return r<0?void 0:t[r][1]}function eL(e){return eX(this.__data__,e)>-1}function ej(e,t){var r=this.__data__,i=eX(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function eB(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function e$(){this.size=0,this.__data__={hash:new eS,map:new(eE||eP),string:new eS}}function eU(e){var t=ta(this,e).delete(e);return this.size-=t?1:0,t}function eF(e){return ta(this,e).get(e)}function ez(e){return ta(this,e).has(e)}function eq(e,t){var r=ta(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function eW(e){var t=this.__data__=new eP(e);this.size=t.size}function eH(){this.__data__=new eP,this.size=0}function eV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function eZ(e){return this.__data__.get(e)}function eK(e){return this.__data__.has(e)}function eG(e,t){var r=this.__data__;if(r instanceof eP){var n=r.__data__;if(!eE||n.length<i-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eB(n)}return r.set(e,t),this.size=r.size,this}function eY(e,t){var r=tk(e),i=!r&&tC(e),n=!r&&!i&&tI(e),o=!r&&!i&&!n&&tM(e),s=r||i||n||o,a=s?Y(e.length,String):[],l=a.length;for(var c in e)(t||eo.call(e,c))&&!(s&&("length"==c||n&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||td(c,l)))&&a.push(c);return a}function eJ(e,t,r){(void 0===r||tE(e[t],r))&&(void 0!==r||t in e)||e0(e,t,r)}function eQ(e,t,r){var i=e[t];eo.call(e,t)&&tE(i,r)&&(void 0!==r||t in e)||e0(e,t,r)}function eX(e,t){for(var r=e.length;r--;)if(tE(e[r][0],t))return r;return -1}function e0(e,t,r){"__proto__"==t&&eb?eb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}eS.prototype.clear=eA,eS.prototype.delete=eI,eS.prototype.get=eT,eS.prototype.has=eR,eS.prototype.set=eO,eP.prototype.clear=eN,eP.prototype.delete=eM,eP.prototype.get=eD,eP.prototype.has=eL,eP.prototype.set=ej,eB.prototype.clear=e$,eB.prototype.delete=eU,eB.prototype.get=eF,eB.prototype.has=ez,eB.prototype.set=eq,eW.prototype.clear=eH,eW.prototype.delete=eV,eW.prototype.get=eZ,eW.prototype.has=eK,eW.prototype.set=eG;var e1=ts();function e2(e){return null==e?void 0===e?C:y:ey&&ey in Object(e)?tc(e):tw(e)}function e3(e){return tP(e)&&e2(e)==l}function e5(e){return!(!tO(e)||tp(e))&&(tT(e)?ec:j).test(tx(e))}function e4(e){return tP(e)&&tR(e.length)&&!!$[e2(e)]}function e6(e){if(!tO(e))return tm(e);var t=tg(e),r=[];for(var i in e)"constructor"==i&&(t||!eo.call(e,i))||r.push(i);return r}function e8(e,t,r,i,n){e!==t&&e1(t,function(o,s){if(n||(n=new eW),tO(o))e7(e,t,s,r,e8,i,n);else{var a=i?i(tb(e,s),o,s+"",e,t,n):void 0;void 0===a&&(a=o),eJ(e,s,a)}},tL)}function e7(e,t,r,i,n,o,s){var a=tb(e,r),l=tb(t,r),c=s.get(l);if(c){eJ(e,r,c);return}var u=o?o(a,l,r+"",e,t,s):void 0,d=void 0===u;if(d){var h=tk(l),f=!h&&tI(l),p=!h&&!f&&tM(l);u=l,h||f||p?tk(a)?u=a:tA(a)?u=ti(a):f?(d=!1,u=te(l,!0)):p?(d=!1,u=tr(l,!0)):u=[]:tN(l)||tC(l)?(u=a,tC(a)?u=tD(a):(!tO(a)||tT
2(a))&&(u=tu(l))):d=!1}d&&(s.set(l,u),n(u,l,i,o,s),s.delete(l)),eJ(e,r,u)}function e9(e,t){return tv(ty(e,t,t$),e+"")}function te(e,t){if(t)return e.slice();var r=e.length,i=ef?ef(r):new e.constructor(r);return e.copy(i),i}function tt(e){var t=new e.constructor(e.byteLength);return new eh(t).set(new eh(e)),t}function tr(e,t){var r=t?tt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ti(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}function tn(e,t,r,i){var n=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=i?i(r[a],e[a],a,r,e):void 0;void 0===l&&(l=e[a]),n?e0(r,a,l):eQ(r,a,l)}return r}function to(e){return e9(function(t,r){var i=-1,n=r.length,o=n>1?r[n-1]:void 0,s=n>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(n--,o):void 0,s&&th(r[0],r[1],s)&&(o=n<3?void 0:o,n=1),t=Object(t);++i<n;){var a=r[i];a&&e(t,a,i,o)}return t})}function ts(e){return function(t,r,i){for(var n=-1,o=Object(t),s=i(t),a=s.length;a--;){var l=s[e?a:++n];if(!1===r(o[l],l,o))break}return t}}function ta(e,t){var r=e.__data__;return tf(t)?r["string"==typeof t?"string":"hash"]:r.map}function tl(e,t){var r=Q(e,t);return e5(r)?r:void 0}function tc(e){var t=eo.call(e,ey),r=e[ey];try{e[ey]=void 0;var i=!0}catch(e){}var n=ea.call(e);return i&&(t?e[ey]=r:delete e[ey]),n}function tu(e){return"function"!=typeof e.constructor||tg(e)?{}:ek(ep(e))}function td(e,t){var r=typeof e;return!!(t=null==t?a:t)&&("number"==r||"symbol"!=r&&B.test(e))&&e>-1&&e%1==0&&e<t}function th(e,t,r){if(!tO(r))return!1;var i=typeof t;return("number"==i?!!(tS(r)&&td(t,r.length)):"string"==i&&t in r)&&tE(r[t],e)}function tf(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function tp(e){return!!es&&es in e}function tg(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||er)}function tm(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}function tw(e){return ea.call(e)}function ty(e,t,r){return t=e_(void 0===t?e.length-1:t,0),function(){for(var i=arguments,n=-1,o=e_(i.length-t,0),s=Array(o);++n<o;)s[n]=i[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=i[n];return a[t]=r(s),G(e,this,a)}}function tb(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var tv=t_(eb?function(e,t){return eb(e,"toString",{configurable:!0,enumerable:!1,value:tB(t),writable:!0})}:t$);function t_(e){var t=0,r=0;return function(){var i=ex(),n=s-(i-r);if(r=i,n>0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function tx(e){if(null!=e){try{return en.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function tE(e,t){return e===t||e!=e&&t!=t}var tC=e3(function(){return arguments}())?e3:function(e){return tP(e)&&eo.call(e,"callee")&&!em.call(e,"callee")},tk=Array.isArray;function tS(e){return null!=e&&tR(e.length)&&!tT(e)}function tA(e){return tP(e)&&tS(e)}var tI=ev||tU;function tT(e){if(!tO(e))return!1;var t=e2(e);return t==p||t==g||t==u||t==v}function tR(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function tO(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tP(e){return null!=e&&"object"==typeof e}function tN(e){if(!tP(e)||e2(e)!=b)return!1;var t=ep(e);if(null===t)return!0;var r=eo.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&en.call(r)==el}var tM=K?J(K):e4;function tD(e){return tn(e,tL(e))}function tL(e){return tS(e)?eY(e,!0):e6(e)}var tj=to(function(e,t,r){e8(e,t,r)});function tB(e){return function(){return e}}function t$(e){return e}function tU(){return!1}e.exports=tj},86005:function(e,t,r){var i,n;!function(o,s){"use strict";void 0!==(n="function"==typeof(i=s)?i.call(t,r,t,e):i)&&(e.exports=n)}(0,function(){"use strict";var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],n={},o=null;function s(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(i){return"debug"===i&&(i="log"),typeof console!==t&&("trace"===i&&r?a:void 0!==console[i]?s(console,i):void 0!==console.log?s(console,"log"):e)}function c(){for(var r=this.getLevel(),n=0;n<i.length;n++){var o=i[n];this[o]=n<r?e:this.methodFactory(o,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function d(e,t,r){return l(e)||u.apply(this,arguments)}function h(e,r){var s,a,l,u=this,h="loglevel";function f(e){var r=(i[e]||"silent").toUpperCase();if(typeof window!==t&&h){try{window.localStorage[h]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"="+r+";"}catch(e){}}}function p(){var e;if(typeof window!==t&&h){try{e=window.localStorage[h]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,i=encodeURIComponent(h),n=r.indexOf(i+"=");-1!==n&&(e=/^([^;]+)/.exec(r.slice(n+i.length+1))[1])}catch(e){}return void 0===u.levels[e]&&(e=void 0),e}}function g(){if(typeof window!==t&&h){try{window.localStorage.removeItem(h)}catch(e){}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}function m(e){var t=e;if("string"==typeof t&&void 0!==u.levels[t.toUpperCase()]&&(t=u.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=u.levels.SILENT)return t;
2throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?h+=":"+e:"symbol"==typeof e&&(h=void 0),u.name=e,u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=r||d,u.getLevel=function(){return null!=l?l:null!=a?a:s},u.setLevel=function(e,t){return l=m(e),!1!==t&&f(l),c.call(u)},u.setDefaultLevel=function(e){a=m(e),p()||u.setLevel(e,!1)},u.resetLevel=function(){l=null,g(),c.call(u)},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)},u.rebuild=function(){if(o!==u&&(s=m(o.getLevel())),c.call(u),o===u)for(var e in n)n[e].rebuild()},s=m(o?o.getLevel():"WARN");var w=p();null!=w&&(l=m(w)),c.call(u)}(o=new h).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var t=n[e];return t||(t=n[e]=new h(e,o.methodFactory)),t};var f=typeof window!==t?window.log:void 0;return o.noConflict=function(){return typeof window!==t&&window.log===o&&(window.log=f),o},o.getLoggers=function(){return n},o.default=o,o})},73045:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},83742:function(e,t){"use strict";var r=t;function i(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var n=e.charCodeAt(i),o=n>>8,s=255&n;o?r.push(o,s):r.push(s)}return r}function n(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=i,r.zero2=n,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},35169:function(e){var t=1e3,r=6e4,i=36e5,n=864e5,o=6048e5,s=315576e5;function a(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function l(e){var o=Math.abs(e);return o>=n?Math.round(e/n)+"d":o>=i?Math.round(e/i)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var o=Math.abs(e);return o>=n?u(e,o,n,"day"):o>=i?u(e,o,i,"hour"):o>=r?u(e,o,r,"minute"):o>=t?u(e,o,t,"second"):e+" ms"}
2function u(e,t,r,i){var n=t>=1.5*r;return Math.round(e/r)+" "+i+(n?"s":"")}e.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return a(e);if("number"===r&&isFinite(e))return t.long?c(e):l(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},52423:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},97501:function(e,t,r){var i="/",n=r(25566);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,i){function n(e,t,i){return"string"==typeof r?r:r(e,t,i)}i||(i=Error);class o extends i{constructor(e,t,r){super(n(e,t,r))}}o.prototype.name=i.name,o.prototype.code=e,t[e]=o}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function n(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let a,l;if("string"==typeof t&&n(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",o(e," argument"))l=`The ${e} ${a} ${i(t,"type")}`;else{let r=s(e,".")?"property":"argument";l=`The "${e}" ${r} ${a} ${i(t,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(709),s=r(337);r(782)(u,o);for(var a=i(s.prototype),l=0;l<a.length;l++){var c=a[l];u.prototype[c]||(u.prototype[c]=s.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=n;var i=r(170);function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}r(782)(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,i){"use strict";e.exports=T,T.ReadableState=I,i(361).EventEmitter;var o,s,a,l,c,u=function(e,t){return e.listeners(t).length},d=i(678),h=i(300).Buffer,f=r.g.Uint8Array||function(){};function p(e){return h.from(e)}function g(e){return h.isBuffer(e)||e instanceof f}var m=i(837);s=m&&m.debuglog?m.debuglog("stream"):function(){};var w=i(379),y=i(25),b=i(776).getHighWaterMark,v=i(646).q,_=v.ERR_INVALID_ARG_TYPE,x=v.ERR_STREAM_PUSH_AFTER_EOF,E=v.ERR_METHOD_NOT_IMPLEMENT
vendor: 29,252 bytes, line 2
2ED,C=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(T,d);var k=y.errorOrDestroy,S=["error","close","destroy","pause","resume"];function A(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function I(e,t,r){o=o||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=i(704).s),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function T(e){if(o=o||i(403),!(this instanceof T))return new T(e);var t=this instanceof o;this._readableState=new I(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function R(e,t,r,i,n){s("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,L(e,a);else if(n||(o=P(a,t)),o)k(e,o);else if(a.objectMode||t&&t.length>0){if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=p(t)),i)a.endEmitted?k(e,new C):O(e,a,t,!0);else if(a.ended)k(e,new x);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?O(e,a,t,!1):$(e,a)):O(e,a,t,!1)}}else i||(a.reading=!1,$(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function O(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),$(e,t)}function P(e,t){var r;return g(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=y.destroy,T.prototype._undestroy=y.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=h.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},T.prototype.unshift=function(e){return R(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){a||(a=i(704).s);var t=new a(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var N=1073741824;function M(e){return e>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=M(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function L(e,t){if(s("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function j(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,n.nextTick(B,e))}function B(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function $(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(s("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function F(e){return function(){var t=e._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&u(e,"data")&&(t.flowing=!0,V(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){s("readable nexttick read 0"),e.read(0)}function W(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(H,e,t))}function H(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function Z(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function K(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.nextTick(G,t,e))}function G(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}T.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return s("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?K(this):j(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&K(this),null;var n=r.needReadable;return s("need readable",n),(0===r.length||r.length-e<r.highWaterMark)&&s("length less than watermark",n=!0),r.ended||r.reading?s("reading or ended",n=!1):n&&(s("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=D(i,r))),null===(t=e>0?Z(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&K(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){k(this,new E("_read()"))},T.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,s("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===n.stdout||e===n.stderr?w:l;function a(e,t){s("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function l(){s("onend"),e.end()}i.endEmitted?n.nextTick(o):r.once("end",o),e.on("unpipe",a);var c=F(r);e.on("drain",c);var d=!1;function h(){s("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",a),r.removeListener("end",l),r.removeListener("end",w),r.removeListener("data",f),d=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function f(t){s("ondata");var n=e.write(t);s("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==Y(i.pipes,e))&&!d&&(s("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){s("onerror",t),w(),e.removeListener("error",p),0===u(e,"error")&&k(e,t)}function g(){e.removeListener("finish",m),w()}function m(){s("onfinish"),e.removeListener("close",g),w()}function w(){s("unpipe"),r.unpipe(e)}return r.on("data",f),A(e,"error",p),e.once("close",g),e.once("finish",m),e.emit("pipe",r),i.flowing||(s("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Y(t.pipes,e);return -1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,s("on readable",i.length,i.reading),i.length?j(this):i.reading||n.nextTick(q,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&n.nextTick(z,this),r},T.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.nextTick(z,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,W(this,e)),e.paused=!1,this},T.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var n in e.on("end",function(){if(s("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){s("wrapped data"),r.decoder&&(n=r.decoder.write(n)),(!r.objectMode||null!=n)&&(r.objectMode||n&&n.length)&&(t.push(n)||(i=!0,e.pause()))}),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var o=0;o<S.length;o++)e.on(S[o],this.emit.bind(this,S[o]));return this._read=function(t){s("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=i(871)),l(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=Z,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===c&&(c=i(727)),c(T,e,t)})},170:function(e,t,r){"use strict";e.exports=u;var i=r(646).q,n=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,l=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(782)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new n("_transform()"))},u.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,i){"use strict";function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){H(t,e)}}e.exports=I,I.WritableState=A;var s,a,l={deprecate:i(769)},c=i(678),u=i(300).Buffer,d=r.g.Uint8Array||function(){};function h(e){return u.from(e)}function f(e){return u.isBuffer(e)||e instanceof d}var p=i(25),g=i(776).getHighWaterMark,m=i(646).q,w=m.ERR_INVALID_ARG_TYPE,y=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_MULTIPLE_CALLBACK,v=m.ERR_STREAM_CANNOT_PIPE,_=m.ERR_STREAM_DESTROYED,x=m.ERR_STREAM_NULL_VALUES,E=m.ERR_STREAM_WRITE_AFTER_END,C=m.ERR_UNKNOWN_ENCODING,k=p.errorOrDestroy;function S(){}function A(e,t,r){s=s||i(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof s),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){L(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function I(e){var t=this instanceof(s=s||i(403));if(!t&&!a.call(I,this))return new I(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function T(e,t){var r=new E;k(e,r),n.nextTick(t,r)}function R(e,t,r,i){var o;return null===r?o=new x:"string"==typeof r||t.objectMode||(o=new w("chunk",["string","Buffer"],r)),!o||(k(e,o),n.nextTick(i,o),!1)}function O(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}function P(e,t,r,i,n,o){if(!r){var s=O(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else N(e,t,!1,a,i,n,o);return l}function N(e,t,r,i,n,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function M(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(q,e,t),e._writableState.errorEmitted=!0,k(e,i)):(o(i),e._writableState.errorEmitted=!0,k(e,i),q(e,t))}function D(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function L(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if("function"!=typeof o)throw new b;if(D(r),t)M(e,r,i,t,o);else{var s=U(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||$(e,r),i?n.nextTick(j,e,r,s,o):j(e,r,s,o)}}function j(e,t,r,i){r||B(e,t),t.pendingcb--,i(),q(e,t)}function B(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function $(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=Array(t.bufferedRequestCount),n=t.corkedRequestsFree;n.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,N(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(N(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function F(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function z(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.nextTick(F,e,t)))}function q(e,t){var r=U(t);if(r&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function W(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function H(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}i(782)(I,c),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===I&&e&&e._writableState instanceof A}})):a=function(e){return e instanceof this},I.prototype.pipe=function(){k(this,new v)},I.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&f(e);return o&&!u.isBuffer(e)&&(e=h(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=S),i.ending?T(this,r):(o||R(this,i,e,r))&&(i.pendingcb++,n=P(this,i,o,e,t,r)),n},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||$(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new C(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,r){r(new y("_write()"))},I.prototype._writev=null,I.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||W(this,i,r),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=p.destroy,I.prototype._undestroy=p.undestroy,I.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,s=r(698),a=Symbol("lastResolve"),l=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),d=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function g(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[a]=null,e[l]=null,t(p(r,!1)))}}function m(e){n.nextTick(g,e)}function w(e,t){return function(r,i){e.then(function(){if(t[u]){r(p(void 0,!0));return}t[h](r,i)},i)}}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[f]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[u])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(e,r){n.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var i=this[d];if(i)e=new Promise(w(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[h])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),y),v=function(e){var t,r=Object.create(b,(i(t={},f,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,h,{value:function(e,t){var i=r[f].read();i?(r[d]=null,r[a]=null,r[l]=null,e(p(i,!1))):(r[a]=e,r[l]=t)},writable:!0}),t));return r[d]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[l];null!==t&&(r[d]=null,r[a]=null,r[l]=null,t(e)),r[c]=e;return}var i=r[a];null!==i&&(r[d]=null,r[a]=null,r[l]=null,i(p(void 0,!0))),r[u]=!0}),e.on("readable",m.bind(null,r)),r};e.exports=v},379:function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),e}var c=r(300).Buffer,u=r(837).inspect,d=u&&u.custom||"inspect";function h(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,i=0;r;)h(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,o=e>n.length?n.length:e;if(o===n.length?i+=n:i+=n.slice(0,e),0==(e-=o)){o===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(o));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,o=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,o),0==(e-=o)){o===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(o));break}++i}return this.length-=i,t}},{key:d,value:function(e,t){return u(this,n({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,e)):n.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?n.nextTick(i,o):(o._writableState.errorEmitted=!0,n.nextTick(r,o,e)):n.nextTick(r,o,e):t?(n.nextTick(i,o),t(e)):n.nextTick(i,o)})),this}function r(e,t){s(e,t),i(e)}function i(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:a}},698:function(e,t,r){"use strict";var i=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function n(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function o(){}function s(e){return e.setHeader&&"function"==typeof e.abort}function a(e,t,r){if("function"==typeof t)return a(e,null,t);t||(t={}),r=n(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||r.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,f=!0,c||r.call(e)},g=function(t){r.call(e,t)},m=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},w=function(){e.req.on("finish",h)};return s(e)?(e.on("complete",h),e.on("abort",m),e.req?w():e.on("request",w)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",h),e.removeListener("abort",m),e.removeListener("request",w),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}e.exports=a},727:function(e,t,r){"use strict";function i(e,t,r,i,n,o,s){try{var a=e[o](s),l=a.value}catch(e){r(e);return}a.done?t(l):Promise.resolve(l).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var s=e.apply(t,r);function a(e){i(s,n,o,a,l,"next",e)}function l(e){i(s,n,o,a,l,"throw",e)}a(void 0)})}}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
2var l=r(646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new l("iterable",["Iterable"],t);var i,o=new e(s({objectMode:!0},r)),a=!1;function c(){return u.apply(this,arguments)}function u(){return(u=n(function*(){try{var e=yield i.next(),t=e.value;e.done?o.push(null):o.push((yield t))?c():a=!1}catch(e){o.destroy(e)}})).apply(this,arguments)}return o._read=function(){a||(a=!0,c())},o}e.exports=c},442:function(e,t,r){"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var n,o=r(646).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,s){s=i(s);var l=!1;e.on("close",function(){l=!0}),void 0===n&&(n=r(698)),n(e,{readable:t,writable:o},function(e){if(e)return s(e);l=!0,s()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}}function d(e){e()}function h(e,t){return e.pipe(t)}function f(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}function p(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=f(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new s("streams");var o=r.map(function(t,i){var s=i<r.length-1;return u(t,s,i>0,function(t){e||(e=t),t&&o.forEach(d),s||(o.forEach(d),n(e))})});return r.reduce(h)}e.exports=p},776:function(e,t,r){"use strict";var i=r(646).q.ERR_INVALID_OPT_VALUE;function n(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=n(t,o,r);if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new i(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var i=r(300),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},173:function(e,t,r){e.exports=n;var i=r(361).EventEmitter;function n(){i.call(this)}r(782)(n,i),n.Readable=r(709),n.Writable=r(337),n.Duplex=r(403),n.Transform=r(170),n.PassThrough=r(889),n.finished=r(698),n.pipeline=r(442),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",l));var s=!1;function a(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",n),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var i=r(55).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
2case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=m,this.end=w,t=3;break;default:this.write=y,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var i=t.length-1;if(i<r)return 0;var n=l(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=l(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=l(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function h(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function w(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.s=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=f,a.prototype.text=h,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function i(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=t},300:function(e){"use strict";e.exports=r(82957)},361:function(e){"use strict";e.exports=r(55445)},781:function(e){"use strict";e.exports=r(55445).EventEmitter},837:function(e){"use strict";e.exports=r(85508)}},o={};function s(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={exports:{}},n=!0;try{t[e](i,i.exports,s),n=!1}finally{n&&delete o[e]}return i.exports}s.ab=i+"/";var a=s(173);e.exports=a}()},53669:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,
2configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var o=Object_keys(r),s=i.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},68056:function(e,t,r){"use strict";var i;if(!Object.keys){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(94408),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&n.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!f)return d(e);try{return d(e)}catch(e){return!1}};i=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),i=s(e),a=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!i)throw TypeError("Object.keys called on a non-object");var h=c&&r;if(a&&e.length>0&&!n.call(e,0))for(var f=0;f<e.length;++f)d.push(String(f));if(i&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var m in e)!(h&&"prototype"===m)&&n.call(e,m)&&d.push(String(m));if(l)for(var w=p(e),y=0;y<u.length;++y)!(w&&"constructor"===u[y])&&n.call(e,u[y])&&d.push(u[y]);return d}}e.exports=i},62122:function(e,t,r){"use strict";var i=Array.prototype.slice,n=r(94408),o=Object.keys,s=o?function(e){return o(e)}:r(68056),a=Object.keys;s.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return n(e)?a(i.call(e)):a(e)}):Object.keys=s,Object.keys||s},e.exports=s},94408:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),i="[object Arguments]"===r;
2return i||(i="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),i}},5298:function(e,t,r){"use strict";r.r(t),r.d(t,{ObliviousSet:function(){return i},now:function(){return o},removeTooOldValues:function(){return n}});var i=function(){function e(e){this.ttl=e,this.map=new Map,this._to=!1}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.add=function(e){var t=this;this.map.set(e,o()),this._to||(this._to=!0,setTimeout(function(){t._to=!1,n(t)},0))},e.prototype.clear=function(){this.map.clear()},e}();function n(e){for(var t=o()-e.ttl,r=e.map[Symbol.iterator]();;){var i=r.next().value;if(!i)return;var n=i[0];if(!(i[1]<t))return;e.map.delete(n)}}function o(){return new Date().getTime()}},32251:function(e,t,r){var i=r(16662);function n(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=i(n),e.exports.strict=i(o),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},78584:function(e){"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},79080:function(e,t,r){"use strict";r.r(t),r.d(t,{Component:function(){return S},Fragment:function(){return k},cloneElement:function(){return Z},createContext:function(){return K},createElement:function(){return x},createRef:function(){return C},h:function(){return x},hydrate:function(){return V},isValidElement:function(){return s},options:function(){return n},render:function(){return H},toChildArray:function(){return M}});var i,n,o,s,a,l,c,u,d,h,f,p,g,m={},w=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function v(e,t){for(var r in t)e[r]=t[r];return e}function _(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(e,t,r){var n,o,s,a={};for(s in t)"key"==s?n=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?i.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return E(e,a,n,o,null)}function E(e,t,r,i,s){var a={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==s?++o:s,__i:-1,__u:0};return null==s&&null!=n.vnode&&n.vnode(a),a}function C(){return{current:null}}function k(e){return e.children}function S(e,t){this.props=e,this.context=t}function A(e,t){if(null==t)return e.__?A(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?A(e):null}function I(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return I(e)}}function T(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!R.__r++||l!==n.debounceRendering)&&((l=n.debounceRendering)||c)(R)}function R(){var e,t,r,i,o,s,l,c;for(a.sort(u);e=a.shift();)e.__d&&(t=a.length,i=void 0,s=(o=(r=e).__v).__e,l=[],c=[],r.__P&&((i=v({},o)).__v=o.__v+1,n.vnode&&n.vnode(i),$(r.__P,i,o,r.__n,r.__P.namespaceURI,32&o.__u?[s]:null,l,null==s?A(o):s,!!(32&o.__u),c),i.__v=o.__v,i.__.__k[i.__i]=i,U(l,i,c),i.__e!=s&&I(i)),a.length>t&&a.sort(u));R.__r=0}function O(e,t,r,i,n,o,s,a,l,c,u){var d,h,f,p,g,y,b=i&&i.__k||w,v=t.length;for(l=P(r,t,b,l,v),d=0;d<v;d++)null!=(f=r.__k[d])&&(h=-1===f.__i?m:b[f.__i]||m,f.__i=d,y=$(e,f,h,n,o,s,a,l,c,u),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&z(h.ref,null,f),u.push(f.ref,f.__c||p,f)),null==g&&null!=p&&(g=p),4&f.__u||h.__k===f.__k?l=N(f,l,e):"function"==typeof f.type&&void 0!==y?l=y:p&&(l=p.nextSibling),f.__u&=-7);return r.__e=g,l}function P(e,t,r,i,n){var o,s,a,l,c,u=r.length,d=u,h=0;for(e.__k=Array(n),o=0;o<n;o++)null!=(s=t[o])&&"boolean"!=typeof s&&"function"!=typeof s?(l=o+h,(s=e.__k[o]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?E(null,s,null,null,null):b(s)?E(k,{children:s},null,null,null):void 0===s.constructor&&s.__b>
vendor: 6,084 bytes, line 2
20?E(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,-1!==(c=s.__i=D(s,r,l,d))&&(d--,(a=r[c])&&(a.__u|=2)),null==a||null===a.__v?(-1==c&&h--,"function"!=typeof s.type&&(s.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,s.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(a=r[o])&&0==(2&a.__u)&&(a.__e==i&&(i=A(a)),q(a,a));return i}function N(e,t,r){var i,n;if("function"==typeof e.type){for(i=e.__k,n=0;i&&n<i.length;n++)i[n]&&(i[n].__=e,t=N(i[n],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=A(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8==t.nodeType);return t}function M(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some(function(e){M(e,t)}):t.push(e)),t}function D(e,t,r,i){var n,o,s=e.key,a=e.type,l=t[r];if(null===l||l&&s==l.key&&a===l.type&&0==(2&l.__u))return r;if(i>(null!=l&&0==(2&l.__u)?1:0))for(n=r-1,o=r+1;n>=0||o<t.length;){if(n>=0){if((l=t[n])&&0==(2&l.__u)&&s==l.key&&a===l.type)return n;n--}if(o<t.length){if((l=t[o])&&0==(2&l.__u)&&s==l.key&&a===l.type)return o;o++}}return -1}function L(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||y.test(t)?r:r+"px"}function j(e,t,r,i,n){var o;e:if("style"==t){if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||L(e.style,t,"");if(r)for(t in r)i&&r[t]===i[t]||L(e.style,t,r[t])}}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(d,"$1")),t=t.toLowerCase() in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?i?r.u=i.u:(r.u=h,e.addEventListener(t,o?p:f,o)):e.removeEventListener(t,o?p:f,o);else{if("http://www.w3.org/2000/svg"==n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function B(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=h++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function $(e,t,r,i,o,s,a,l,c,u){var d,h,f,p,g,m,w,y,x,E,C,A,I,T,R,P,N,M=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),s=[l=t.__e=r.__e]),(d=n.__b)&&d(t);e:if("function"==typeof M)try{if(y=t.props,x="prototype"in M&&M.prototype.render,E=(d=M.contextType)&&i[d.__c],C=d?E?E.props.value:d.__:i,r.__c?w=(h=t.__c=r.__c).__=h.__E:(x?t.__c=h=new M(y,C):(t.__c=h=new S(y,C),h.constructor=M,h.render=W),E&&E.sub(h),h.props=y,h.state||(h.state={}),h.context=C,h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=M.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=v({},h.__s)),v(h.__s,M.getDerivedStateFromProps(y,h.__s))),p=h.props,g=h.state,h.__v=t,f)x&&null==M.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==M.getDerivedStateFromProps&&y!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(y,C),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(y,h.__s,C)||t.__v==r.__v)){for(t.__v!=r.__v&&(h.props=y,h.state=h.__s,h.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),A=0;A<h._sb.length;A++)h.__h.push(h._sb[A]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(y,h.__s,C),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,g,m)})}if(h.context=C,h.props=y,h.__P=e,h.__e=!1,I=n.__r,T=0,x){for(h.state=h.__s,h.__d=!1,I&&I(t),d=h.render(h.props,h.state,h.context),R=0;R<h._sb.length;R++)h.__h.push(h._sb[R]);h._sb=[]}else do h.__d=!1,I&&I(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++T<25);h.state=h.__s,null!=h.getChildContext&&(i=v(v({},i),h.getChildContext())),x&&!f&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(p,g)),l=O(e,b(P=null!=d&&d.type===k&&null==d.key?d.props.children:d)?P:[P],t,r,i,o,s,a,l,c,u),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),w&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=s){if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,t.__e=l}else for(N=s.length;N--;)_(s[N])}else t.__e=r.__e,t.__k=r.__k;n.__e(e,t,r)}else null==s&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=F(r.__e,t,r,i,o,s,a,c,u);return(d=n.diffed)&&d(t),128&t.__u?void 0:l}function U(e,t,r){for(var i=0;i<r.length;i++)z(r[i],r[++i],r[++i]);n.__c&&n.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){n.__e(e,t.__v)}})}function F(e,t,r,o,s,a,l,c,u){var d,h,f,p,g,w,y,v=r.props,x=t.props,E=t.type;if("svg"==E?s="http://www.w3.org/2000/svg":"math"==E?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),null!=a){for(d=0;d<a.length;d++)if((g=a[d])&&"setAttribute"in g==!!E&&(E?g.localName==E:3==g.nodeType)){e=g,a[d]=null;break}}if(null==e){if(null==E)return document.createTextNode(x);e=document.createElementNS(s,E,x.is&&x),c&&(n.__m&&n.__m(t,a),c=!1),a=null}if(null===E)v===x||c&&e.data===x||(e.data=x);else{if(a=a&&i.call(e.childNodes),v=r.props||m,!c&&null!=a)for(v={},d=0;d<e.attributes.length;d++)v[(g=e.attributes[d]).name]=g.value;for(d in v)if(g=v[d],"children"==d);else if("dangerouslySetInnerHTML"==d)f=g;else if(!(d in x)){if("value"==d&&"defaultValue"in x||"checked"==d&&"defaultChecked"in x)continue;j(e,d,null,g,s)}for(d in x)g=x[d],"children"==d?p=g:"dangerouslySetInnerHTML"==d?h=g:"value"==d?w=g:"checked"==d?y=g:c&&"function"!=typeof g||v[d]===g||j(e,d,g,v[d],s);if(h)c||f&&(h.__html===f.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(f&&(e.innerHTML=""),O(e,b(p)?p:[p],t,r,o,"foreignObject"==E?"http://www.w3.org/1999/xhtml":s,a,l,a?a[0]:r.__k&&A(r,0),c,u),null!=a)for(d=a.length;d--;)_(a[d]);c||(d="value","progress"==E&&null==w?e.removeAttribute("value"):void 0===w||w===e[d]&&
vendor: 2,581 bytes, line 2
2("progress"!=E||w)&&("option"!=E||w===v[d])||j(e,d,w,v[d],s),d="checked",void 0!==y&&y!==e[d]&&j(e,d,y,v[d],s))}return e}function z(e,t,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function q(e,t,r){var i,o;if(n.unmount&&n.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||z(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){n.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&q(i[o],t,r||"function"!=typeof e.type);r||_(e.__e),e.__c=e.__=e.__e=void 0}function W(e,t,r){return this.constructor(e,r)}function H(e,t,r){var o,s,a,l;t==document&&(t=document.documentElement),n.__&&n.__(e,t),s=(o="function"==typeof r)?null:r&&r.__k||t.__k,a=[],l=[],$(t,e=(!o&&r||t).__k=x(k,null,[e]),s||m,m,t.namespaceURI,!o&&r?[r]:s?null:t.firstChild?i.call(t.childNodes):null,a,!o&&r?r:s?s.__e:t.firstChild,o,l),U(a,e,l)}function V(e,t){H(e,t,V)}function Z(e,t,r){var n,o,s,a,l=v({},e.props);for(s in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==s?n=t[s]:"ref"==s?o=t[s]:l[s]=void 0===t[s]&&void 0!==a?a[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?i.call(arguments,2):r),E(e.type,l,n||e.key,o||e.ref,null)}function K(e,t){var r={__c:t="__cC"+g++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,i;return this.getChildContext||(r=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.forEach(function(e){e.__e=!0,T(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}i=w.slice,n={__e:function(e,t,r,i){for(var n,o,s;t=t.__;)if((n=t.__c)&&!n.__)try{if((o=n.constructor)&&null!=o.getDerivedStateFromError&&(n.setState(o.getDerivedStateFromError(e)),s=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e,i||{}),s=n.__d),s)return n.__E=n}catch(t){e=t}throw e}},o=0,s=function(e){return null!=e&&null==e.constructor},S.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},r),this.props)),e&&v(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),T(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),T(this))},S.prototype.render=k,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 4,465 bytes, line 2
2ise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},R.__r=0,d=/(PointerCapture)$|Capture$/i,h=0,f=B(!1),p=B(!0),g=0},99799:function(e,t,r){"use strict";r.r(t),r.d(t,{useCallback:function(){return k},useContext:function(){return S},useDebugValue:function(){return A},useEffect:function(){return v},useErrorBoundary:function(){return I},useId:function(){return T},useImperativeHandle:function(){return E},useLayoutEffect:function(){return _},useMemo:function(){return C},useReducer:function(){return b},useRef:function(){return x},useState:function(){return y}});var i,n,o,s,a=r(79080),l=0,c=[],u=a.options,d=u.__b,h=u.__r,f=u.diffed,p=u.__c,g=u.unmount,m=u.__;function w(e,t){u.__h&&u.__h(n,e,l||t),l=0;var r=n.__H||(n.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function y(e){return l=1,b(L,e)}function b(e,t,r){var o=w(i++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):L(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,e);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=n,!n.u)){var s=function(e,t,r){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var n=o.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(n=!0)}}),a&&a.call(this,e,t,r)||n};n.u=!0;var a=n.shouldComponentUpdate,l=n.componentWillUpdate;n.componentWillUpdate=function(e,t,r){if(this.__e){var i=a;a=void 0,s(e,t,r),a=i}l&&l.call(this,e,t,r)},n.shouldComponentUpdate=s}return o.__N||o.__}function v(e,t){var r=w(i++,3);!u.__s&&D(r.__H,t)&&(r.__=e,r.i=t,n.__H.__h.push(r))}function _(e,t){var r=w(i++,4);!u.__s&&D(r.__H,t)&&(r.__=e,r.i=t,n.__h.push(r))}function x(e){return l=5,C(function(){return{current:e}},[])}function E(e,t,r){l=6,_(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))}function C(e,t){var r=w(i++,7);return D(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function k(e,t){return l=8,C(function(){return e},t)}function S(e){var t=n.context[e.__c],r=w(i++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(n)),t.props.value):e.__}function A(e,t){u.useDebugValue&&u.useDebugValue(t?t(e):e)}function I(e){var t=w(i++,10),r=y();return t.__=e,n.componentDidCatch||(n.componentDidCatch=function(e,i){t.__&&t.__(e,i),r[1](e)}),[r[0],function(){r[1](void 0)}]}function T(){var e=w(i++,11);if(!e.__){for(var t=n.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function R(){for(var e;e=c.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(N),e.__H.__h.forEach(M),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){n=null,d&&d(e)},u.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),m&&m(e,t)},u.__r=function(e){h&&h(e),i=0;var t=(n=e.__c).__H;t&&(o===n?(t.__h=[],n.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0})):(t.__h.forEach(N),t.__h.forEach(M),t.__h=[],i=0)),o=n},u.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&s===u.requestAnimationFrame||((s=u.requestAnimationFrame)||P)(R)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.i=void 0})),o=n=null},u.__c=function(e,t){t.some(function(e){try{e.__h.forEach(N),e.__h=e.__h.filter(function(e){return!e.__||M(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],u.__e(r,e.__v)}}),p&&p(e,t)},u.unmount=function(e){g&&g(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{N(e)}catch(e){t=e}}),r.__H=void 0,t&&u.__e(t,r.__v))};var O="function"==typeof requestAnimationFrame;function P(e){var t,r=function(){clearTimeout(i),O&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(r,100);O&&(t=requestAnimationFrame(r))}function N(e){var t=n,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),n=t}function M(e){var t=n;e.__c=e.__(),n=t}function D(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function L(e,t){return"function"==typeof t?t(e):t}},33697:function(e,t,r){var i=r(25566),n=r(32251),o=r(32462),s=r(71156),a=function(){},l=/^v?\.0/.test(i.version),c=function(e){return"function"==typeof e},u=function(e){return!!l&&!!s&&(e instanceof(s.ReadStream||a)||e instanceof(s.WriteStream||a))&&c(e.close)},d=function(e){return e.setHeader&&c(e.abort)},h=function(e,t,r,i){i=n(i);var s=!1;e.on("close",function(){s=!0}),o(e,{readable:t,writable:r},function(e){if(e)return i(e);
2s=!0,i()});var l=!1;return function(t){if(!s&&!l){if(l=!0,u(e))return e.close(a);if(d(e))return e.abort();if(c(e.destroy))return e.destroy();i(t||Error("stream was destroyed"))}}},f=function(e){e()},p=function(e,t){return e.pipe(t)},g=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw Error("pump requires two streams per minimum");var i=t.map(function(n,o){var s=o<t.length-1;return h(n,s,o>0,function(t){e||(e=t),t&&i.forEach(f),s||(i.forEach(f),r(e))})});return t.reduce(p)};e.exports=g},86633:function(e,t){var r,i,n,o=function(){var e=function(e,t){var i=236,o=17,f=e,p=r[t],g=null,m=0,y=null,b=[],v={},_=function(e,t){g=function(e){for(var t=Array(e),r=0;r<e;r+=1){t[r]=Array(e);for(var i=0;i<e;i+=1)t[r][i]=null}return t}(m=4*f+17),x(0,0),x(m-7,0),x(0,m-7),k(),C(),A(e,t),f>=7&&S(e),null==y&&(y=R(f,p,b)),I(y,t)},x=function(e,t){for(var r=-1;r<=7;r+=1)if(!(e+r<=-1)&&!(m<=e+r))for(var i=-1;i<=7;i+=1)t+i<=-1||m<=t+i||(0<=r&&r<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=i&&i<=4?g[e+r][t+i]=!0:g[e+r][t+i]=!1)},E=function(){for(var e=0,t=0,r=0;r<8;r+=1){_(!0,r);var i=n.getLostPoint(v);(0==r||e>i)&&(e=i,t=r)}return t},C=function(){for(var e=8;e<m-8;e+=1)null==g[e][6]&&(g[e][6]=e%2==0);for(var t=8;t<m-8;t+=1)null==g[6][t]&&(g[6][t]=t%2==0)},k=function(){for(var e=n.getPatternPosition(f),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],o=e[r];if(null==g[i][o])for(var s=-2;s<=2;s+=1)for(var a=-2;a<=2;a+=1)-2==s||2==s||-2==a||2==a||0==s&&0==a?g[i+s][o+a]=!0:g[i+s][o+a]=!1}},S=function(e){for(var t=n.getBCHTypeNumber(f),r=0;r<18;r+=1){var i=!e&&(t>>r&1)==1;g[Math.floor(r/3)][r%3+m-8-3]=i}for(var r=0;r<18;r+=1){var i=!e&&(t>>r&1)==1;g[r%3+m-8-3][Math.floor(r/3)]=i}},A=function(e,t){for(var r=p<<3|t,i=n.getBCHTypeInfo(r),o=0;o<15;o+=1){var s=!e&&(i>>o&1)==1;o<6?g[o][8]=s:o<8?g[o+1][8]=s:g[m-15+o][8]=s}for(var o=0;o<15;o+=1){var s=!e&&(i>>o&1)==1;o<8?g[8][m-o-1]=s:o<9?g[8][15-o-1+1]=s:g[8][15-o-1]=s}g[m-8][8]=!e},I=function(e,t){for(var r=-1,i=m-1,o=7,s=0,a=n.getMaskFunction(t),l=m-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var c=0;c<2;c+=1)if(null==g[i][l-c]){var u=!1;s<e.length&&(u=(e[s]>>>o&1)==1),a(i,l-c)&&(u=!u),g[i][l-c]=u,-1==(o-=1)&&(s+=1,o=7)}if((i+=r)<0||m<=i){i-=r,r=-r;break}}},T=function(e,t){for(var r=0,i=0,o=0,a=Array(t.length),l=Array(t.length),c=0;c<t.length;c+=1){var u=t[c].dataCount,d=t[c].totalCount-u;i=Math.max(i,u),o=Math.max(o,d),a[c]=Array(u);for(var h=0;h<a[c].length;h+=1)a[c][h]=255&e.getBuffer()[h+r];r+=u;var f=n.getErrorCorrectPolynomial(d),p=s(a[c],f.getLength()-1).mod(f);l[c]=Array(f.getLength()-1);for(var h=0;h<l[c].length;h+=1){var g=h+p.getLength()-l[c].length;l[c][h]=g>=0?p.getAt(g):0}}for(var m=0,h=0;h<t.length;h+=1)m+=t[h].totalCount;for(var w=Array(m),y=0,h=0;h<i;h+=1)for(var c=0;c<t.length;c+=1)h<a[c].length&&(w[y]=a[c][h],y+=1);for(var h=0;h<o;h+=1)for(var c=0;c<t.length;c+=1)h<l[c].length&&(w[y]=l[c][h],y+=1);return w},R=function(e,t,r){for(var s=a.getRSBlocks(e,t),c=l(),u=0;u<r.length;u+=1){var d=r[u];c.put(d.getMode(),4),c.put(d.getLength(),n.getLengthInBits(d.getMode(),e)),d.write(c)}for(var h=0,u=0;u<s.length;u+=1)h+=s[u].dataCount;if(c.getLengthInBits()>8*h)throw"code length overflow. ("+c.getLengthInBits()+">"+8*h+")";for(c.getLengthInBits()+4<=8*h&&c.put(0,4);c.getLengthInBits()%8!=0;)c.putBit(!1);for(;!(c.getLengthInBits()>=8*h)&&(c.put(i,8),!(c.getLengthInBits()>=8*h));)c.put(o,8);return T(c,s)};v.addData=function(e,t){var r=null;switch(t=t||"Byte"){case"Numeric":r=c(e);break;case"Alphanumeric":r=u(e);break;case"Byte":r=d(e);break;case"Kanji":r=h(e);break;default:throw"mode:"+t}b.push(r),y=null},v.isDark=function(e,t){if(e<0||m<=e||t<0||m<=t)throw e+","+t;return g[e][t]},v.getModuleCount=function(){return m},v.make=function(){if(f<1){for(var e=1;e<40;e++){for(var t=a.getRSBlocks(e,p),r=l(),i=0;i<b.length;i++){var o=b[i];r.put(o.getMode(),4),r.put(o.getLength(),n.getLengthInBits(o.getMode(),e)),o.write(r)}for(var s=0,i=0;i<t.length;i++)s+=t[i].dataCount;if(r.getLengthInBits()<=8*s)break}f=e}_(!1,E())},v.createTableTag=function(e,t){e=e||2;var r="";r+='<table style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: '+(t=void 0===t?4*e:t)+'px;"><tbody>';for(var i=0;i<v.getModuleCount();i+=1){r+="<tr>";for(var n=0;n<v.getModuleCount();n+=1)r+='<td style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: 0px; width: '+e+"px; height: "+e+"px; background-color: "+(v.isDark(i,n)?"#000000":"#ffffff")+';"/>';r+="</tr>"}return r+"</tbody></table>"},v.createSvgTag=function(e,t,r,i){var n={};"object"==typeof arguments[0]&&(n=arguments[0],e=n.cellSize,t=n.margin,r=n.alt,i=n.title),e=e||2,t=void 0===t?4*e:t,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-title":null;var o,s,a,l,c=v.getModuleCount()*e+2*t,u="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"'+(n.scalable?"":' width="'+c+'px" height="'+c+'px"')+(' viewB
2ox="0 0 '+c+" ")+c+'" preserveAspectRatio="xMinYMin meet"'+(i.text||r.text?' role="img" aria-labelledby="'+O([i.id,r.id].join(" ").trim())+'"':"")+">"+(i.text?'<title id="'+O(i.id)+'">'+O(i.text)+"</title>":"")+(r.text?'<description id="'+O(r.id)+'">'+O(r.text)+"</description>":"")+'<rect width="100%" height="100%" fill="white" cx="0" cy="0"/><path d="',s=0;s<v.getModuleCount();s+=1)for(o=0,a=s*e+t;o<v.getModuleCount();o+=1)v.isDark(s,o)&&(u+="M"+(o*e+t)+","+a+l);return u+'" stroke="transparent" fill="black"/></svg>'},v.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var r=v.getModuleCount()*e+2*t,i=t,n=r-t;return w(r,r,function(t,r){if(!(i<=t)||!(t<n)||!(i<=r)||!(r<n))return 1;var o=Math.floor((t-i)/e),s=Math.floor((r-i)/e);return v.isDark(s,o)?0:1})},v.createImgTag=function(e,t,r){e=e||2,t=void 0===t?4*e:t;var i=v.getModuleCount()*e+2*t,n="";return n+='<img src="'+v.createDataURL(e,t)+'" width="'+i+'" height="'+i+'"',r&&(n+=' alt="'+O(r)+'"'),n+="/>"};var O=function(e){for(var t="",r=0;r<e.length;r+=1){var i=e.charAt(r);switch(i){case"<":t+="<";break;case">":t+=">";break;case"&":t+="&";break;case'"':t+=""";break;default:t+=i}}return t},P=function(e){var t,r,i,n,o,s=1;e=void 0===e?2*s:e;var a=v.getModuleCount()*s+2*e,l=e,c=a-e,u={"ââ":"â","â ":"â"," â":"â"," ":" "},d={"ââ":"â","â ":"â"," â":" "," ":" "},h="";for(t=0;t<a;t+=2){for(r=0,i=Math.floor((t-l)/s),n=Math.floor((t+1-l)/s);r<a;r+=1)o="â",l<=r&&r<c&&l<=t&&t<c&&v.isDark(i,Math.floor((r-l)/s))&&(o=" "),l<=r&&r<c&&l<=t+1&&t+1<c&&v.isDark(n,Math.floor((r-l)/s))?o+=" ":o+="â",h+=e<1&&t+1>=c?d[o]:u[o];h+="\n"}return a%2&&e>0?h.substring(0,h.length-a-1)+Array(a+1).join("â"):h.substring(0,h.length-1)};return v.createASCII=function(e,t){if((e=e||1)<2)return P(t);e-=1,t=void 0===t?2*e:t;var r,i,n,o,s=v.getModuleCount()*e+2*t,a=t,l=s-t,c=Array(e+1).join("ââ"),u=Array(e+1).join(" "),d="",h="";for(r=0;r<s;r+=1){for(i=0,n=Math.floor((r-a)/e),h="";i<s;i+=1)o=1,a<=i&&i<l&&a<=r&&r<l&&v.isDark(n,Math.floor((i-a)/e))&&(o=0),h+=o?c:u;for(n=0;n<e;n+=1)d+=h+"\n"}return d.substring(0,d.length-1)},v.renderTo2dContext=function(e,t){t=t||2;for(var r=v.getModuleCount(),i=0;i<r;i++)for(var n=0;n<r;n++)e.fillStyle=v.isDark(i,n)?"black":"white",e.fillRect(i*t,n*t,t,t)},v};e.stringToBytesFuncs={default:function(e){for(var t=[],r=0;r<e.length;r+=1){var i=e.charCodeAt(r);t.push(255&i)}return t}},e.stringToBytes=e.stringToBytesFuncs.default,e.createStringToBytes=function(e,t){var r=function(){for(var r=g(e),i=function(){var e=r.read();if(-1==e)throw"eof";return e},n=0,o={};;){var s=r.read();if(-1==s)break;var a=i(),l=i(),c=i(),u=String.fromCharCode(s<<8|a),d=l<<8|c;o[u]=d,n+=1}if(n!=t)throw n+" != "+t;return o}(),i=63;return function(e){for(var t=[],n=0;n<e.length;n+=1){var o=e.charCodeAt(n);if(o<128)t.push(o);else{var s=r[e.charAt(n)];"number"==typeof s?(255&s)==s?t.push(s):(t.push(s>>>8),t.push(255&s)):t.push(i)}}return t}};var t={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},r={L:1,M:0,Q:3,H:2},i={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},n=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,n=7973,a=21522,l={},c=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return l.getBCHTypeInfo=function(e){for(var t=e<<10;c(t)-c(r)>=0;)t^=r<<c(t)-c(r);return(e<<10|t)^a},l.getBCHTypeNumber=function(e){for(var t=e<<12;c(t)-c(n)>=0;)t^=n<<c(t)-c(n);return e<<12|t},l.getPatternPosition=function(t){return e[t-1]},l.getMaskFunction=function(e){switch(e){case i.PATTERN000:return function(e,t){return(e+t)%2==0};case i.PATTERN001:return function(e,t){return e%2==0}
2;case i.PATTERN010:return function(e,t){return t%3==0};case i.PATTERN011:return function(e,t){return(e+t)%3==0};case i.PATTERN100:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case i.PATTERN101:return function(e,t){return e*t%2+e*t%3==0};case i.PATTERN110:return function(e,t){return(e*t%2+e*t%3)%2==0};case i.PATTERN111:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},l.getErrorCorrectPolynomial=function(e){for(var t=s([1],0),r=0;r<e;r+=1)t=t.multiply(s([1,o.gexp(r)],0));return t},l.getLengthInBits=function(e,r){if(1<=r&&r<10)switch(e){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:case t.MODE_KANJI:return 8;default:throw"mode:"+e}else if(r<27)switch(e){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw"mode:"+e}else if(r<41)switch(e){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw"mode:"+e}else throw"type:"+r},l.getLostPoint=function(e){for(var t=e.getModuleCount(),r=0,i=0;i<t;i+=1)for(var n=0;n<t;n+=1){for(var o=0,s=e.isDark(i,n),a=-1;a<=1;a+=1)if(!(i+a<0)&&!(t<=i+a))for(var l=-1;l<=1;l+=1)n+l<0||t<=n+l||0==a&&0==l||s!=e.isDark(i+a,n+l)||(o+=1);o>5&&(r+=3+o-5)}for(var i=0;i<t-1;i+=1)for(var n=0;n<t-1;n+=1){var c=0;e.isDark(i,n)&&(c+=1),e.isDark(i+1,n)&&(c+=1),e.isDark(i,n+1)&&(c+=1),e.isDark(i+1,n+1)&&(c+=1),(0==c||4==c)&&(r+=3)}for(var i=0;i<t;i+=1)for(var n=0;n<t-6;n+=1)e.isDark(i,n)&&!e.isDark(i,n+1)&&e.isDark(i,n+2)&&e.isDark(i,n+3)&&e.isDark(i,n+4)&&!e.isDark(i,n+5)&&e.isDark(i,n+6)&&(r+=40);for(var n=0;n<t;n+=1)for(var i=0;i<t-6;i+=1)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(r+=40);for(var u=0,n=0;n<t;n+=1)for(var i=0;i<t;i+=1)e.isDark(i,n)&&(u+=1);return r+Math.abs(100*u/t/t-50)/5*10},l}(),o=function(){for(var e=Array(256),t=Array(256),r=0;r<8;r+=1)e[r]=1<<r;for(var r=8;r<256;r+=1)e[r]=e[r-4]^e[r-5]^e[r-6]^e[r-8];for(var r=0;r<255;r+=1)t[e[r]]=r;var i={};return i.glog=function(e){if(e<1)throw"glog("+e+")";return t[e]},i.gexp=function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]},i}();function s(e,t){if(void 0===e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r<e.length&&0==e[r];)r+=1;for(var i=Array(e.length-r+t),n=0;n<e.length-r;n+=1)i[n]=e[n+r];return i}(),i={};return i.getAt=function(e){return r[e]},i.getLength=function(){return r.length},i.multiply=function(e){for(var t=Array(i.getLength()+e.getLength()-1),r=0;r<i.getLength();r+=1)for(var n=0;n<e.getLength();n+=1)t[r+n]^=o.gexp(o.glog(i.getAt(r))+o.glog(e.getAt(n)));return s(t,0)},i.mod=function(e){if(i.getLength()-e.getLength()<0)return i;for(var t=o.glog(i.getAt(0))-o.glog(e.getAt(0)),r=Array(i.getLength()),n=0;n<i.getLength();n+=1)r[n]=i.getAt(n);for(var n=0;n<e.getLength();n+=1)r[n]^=o.gexp(o.glog(e.getAt(n))+t);return s(r,0).mod(e)},i}var a=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var r={};return r.totalCount=e,r.dataCount=t,r},i={},n=function(t,i){switch(i){case r.L:return e[(t-1)*4+0];case r.M:return e[(t-1)*4+1];case r.Q:return e[(t-1)*4+2];case r.H:return e[(t-1)*4+3];default:return}};return i.getRSBlocks=function(e,r){var i=n(e,r);if(void 0===i)throw"bad rs block @ typeNumber:"+e+"/errorCorrectionLevel:"+r;for(var o=i.length/3,s=[],a=0;a<o;a+=1)for(var l=i[3*a+0],c=i[3*a+1],u=i[3*a+2],d=0;d<l;d+=1)s.push(t(c,u));return s},i}(),l=function(){var e=[],t=0,r={};return r.getBuffer=function(){return e},r.getAt=function(t){return(e[Math.floor(t/8)]>>>7-t%8&1)==1},r.put=function(e,t){for(var i=0;i<t;i+=1)r.putBit((e>>>t-i-1&1)==1)},r.getLengthInBits=function(){return t},r.putBit=function(r){var i=Math.floor(t/8);e.length<=i&&e.push(0),r&&(e[i]|=128>>>t%8),t+=1},r},c=function(e){var r=t.MODE_NUMBER,i=e,n={};n.getMode=function(){return r},n.getLength=function(e){return i.length},n.write=function(e){for(var t=i,r=0;r+2<t.length;)e.put(o(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(o(t.substring(r,r+1)),4):t.length-r==2&&e.put(o(t.substring(r,r+2)),7))};var o=function(e){for(var t=0,r=0;r<e.length;r+=1)t=10*t+s(e.charAt(r));return t},s=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;throw"illegal char :"+e};return n},u=function(e){var r=t.MODE_ALPHA_NUM,i=e,n={};n.getMode=function(){return r},n.getLength=function(e){return i.length},n.write=function(e){for(var t=i,r=0;r+1<t.length;)e.put(45*o(t.charAt(r))+o(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(o(t.charAt(r)),6)};var o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;if("A"<=e&&e<="Z")return e.charCodeAt(0)-65+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return n},d=function(r){var i=t.MODE_8BIT_BYTE,n=e.stringToBytes(r),o={};return o.getMode=function(){return i},o.getLength=function(e){return n.length},o.write=function(e){for(var t=0;t<n.length;t+=1)e.put(n[t],8)},o},h=function(r){var i=t.MODE_KANJI,n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(e,t){var r=n("å");
2if(2!=r.length||(r[0]<<8|r[1])!=38726)throw"sjis not supported."}(0,0);var o=n(r),s={};return s.getMode=function(){return i},s.getLength=function(e){return~~(o.length/2)},s.write=function(e){for(var t=o,r=0;r+1<t.length;){var i=(255&t[r])<<8|255&t[r+1];if(33088<=i&&i<=40956)i-=33088;else if(57408<=i&&i<=60351)i-=49472;else throw"illegal char at "+(r+1)+"/"+i;i=(i>>>8&255)*192+(255&i),e.put(i,13),r+=2}if(r<t.length)throw"illegal char at "+(r+1)},s},f=function(){var e=[],t={};return t.writeByte=function(t){e.push(255&t)},t.writeShort=function(e){t.writeByte(e),t.writeByte(e>>>8)},t.writeBytes=function(e,r,i){r=r||0,i=i||e.length;for(var n=0;n<i;n+=1)t.writeByte(e[n+r])},t.writeString=function(e){for(var r=0;r<e.length;r+=1)t.writeByte(e.charCodeAt(r))},t.toByteArray=function(){return e},t.toString=function(){var t="";t+="[";for(var r=0;r<e.length;r+=1)r>0&&(t+=","),t+=e[r];return t+"]"},t},p=function(){var e=0,t=0,r=0,i="",n={},o=function(e){i+=String.fromCharCode(s(63&e))},s=function(e){if(e<0);else if(e<26)return 65+e;else if(e<52)return 97+(e-26);else if(e<62)return 48+(e-52);else if(62==e)return 43;else if(63==e)return 47;throw"n:"+e};return n.writeByte=function(i){for(e=e<<8|255&i,t+=8,r+=1;t>=6;)o(e>>>t-6),t-=6},n.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),r%3!=0)for(var n=3-r%3,s=0;s<n;s+=1)i+="="},n.toString=function(){return i},n},g=function(e){var t=e,r=0,i=0,n=0,o={};o.read=function(){for(;n<8;){if(r>=t.length){if(0==n)return -1;throw"unexpected end of file./"+n}var e=t.charAt(r);if(r+=1,"="==e)return n=0,-1;e.match(/^\s$/)||(i=i<<6|s(e.charCodeAt(0)),n+=6)}var o=i>>>n-8&255;return n-=8,o};var s=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},m=function(e,t){var r=e,i=t,n=Array(e*t),o={};o.setPixel=function(e,t,i){n[t*r+e]=i},o.write=function(e){e.writeString("GIF87a"),e.writeShort(r),e.writeShort(i),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(r),e.writeShort(i),e.writeByte(0);var t=2,n=a(2);e.writeByte(t);for(var o=0;n.length-o>255;)e.writeByte(255),e.writeBytes(n,o,255),o+=255;e.writeByte(n.length-o),e.writeBytes(n,o,n.length-o),e.writeByte(0),e.writeString(";")};var s=function(e){var t=e,r=0,i=0,n={};return n.write=function(e,n){if(e>>>n!=0)throw"length over";for(;r+n>=8;)t.writeByte(255&(e<<r|i)),n-=8-r,e>>>=8-r,i=0,r=0;i=e<<r|i,r+=n},n.flush=function(){r>0&&t.writeByte(i)},n},a=function(e){for(var t=1<<e,r=(1<<e)+1,i=e+1,o=l(),a=0;a<t;a+=1)o.add(String.fromCharCode(a));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(r));var c=f(),u=s(c);u.write(t,i);var d=0,h=String.fromCharCode(n[0]);for(d+=1;d<n.length;){var p=String.fromCharCode(n[d]);d+=1,o.contains(h+p)?h+=p:(u.write(o.indexOf(h),i),4095>o.size()&&(o.size()==1<<i&&(i+=1),o.add(h+p)),h=p)}return u.write(o.indexOf(h),i),u.write(r,i),u.flush(),c.toByteArray()},l=function(){var e={},t=0,r={};return r.add=function(i){if(r.contains(i))throw"dup key:"+i;e[i]=t,t+=1},r.size=function(){return t},r.indexOf=function(t){return e[t]},r.contains=function(t){return void 0!==e[t]},r};return o},w=function(e,t,r){for(var i=m(e,t),n=0;n<t;n+=1)for(var o=0;o<e;o+=1)i.setPixel(o,n,r(o,n));var s=f();i.write(s);for(var a=p(),l=s.toByteArray(),c=0;c<l.length;c+=1)a.writeByte(l[c]);return a.flush(),"data:image/gif;base64,"+a};return e}();!function(){o.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(r++,i=65536+((1023&i)<<10|1023&e.charCodeAt(r)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}(e)}}(),function(o){i=[],void 0!==(n="function"==typeof(r=o)?r.apply(t,i):r)&&(e.exports=n)}(function(){return o})},35819:function(e,t,r){let i=r(64888),n=r(82216),o=r(962),s=r(35623);
vendor: 5,098 bytes, line 2
2function a(e,t,r,o,s){let a=[].slice.call(arguments,1),l=a.length,c="function"==typeof a[l-1];if(!c&&!i())throw Error("Callback required as last argument");if(c){if(l<2)throw Error("Too few arguments provided");2===l?(s=r,r=t,t=o=void 0):3===l&&(t.getContext&&void 0===s?(s=o,o=void 0):(s=o,o=r,r=t,t=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(r=t,t=o=void 0):2!==l||t.getContext||(o=r,r=t,t=void 0),new Promise(function(i,s){try{let s=n.create(r,o);i(e(s,t,o))}catch(e){s(e)}})}try{let i=n.create(r,o);s(null,e(i,t,o))}catch(e){s(e)}}t.create=n.create,t.toCanvas=a.bind(null,o.render),t.toDataURL=a.bind(null,o.renderToDataURL),t.toString=a.bind(null,function(e,t,r){return s.render(e,r)})},64888:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},14691:function(e,t,r){let i=r(62415).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=i(e),n=145===r?26:2*Math.ceil((r-13)/(2*t-2)),o=[r-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-n;return o.push(6),o.reverse()},t.getPositions=function(e){let r=[],i=t.getRowColCoords(e),n=i.length;for(let e=0;e<n;e++)for(let t=0;t<n;t++)(0!==e||0!==t)&&(0!==e||t!==n-1)&&(e!==n-1||0!==t)&&r.push([i[e],i[t]]);return r}},87111:function(e,t,r){let i=r(17956),n=["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"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=i.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*n.indexOf(this.data[t]);r+=n.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(n.indexOf(this.data[t]),6)},e.exports=o},9298:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},55526:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,i){let n=e*this.size+t;this.data[n]=r,i&&(this.reservedBit[n]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},48153:function(e,t,r){let i=r(8878),n=r(17956);function o(e){this.mode=n.BYTE,"string"==typeof e&&(e=i(e)),this.data=new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=o},79386:function(e,t,r){let i=r(29947),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case i.L:return n[(e-1)*4+0];case i.M:return n[(e-1)*4+1];case i.Q:return n[(e-1)*4+2];case i.H:return n[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case i.L:return o[(e-1)*4+0];case i.M:return o[(e-1)*4+1];case i.Q:return o[(e-1)*4+2];case i.H:return o[(e-1)*4+3];default:return}}},29947:function(e,t){function r(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw Error("Unknown EC Level: "+e)}}t.L={bit:1},t.M={bit:0},t.Q={bit:3}
2,t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,i){if(t.isValid(e))return e;try{return r(e)}catch(e){return i}}},44086:function(e,t,r){let i=r(62415).getSymbolSize,n=7;t.getPositions=function(e){let t=i(e);return[[0,0],[t-n,0],[0,t-n]]}},27433:function(e,t,r){let i=r(62415),n=1335,o=21522,s=i.getBCHDigit(n);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,a=r<<10;for(;i.getBCHDigit(a)-s>=0;)a^=n<<i.getBCHDigit(a)-s;return(r<<10|a)^o}},63384:function(e,t){let r=new Uint8Array(512),i=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,i[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return i[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[i[e]+i[t]]}},78514:function(e,t,r){let i=r(17956),n=r(62415);function o(e){this.mode=i.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=n.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=o},24483:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};function i(e,r,i){switch(e){case t.Patterns.PATTERN000:return(r+i)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(r+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return r*i%2+r*i%3==0;case t.Patterns.PATTERN110:return(r*i%2+r*i%3)%2==0;case t.Patterns.PATTERN111:return(r*i%3+(r+i)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,i=0,n=0,o=0,s=null,a=null;for(let l=0;l<t;l++){n=o=0,s=a=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===s?n++:(n>=5&&(i+=r.N1+(n-5)),s=t,n=1),(t=e.get(c,l))===a?o++:(o>=5&&(i+=r.N1+(o-5)),a=t,o=1)}n>=5&&(i+=r.N1+(n-5)),o>=5&&(i+=r.N1+(o-5))}return i},t.getPenaltyN2=function(e){let t=e.size,i=0;for(let r=0;r<t-1;r++)for(let n=0;n<t-1;n++){let t=e.get(r,n)+e.get(r,n+1)+e.get(r+1,n)+e.get(r+1,n+1);(4===t||0===t)&&i++}return i*r.N2},t.getPenaltyN3=function(e){let t=e.size,i=0,n=0,o=0;for(let r=0;r<t;r++){n=o=0;for(let s=0;s<t;s++)n=n<<1&2047|e.get(r,s),s>=10&&(1488===n||93===n)&&i++,o=o<<1&2047|e.get(s,r),s>=10&&(1488===o||93===o)&&i++}return i*r.N3},t.getPenaltyN4=function(e){let t=0,i=e.data.length;for(let r=0;r<i;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/i/5)-10)*r.N4},t.applyMask=function(e,t){let r=t.size;for(let n=0;n<r;n++)for(let o=0;o<r;o++)t.isReserved(o,n)||t.xor(o,n,i(e,o,n))},t.getBestMask=function(e,r){let i=Object.keys(t.Patterns).length,n=0,o=1/0;for(let s=0;s<i;s++){r(s),t.applyMask(s,e);let i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),i<o&&(o=i,n=s)}return n}},17956:function(e,t,r){let i=r(96623),n=r(80581);function o(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!i.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return o(e)}catch(e){return r}}},51687:function(e,t,r){let i=r(17956);function n(e){this.mode=i.NUMERIC,this.data=e.toString()}n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let t,r,i;for(t=0;t+3<=this.data.length;t+=3)i=parseInt(r=this.data.substr(t,3),10),e.put(i,10);let n=this.data.length-t;n>0&&(i=parseInt(r=this.data.substr(t),10),e.put(i,3*n+1))},e.exports=n},46413:function(e,t,r){let i=r(63384);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let n=0;n<e.length;n++)for(let o=0;o<t.length;o++)r[n+o]^=i.mul(e[n],t[o]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let n=0;n<t.length;n++)r[n]^=i.mul(t[n],e);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=t.mul(r,new Uint8Array([1,i.exp(n)]));return r}},82216:function(e,t,r){let i=r(62415),n=r(29947),o=r(9298),s=r(55526),a=r(14691),l=r(44086),c=r(24483),u=r(79386),d=r(24011),h=r(33379),f=r(27433),p=r(17956),g=r(89940);function m(e,t){let r=e.size,i=l.getPositions(t);for(let t=0;t<i.length;t++){let n=i[t][0],o=i[t][1];for(let t=-1;t<=7;t++)if(!(n+t<=-1)&&!(r<=n+t))for(let i=-1;
vendor: 5,724 bytes, line 2
2i<=7;i++)o+i<=-1||r<=o+i||(t>=0&&t<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===t||6===t)||t>=2&&t<=4&&i>=2&&i<=4?e.set(n+t,o+i,!0,!0):e.set(n+t,o+i,!1,!0))}}function w(e){let t=e.size;for(let r=8;r<t-8;r++){let t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}function y(e,t){let r=a.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],n=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(i+t,n+r,!0,!0):e.set(i+t,n+r,!1,!0)}}function b(e,t){let r,i,n;let o=e.size,s=h.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),i=t%3+o-8-3,n=(s>>t&1)==1,e.set(r,i,n,!0),e.set(i,r,n,!0)}function v(e,t,r){let i,n;let o=e.size,s=f.getEncodedBits(t,r);for(i=0;i<15;i++)n=(s>>i&1)==1,i<6?e.set(i,8,n,!0):i<8?e.set(i+1,8,n,!0):e.set(o-15+i,8,n,!0),i<8?e.set(8,o-i-1,n,!0):i<9?e.set(8,15-i-1+1,n,!0):e.set(8,15-i-1,n,!0);e.set(o-8,8,1,!0)}function _(e,t){let r=e.size,i=-1,n=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!e.isReserved(n,a-r)){let i=!1;s<t.length&&(i=(t[s]>>>o&1)==1),e.set(n,a-r,i),-1==--o&&(s++,o=7)}if((n+=i)<0||r<=n){n-=i,i=-i;break}}}function x(e,t,r){let n=new o;r.forEach(function(t){n.put(t.mode.bit,4),n.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(n)});let s=(i.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t))*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let e=0;e<a;e++)n.put(e%2?17:236,8);return E(n,e,t)}function E(e,t,r){let n,o;let s=i.getSymbolTotalCodewords(t),a=s-u.getTotalCodewordsCount(t,r),l=u.getBlocksCount(t,r),c=s%l,h=l-c,f=Math.floor(s/l),p=Math.floor(a/l),g=p+1,m=f-p,w=new d(m),y=0,b=Array(l),v=Array(l),_=0,x=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?p:g;b[e]=x.slice(y,y+t),v[e]=w.encode(b[e]),y+=t,_=Math.max(_,t)}let E=new Uint8Array(s),C=0;for(n=0;n<_;n++)for(o=0;o<l;o++)n<b[o].length&&(E[C++]=b[o][n]);for(n=0;n<m;n++)for(o=0;o<l;o++)E[C++]=v[o][n];return E}function C(e,t,r,n){let o;if(Array.isArray(e))o=g.fromArray(e);else if("string"==typeof e){let i=t;if(!i){let t=g.rawSplit(e);i=h.getBestVersionForData(t,r)}o=g.fromString(e,i||40)}else throw Error("Invalid data");let a=h.getBestVersionForData(o,r);if(!a)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<a)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+a+".\n")}else t=a;let l=x(t,r,o),u=new s(i.getSymbolSize(t));return m(u,t),w(u),y(u,t),v(u,r,0),t>=7&&b(u,t),_(u,l),isNaN(n)&&(n=c.getBestMask(u,v.bind(null,u,r))),c.applyMask(n,u),v(u,r,n),{modules:u,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}t.create=function(e,t){let r,o;if(void 0===e||""===e)throw Error("No input text");let s=n.M;return void 0!==t&&(s=n.from(t.errorCorrectionLevel,n.M),r=h.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),C(e,r,s,o)}},24011:function(e,t,r){let i=r(46413);function n(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=i.mod(t,this.genPoly),n=this.degree-r.length;if(n>0){let e=new Uint8Array(this.degree);return e.set(r,n),e}return r},e.exports=n},80581:function(e,t){let r="[0-9]+",i="[A-Z $%*+\\-./:]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(n,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(o,"g"),t.NUMERIC=RegExp(r,"g"),t.ALPHANUMERIC=RegExp(i,"g");let s=RegExp("^"+n+"$"),a=RegExp("^"+r+"$"),l=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return s.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return l.test(e)}},89940:function(e,t,r){let i=r(17956),n=r(51687),o=r(87111),s=r(48153),a=r(78514),l=r(80581),c=r(62415),u=r(46946);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,r){let i;let n=[];for(;null!==(i=e.exec(r));)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function f(e){let t,r;let n=h(l.NUMERIC,i.NUMERIC,e),o=h(l.ALPHANUMERIC,i.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=h(l.BYTE,i.BYTE,e),r=h(l.KANJI,i.KANJI,e)):(t=h(l.BYTE_KANJI,i.BYTE,e),r=[]),n.concat(o,t,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case i.NUMERIC:return n.getBitsLength(e);case i.ALPHANUMERIC:return o.getBitsLength(e);case i.KANJI:return a.getBitsLength(e);case i.BYTE:return s.getBitsLength(e)}}function g(e){return e.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[])}function m(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case i.NUMERIC:t.push([n,{data:n.data,mode:i.ALPHANUMERIC,length:n.length},{data:n.data,mode:i.BYTE,length:n.length}]);break;case i.ALPHANUMERIC:t.push([n,{data:n.data,mode:i.BYTE,length:n.length}]);break;case i.KANJI:t.push([n,{data:n.data,mode:i.BYTE,length:d(n.data)}]);break;case i.BYTE:t.push([{data:n.data,mode:i.BYTE,length:d(n.data)}])}}return t}function w(e,t){let r={},n={start:{}},o=["start"];for(let s=0;s<e.length;s++){let a=e[s],l=[];for(let e=0;e<a.length;e++){let c=a[e],u=""+s+e;
2l.push(u),r[u]={node:c,lastCount:0},n[u]={};for(let e=0;e<o.length;e++){let s=o[e];r[s]&&r[s].node.mode===c.mode?(n[s][u]=p(r[s].lastCount+c.length,c.mode)-p(r[s].lastCount,c.mode),r[s].lastCount+=c.length):(r[s]&&(r[s].lastCount=c.length),n[s][u]=p(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)n[o[e]].end=0;return{map:n,table:r}}function y(e,t){let r;let l=i.getBestModeForData(e);if((r=i.from(t,l))!==i.BYTE&&r.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+i.toString(r)+".\n Suggested mode is: "+i.toString(l));switch(r!==i.KANJI||c.isKanjiModeEnabled()||(r=i.BYTE),r){case i.NUMERIC:return new n(e);case i.ALPHANUMERIC:return new o(e);case i.KANJI:return new a(e);case i.BYTE:return new s(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(y(t,null)):t.data&&e.push(y(t.data,t.mode)),e},[])},t.fromString=function(e,r){let i=w(m(f(e,c.isKanjiModeEnabled())),r),n=u.find_path(i.map,"start","end"),o=[];for(let e=1;e<n.length-1;e++)o.push(i.table[n[e]].node);return t.fromArray(g(o))},t.rawSplit=function(e){return t.fromArray(f(e,c.isKanjiModeEnabled()))}},62415:function(e,t){let r;let i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return i[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},96623:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},33379:function(e,t,r){let i=r(62415),n=r(79386),o=r(29947),s=r(17956),a=r(96623),l=7973,c=i.getBCHDigit(l);function u(e,r,i){for(let n=1;n<=40;n++)if(r<=t.getCapacity(n,i,e))return n}function d(e,t){return s.getCharCountIndicator(e,t)+4}function h(e,t){let r=0;return e.forEach(function(e){let i=d(e.mode,t);r+=i+e.getBitsLength()}),r}function f(e,r){for(let i=1;i<=40;i++)if(h(e,i)<=t.getCapacity(i,r,s.MIXED))return i}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!a.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=s.BYTE);let o=(i.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,t))*8;if(r===s.MIXED)return o;let l=o-d(r,e);switch(r){case s.NUMERIC:return Math.floor(l/10*3);case s.ALPHANUMERIC:return Math.floor(l/11*2);case s.KANJI:return Math.floor(l/13);case s.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,t){let r;let i=o.from(t,o.M);if(Array.isArray(e)){if(e.length>1)return f(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return u(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;i.getBCHDigit(t)-c>=0;)t^=l<<i.getBCHDigit(t)-c;return e<<12|t}},962:function(e,t,r){let i=r(87220);function n(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function o(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}t.render=function(e,t,r){let s=r,a=t;void 0!==s||t&&t.getContext||(s=t,t=void 0),t||(a=o()),s=i.getOptions(s);let l=i.getImageWidth(e.modules.size,s),c=a.getContext("2d"),u=c.createImageData(l,l);return i.qrToImageData(u.data,e,s),n(c,a,l),c.putImageData(u,0,0),a},t.renderToDataURL=function(e,r,i){let n=i;void 0!==n||r&&r.getContext||(n=r,r=void 0),n||(n={});let o=t.render(e,r,n),s=n.type||"image/png",a=n.rendererOpts||{};return o.toDataURL(s,a.quality)}},35623:function(e,t,r){let i=r(87220);function n(e,t){let r=e.a/255,i=t+'="'+e.hex+'"';return r<1?i+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':i}function o(e,t,r){let i=e+t;return void 0!==r&&(i+=" "+r),i}function s(e,t,r){let i="",n=0,s=!1,a=0;for(let l=0;l<e.length;l++){let c=Math.floor(l%t),u=Math.floor(l/t);c||s||(s=!0),e[l]?(a++,l>0&&c>0&&e[l-1]||(i+=s?o("M",c+r,.5+u+r):o("m",n,0),n=0,s=!1),c+1<t&&e[l+1]||(i+=o("h",a),a=0)):n++}return i}t.render=function(e,t,r){let o=i.getOptions(t),a=e.modules.size,l=e.modules.data,c=a+2*o.margin,u=o.color.light.a?"<path "+n(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+n(o.color.dark,"stroke")+' d="'+s(l,a,o.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof r&&r(null,f),f}},87220:function(e,t){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");
2if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:i,scale:i?4:n,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,r){let i=t.getScale(e,r);return Math.floor((e+2*r.margin)*i)},t.qrToImageData=function(e,r,i){let n=r.modules.size,o=r.modules.data,s=t.getScale(n,i),a=Math.floor((n+2*i.margin)*s),l=i.margin*s,c=[i.color.light,i.color.dark];for(let t=0;t<a;t++)for(let r=0;r<a;r++){let u=(t*a+r)*4,d=i.color.light;t>=l&&r>=l&&t<a-l&&r<a-l&&(d=c[o[Math.floor((t-l)/s)*n+Math.floor((r-l)/s)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},88017:function(e,t,r){"use strict";let i=r(59148),n=r(89445),o=r(93129),s=r(90883),a=e=>null==e,l=Symbol("encodeFragmentIdentifier");function c(e){switch(e.arrayFormat){case"index":return t=>(r,i)=>{let n=r.length;return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),"[",n,"]"].join("")]:[...r,[h(t,e),"[",h(n,e),"]=",h(i,e)].join("")]};case"bracket":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),"[]"].join("")]:[...r,[h(t,e),"[]=",h(i,e)].join("")];case"colon-list-separator":return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,[h(t,e),":list="].join("")]:[...r,[h(t,e),":list=",h(i,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(i,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?i:(n=null===n?"":n,0===i.length)?[[h(r,e),t,h(n,e)].join("")]:[[i,h(n,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:null===i?[...r,h(t,e)]:[...r,[h(t,e),"=",h(i,e)].join("")]}}function u(e){let t;switch(e.arrayFormat){case"index":return(e,r,i)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){i[e]=r;return}void 0===i[e]&&(i[e]={}),i[e][t[1]]=r};case"bracket":return(e,r,i)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){i[e]=r;return}if(void 0===i[e]){i[e]=[r];return}i[e]=[].concat(i[e],r)};case"colon-list-separator":return(e,r,i)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){i[e]=r;return}if(void 0===i[e]){i[e]=[r];return}i[e]=[].concat(i[e],r)};case"comma":case"separator":return(t,r,i)=>{let n="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!n&&f(r,e).includes(e.arrayFormatSeparator);r=o?f(r,e):r;let s=n||o?r.split(e.arrayFormatSeparator).map(t=>f(t,e)):null===r?r:f(r,e);i[t]=s};case"bracket-separator":return(t,r,i)=>{let n=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!n){i[t]=r?f(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>f(t,e));if(void 0===i[t]){i[t]=o;return}i[t]=[].concat(i[t],o)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}function d(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function h(e,t){return t.encode?t.strict?i(e):encodeURIComponent(e):e}function f(e,t){return t.decode?n(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function g(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function m(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}function w(e){let t=(e=g(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):t.parseBooleans&&null!==e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())&&(e="true"===e.toLowerCase()),e}function b(e,t){d((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=u(t),i=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return i;for(let n of e.split("&")){if(""===n)continue;let[e,s]=o(t.decode?n.replace(/\+/g," "):n,"=");s=void 0===s?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?s:f(s,t),r(f(e,t),s,i)}for(let e of Object.keys(i)){let r=i[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=y(r[e],t);else i[e]=y(r,t)}return!1===t.sort?i:(!0===t.sort?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce((e,t)=>
2{let r=i[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=p(r):e[t]=r,e},Object.create(null))}t.extract=w,t.parse=b,t.stringify=(e,t)=>{if(!e)return"";d((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&a(e[r])||t.skipEmptyString&&""===e[r],i=c(t),n={};for(let t of Object.keys(e))r(t)||(n[t]=e[t]);let o=Object.keys(n);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let n=e[r];return void 0===n?"":null===n?h(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?h(r,t)+"[]":n.reduce(i(r),[]).join("&"):h(r,t)+"="+h(n,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,i]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:b(w(e),t)},t&&t.parseFragmentIdentifier&&i?{fragmentIdentifier:f(i,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[l]:!0},r);let i=g(e.url).split("?")[0]||"",n=t.extract(e.url),o=Object.assign(t.parse(n,{sort:!1}),e.query),s=t.stringify(o,r);s&&(s=`?${s}`);let a=m(e.url);return e.fragmentIdentifier&&(a=`#${r[l]?h(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${i}${s}${a}`},t.pick=(e,r,i)=>{i=Object.assign({parseFragmentIdentifier:!0,[l]:!1},i);let{url:n,query:o,fragmentIdentifier:a}=t.parseUrl(e,i);return t.stringifyUrl({url:n,query:s(o,r),fragmentIdentifier:a},i)},t.exclude=(e,r,i)=>{let n=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,n,i)}},95172:function(e){"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}function r(e,r,i){var n=i&&i.stringify||t,o=1;if("object"==typeof e&&null!==e){var s=r.length+o;if(1===s)return e;var a=Array(s);a[0]=n(e);for(var l=1;l<s;l++)a[l]=n(r[l]);return a.join(" ")}if("string"!=typeof e)return e;var c=r.length;if(0===c)return e;for(var u="",d=1-o,h=-1,f=e&&e.length||0,p=0;p<f;){if(37===e.charCodeAt(p)&&p+1<f){switch(h=h>-1?h:0,e.charCodeAt(p+1)){case 100:case 102:if(d>=c||null==r[d])break;h<p&&(u+=e.slice(h,p)),u+=Number(r[d]),h=p+2,p++;break;case 105:if(d>=c||null==r[d])break;h<p&&(u+=e.slice(h,p)),u+=Math.floor(Number(r[d])),h=p+2,p++;break;case 79:case 111:case 106:if(d>=c||void 0===r[d])break;h<p&&(u+=e.slice(h,p));var g=typeof r[d];if("string"===g){u+="'"+r[d]+"'",h=p+2,p++;break}if("function"===g){u+=r[d].name||"<anonymous>",h=p+2,p++;break}u+=n(r[d]),h=p+2,p++;break;case 115:if(d>=c)break;h<p&&(u+=e.slice(h,p)),u+=String(r[d]),h=p+2,p++;break;case 37:h<p&&(u+=e.slice(h,p)),u+="%",h=p+2,p++,d--}++d}++p}return -1===h?e:(h<f&&(u+=e.slice(h)),u)}e.exports=r},61911:function(e,t,r){"use strict";var i=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;var n=r(15586),o=r(86633),s=r(2265),a=r(54887),l=function(e){function t(t){var r=e.call(this,t)||this;return r.canvas=s.createRef(),r}return i(t,e),t.utf16to8=function(e){var t,r,i="",n=e.length;for(t=0;t<n;t++)(r=e.charCodeAt(t))>=1&&r<=127?i+=e.charAt(t):r>2047?i+=String.fromCharCode(224|r>>12&15)+String.fromCharCode(128|r>>6&63)+String.fromCharCode(128|r>>0&63):i+=String.fromCharCode(192|r>>6&31)+String.fromCharCode(128|r>>0&63);return i},t.prototype.drawRoundedSquare=function(e,t,r,i,n,o,s,a){a.lineWidth=e,a.fillStyle=n,a.strokeStyle=n,r+=e/2,t+=e/2,i-=e,Array.isArray(o)||(o=[o,o,o,o]);var l=(o=o.map(function(e){return(e=Math.min(e,i/2))<0?0:e}))[0]||0,c=o[1]||0,u=o[2]||0,d=o[3]||0;a.beginPath(),a.moveTo(t+l,r),a.lineTo(t+i-c,r),c&&a.quadraticCurveTo(t+i,r,t+i,r+c),a.lineTo(t+i,r+i-u),u&&a.quadraticCurveTo(t+i,r+i,t+i-u,r+i),a.lineTo(t+d,r+i),d&&a.quadraticCurveTo(t,r+i,t,r+i-d),a.lineTo(t,r+l),l&&a.quadraticCurveTo(t,r,t+l,r),a.closePath(),a.stroke(),s&&a.fill()},t.prototype.drawPositioningPattern=function(e,t,r,i,n,o,s){void 0===s&&(s=[0,0,0,0]);var a,l,c,u,d=Math.ceil(t);"number"==typeof s||Array.isArray(s)?l=a=s:(a=s.outer||0,l=s.inner||0),"string"!=typeof o?(c=o.outer,u=o.inner):(c=o,u=o);var h=i*t+r,f=n*t+r,p=7*t;this.drawRoundedSquare(d,f,h,p,c,a,!1,e),p=3*t,h+=2*t,f+=2*t,this.drawRoundedSquare(d,f,h,p,u,l,!0,e)},t.prototype.isInPositioninZone=function(e,t,r){return r.some(function(r){return t>=r.row&&t<=r.row+7&&e>=r.col&&e<=r.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(e,t){return e/t},t.prototype.isCoordinateInImage=function(e,t,r,i,n,o,s,a){if(!a)return!1;var l=2,c=this.transformPixelLengthIntoNumberOfCells(n,s),u=this.transformPixelLengthIntoNumberOfCells(o,s),d=this.transformPixelLengthIntoNumberOfCells(r,s)-1,h=this.transformPixelLengthIntoNumberOfCells(i,s)-1;return t>=c-l&&t<=c+d+l&&e>=u-l&&e<=u+h+l},t.prototype.shouldComponentUpdate=function(e){return!n(this.props,e)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var e=this.props,r=e.value,i=e.ecLevel,n=e.enableCORS,s=e.bgColor,l=e.fgColor,c=e.logoImage,u=e.logoOpacity,d=e.logoOnLoad,h=e.removeQrC
2odeBehindLogo,f=e.qrStyle,p=e.eyeRadius,g=e.eyeColor,m=e.logoPaddingStyle,w=+this.props.size,y=+this.props.quietZone,b=this.props.logoWidth?+this.props.logoWidth:0,v=this.props.logoHeight?+this.props.logoHeight:0,_=this.props.logoPadding?+this.props.logoPadding:0,x=o(0,i);x.addData(t.utf16to8(r)),x.make();var E=a.findDOMNode(this.canvas.current),C=E.getContext("2d"),k=w+2*y,S=x.getModuleCount(),A=w/S,I=window.devicePixelRatio||1;E.height=E.width=k*I,C.scale(I,I),C.fillStyle=s,C.fillRect(0,0,k,k);var T=y,R=[{row:0,col:0},{row:0,col:S-7},{row:S-7,col:0}];if(C.strokeStyle=l,"dots"===f){C.fillStyle=l;for(var O=A/2,P=0;P<S;P++)for(var N=0;N<S;N++)x.isDark(P,N)&&!this.isInPositioninZone(P,N,R)&&(C.beginPath(),C.arc(Math.round(N*A)+O+T,Math.round(P*A)+O+T,O/100*75,0,2*Math.PI,!1),C.closePath(),C.fill())}else if("fluid"===f){for(var O=Math.ceil(A/2),P=0;P<S;P++)for(var N=0;N<S;N++)if(x.isDark(P,N)&&!this.isInPositioninZone(P,N,R)){var M=[!1,!1,!1,!1];P>0&&!x.isDark(P-1,N)&&N>0&&!x.isDark(P,N-1)&&(M[0]=!0),P>0&&!x.isDark(P-1,N)&&N<S-1&&!x.isDark(P,N+1)&&(M[1]=!0),P<S-1&&!x.isDark(P+1,N)&&N<S-1&&!x.isDark(P,N+1)&&(M[2]=!0),P<S-1&&!x.isDark(P+1,N)&&N>0&&!x.isDark(P,N-1)&&(M[3]=!0);var D=Math.ceil((N+1)*A)-Math.floor(N*A),L=Math.ceil((P+1)*A)-Math.floor(P*A);C.fillStyle=l,C.beginPath(),C.arc(Math.round(N*A)+O+T,Math.round(P*A)+O+T,O,0,2*Math.PI,!1),C.closePath(),C.fill(),M[0]||C.fillRect(Math.round(N*A)+T,Math.round(P*A)+T,D/2,L/2),M[1]||C.fillRect(Math.round(N*A)+T+Math.floor(D/2),Math.round(P*A)+T,D/2,L/2),M[2]||C.fillRect(Math.round(N*A)+T+Math.floor(D/2),Math.round(P*A)+T+Math.floor(L/2),D/2,L/2),M[3]||C.fillRect(Math.round(N*A)+T,Math.round(P*A)+T+Math.floor(L/2),D/2,L/2)}}else for(var P=0;P<S;P++)for(var N=0;N<S;N++)if(x.isDark(P,N)&&!this.isInPositioninZone(P,N,R)){C.fillStyle=l;var D=Math.ceil((N+1)*A)-Math.floor(N*A),L=Math.ceil((P+1)*A)-Math.floor(P*A);C.fillRect(Math.round(N*A)+T,Math.round(P*A)+T,D,L)}for(var j=0;j<3;j++){var B=R[j],P=B.row,N=B.col,$=p,U=void 0;Array.isArray($)&&($=$[j]),"number"==typeof $&&($=[$,$,$,$]),U=g?Array.isArray(g)?g[j]:g:l,this.drawPositioningPattern(C,A,T,P,N,U,$)}if(c){var F=new Image;n&&(F.crossOrigin="Anonymous"),F.onload=function(){C.save();var e=b||.2*w,t=v||e,r=(w-e)/2,i=(w-t)/2;if(h||_){C.beginPath(),C.strokeStyle=s,C.fillStyle=s;var n=e+2*_,o=t+2*_,a=r+T-_,l=i+T-_;if("circle"===m){var c=a+n/2,f=l+o/2;C.ellipse(c,f,n/2,o/2,0,0,2*Math.PI),C.stroke(),C.fill()}else C.fillRect(a,l,n,o)}C.globalAlpha=u,C.drawImage(F,r+T,i+T,e,t),C.restore(),d&&d()},F.src=c}},t.prototype.render=function(){var e,t=+this.props.size+2*+this.props.quietZone;return s.createElement("canvas",{id:null!==(e=this.props.id)&&void 0!==e?e:"react-qrcode-logo",height:t,width:t,style:{height:t+"px",width:t+"px"},ref:this.canvas})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(s.Component);t.QRCode=l},85260:function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,i,n){function o(e,t,r){return"string"==typeof i?i:i(e,t,r)}n||(n=Error);var s=function(e){function r(t,r,i){return e.call(this,o(t,r,i))||this}return t(r,e),r}(n);s.prototype.name=n.name,s.prototype.code=e,r[e]=s}function n(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function o(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function s(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&o(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",s(e," argument"))l="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var i,l,c=a(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENT
2ED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=r},69422:function(e,t,r){"use strict";var i=r(25566),n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(15301),s=r(62949);r(56853)(u,o);for(var a=n(s.prototype),l=0;l<a.length;l++){var c=a[l];u.prototype[c]||(u.prototype[c]=s.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},73856:function(e,t,r){"use strict";e.exports=n;var i=r(98192);function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}r(56853)(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},15301:function(e,t,r){"use strict";var i,n,o,s,a,l=r(25566);e.exports=I,I.ReadableState=A,r(55445).EventEmitter;var c=function(e,t){return e.listeners(t).length},u=r(56736),d=r(82957).Buffer,h=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function f(e){return d.from(e)}function p(e){return d.isBuffer(e)||e instanceof h}var g=r(94616);n=g&&g.debuglog?g.debuglog("stream"):function(){};var m=r(1381),w=r(28589),y=r(7181).getHighWaterMark,b=r(85260).q,v=b.ERR_INVALID_ARG_TYPE,_=b.ERR_STREAM_PUSH_AFTER_EOF,x=b.ERR_METHOD_NOT_IMPLEMENTED,E=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(56853)(I,u);var C=w.errorOrDestroy,k=["error","close","destroy","pause","resume"];function S(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 11,114 bytes, line 2
2ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function A(e,t,n){i=i||r(69422),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",n),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=r(64582).StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function I(e){if(i=i||r(69422),!(this instanceof I))return new I(e);var t=this instanceof i;this._readableState=new A(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function T(e,t,r,i,o){n("readableAddChunk",t);var s,a=e._readableState;if(null===t)a.reading=!1,D(e,a);else if(o||(s=O(a,t)),s)C(e,s);else if(a.objectMode||t&&t.length>0){if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=f(t)),i)a.endEmitted?C(e,new E):R(e,a,t,!0);else if(a.ended)C(e,new _);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?R(e,a,t,!1):B(e,a)):R(e,a,t,!1)}}else i||(a.reading=!1,B(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function R(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&L(e)),B(e,t)}function O(e,t){var r;return p(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),I.prototype.destroy=w.destroy,I.prototype._undestroy=w.undestroy,I.prototype._destroy=function(e,t){t(e)},I.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=d.from(e,t),t=""),r=!0),T(this,e,t,!1,r)},I.prototype.unshift=function(e){return T(this,e,null,!0,!1)},I.prototype.isPaused=function(){return!1===this._readableState.flowing},I.prototype.setEncoding=function(e){o||(o=r(64582).StringDecoder);var t=new o(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,n="";null!==i;)n+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var P=1073741824;function N(e){return e>=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function D(e,t){if(n("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?L(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}function L(e){var t=e._readableState;n("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(n("emitReadable",t.flowing),t.emittedReadable=!0,l.nextTick(j,e))}function j(e){var t=e._readableState;n("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,H(e)}function B(e,t){t.readingMore||(t.readingMore=!0,l.nextTick($,e,t))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(n("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function U(e){return function(){var t=e._readableState;n("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,H(e))}}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function z(e){n("readable nexttick read 0"),e.read(0)}function q(e,t){t.resumeScheduled||(t.resumeScheduled=!0,l.nextTick(W,e,t))}function W(e,t){n("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),H(e),t.flowing&&!t.reading&&e.read(0)}function H(e){var t=e._readableState;for(n("flow",t.flowing);t.flowing&&null!==e.read(););}function V(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function Z(e){var t=e._readableState;n("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,l.nextTick(K,t,e))}function K(e,t){if(n("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function G(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}I.prototype.read=function(e){n("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return n("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?Z(this):L(this),null;if(0===(e=M(e,r))&&r.ended)return 0===r.length&&Z(this),null;var o=r.needReadable;return n("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&n("length less than watermark",o=!0),r.ended||r.reading?n("reading or ended",o=!1):o&&(n("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=M(i,r))),null===(t=e>0?V(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&Z(this)),null!==t&&this.emit("data",t),t},I.prototype._read=function(e){C(this,new x("_read()"))},I.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,n("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===l.stdout||e===l.stderr?w:a;function s(e,t){n("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function a(){n("onend"),e.end()}i.endEmitted?l.nextTick(o):r.once("end",o),e.on("unpipe",s);var u=U(r);e.on("drain",u);var d=!1;function h(){n("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",w),r.removeListener("data",f),d=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}function f(t){n("ondata");var o=e.write(t);n("dest.write",o),!1===o&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==G(i.pipes,e))&&!d&&(n("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){n("onerror",t),w(),e.removeListener("error",p),0===c(e,"error")&&C(e,t)}function g(){e.removeListener("finish",m),w()}function m(){n("onfinish"),e.removeListener("close",g),w()}function w(){n("unpipe"),r.unpipe(e)}return r.on("data",f),S(e,"error",p),e.once("close",g),e.once("finish",m),e.emit("pipe",r),i.flowing||(n("pipe resume"),r.resume()),e},I.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=G(t.pipes,e);return -1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},I.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,n("on readable",i.length,i.reading),i.length?L(this):i.reading||l.nextTick(z,this)),r},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&l.nextTick(F,this),r},I.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&l.nextTick(F,this),t},I.prototype.resume=function(){var e=this._readableState;return e.flowing||(n("resume"),e.flowing=!e.readableListening,q(this,e)),e.paused=!1,this},I.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},I.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var o in e.on("end",function(){if(n("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){n("wrapped data"),r.decoder&&(o=r.decoder.write(o)),(!r.objectMode||null!=o)&&(r.objectMode||o&&o.length)&&(t.push(o)||(i=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var s=0;s<k.length;s++)e.on(k[s],this.emit.bind(this,k[s]));return this._read=function(t){n("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(I.prototype[Symbol.asyncIterator]=function(){return void 0===s&&(s=r(16497)),s(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),I._fromList=V,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(I.from=function(e,t){return void 0===a&&(a=r(5564)),a(I,e,t)})},98192:function(e,t,r){"use strict";e.exports=u;
vendor: 2,499 bytes, line 2
2var i=r(85260).q,n=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,l=r(69422);function c(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}r(56853)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new n("_transform()"))},u.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},62949:function(e,t,r){"use strict";var i,n,o=r(25566);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){W(t,e)}}e.exports=A,A.WritableState=S;var a={deprecate:r(37761)},l=r(56736),c=r(82957).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function d(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof u}var f=r(28589),p=r(7181).getHighWaterMark,g=r(85260).q,m=g.ERR_INVALID_ARG_TYPE,w=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,b=g.ERR_STREAM_CANNOT_PIPE,v=g.ERR_STREAM_DESTROYED,_=g.E
vendor: 1,349 bytes, line 2
2RR_STREAM_NULL_VALUES,x=g.ERR_STREAM_WRITE_AFTER_END,E=g.ERR_UNKNOWN_ENCODING,C=f.errorOrDestroy;function k(){}function S(e,t,n){i=i||r(69422),e=e||{},"boolean"!=typeof n&&(n=t instanceof i),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=p(this,e,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){D(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function A(e){var t=this instanceof(i=i||r(69422));if(!t&&!n.call(A,this))return new A(e);this._writableState=new S(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function I(e,t){var r=new x;C(e,r),o.nextTick(t,r)}
vendor: 13,996 bytes, line 2
2function T(e,t,r,i){var n;return null===r?n=new _:"string"==typeof r||t.objectMode||(n=new m("chunk",["string","Buffer"],r)),!n||(C(e,n),o.nextTick(i,n),!1)}function R(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function O(e,t,r,i,n,o){if(!r){var s=R(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,a,i,n,o);return l}function P(e,t,r,i,n,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function N(e,t,r,i,n){--t.pendingcb,r?(o.nextTick(n,i),o.nextTick(z,e,t),e._writableState.errorEmitted=!0,C(e,i)):(n(i),e._writableState.errorEmitted=!0,C(e,i),z(e,t))}function M(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function D(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if("function"!=typeof n)throw new y;if(M(r),t)N(e,r,i,t,n);else{var s=$(r)||e.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||B(e,r),i?o.nextTick(L,e,r,s,n):L(e,r,s,n)}}function L(e,t,r,i){r||j(e,t),t.pendingcb--,i(),z(e,t)}function j(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=Array(t.bufferedRequestCount),n=t.corkedRequestsFree;n.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,P(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,d=t.objectMode?1:l.length;if(P(e,t,!1,d,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function $(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function U(e,t){e._final(function(r){t.pendingcb--,r&&C(e,r),t.prefinished=!0,e.emit("prefinish"),z(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(U,e,t)))}function z(e,t){var r=$(t);if(r&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function q(e,t,r){t.ending=!0,z(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function W(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}r(56853)(A,l),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(e){return!!n.call(this,e)||this===A&&e&&e._writableState instanceof S}})):n=function(e){return e instanceof this},A.prototype.pipe=function(){C(this,new b)},A.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&h(e);return o&&!c.isBuffer(e)&&(e=d(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=k),i.ending?I(this,r):(o||T(this,i,e,r))&&(i.pendingcb++,n=O(this,i,o,e,t,r)),n},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new E(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,r){r(new w("_write()"))},A.prototype._writev=null,A.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||q(this,i,r),this},Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(e,t){t(e)}},16497:function(e,t,r){"use strict";var i,n=r(25566);function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){var t=a(e,"string");return"symbol"==typeof t?t:String(t)}function a(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var l=r(80618),c=Symbol("lastResolve"),u=Symbol("lastReject"),d=Symbol("error"),h=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),g=Symbol("stream");function m(e,t){return{value:e,done:t}}function w(e){var t=e[c];if(null!==t){var r=e[g].read();null!==r&&(e[f]=null,e[c]=null,e[u]=null,t(m(r,!1)))}}function y(e){n.nextTick(w,e)}function b(e,t){return function(r,i){e.then(function(){if(t[h]){r(m(void 0,!0));return}t[p](r,i)},i)}}var v=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((o(i={get stream(){return this[g]},next:function(){var e,t=this,r=this[d];if(null!==r)return Promise.reject(r);if(this[h])return Promise.resolve(m(void 0,!0));if(this[g].destroyed)return new Promise(function(e,r){n.nextTick(function(){t[d]?r(t[d]):e(m(void 0,!0))})});var i=this[f];if(i)e=new Promise(b(i,this));else{var o=this[g].read();if(null!==o)return Promise.resolve(m(o,!1));e=new Promise(this[p])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),o(i,"return",function(){var e=this;return new Promise(function(t,r){e[g].destroy(null,function(e){if(e){r(e);return}t(m(void 0,!0))})})}),i),v),x=function(e){var t,r=Object.create(_,(o(t={},g,{value:e,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:null,writable:!0}),o(t,d,{value:null,writable:!0}),o(t,h,{value:e._readableState.endEmitted,writable:!0}),o(t,p,{value:function(e,t){var i=r[g].read();i?(r[f]=null,r[c]=null,r[u]=null,e(m(i,!1))):(r[c]=e,r[u]=t)},writable:!0}),t));return r[f]=null,l(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[c]=null,r[u]=null,t(e)),r[d]=e;return}var i=r[c];null!==i&&(r[f]=null,r[c]=null,r[u]=null,i(m(void 0,!0))),r[h]=!0}),e.on("readable",y.bind(null,r)),r};e.exports=x},1381:function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function l(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"==typeof t?t:String(t)}function u(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=r(82957).Buffer,h=r(52361).inspect,f=h&&h.custom||"inspect";function p(e,t,r){d.prototype.copy.call(e,t,r)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return d.alloc(0);for(var t=d.allocUnsafe(e>>>0),r=this.head,i=0;r;)p(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,o=e>n.length?n.length:e;if(o===n.length?i+=n:i+=n.slice(0,e),0==(e-=o)){o===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(o));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=d.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,o=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,o),0==(e-=o)){o===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(o));break}++i}return this.length-=i,t}},{key:f,value:function(e,t){return h(this,n(n({},t),{},{depth:0,customInspect:!1}))}}]),e}()},28589:function(e,t,r){"use strict";var i=r(25566);function n(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(l,this,e)):i.nextTick(l,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?i.nextTick(s,r):(r._writableState.errorEmitted=!0,i.nextTick(o,r,e)):i.nextTick(o,r,e):t?(i.nextTick(s,r),t(e)):i.nextTick(s,r)})),this}function o(e,t){l(e,t),s(e)}function s(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(e,t){e.emit("error",t)}function c(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:n,undestroy:a,errorOrDestroy:c}},80618:function(e,t,r){"use strict";var i=r(85260).q.ERR_STREAM_PREMATURE_CLOSE;function n(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function o(){}function s(e){return e.setHeader&&"function"==typeof e.abort}function a(e,t,r){if("function"==typeof t)return a(e,null,t);t||(t={}),r=n(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||r.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,f=!0,c||r.call(e)},g=function(t){r.call(e,t)},m=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},w=function(){e.req.on("finish",h)};return s(e)?(e.on("complete",h),e.on("abort",m),e.req?w():e.on("request",w)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",h),e.removeListener("abort",m),e.removeListener("request",w),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}
2e.exports=a},5564:function(e){e.exports=function(){throw Error("Readable.from is not available in the browser")}},9237:function(e,t,r){"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var n,o=r(85260).q,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(e,t,o,s){s=i(s);var l=!1;e.on("close",function(){l=!0}),void 0===n&&(n=r(80618)),n(e,{readable:t,writable:o},function(e){if(e)return s(e);l=!0,s()});var u=!1;return function(t){if(!l&&!u){if(u=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();s(t||new a("pipe"))}}}function d(e){e()}function h(e,t){return e.pipe(t)}function f(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():l}function p(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=f(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new s("streams");var o=r.map(function(t,i){var s=i<r.length-1;return u(t,s,i>0,function(t){e||(e=t),t&&o.forEach(d),s||(o.forEach(d),n(e))})});return r.reduce(h)}e.exports=p},7181:function(e,t,r){"use strict";var i=r(85260).q.ERR_INVALID_OPT_VALUE;function n(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=n(t,o,r);if(null!=s){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new i(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},56736:function(e,t,r){e.exports=r(55445).EventEmitter},89654:function(e,t,r){(t=e.exports=r(15301)).Stream=t,t.Readable=t,t.Writable=r(62949),t.Duplex=r(69422),t.Transform=r(98192),t.PassThrough=r(73856),t.finished=r(80618),t.pipeline=r(9237)},73306:function(e,t,r){var i=r(82957),n=i.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=s),s.prototype=Object.create(n.prototype),o(n,s),s.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},69301:function(e,t,r){"use strict";var i=r(50071),n=r(33832),o=r(40927)(),s=r(50297),a=r(53842),l=i("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(c=!1)}return(i||c||!r)&&(o?n(e,"length",t,!0,!0):n(e,"length",t)),e}},89975:function(e,t,r){var i=r(73306).Buffer;function n(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var r=this._block,n=this._blockSize,o=e.length,s=this._len,a=0;a<o;){for(var l=s%n,c=Math.min(o-a,n-l),u=0;u<c;u++)r[l+u]=e[a+u];s+=c,a+=c,s%n==0&&this._update(r)}return this._len+=o,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=n},2032:function(e,t,r){var i=e.exports=function(e){var t=i[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};i.sha=r(72181),i.sha1=r(42998),i.sha224=r(15541),i.sha256=r(57338),i.sha384=r(25646),i.sha512=r(23978)},72181:function(e,t,r){var i=r(56853),n=r(89975),o=r(73306).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);function l(){this.init(),this._w=a,n.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var h=0;h<80;++h){var f=~~(h/20),p=c(r)+d(f,i,n,o)+a+t[h]+s[f]|0;a=o,o=n,n=u(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l},42998:function(e,t,r){var i=r(56853),n=r(89975),o=r(73306).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);function l(){this.init(),this._w=a,n.call(this,64,56)}function c(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function h(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,a=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=c(t[l-3]^t[l-8]^t[l-14]^t[l-16]);for(var f=0;f<80;++f){var p=~~(f/20),g=u(r)+h(p,i,n,o)+a+t[f]+s[p]|0;a=o,o=n,n=d(i),i=r,r=g}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=l}
vendor: 4,741 bytes, line 2
2,15541:function(e,t,r){var i=r(56853),n=r(57338),o=r(89975),s=r(73306).Buffer,a=Array(64);function l(){this.init(),this._w=a,o.call(this,64,56)}i(l,n),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=l},57338:function(e,t,r){var i=r(56853),n=r(89975),o=r(73306).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=Array(64);function l(){this.init(),this._w=a,n.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}i(l,n),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,o=0|this._d,a=0|this._e,l=0|this._f,g=0|this._g,m=0|this._h,w=0;w<16;++w)t[w]=e.readInt32BE(4*w);for(;w<64;++w)t[w]=p(t[w-2])+t[w-7]+f(t[w-15])+t[w-16]|0;for(var y=0;y<64;++y){var b=m+h(a)+c(a,l,g)+s[y]+t[y]|0,v=d(r)+u(r,i,n)|0;m=g,g=l,l=a,a=o+b|0,o=n,n=i,i=r,r=b+v|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=l+this._f|0,this._g=g+this._g|0,this._h=m+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=l},25646:function(e,t,r){var i=r(56853),n=r(23978),o=r(89975),s=r(73306).Buffer,a=Array(160);function l(){this.init(),this._w=a,o.call(this,128,112)}i(l,n),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=l},23978:function(e,t,r){var i=r(56853),n=r(89975),o=r(73306).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
21322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=Array(160);function l(){this.init(),this._w=a,n.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function w(e,t){return e>>>0<t>>>0?1:0}i(l,n),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,o=0|this._dh,a=0|this._eh,l=0|this._fh,y=0|this._gh,b=0|this._hh,v=0|this._al,_=0|this._bl,x=0|this._cl,E=0|this._dl,C=0|this._el,k=0|this._fl,S=0|this._gl,A=0|this._hl,I=0;I<32;I+=2)t[I]=e.readInt32BE(4*I),t[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var T=t[I-30],R=t[I-30+1],O=f(T,R),P=p(R,T),N=g(T=t[I-4],R=t[I-4+1]),M=m(R,T),D=t[I-14],L=t[I-14+1],j=t[I-32],B=t[I-32+1],$=P+L|0,U=O+D+w($,P)|0;U=(U=U+N+w($=$+M|0,M)|0)+j+w($=$+B|0,B)|0,t[I]=U,t[I+1]=$}for(var F=0;F<160;F+=2){U=t[F],$=t[F+1];var z=u(r,i,n),q=u(v,_,x),W=d(r,v),H=d(v,r),V=h(a,C),Z=h(C,a),K=s[F],G=s[F+1],Y=c(a,l,y),J=c(C,k,S),Q=A+Z|0,X=b+V+w(Q,A)|0;X=(X=(X=X+Y+w(Q=Q+J|0,J)|0)+K+w(Q=Q+G|0,G)|0)+U+w(Q=Q+$|0,$)|0;var ee=H+q|0,et=W+z+w(ee,H)|0;b=y,A=S,y=l,S=k,l=a,k=C,a=o+X+w(C=E+Q|0,E)|0,o=n,E=x,n=i,x=_,i=r,_=v,r=X+et+w(v=Q+ee|0,Q)|0}this._al=this._al+v|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+E|0,this._el=this._el+C|0,this._fl=this._fl+k|0,this._gl=this._gl+S|0,this._hl=this._hl+A|0,this._ah=this._ah+r+w(this._al,v)|0,this._bh=this._bh+i+w(this._bl,_)|0,this._ch=this._ch+n+w(this._cl,x)|0,this._dh=this._dh+o+w(this._dl,E)|0,this._eh=this._eh+a+w(this._el,C)|0,this._fh=this._fh+l+w(this._fl,k)|0,this._gh=this._gh+y+w(this._gl,S)|0,this._hh=this._hh+b+w(this._hl,A)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=l},93129:function(e){"use strict";e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},59148:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},64582:function(e,t,r){"use strict";var i=r(73306).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=m,this.end=w,t=3;break;default:this.write=y,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var i=t.length-1;if(i<r)return 0;var n=l(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=l(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=l(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function u(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function h(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function w(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=f,a.prototype.text=h,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},99623:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],i=0;i<e.rangeCount;i++)r.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}
2),t&&t.focus()}}},33509:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return v},__asyncGenerator:function(){return b},__asyncValues:function(){return _},__await:function(){return y},__awaiter:function(){return u},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return S},__createBinding:function(){return h},__decorate:function(){return a},__exportStar:function(){return f},__extends:function(){return n},__generator:function(){return d},__importDefault:function(){return C},__importStar:function(){return E},__makeTemplateObject:function(){return x},__metadata:function(){return c},__param:function(){return l},__read:function(){return g},__rest:function(){return s},__spread:function(){return m},__spreadArrays:function(){return w},__values:function(){return p}});var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function n(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function a(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function l(e,t){return function(r,i){t(r,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
2function u(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})}function d(e,t){var r,i,n,o,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]<n[3])){s.label=o[1];break}if(6===o[0]&&s.label<n[1]){s.label=n[1],n=o;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(o);break}n[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{r=n=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function h(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}function f(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),n=0,t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,n++)i[n]=o[s];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){n[e]&&(i[e]=function(t){return new Promise(function(r,i){o.push([e,t,r,i])>1||a(e,t)})})}function a(e,t){try{l(n[e](t))}catch(e){d(o[0][3],e)}}function l(e){e.value instanceof y?Promise.resolve(e.value.v).then(c,u):d(o[0][2],e)}function c(e){a("next",e)}function u(e){a("throw",e)}function d(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function v(e){var t,r;return t={},i("next"),i("throw",function(e){throw e}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:y(e[i](t)),done:"return"===i}:n?n(t):t}:n}}function _(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(i,o){n(i,o,(t=e[r](t)).done,t.value)})}}function n(e,t,r,i){Promise.resolve(i).then(function(t){e({value:t,done:r})},t)}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},62061:function(e,t,r){var i;!function(n,o){"use strict";var s="1.0.38",a="",l="?",c="function",u="undefined",d="object",h="string",f="major",p="model",g="name",m="type",w="vendor",y="version",b="architecture",v="console",_="mobile",x="tablet",E="smarttv",C="wearable",k="embedded",S=500,A="Amazon",I="Apple",T="ASUS",R="BlackBerry",O="Browser",P="Chrome",N="Firefox",M="Google",D="Huawei",L="LG",j="Microsoft",B="Motorola",$="Opera",U="Samsung",F="Sharp",z="Sony",q="Xiaomi",W="Zebra",H="Facebook",V="Chromium OS",Z="Mac OS",K=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},G=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Y=function(e,t){return typeof e===h&&-1!==J(t).indexOf(J(e))},J=function(e){return e.toLowerCase()},Q=function(e){return typeof e===h?e.replace(/[^\d\.]/g,a).split(".")[0]:void 0},X=function(e,t){if(typeof e===h)return e=e.replace(/^\s\s*/,a),typeof t===u?e:e.substring(0,S)},ee=function(e,t){for(var r,i,n,s,a,l,u=0;u<t.length&&!a;){var h=t[u],f=t[u+1];for(r=i=0;r<h.length&&!a&&h[r];)if(a=h[r++].exec(e))for(n=0;n<f.length;n++)l=a[++i],typeof(s=f[n])===d&&s.length>0?2===s.length?typeof s[1]==c?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==c||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;u+=2}},et=function(e,t){for(var r in t)if(typeof t[r]===d&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(Y(t[r][i],e))return r===l?o:r}else if(Y(t[r],e))return r===l?o:r;return e}
vendor: 4,456 bytes, line 2
2,er={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ei={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[g,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,y],[/opios[\/ ]+([\w\.]+)/i],[y,[g,$+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[g,$+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[g,$]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[g,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[g,y],[/\bddg\/([\w\.]+)/i],[y,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[g,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[g,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure "+O],y],[/\bfocus\/([\w\.]+)/i],[y,[g,N+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[g,$+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[g,$+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[g,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[y,[g,N]],[/\bqihu|(qi?ho?o?|360)browser/i],[[g,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1 "+O],y],[/samsungbrowser\/([\w\.]+)/i],[y,[g,U+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[g,/_/g," "],y],[/metasr[\/ ]?([\d\.]+)/i],[y,[g,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,"Sogou Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[g,y],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,H],y],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[g,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[g,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[g,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[g,P+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,P+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[g,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[g,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[y,et,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[g,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[g,N+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[g,y],[/(cobalt)\/([\w\.]+)/i],[g,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,J]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,a,J]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
2|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,J]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[w,U],[m,x]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[w,U],[m,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[w,I],[m,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[w,I],[m,x]],[/(macintosh);/i],[p,[w,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[w,F],[m,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[w,D],[m,x]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[w,D],[m,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[p,/_/g," "],[w,q],[m,_]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[w,q],[m,x]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[w,"OPPO"],[m,_]],[/\b(opd2\d{3}a?) bui/i],[p,[w,"OPPO"],[m,x]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[w,"Vivo"],[m,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[p,[w,"Realme"],[m,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[w,B],[m,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[w,B],[m,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[w,L],[m,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[w,L],[m,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[w,"Lenovo"],[m,x]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[w,"Nokia"],[m,_]],[/(pixel c)\b/i],[p,[w,M],[m,x]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[w,M],[m,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[w,z],[m,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[w,z],[m,x]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[w,"OnePlus"],[m,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[w,A],[m,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[w,A],[m,_]],[/(playbook);[-\w\),; ]+(rim)/i],[p,w,[m,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[w,R],[m,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[w,T],[m,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[w,T],[m,_]],[/(nexus 9)/i],[p,[w,"HTC"],[m,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[w,[p,/_/g," "],[m,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[w,"Acer"],[m,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[w,"Meizu"],[m,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[p,[w,"Ulefone"],[m,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,p,[m,_]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[w,p,[m,x]],[/(surface duo)/i],[p,[w,j],[m,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[w,"Fairphone"],[m,_]],[/(u304aa)/i],[p,[w,"AT&T"],[m,_]],[/\bsie-(\w*)/i],[p,[w,"Siemens"],[m,_]],[/\b(rct\w+) b/i],[p,[w,"RCA"],[m,x
vendor: 7,309 bytes, line 2
2]],[/\b(venue[\d ]{2,7}) b/i],[p,[w,"Dell"],[m,x]],[/\b(q(?:mv|ta)\w+) b/i],[p,[w,"Verizon"],[m,x]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[w,"Barnes & Noble"],[m,x]],[/\b(tm\d{3}\w+) b/i],[p,[w,"NuVision"],[m,x]],[/\b(k88) b/i],[p,[w,"ZTE"],[m,x]],[/\b(nx\d{3}j) b/i],[p,[w,"ZTE"],[m,_]],[/\b(gen\d{3}) b.+49h/i],[p,[w,"Swiss"],[m,_]],[/\b(zur\d{3}) b/i],[p,[w,"Swiss"],[m,x]],[/\b((zeki)?tb.*\b) b/i],[p,[w,"Zeki"],[m,x]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],p,[m,x]],[/\b(ns-?\w{0,9}) b/i],[p,[w,"Insignia"],[m,x]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[w,"NextBook"],[m,x]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],p,[m,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],p,[m,_]],[/\b(ph-1) /i],[p,[w,"Essential"],[m,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[w,"Envizen"],[m,x]],[/\b(trio[-\w\. ]+) b/i],[p,[w,"MachSpeed"],[m,x]],[/\btu_(1491) b/i],[p,[w,"Rotor"],[m,x]],[/(shield[\w ]+) b/i],[p,[w,"Nvidia"],[m,x]],[/(sprint) (\w+)/i],[w,p,[m,_]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[w,j],[m,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[w,W],[m,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[w,W],[m,_]],[/smart-tv.+(samsung)/i],[w,[m,E]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[w,U],[m,E]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,L],[m,E]],[/(apple) ?tv/i],[w,[p,I+" TV"],[m,E]],[/crkey/i],[[p,P+"cast"],[w,M],[m,E]],[/droid.+aft(\w+)( bui|\))/i],[p,[w,A],[m,E]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[w,F],[m,E]],[/(bravia[\w ]+)( bui|\))/i],[p,[w,z],[m,E]],[/(mitv-\w{5}) bui/i],[p,[w,q],[m,E]],[/Hbbtv.*(technisat) (.*);/i],[w,p,[m,E]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[w,X],[p,X],[m,E]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,E]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,p,[m,v]],[/droid.+; (shield) bui/i],[p,[w,"Nvidia"],[m,v]],[/(playstation [345portablevi]+)/i],[p,[w,z],[m,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[w,j],[m,v]],[/((pebble))app/i],[w,p,[m,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[w,I],[m,C]],[/droid.+; (glass) \d/i],[p,[w,M],[m,C]],[/droid.+; (wt63?0{2,3})\)/i],[p,[w,W],[m,C]],[/(quest( \d| pro)?)/i],[p,[w,H],[m,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[m,k]],[/(aeobc)\b/i],[p,[w,A],[m,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[p,[m,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[m,x]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,_]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[g,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[g,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[g,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,y],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[g,[y,et,er]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,et,er],[g,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,Z],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,g],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[g,y],[/\(bb(10);/i],[y,[g,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[g,N+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[g,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[g,P+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,V],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[g,y],[/(sunos) ?([\w\.\d]*)/i],[[g,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[g,y]]},en=function(e,t){if(typeof e===d&&(t=e,e=o),!(this instanceof en))return new en(e,t).getResult();var r=typeof n!==u&&n.navigator?n.navigator:o,i=e||(r&&r.userAgent?r.userAgent:a),s=r&&r.userAgentData?r.userAgentData:o,l=t?K(ei,t):ei,v=r&&r.userAgent==i;return this.getBrowser=function(){var e={};return e[g]=o,e[y]=o,ee.call(e,i,l.browser),e[f]=Q(e[y]),v&&r&&r.brave&&typeof r.brave.isBrave==c&&(e[g]="Brave"),e},this.getCPU=function(){var e={};return e[b]=o,ee.call(e,i,l.cpu),e},this.getDevice=function(){var e={};return e[w]=o,e[p]=o,e[m]=o,ee.call(e,i,l.device),v&&!e[m]&&s&&s.mobile&&(e[m]=_),v&&"Macintosh"==e[p]&&r&&typeof r.standalone!==u&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[p]="iPad",e[m]=x),e},this.getEngine=function(){var e={};return e[g]=o,e[y]=o,ee.call(e,i,l.engine),e},this.getOS=function(){var e={};return e[g]=o,e[y]=o,ee.call(e,i,l.os),v&&!e[g]&&s&&s.platform&&"Unknown"!=s.platform&&(e[g]=s.platform.replace(/chrome os/i,V).replace(/macos/i,Z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=typeof e===h&&e.length>S?X(e,S):e,this},this.setUA(i),this};en.VERSION=s,en.BROWSER=G([g,y,f]),en.CPU=G([b]),en.DEVICE=G([p,w,m,v,_,E,x,C,k]),en.ENGINE=en.OS=G([g,y]),typeof t!==u?("object"!==u&&e.exports&&(t=e.exports=en),t.UAParser=en):"function"===c&&r.amdO?o!==(i=(function(){return en}).call(t,r,t,e))&&(e.exports=i):typeof n!==u&&(n.UAParser=en);var eo=typeof n!==u&&(n.jQuery||n.Zepto);if(eo&&!eo.ua){var es=new en;eo.ua=es.getResult(),eo.ua.get=function(){return es.getUA()},eo.ua.set=function(e){es.setUA(e);var t=es.getResult();for(var r in t)eo.ua[r]=t[r]}}}("object"==typeof window?window:this)},37761:function(e,t,r){function i(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
vendor: 4,868 bytes, line 2
2e.exports=i},18749:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},83075:function(e,t,r){"use strict";var i=r(23722),n=r(80184),o=r(93790),s=r(87688);function a(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=a(Object.prototype.toString),d=a(Number.prototype.valueOf),h=a(String.prototype.valueOf),f=a(Boolean.prototype.valueOf);if(l)var p=a(BigInt.prototype.valueOf);if(c)var g=a(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function w(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function y(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||F(e)}function b(e){return"Uint8Array"===o(e)}function v(e){return"Uint8ClampedArray"===o(e)}function _(e){return"Uint16Array"===o(e)}function x(e){return"Uint32Array"===o(e)}function E(e){return"Int8Array"===o(e)}function C(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function S(e){return"Float32Array"===o(e)}function A(e){return"Float64Array"===o(e)}function I(e){return"BigInt64Array"===o(e)}function T(e){return"BigUint64Array"===o(e)}function R(e){return"[object Map]"===u(e)}function O(e){return"undefined"!=typeof Map&&(R.working?R(e):e instanceof Map)}function P(e){return"[object Set]"===u(e)}function N(e){return"undefined"!=typeof Set&&(P.working?P(e):e instanceof Set)}function M(e){return"[object WeakMap]"===u(e)}function D(e){return"undefined"!=typeof WeakMap&&(M.working?M(e):e instanceof WeakMap)}function L(e){return"[object WeakSet]"===u(e)}function j(e){return L(e)}function B(e){return"[object ArrayBuffer]"===u(e)}function $(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function U(e){return"[object DataView]"===u(e)}function F(e){return"undefined"!=typeof DataView&&(U.working?U(e):e instanceof DataView)}t.isArgumentsObject=i,t.isGeneratorFunction=n,t.isTypedArray=s,t.isPromise=w,t.isArrayBufferView=y,t.isUint8Array=b,t.isUint8ClampedArray=v,t.isUint16Array=_,t.isUint32Array=x,t.isInt8Array=E,t.isInt16Array=C,t.isInt32Array=k,t.isFloat32Array=S,t.isFloat64Array=A,t.isBigInt64Array=I,t.isBigUint64Array=T,R.working="undefined"!=typeof Map&&R(new Map),t.isMap=O,P.working="undefined"!=typeof Set&&P(new Set),t.isSet=N,M.working="undefined"!=typeof WeakMap&&M(new WeakMap),t.isWeakMap=D,L.working="undefined"!=typeof WeakSet&&L(new WeakSet),t.isWeakSet=j,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=$,U.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&U(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=F;var z="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function q(e){return"[object SharedArrayBuffer]"===u(e)}function W(e){return void 0!==z&&(void 0===q.working&&(q.working=q(new z)),q.working?q(e):e instanceof z)}function H(e){return"[object AsyncFunction]"===u(e)}function V(e){return"[object Map Iterator]"===u(e)}function Z(e){return"[object Set Iterator]"===u(e)}function K(e){return"[object Generator]"===u(e)}function G(e){return"[object WebAssembly.Module]"===u(e)}function Y(e){return m(e,d)}function J(e){return m(e,h)}function Q(e){return m(e,f)}function X(e){return l&&m(e,p)}function ee(e){return c&&m(e,g)}function et(e){return Y(e)||J(e)||Q(e)||X(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&($(e)||W(e))}t.isSharedArrayBuffer=W,t.isAsyncFunction=H,t.isMapIterator=V,t.isSetIterator=Z,t.isGeneratorObject=K,t.isWebAssemblyCompiledModule=G,t.isNumberObject=Y,t.isStringObject=J,t.isBooleanObject=Q,t.isBigIntObject=X,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},85508:function(e,t,r){var i=r(25566),n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++)r[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return r},o=/%[sdj%]/g;t.format=function(e){if(!C(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,s=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),a=i[r];r<n;a=i[++r])_(a)||!I(a)?s+=" "+a:s+=" "+c(a);return s},t.deprecate=function(e,r){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;
2return function(){if(!n){if(i.throwDeprecation)throw Error(r);i.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var s={},a=/^$/;if(i.env.NODE_DEBUG){var l=i.env.NODE_DEBUG;a=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var i={seen:[],stylize:d};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),v(r)?i.showHidden=r:r&&t._extend(i,r),S(i.showHidden)&&(i.showHidden=!1),S(i.depth)&&(i.depth=2),S(i.colors)&&(i.colors=!1),S(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),f(i,e,i.depth)}function u(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function h(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function f(e,r,i){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var n,o=r.inspect(i,e);return C(o)||(o=f(e,o,i)),o}var s=p(e,r);if(s)return s;var a=Object.keys(r),l=h(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),R(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return g(r);if(0===a.length){if(O(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(A(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return e.stylize(Date.prototype.toString.call(r),"date");if(R(r))return g(r)}var u="",d=!1,v=["{","}"];return(b(r)&&(d=!0,v=["[","]"]),O(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),A(r)&&(u=" "+RegExp.prototype.toString.call(r)),T(r)&&(u=" "+Date.prototype.toUTCString.call(r)),R(r)&&(u=" "+g(r)),0!==a.length||d&&0!=r.length)?i<0?A(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),n=d?m(e,r,i,l,a):a.map(function(t){return w(e,r,i,l,t,d)}),e.seen.pop(),y(n,u,v)):v[0]+u+v[1]}function p(e,t){if(S(t))return e.stylize("undefined","undefined");if(C(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return E(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,i,n){for(var o=[],s=0,a=t.length;s<a;++s)j(t,String(s))?o.push(w(e,t,r,i,String(s),!0)):o.push("");return n.forEach(function(n){n.match(/^\d+$/)||o.push(w(e,t,r,i,n,!0))}),o}function w(e,t,r,i,n,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),j(i,n)||(s="["+n+"]"),!a&&(0>e.seen.indexOf(l.value)?(a=_(r)?f(e,l.value,null):f(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),S(s)){if(o&&n.match(/^\d+$/))return a;(s=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function y(e,t,r){var i=0;return e.reduce(function(e,t){return i++,t.indexOf("\n")>=0&&i++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function _(e){return null===e}function x(e){return null==e}function E(e){return"number"==typeof e}function C(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function S(e){return void 0===e}function A(e){return I(e)&&"[object RegExp]"===N(e)}function I(e){return"object"==typeof e&&null!==e}function T(e){return I(e)&&"[object Date]"===N(e)}function R(e){return I(e)&&("[object Error]"===N(e)||e instanceof Error)}function O(e){return"function"==typeof e}function P(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function N(e){return Object.prototype.toString.call(e)}function M(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!s[e=e.toUpperCase()]){if(a.test(e)){var r=i.pid;s[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,i)}}else s[e]=function(){}}return s[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(83075),t.isArray=b,t.isBoolean=v,t.isNull=_,t.isNullOrUndefined=x,t.isNumber=E,t.isString=C,t.isSymbol
2=k,t.isUndefined=S,t.isRegExp=A,t.types.isRegExp=A,t.isObject=I,t.isDate=T,t.types.isDate=T,t.isError=R,t.types.isNativeError=R,t.isFunction=O,t.isPrimitive=P,t.isBuffer=r(18749);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",L(),t.format.apply(t,arguments))},t.inherits=r(56853),t._extend=function(e,t){if(!t||!I(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function $(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function U(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,s=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(s.bind(null,null,e))},function(e){i.nextTick($.bind(null,e,s))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(B&&e[B]){var t=e[B];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);n.push(function(e,i){e?r(e):t(i)});try{e.apply(this,n)}catch(e){r(e)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),B&&Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=B,t.callbackify=U},69917:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},93790:function(e,t,r){"use strict";var i=r(27660),n=r(77509),o=r(72884),s=r(23837),a=r(50297),l=s("Object.prototype.toString"),c=r(50212)(),u="undefined"==typeof globalThis?r.g:globalThis,d=n(),h=s("String.prototype.slice"),f=Object.getPrototypeOf,p=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},g={__proto__:null};c&&a&&f?i(d,function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=f(t),i=a(r,Symbol.toStringTag);i||(i=a(f(r),Symbol.toStringTag)),g["$"+e]=o(i.get)}}):i(d,function(e){var t=new u[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))});var m=function(e){var t=!1;return i(g,function(r,i){if(!t)try{"$"+r(e)===i&&(t=h(i,1))}catch(e){}}),t},w=function(e){var t=!1;return i(g,function(r,i){if(!t)try{r(e),t=h(i,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=h(l(e),8,-1);return p(d,t)>-1?t:"Object"===t&&w(e)}return a?m(e):null}},16662:function(e){e.exports=t;function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw TypeError("need wrapper function");return Object.keys(e).forEach(function(t){i[t]=e[t]}),i;function i(){for(var t=Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var i=e.apply(this,t),n=t[t.length-1];return"function"==typeof i&&i!==n&&Object.keys(n).forEach(function(e){i[e]=n[e]}),i}}},25566:function(e){var t,r,i,n=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function l(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}
vendor: 4,662 bytes, line 2
2catch(e){r=s}}();var c=[],u=!1,d=-1;function h(){u&&i&&(u=!1,i.length?c=i.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=a(h);u=!0;for(var t=c.length;t;){for(i=c,c=[];++d<t;)i&&i[d].run();d=-1,t=c.length}i=null,u=!1,l(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||u||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}},85024:function(e){function t(e,t,r,i,n,o,s){try{var a=e[o](s),l=a.value}catch(e){return void r(e)}a.done?t(l):Promise.resolve(l).then(i,n)}function r(e){return function(){var r=this,i=arguments;return new Promise(function(n,o){var s=e.apply(r,i);function a(e){t(s,n,o,a,l,"next",e)}function l(e){t(s,n,o,a,l,"throw",e)}a(void 0)})}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},9973:function(e){function t(e){return e&&e.__esModule?e:{default:e}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},97211:function(e,t,r){var i=r(22053).default;function n(){"use strict";e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,r){return e[t]=r}}function f(e,t,r,i){var n=Object.create((t&&t.prototype instanceof v?t:v).prototype);return a(n,"_invoke",{value:T(e,r,new N(i||[]))}),n}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;var g="suspendedStart",m="suspendedYield",w="executing",y="completed",b={};function v(){}function _(){}function x(){}var E={};h(E,c,function(){return this});var C=Object.getPrototypeOf,k=C&&C(C(M([])));k&&k!==o&&s.call(k,c)&&(E=k);var S=x.prototype=v.prototype=Object.create(E);function A(e){["next","throw","return"].forEach(function(t){h(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){var r;function n(r,o,a,l){var c=p(e[r],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&s.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(d).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,l)})}l(c.arg)}a(this,"_invoke",{value:function(e,i){function o(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(o,o):o()}})}function T(e,r,i){var n=g;return function(o,s){if(n===w)throw Error("Generator is already running");if(n===y){if("throw"===o)throw s;return{value:t,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var l=R(a,i);if(l){if(l===b)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===g)throw n=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=w;var c=p(e,r,i);if("normal"===c.type){if(n=i.done?y:m,c.arg===b)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(n=y,i.method="throw",i.arg=c.arg)}}}function R(e,r){var i=r.method,n=e.iterator[i];if(n===t)return r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=t,R(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+i+"' method")),b;var o=p(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var s=o.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):s:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}function O(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[c];if(r)return r.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function r(){for(;++n<e.length;)if(s.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw TypeError(i(e)+" is not iterable")}return _.prototype=x,a(S,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:_,configurable:!0}),_.displayName=h(x,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,h(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},r.awrap=function(e){return{__await:e}},A(I.prototype),h(I.prototype,u,function(){return this}),r.AsyncIterator=I,r.async=function(e,t,i,n,o){void 0===o&&(o=Promise);var s=new I(f(e,t,i,n),o);return r.isGeneratorFunction(t)?s:s.next().then(function(e){return e.done?e.value:s.next()})},A(S),h(S,d,"Generator"),h(S,c,function(){return this}),h(S,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var i in t)r.push(i);return r.reverse(),function e(){for(;r.length;){var i=r.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},r.values=M,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},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 r=this;function i(i,n){return a.type="throw",a.arg=e,r.next=i,n&&(r.method="next",r.arg=t),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(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&&s.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,b):this.complete(o)},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),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var n=i.arg;P(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,i){return this.delegate={iterator:M(e),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=t),b}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},22053:function(e){function t(r){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},35750:function(e,t,r){var i=r(97211)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},31549:function(e,t,r){var i=r(82957).Buffer;let n=r(60668);function o(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);if("fixed"===e)return"fixed128x128";if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function s(e){return Number.parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function a(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[Number.parseInt(t[1],10),Number.parseInt(t[2],10)]}function l(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":Number.parseInt(t[2],10):null}function c(e){var t=typeof e;if("string"===t||"number"===t)return BigInt(e);if("bigint"===t)return e;throw Error("Argument is not a number")}function u(e,t){var r,o,d,f;if("address"===e)return u("uint160",c(t));if("bool"===e)return u("uint8",t?1:0);if("string"===e)return u("bytes",new i(t,"utf8"));if(h(e)){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(r=l(e))&&0!==r&&t.length>r)throw Error("Elements exceed array size: "+r);for(f in d=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)d.push(u(e,t[f]));if("dynamic"===r){var p=u("uint256",t.length);d.unshift(p)}return i.concat(d)}if("bytes"===e)return t=new i(t),d=i.concat([u("uint256",t.length),t]),t.length%32!=0&&(d=i.concat([d,n.zeros(32-t.length%32)])),d;if(e.startsWith("bytes")){if((r=s(e))<1||r>32)throw Error("Invalid bytes<N> width: "+r);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((r=s(e))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);o=c(t);let i=n.bitLengthFromBigInt(o);if(i>r)throw Error("Supplied uint exceeds width: "+r+" vs "+i);if(o<0)throw Error("Supplied uint is negative");return n.bufferBEFromBigInt(o,32)}else if(e.startsWith("int")){if((r=s(e))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);o=c(t);let i=n.bitLengthFromBigInt(o);if(i>r)throw Error("Supplied int exceeds width: "+r+" vs "+i);let a=n.twosFromBigInt(o,256);return n.bufferBEFromBigInt(a,32)}else if(e.startsWith("ufixed")){if(r=a(e),(o=c(t))<0)throw Error("Supplied ufixed is negative");return u("uint256",o*BigInt(2)**BigInt(r[1]))}else if(e.startsWith("fixed"))return r=a(e),u("int256",c(t)*BigInt(2)**BigInt(r[1]));throw Error("Unsupported or invalid type: "+e)}function d(e){return"string"===e||"bytes"===e||"dynamic"===l(e)}function h(e){return e.lastIndexOf("]")===e.length-1}function f(e,t){var r=[],n=[],s=32*e.length;for(var a in e){var l=o(e[a]),c=u(l,t[a]);d(l)?(r.push(u("uint256",s)),n.push(c),s+=c.length):r.push(c)}return i.concat(r.concat(n))}function p(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var r,a,l=[],u=0;u<e.length;u++){var d=o(e[u]),h=t[u];
vendor: 5,331 bytes, line 2
2if("bytes"===d)l.push(h);else if("string"===d)l.push(new i(h,"utf8"));else if("bool"===d)l.push(new i(h?"01":"00","hex"));else if("address"===d)l.push(n.setLength(h,20));else if(d.startsWith("bytes")){if((r=s(d))<1||r>32)throw Error("Invalid bytes<N> width: "+r);l.push(n.setLengthRight(h,r))}else if(d.startsWith("uint")){if((r=s(d))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>r)throw Error("Supplied uint exceeds width: "+r+" vs "+e);l.push(n.bufferBEFromBigInt(a,r/8))}else if(d.startsWith("int")){if((r=s(d))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);a=c(h);let e=n.bitLengthFromBigInt(a);if(e>r)throw Error("Supplied int exceeds width: "+r+" vs "+e);let t=n.twosFromBigInt(a,r);l.push(n.bufferBEFromBigInt(t,r/8))}else throw Error("Unsupported or invalid type: "+d)}return i.concat(l)}function g(e,t){return n.keccak(p(e,t))}e.exports={rawEncode:f,solidityPack:p,soliditySHA3:g}},11057:function(e,t,r){var i=r(82957).Buffer;let n=r(60668),o=r(31549),s={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(e,t,r,s=!0){let a=["bytes32"],l=[this.hashType(e,r)];if(s){let c=(e,t,a)=>{if(void 0!==r[t])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":n.keccak(this.encodeData(t,a,r,s))];if(void 0===a)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",n.keccak(a)];if("string"===t)return"string"==typeof a&&(a=i.from(a,"utf8")),["bytes32",n.keccak(a)];if(t.lastIndexOf("]")===t.length-1){let r=t.slice(0,t.lastIndexOf("[")),i=a.map(t=>c(e,r,t));return["bytes32",n.keccak(o.rawEncode(i.map(([e])=>e),i.map(([,e])=>e)))]}return[t,a]};for(let i of r[e]){let[e,r]=c(i.name,i.type,t[i.name]);a.push(e),l.push(r)}}else for(let o of r[e]){let e=t[o.name];if(void 0!==e){if("bytes"===o.type)a.push("bytes32"),e=n.keccak(e),l.push(e);else if("string"===o.type)a.push("bytes32"),"string"==typeof e&&(e=i.from(e,"utf8")),e=n.keccak(e),l.push(e);else if(void 0!==r[o.type])a.push("bytes32"),e=n.keccak(this.encodeData(o.type,e,r,s)),l.push(e);else if(o.type.lastIndexOf("]")===o.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else a.push(o.type),l.push(e)}}return o.rawEncode(a,l)},encodeType(e,t){let r="",i=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let n of i=[e].concat(i.sort())){if(!t[n])throw Error("No type definition specified: "+n);r+=n+"("+t[n].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||void 0===t[e])return r;for(let i of(r.push(e),t[e]))for(let e of this.findTypeDependencies(i.type,t,r))r.includes(e)||r.push(e);return r},hashStruct(e,t,r,i=!0){return n.keccak(this.encodeData(e,t,r,i))},hashType(e,t){return n.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let r in s.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let r=this.sanitizeData(e),o=[i.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),"EIP712Domain"!==r.primaryType&&o.push(this.hashStruct(r.primaryType,r.message,r.types,t)),n.keccak(i.concat(o))}};function l(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let r=e.map(function(e){return"bytes"===e.type?n.toBuffer(e.value):e.value}),i=e.map(function(e){return e.type}),s=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(e.length).fill("string"),s),o.soliditySHA3(i,r)])}e.exports={TYPED_MESSAGE_SCHEMA:s,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return l(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}},60668:function(e,t,r){var i=r(82957).Buffer;let{keccak_256:n}=r(32517);function o(e){return i.allocUnsafe(e).fill(0)}function s(e){return e.toString(2).length}function a(e,t){let r=e.toString(16);r.length%2!=0&&(r="0"+r);let n=r.match(/.{1,2}/g).map(e=>parseInt(e,16));for(;n.length<t;)n.unshift(0);return i.from(n)}function l(e,t){return(e<0n?(~e&(1n<<BigInt(t))-1n)+1n:e)&(1n<<BigInt(t))-1n}function c(e,t,r){let i=o(t);return(e=d(e),r)?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)}function u(e,t){return c(e,t,!0)}function d(e){if(!i.isBuffer(e)){if(Array.isArray(e))e=i.from(e);else if("string"==typeof e)e=g(e)?i.from(p(m(e)),"hex"):i.from(e);else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=i.allocUnsafe(0);else if("bigint"==typeof e)e=a(e);else if(e.toArray)e=i.from(e.toArray());else throw Error("invalid type")}return e}function h(e){return"0x"+(e=d(e)).toString("hex")}function f(e,t){if(e=d(e),t||(t=256),256!==t)throw Error("unsupported");return i.from(n(new Uint8Array(e)))}function p(e){return e.length%2?"0"+e:e}function g(e){return"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function m(e){return"string"==typeof e&&e.startsWith("0x")?e.slice(2):e}
2e.exports={zeros:o,setLength:c,setLengthRight:u,isHexString:g,stripHexPrefix:m,toBuffer:d,bufferToHex:h,keccak:f,bitLengthFromBigInt:s,bufferBEFromBigInt:a,twosFromBigInt:l}},77509:function(e,t,r){"use strict";var i=r(78584),n="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<i.length;t++)"function"==typeof n[i[t]]&&(e[e.length]=i[t]);return e}},36760:function(e,t){var r;!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)i.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0!==(r=(function(){return n}).apply(t,[]))&&(e.exports=r)}()},2713:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasCORS=void 0;let r=!1;try{r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}t.hasCORS=r},79556:function(e,t){"use strict";function r(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function i(e){let t={},r=e.split("&");for(let e=0,i=r.length;e<i;e++){let i=r[e].split("=");
2t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0,t.encode=r,t.decode=i},77469:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;let r=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function n(e){if(e.length>2e3)throw"URI too long";let t=e,n=e.indexOf("["),a=e.indexOf("]");-1!=n&&-1!=a&&(e=e.substring(0,n)+e.substring(n,a).replace(/:/g,";")+e.substring(a,e.length));let l=r.exec(e||""),c={},u=14;for(;u--;)c[i[u]]=l[u]||"";return -1!=n&&-1!=a&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=o(c,c.path),c.queryKey=s(c,c.query),c}function o(e,t){let r=/\/{2,9}/g,i=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&i.splice(0,1),"/"==t.slice(-1)&&i.splice(i.length-1,1),i}function s(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,i){t&&(r[t]=i)}),r}t.parse=n},25840:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yeast=t.decode=t.encode=void 0;let r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i=64,n={},o=0,s=0,a;function l(e){let t="";do t=r[e%i]+t,e=Math.floor(e/i);while(e>0);return t}function c(e){let t=0;for(s=0;s<e.length;s++)t=t*i+n[e.charAt(s)];return t}function u(){let e=l(+new Date);return e!==a?(o=0,a=e):e+"."+l(o++)}for(t.encode=l,t.decode=c,t.yeast=u;s<i;s++)n[r[s]]=s},52027:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalThisShim=void 0,t.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},5789:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextTick=t.parse=t.installTimerFunctions=t.transports=t.TransportError=t.Transport=t.protocol=t.Socket=void 0;let i=r(14785);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}}),t.protocol=i.Socket.protocol;var n=r(90732);Object.defineProperty(t,"Transport",{enumerable:!0,get:function(){return n.Transport}}),Object.defineProperty(t,"TransportError",{enumerable:!0,get:function(){return n.TransportError}});var o=r(78520);Object.defineProperty(t,"transports",{enumerable:!0,get:function(){return o.transports}});var s=r(13347);Object.defineProperty(t,"installTimerFunctions",{enumerable:!0,get:function(){return s.installTimerFunctions}});var a=r(77469);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}});var l=r(65690);Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return l.nextTick}})},14785:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;let n=r(78520),o=r(13347),s=r(79556),a=r(77469),l=i(r(31464)),c=r(57146),u=r(30844),d=r(65690),h=(0,l.default)("engine.io-client:socket");class f extends c.Emitter{constructor(e,t={}){super(),this.binaryType=d.defaultBinaryType,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=(0,a.parse)(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=(0,a.parse)(t.host).host),(0,o.installTimerFunctions)(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})}
2,addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){h('creating transport "%s"',e);let t=Object.assign({},this.opts.query);t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return h("options: %j",r),new n.transports[e](r)}open(){let e;if(this.opts.rememberUpgrade&&f.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){h("error while creating transport: %s",e),this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){h("setting transport %s",e.name),this.transport&&(h("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){h('probing transport "%s"',e);let t=this.createTransport(e),r=!1;f.priorWebsocketSuccess=!1;let i=()=>{r||(h('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",i=>{if(!r){if("pong"===i.type&&"probe"===i.data)h('probe transport "%s" pong',e),this.upgrading=!0,this.emitReserved("upgrading",t),t&&(f.priorWebsocketSuccess="websocket"===t.name,h('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{r||"closed"===this.readyState||(h("changing transport and sending upgrade packet"),c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{h('probe transport "%s" failed',e);let r=Error("probe error");r.transport=t.name,this.emitReserved("upgradeError",r)}}}))};function n(){r||(r=!0,c(),t.close(),t=null)}let o=r=>{let i=Error("probe error: "+r);i.transport=t.name,n(),h('probe transport "%s" failed because of error: %s',e,r),this.emitReserved("upgradeError",i)};function s(){o("transport closed")}function a(){o("socket closed")}function l(e){t&&e.name!==t.name&&(h('"%s" works - aborting "%s"',e.name,t.name),n())}let c=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",s
vendor: 4,358 bytes, line 2
2),this.off("close",a),this.off("upgrading",l)};t.once("open",i),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(h("socket open"),this.readyState="open",f.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){h("starting upgrade probes");let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(h('socket receive: type "%s", data "%s"',e.type,e.data),this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}else h('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();h("flushing %d packets in socket",e.length),this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=(0,o.byteLength)(r)),t>0&&e>this.maxPayload)return h("only send %d out of %d packets",t,this.writeBuffer.length),this.writeBuffer.slice(0,t);e+=2}return h("payload size is %d (max: %d)",e,this.maxPayload),this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,i){if("function"==typeof t&&(i=t,t=void 0),"function"==typeof r&&(i=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush()}close(){let e=()=>{this.onClose("forced close"),h("socket closing - telling transport to close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){h("socket error %j",e),f.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(h('socket close with reason: "%s"',e),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],r=0,i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}t.Socket=f,f.protocol=u.protocol},90732:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transport=t.TransportError=void 0;let n=r(30844),o=r(57146),s=r(13347),a=i(r(31464)),l=r(79556),c=(0,a.default)("engine.io-client:transport");class u extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}t.TransportError=u;class d extends o.Emitter{constructor(e){super(),this.writable=!1,(0,s.installTimerFunctions)(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new u(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):c("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=(0,n.decodePacket)(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=(0,l.encode)(e);return t.length?"?"+t:""}}t.Transport=d},78520:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transports=void 0;let i=r(95170),n=r(44080),o=r(65251);t.transports={websocket:n.WS,webtransport:o.WT,polling:i.Polling}},95170:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Request=t.Polling=void 0;let n=r(90732),o=i(r(31464)),s=r(25840),a=r(30844),l=r(86826),c=r(57146),u=r(13347),d=r(52027),h=(0,o.default)("engine.io-client:polling");function f(){}let p=function(){return null!=new l.XHR({xdomain:!1}).responseType}();class g extends n.Transport{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}let t=e&&e.forceBase64;this.supportsBinary=p&&!t,this.opts.withCredentials&&(this.cookieJar=(0,l.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{h("paused"),this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(h("we are currently polling - waiting to pause"),e++,this.once("pollComplete",function(){h("pre-pause polling complete"),--e||t()})),this.writable||(h("we are currently writing - waiting to pause"),e++,this.once("drain",function(){h("pre-pause writing complete"),--e||t()}))}else t()}poll(){h("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){h("polling got data %s",e);let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};(0,a.decodePayload)(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():h('ignoring poll - transport state "%s"',this.readyState))}doClose(){let e=()=>{h("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(h("transport open - closing"),e()):(h("transport not open - deferring close"),this.once("open",e))}write(e){this.writable=!1,(0,a.encodePayload)(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new m(this.uri(),e)}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){h("xhr poll");let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}t.Polling=g;
2class m extends c.Emitter{constructor(e,t){super(),(0,u.installTimerFunctions)(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=(0,u.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let r=this.xhr=new l.XHR(t);try{h("xhr open %s: %s",this.method,this.uri),r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},h("xhr data %s",this.data),r.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=m.requestsCount++,m.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=f,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete m.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function w(){for(let e in m.requests)m.requests.hasOwnProperty(e)&&m.requests[e].abort()}t.Request=m,m.requestsCount=0,m.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",w):"function"==typeof addEventListener&&addEventListener("onpagehide"in d.globalThisShim?"pagehide":"unload",w,!1))},65690:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultBinaryType=t.usingBrowserWebSocket=t.WebSocket=t.nextTick=void 0;let i=r(52027);t.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),t.WebSocket=i.globalThisShim.WebSocket||i.globalThisShim.MozWebSocket,t.usingBrowserWebSocket=!0,t.defaultBinaryType="arraybuffer"},44080:function(e,t,r){"use strict";var i=r(82957).Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WS=void 0;let o=r(90732),s=r(25840),a=r(13347),l=r(65690),c=n(r(31464)),u=r(30844),d=(0,c.default)("engine.io-client:websocket"),h="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class f extends o.Transport{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,r=h?{}:(0,a.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=l.usingBrowserWebSocket&&!h?t?new l.WebSocket(e,t):new l.WebSocket(e):new l.WebSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;(0,u.encodePacket)(r,this.supportsBinary,e=>{let t={};!l.usingBrowserWebSocket&&(r.options&&(t.compress=r.options.compress),this.opts.perMessageDeflate&&("string"==typeof e?i.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1));try{l.usingBrowserWebSocket?this.ws.send(e):this.ws.send(e,t)}catch(e){d("websocket closed before onclose event")}n&&(0,l.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=(0,s.yeast)()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!l.WebSocket}}t.WS=f},65251:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WT=void 0;let n=r(90732),o=r(65690),s=r(30844),a=(0,i(r(31464)).default)("engine.io-client:webtransport");class l extends n.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{a("transport closed gracefully"),this.onClose()}).catch(e=>{a("transport closed due to %s",e),this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=(0,s.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=(0,s.createPacketEncoderStream)();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();let n=()=>{r.read().then(({done:e,value:t})=>{if(e){a("session is closed");return}a("received chunk: %o",t),this.onPacket(t),n()}).catch(e=>{a("an error occurred while reading: %s",e)})};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],i=t===e.length-1;this.writer.write(r).then(()=>
2{i&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}t.WT=l},86826:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCookieJar=t.XHR=void 0;let i=r(2713),n=r(52027);function o(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||i.hasCORS))return new XMLHttpRequest}catch(e){}if(!t)try{return new n.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function s(){}t.XHR=o,t.createCookieJar=s},13347:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.byteLength=t.installTimerFunctions=t.pick=void 0;let i=r(52027);function n(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}t.pick=n;let o=i.globalThisShim.setTimeout,s=i.globalThisShim.clearTimeout;function a(e,t){t.useNativeTimers?(e.setTimeoutFn=o.bind(i.globalThisShim),e.clearTimeoutFn=s.bind(i.globalThisShim)):(e.setTimeoutFn=i.globalThisShim.setTimeout.bind(i.globalThisShim),e.clearTimeoutFn=i.globalThisShim.clearTimeout.bind(i.globalThisShim))}t.installTimerFunctions=a;let l=1.33;function c(e){return"string"==typeof e?u(e):Math.ceil((e.byteLength||e.size)*l)}function u(e){let t=0,r=0;for(let i=0,n=e.length;i<n;i++)(t=e.charCodeAt(i))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}t.byteLength=c},89557:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_PACKET=t.PACKET_TYPES_REVERSE=t.PACKET_TYPES=void 0;let r=Object.create(null);t.PACKET_TYPES=r,r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";let i=Object.create(null);t.PACKET_TYPES_REVERSE=i,Object.keys(r).forEach(e=>{i[r[e]]=e});let n={type:"error",data:"parser error"};t.ERROR_PACKET=n},29768:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decode=t.encode=void 0;let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<r.length;e++)i[r.charCodeAt(e)]=e;let n=e=>{let t=new Uint8Array(e),i,n=t.length,o="";for(i=0;i<n;i+=3)o+=r[t[i]>>2]+r[(3&t[i])<<4|t[i+1]>>4]+r[(15&t[i+1])<<2|t[i+2]>>6]+r[63&t[i+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o};t.encode=n;let o=e=>{let t=.75*e.length,r=e.length,n,o=0,s,a,l,c;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),d=new Uint8Array(u);for(n=0;n<r;n+=4)s=i[e.charCodeAt(n)],a=i[e.charCodeAt(n+1)],l=i[e.charCodeAt(n+2)],c=i[e.charCodeAt(n+3)],d[o++]=s<<2|a>>4,d[o++]=(15&a)<<4|l>>2,d[o++]=(3&l)<<6|63&c;return u};t.decode=o},34882:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePacket=void 0;let i=r(89557),n=r(29768),o="function"==typeof ArrayBuffer,s=(e,t)=>{if("string"!=typeof e)return{type:"message",data:l(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:a(e.substring(1),t)}:i.PACKET_TYPES_REVERSE[r]?e.length>1?{type:i.PACKET_TYPES_REVERSE[r],data:e.substring(1)}:{type:i.PACKET_TYPES_REVERSE[r]}:i.ERROR_PACKET};t.decodePacket=s;let a=(e,t)=>o?l((0,n.decode)(e),t):{base64:!0,data:e},l=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer},87678:function(e,t,r){"use strict";let i;Object.defineProperty(t,"__esModule",{value:!0}),t.encodePacket=t.encodePacketToBinary=void 0;let n=r(89557),o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"==typeof ArrayBuffer,a=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,l=({type:e,data:t},r,i)=>o&&t instanceof Blob?r?i(t):c(t,i):s&&(t instanceof ArrayBuffer||a(t))?r?i(t):c(new Blob([t]),i):i(n.PACKET_TYPES[e]+(t||""));t.encodePacket=l;let c=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function u(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function d(e,t){return o&&e.data instanceof Blob?e.data.arrayBuffer().then(u).then(t):s&&(e.data instanceof ArrayBuffer||a(e.data))?t(u(e.data)):void l(e,!1,e=>{i||(i=new TextEncoder),t(i.encode(e))})}t.encodePacketToBinary=d},30844:function(e,t,r){"use strict";let i;
2Object.defineProperty(t,"__esModule",{value:!0}),t.decodePayload=t.decodePacket=t.encodePayload=t.encodePacket=t.protocol=t.createPacketDecoderStream=t.createPacketEncoderStream=void 0;let n=r(87678);Object.defineProperty(t,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});let o=r(34882);Object.defineProperty(t,"decodePacket",{enumerable:!0,get:function(){return o.decodePacket}});let s=r(89557),a="\x1e",l=(e,t)=>{let r=e.length,i=Array(r),o=0;e.forEach((e,s)=>{(0,n.encodePacket)(e,!1,e=>{i[s]=e,++o===r&&t(i.join(a))})})};t.encodePayload=l;let c=(e,t)=>{let r=e.split(a),i=[];for(let e=0;e<r.length;e++){let n=(0,o.decodePacket)(r[e],t);if(i.push(n),"error"===n.type)break}return i};function u(){return new TransformStream({transform(e,t){(0,n.encodePacketToBinary)(e,r=>{let i;let n=r.length;if(n<126)new DataView((i=new Uint8Array(1)).buffer).setUint8(0,n);else if(n<65536){let e=new DataView((i=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,n)}else{let e=new DataView((i=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(r)})}})}function d(e){return e.reduce((e,t)=>e+t.length,0)}function h(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),i=0;for(let n=0;n<t;n++)r[n]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),r}function f(e,t){i||(i=new TextDecoder);let r=[],n=0,a=-1,l=!1;return new TransformStream({transform(c,u){for(r.push(c);;){if(0===n){if(1>d(r))break;let e=h(r,1);l=(128&e[0])==128,n=(a=127&e[0])<126?3:126===a?1:2}else if(1===n){if(2>d(r))break;let e=h(r,2);a=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(8>d(r))break;let e=h(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),i=t.getUint32(0);if(i>2097151){u.enqueue(s.ERROR_PACKET);break}a=4294967296*i+t.getUint32(4),n=3}else{if(d(r)<a)break;let e=h(r,a);u.enqueue((0,o.decodePacket)(l?e:i.decode(e),t)),n=0}if(0===a||a>e){u.enqueue(s.ERROR_PACKET);break}}}})}t.decodePayload=c,t.createPacketEncoderStream=u,t.createPacketDecoderStream=f,t.protocol=4},97435:function(e,t,r){"use strict";let i=r(95172);e.exports=a;let n=C().console||{},o={mapHttpRequest:w,mapHttpResponse:w,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:w,res:w,err:g};function s(e,t){return Array.isArray(e)?e.filter(function(e){return"!stdSerializers.err"!==e}):!0===e&&Object.keys(t)}function a(e){(e=e||{}).browser=e.browser||{};let t=e.browser.transmit;if(t&&"function"!=typeof t.send)throw Error("pino: transmit option must have a send function");let r=e.browser.write||n;e.browser.write&&(e.browser.asObject=!0);let i=e.serializers||{},o=s(e.browser.serialize,i),c=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(c=!1);let u=["error","fatal","warn","info","debug","trace"];"function"==typeof r&&(r.error=r.fatal=r.warn=r.info=r.debug=r.trace=r),!1===e.enabled&&(e.level="silent");let f=e.level||"info",g=Object.create(r);g.log||(g.log=b),Object.defineProperty(g,"levelVal",{get:y}),Object.defineProperty(g,"level",{get:v,set:_});let w={transmit:t,serialize:o,asObject:e.browser.asObject,levels:u,timestamp:m(e)};function y(){return"silent"===this.level?1/0:this.levels.values[this.level]}function v(){return this._level}function _(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,l(w,g,"error","log"),l(w,g,"fatal","error"),l(w,g,"warn","error"),l(w,g,"info","log"),l(w,g,"debug","log"),l(w,g,"trace","log")}function x(r,n){if(!r)throw Error("missing bindings for child Pino");n=n||{},o&&r.serializers&&(n.serializers=r.serializers);let s=n.serializers;if(o&&s){var a=Object.assign({},i,s),l=!0===e.browser.serialize?Object.keys(a):o;delete r.serializers,d([r],l,a,this._stdErrSerialize)}function c(e){this._childLevel=(0|e._childLevel)+1,this.error=h(e,r,"error"),this.fatal=h(e,r,"fatal"),this.warn=h(e,r,"warn"),this.info=h(e,r,"info"),this.debug=h(e,r,"debug"),this.trace=h(e,r,"trace"),a&&(this.serializers=a,this._serialize=l),t&&(this._logEvent=p([].concat(e._logEvent.bindings,r)))}return c.prototype=this,new c(this)}return g.levels=a.levels,g.level=f,g.setMaxListeners=g.getMaxListeners=g.emit=g.addListener=g.on=g.prependListener=g.once=g.prepe
2ndOnceListener=g.removeListener=g.removeAllListeners=g.listeners=g.listenerCount=g.eventNames=g.write=g.flush=b,g.serializers=i,g._serialize=o,g._stdErrSerialize=c,g.child=x,t&&(g._logEvent=p()),g}function l(e,t,r,i){let o=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?b:o[r]?o[r]:n[r]||n[i]||b,c(e,t,r)}function c(e,t,r){(e.transmit||t[r]!==b)&&(t[r]=function(i){return function(){let o=e.timestamp(),s=Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===n?n:this;for(var c=0;c<s.length;c++)s[c]=arguments[c];if(e.serialize&&!e.asObject&&d(s,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?i.call(l,u(this,r,s,o)):i.apply(l,s),e.transmit){let i=e.transmit.level||t.level,n=a.levels.values[i],l=a.levels.values[r];if(l<n)return;f(this,{ts:o,methodLevel:r,methodValue:l,transmitLevel:i,transmitValue:a.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},s)}}}(t[r]))}function u(e,t,r,n){e._serialize&&d(r,e._serialize,e.serializers,e._stdErrSerialize);let o=r.slice(),s=o[0],l={};n&&(l.time=n),l.level=a.levels.values[t];let c=(0|e._childLevel)+1;if(c<1&&(c=1),null!==s&&"object"==typeof s){for(;c--&&"object"==typeof o[0];)Object.assign(l,o.shift());s=o.length?i(o.shift(),o):void 0}else"string"==typeof s&&(s=i(o.shift(),o));return void 0!==s&&(l.msg=s),l}function d(e,t,r,i){for(let n in e)if(i&&e[n]instanceof Error)e[n]=a.stdSerializers.err(e[n]);else if("object"==typeof e[n]&&!Array.isArray(e[n]))for(let i in e[n])t&&t.indexOf(i)>-1&&i in r&&(e[n][i]=r[i](e[n][i]))}function h(e,t,r){return function(){let i=Array(1+arguments.length);i[0]=t;for(var n=1;n<i.length;n++)i[n]=arguments[n-1];return e[r].apply(this,i)}}function f(e,t,r){let i=t.send,n=t.ts,o=t.methodLevel,s=t.methodValue,a=t.val,l=e._logEvent.bindings;d(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=n,e._logEvent.messages=r.filter(function(e){return -1===l.indexOf(e)}),e._logEvent.level.label=o,e._logEvent.level.value=s,i(o,e._logEvent,a),e._logEvent=p(l)}function p(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function g(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}function m(e){return"function"==typeof e.timestamp?e.timestamp:!1===e.timestamp?v:_}function w(){return{}}function y(e){return e}function b(){}function v(){return!1}function _(){return Date.now()}function x(){return Math.round(Date.now()/1e3)}function E(){return new Date(Date.now()).toISOString()}function C(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}a.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},a.stdSerializers=o,a.stdTimeFunctions=Object.assign({},{nullTime:v,epochTime:_,unixTime:x,isoTime:E})},72898:function(e,t){"use strict";function r(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Object.defineProperty(t,"__esModule",{value:!0}),t.Backoff=void 0,t.Backoff=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},12872:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;let n=r(66166),o=r(12779);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});let s=r(53234);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return s.Socket}});let a=i(r(31464)).default("socket.io-client"),l={};function c(e,t){let r;"object"==typeof e&&(t=e,e=void 0),t=t||{};let i=n.url(e,t.path||"/socket.io"),s=i.source,c=i.id,u=i.path,d=l[c]&&u in l[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(a("ignoring socket cache for %s",
vendor: 4,623 bytes, line 2
2s),r=new o.Manager(s,t)):(l[c]||(a("new io instance for %s",s),l[c]=new o.Manager(s,t)),r=l[c]),i.query&&!t.query&&(t.query=i.queryKey),r.socket(i.path,t)}t.io=c,t.connect=c,t.default=c,Object.assign(c,{Manager:o.Manager,Socket:s.Socket,io:c,connect:c});var u=r(68990);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=c},12779:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;let a=r(5789),l=r(53234),c=o(r(68990)),u=r(637),d=r(72898),h=r(57146),f=s(r(31464)).default("socket.io-client:manager");class p extends h.Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,a.installTimerFunctions(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new d.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let i=t.parser||c;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(f("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;f("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=u.on(t,"open",function(){r.onopen(),e&&e()}),n=t=>{f("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=u.on(t,"error",n);if(!1!==this._timeout){let e=this._timeout;f("connect attempt will timeout after %d",e);let r=this.setTimeoutFn(()=>{f("connect attempt timed out after %d",e),i(),n(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){f("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(u.on(e,"ping",this.onping.bind(this)),u.on(e,"data",this.ondata.bind(this)),u.on(e,"error",this.onerror.bind(this)),u.on(e,"close",this.onclose.bind(this)),u.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){a.nextTick(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){f("error",e),this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new l.Socket(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active){f("socket %s is still active, skipping close",e);return}this._close()}_packet(e){f("writing packet %j",e);let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}
2cleanup(){f("cleanup"),this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){f("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){f("closed due to %s",e),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)f("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();f("will wait %dms before reconnect attempt",t),this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(f("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(f("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(f("reconnect success"),e.onreconnect())}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=p},637:function(e,t){"use strict";function r(e,t,r){return e.on(t,r),function(){e.off(t,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=r},53234:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;let n=r(68990),o=r(637),s=r(57146),a=i(r(31464)).default("socket.io-client:socket"),l=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class c extends s.Emitter{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[o.on(e,"open",this.onopen.bind(this)),o.on(e,"packet",this.onpacket.bind(this)),o.on(e,"error",this.onerror.bind(this)),o.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(l.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let r={type:n.PacketType.EVENT,data:t};if(r.options={},r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++;a("emitting packet with ack id %d",e);let i=t.pop();this._registerAckCallback(e,i),r.id=e}let i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return!this.flags.volatile||i&&this.connected?this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r):a("discard packet as the transport is not currently writable"),this.flags={},this}_registerAckCallback(e,t){var r;let i=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===i){this.acks[e]=t;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&(a("removing packet with ack id %d from the buffer",e),this.sendBuffer.splice(t,1));a("event with ack id %d has timed out after %d ms",e,i),t.call(this,Error("operation has timed out"))},i),o=(...e)=>{this.io.clearTimeoutFn(n),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{let n=(e,t)=>e?i(e):r(t);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...i)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",r.id,r.tryCount),this._queue.shift(),t&&t(e)):(a("packet [%d] w
2as successfully sent",r.id),this._queue.shift(),t&&t(null,...i)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;let t=this._queue[0];if(t.pending&&!e){a("packet [%d] has already been sent and is waiting for an ack",t.id);return}t.pending=!0,t.tryCount++,a("sending packet [%d] (try n\xb0%d)",t.id,t.tryCount),this.flags=t.flags,this.emit.apply(this,t.args)}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:n.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){a("close (%s)",e),this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(!(e.nsp!==this.nsp))switch(e.type){case n.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n.PacketType.EVENT:case n.PacketType.BINARY_EVENT:this.onevent(e);break;case n.PacketType.ACK:case n.PacketType.BINARY_ACK:this.onack(e);break;case n.PacketType.DISCONNECT:this.ondisconnect();break;case n.PacketType.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];a("emitting event %j",t),null!=e.id&&(a("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...i){r||(r=!0,a("sending ack %j",i),t.packet({type:n.PacketType.ACK,id:e,data:i}))}}onack(e){let t=this.acks[e.id];if("function"!=typeof t){a("bad ack %s",e.id);return}delete this.acks[e.id],a("calling ack %s with %j",e.id,e.data),t.withError&&e.data.unshift(null),t.apply(this,e.data)}onconnect(e,t){a("socket connected with id %s",e),this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:n.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}t.Socket=c},66166:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;let n=r(5789),o=i(r(31464)).default("socket.io-client:url");function s(e,t="",r){let i=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==r?r.protocol+"//"+e:"https://"+e),o("parse %s",e),i=n.parse(e)),!i.port&&(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let s=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+t,i.href=i.protocol+"://"+s+(r&&r.port===i.port?"":":"+i.port),i}t.url=s},32789:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;let i=r(62396);function n(e){let t=[],r=e.data,i=e;return i.data=o(r,t),i.attachments=t.length,{packet:i,buffers:t}}function o(e,t){if(!e)return e;if((0,i.isBinary)(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let i=0;i<e.length;i++)r[i]=o(e[i],t);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=o(e[i],t));return r}return e}function s(e,t){return e.data=a(e.data,t),delete e.attachments,e}function a(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=a(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=a(e[r],t));return e}t.deconstructPacket=n,t.reconstructPacket=s},68990:function(e,t,r){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;let n=r(57146),o=r(32789),s=r(62396),a=(0,r(31464).default)("socket.io-parser"),l=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(i=t.PacketType||(t.PacketType={}));class c{constructor(e){this.replacer=e}encode(e){return(a("encoding packet %j",e),(e.type===i.EVENT||e.type===i.ACK)&&(0,s.hasBinary)(e))?this.encodeAsBinary({type:e.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===i.BINARY_EVENT||e.type===i.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),a("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=(0,o.deconstructPacket)(e),r=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(r),i}}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}t.Encoder=c;class d extends n.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===i.BINARY_EVENT;r||t.type===i.BINARY_ACK?(t.type=r?i.EVENT:i.ACK,this.reconstructor=new h(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if((0,s.isBinary)(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===i[r.type])throw Error("unknown packet type "+r.type);if(r.type===i.BINARY_EVENT||r.type===i.BINARY_ACK){let i=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let n=e.substring(i,t);if(n!=Number(n)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(n)}if("/"===e.charAt(t+1)){let i=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(i,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let i=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){let i=this.tryParse(e.substr(t));if(d.isPayloadValid(r.type,i))r.data=i;else throw Error("invalid payload")}return a("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case i.CONNECT:return u(t);case i.DISCONNECT:return void 0===t;case i.CONNECT_ERROR:return"string"==typeof t||u(t);case i.EVENT:case i.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===l.indexOf(t[0]));case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}t.Decoder=d;class h{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=(0,o.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},62396:function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;let r="function"==typeof ArrayBuffer,i=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,n=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function a(e){return r&&(e instanceof ArrayBuffer||i(e))||o&&e instanceof Blob||s&&e instanceof File}function l(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(l(e[t]))return!0;return!1}if(a(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return l(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&l(e[t]))return!0;return!1}t.isBinary=a,t.hasBinary=l},56127:function(e,t,r){"use strict";function i(e){return(i="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 n(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=n(e,"string");return"symbol"==i(t)?t:t+""}function s(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:function(){return s}})},31686:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var i=r(56127);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){(0,i.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}},54292:function(e,t,r){"use strict";r.d(t,{ZP:function(){return tR}});let i=(e,t)=>{let r;switch(e){case"standard":default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3
2V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7
2h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}};class n{constructor(e,t){this.scope=e,this.module=t}storeObject(e,t){this.setItem(e,JSON.stringify(t))}loadObject(e){let t=this.getItem(e);return t?JSON.parse(t):void 0}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let r=0;r<localStorage.length;r++){let i=localStorage.key(r);"string"==typeof i&&i.startsWith(e)&&t.push(i)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`-${this.scope}${this.module?`:${this.module}`:""}:${e}`}static clearAll(){new n("CBWSDK").clear(),new n("walletlink").clear()}}let o={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902}},s={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},a="Unspecified error message.",l="Unspecified server error.";function c(e,t=a){if(e&&Number.isInteger(e)){let t=e.toString();if(p(s,t))return s[t].message;if(h(e))return l}return t}function u(e){return!!Number.isInteger(e)&&!!(s[e.toString()]||h(e))}function d(e,{shouldIncludeStack:t=!1}={}){let r={};if(e&&"object"==typeof e&&!Array.isArray(e)&&p(e,"code")&&u(e.code)){let t=e;r.code=t.code,t.message&&"string"==typeof t.message?(r.message=t.message,p(t,"data")&&(r.data=t.data)):(r.message=c(r.code),r.data={originalError:f(e)})}else r.code=o.rpc.internal,r.message=g(e,"message")?e.message:a,r.data={originalError:f(e)};return t&&(r.stack=g(e,"stack")?e.stack:void 0),r}function h(e){return e>=-32099&&e<=-32e3}function f(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}let m={rpc:{parse:e=>w(o.rpc.parse,e),invalidRequest:e=>w(o.rpc.invalidRequest,e),invalidParams:e=>w(o.rpc.invalidParams,e),methodNotFound:e=>w(o.rpc.methodNotFound,e),internal:e=>w(o.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code
2<= -32005');return w(t,e)},invalidInput:e=>w(o.rpc.invalidInput,e),resourceNotFound:e=>w(o.rpc.resourceNotFound,e),resourceUnavailable:e=>w(o.rpc.resourceUnavailable,e),transactionRejected:e=>w(o.rpc.transactionRejected,e),methodNotSupported:e=>w(o.rpc.methodNotSupported,e),limitExceeded:e=>w(o.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>y(o.provider.userRejectedRequest,e),unauthorized:e=>y(o.provider.unauthorized,e),unsupportedMethod:e=>y(o.provider.unsupportedMethod,e),disconnected:e=>y(o.provider.disconnected,e),chainDisconnected:e=>y(o.provider.chainDisconnected,e),unsupportedChain:e=>y(o.provider.unsupportedChain,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:r,data:i}=e;if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string');return new _(t,r,i)}}};function w(e,t){let[r,i]=b(t);return new v(e,r||c(e),i)}function y(e,t){let[r,i]=b(t);return new _(e,r||c(e),i)}function b(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,r]}}return[]}class v extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}}class _ extends v{constructor(e,t,r){if(!x(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}function x(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function E(){return e=>e}let C=E(),k=E(),S=E();function A(e){return Math.floor(e)}E();var I,T=r(82957).Buffer;let R=/^[0-9]*$/,O=/^[a-f0-9]*$/;function P(e){return N(crypto.getRandomValues(new Uint8Array(e)))}function N(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function M(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>Number.parseInt(e,16)))}function D(e,t=!1){let r=e.toString("hex");return C(t?`0x${r}`:r)}function L(e){return D(V(e),!0)}function j(e){return S(e.toString(10))}function B(e){return C(`0x${BigInt(e).toString(16)}`)}function $(e){return e.startsWith("0x")||e.startsWith("0X")}function U(e){return $(e)?e.slice(2):e}function F(e){return $(e)?`0x${e.slice(2)}`:`0x${e}`}function z(e){if("string"!=typeof e)return!1;let t=U(e).toLowerCase();return O.test(t)}function q(e,t=!1){if("string"==typeof e){let r=U(e).toLowerCase();if(O.test(r))return C(t?`0x${r}`:r)}throw m.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function W(e,t=!1){let r=q(e,!1);return r.length%2==1&&(r=C(`0${r}`)),t?C(`0x${r}`):r}function H(e){if("string"==typeof e){let t=U(e).toLowerCase();if(z(t)&&40===t.length)return k(F(t))}throw m.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function V(e){if(T.isBuffer(e))return e;if("string"==typeof e){if(z(e)){let t=W(e,!1);return T.from(t,"hex")}return T.from(e,"utf8")}throw m.rpc.invalidParams(`Not binary data: ${String(e)}`)}function Z(e){if("number"==typeof e&&Number.isInteger(e))return A(e);if("string"==typeof e){if(R.test(e))return A(Number(e));if(z(e))return A(Number(BigInt(W(e,!0))))}throw m.rpc.invalidParams(`Not an integer: ${String(e)}`)}function K(e){if(null!==e&&("bigint"==typeof e||Y(e)))return BigInt(e.toString(10));if("number"==typeof e)return BigInt(Z(e));if("string"==typeof e){if(R.test(e))return BigInt(e);if(z(e))return BigInt(W(e,!0))}throw m.rpc.invalidParams(`Not an integer: ${String(e)}`)}function G(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw m.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function Y(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}function J(){let e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,i=e?e.getAttribute("href"):null;return!i||i.startsWith("javascript:")||i.startsWith("vbscript:")?`${t}//${r}/favicon.ico`:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?t+i:`${t}//${r}${i}`}async function Q(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}async function X(e,t){return crypto.subtle.deriveKey({name:"ECDH",public:t},e,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async function ee(e,t){let r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,new TextEncoder().encode(t));return{iv:r,cipherText:i}}async function et(e,{iv:t,cipherText:r}
2){let i=await crypto.subtle.decrypt({name:"AES-GCM",iv:t},e,r);return new TextDecoder().decode(i)}function er(e){switch(e){case"public":return"spki";case"private":return"pkcs8"}}async function ei(e,t){let r=er(e);return N(new Uint8Array(await crypto.subtle.exportKey(r,t)))}async function en(e,t){let r=er(e),i=M(t).buffer;return await crypto.subtle.importKey(r,new Uint8Array(i),{name:"ECDH",namedCurve:"P-256"},!0,"private"===e?["deriveKey"]:[])}async function eo(e,t){return ee(t,JSON.stringify(e,(e,t)=>{if(!(t instanceof Error))return t;let r=t;return Object.assign(Object.assign({},r.code?{code:r.code}:{}),{message:r.message})}))}async function es(e,t){return JSON.parse(await et(t,e))}let ea={storageKey:"ownPrivateKey",keyType:"private"},el={storageKey:"ownPublicKey",keyType:"public"},ec={storageKey:"peerPublicKey",keyType:"public"};class eu{constructor(){this.storage=new n("CBWSDK","SCWKeyManager"),this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(e){this.sharedSecret=null,this.peerPublicKey=e,await this.storeKey(ec,e),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,this.storage.removeItem(el.storageKey),this.storage.removeItem(ea.storageKey),this.storage.removeItem(ec.storageKey)}async generateKeyPair(){let e=await Q();this.ownPrivateKey=e.privateKey,this.ownPublicKey=e.publicKey,await this.storeKey(ea,e.privateKey),await this.storeKey(el,e.publicKey)}async loadKeysIfNeeded(){null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(ea)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(el)),(null===this.ownPrivateKey||null===this.ownPublicKey)&&await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(ec)),null===this.sharedSecret&&null!==this.ownPrivateKey&&null!==this.peerPublicKey&&(this.sharedSecret=await X(this.ownPrivateKey,this.peerPublicKey))}async loadKey(e){let t=this.storage.getItem(e.storageKey);return t?en(e.keyType,t):null}async storeKey(e,t){let r=await ei(e.keyType,t);this.storage.setItem(e.storageKey,r)}}let ed="4.3.0",eh="@coinbase/wallet-sdk";async function ef(e,t){let r=Object.assign(Object.assign({},e),{jsonrpc:"2.0",id:crypto.randomUUID()}),i=await window.fetch(t,{method:"POST",body:JSON.stringify(r),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":ed,"X-Cbw-Sdk-Platform":eh}}),{result:n,error:o}=await i.json();if(o)throw o;return n}function ep(){return globalThis.coinbaseWalletExtension}function eg(){var e,t;try{let r=globalThis;return null!==(e=r.ethereum)&&void 0!==e?e:null===(t=r.top)||void 0===t?void 0:t.ethereum}catch(e){return}}function em({metadata:e,preference:t}){var r,i;let{appName:n,appLogoUrl:o,appChainIds:s}=e;if("smartWalletOnly"!==t.options){let e=ep();if(e)return null===(r=e.setAppInfo)||void 0===r||r.call(e,n,o,s,t),e}let a=eg();if(null==a?void 0:a.isCoinbaseBrowser)return null===(i=a.setAppInfo)||void 0===i||i.call(a,n,o,s,t),a}function ew(e){if(!e||"object"!=typeof e||Array.isArray(e))throw m.rpc.invalidParams({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:r}=e;if("string"!=typeof t||0===t.length)throw m.rpc.invalidParams({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw m.rpc.invalidParams({message:"'args.params' must be an object or array if provided.",data:e});switch(t){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw m.provider.unsupportedMethod()}}let ey="accounts",eb="activeChain",ev="availableChains",e_="walletCapabilities";class ex{constructor(e){var t,r,i;this.metadata=e.metadata,this.communicator=e.communicator,this.callback=e.callback,this.keyManager=new eu,this.storage=new n("CBWSDK","SCWStateManager"),this.accounts=null!==(t=this.storage.loadObject(ey))&&void 0!==t?t:[],this.chain=this.storage.loadObject(eb)||{id:null!==(i=null===(r=e.metadata.appChainIds)||void 0===r?void 0:r[0])&&void 0!==i?i:1},this.handshake=this.handshake.bind(this),this.request=this.request.bind(this),this.createRequestMessage=this.createRequestMessage.bind(this),this.decryptResponseMessage=this.decryptResponseMessage.bind(this)}async handshake(e){var t,r,i,n;await (null===(r=(t=this.communicator).waitForPopupLoaded)||void 0===r?void 0:r.call(t));let o=await this.createRequestMessage({handshake:{method:e.method,params:Object.assign({},this.metadata,null!==(i=e.params)&&void 0!==i?i:{})}}),s=await this.communicator.postRequestAndWaitForResponse(o);if("failure"in s.content)throw s.content.failure;let a=await en("public",s.sender);await this.keyManager.setPeerPublicKey(a);let l=(await this.decryptResponseMessage(s)).result;if("error"in l)throw l.error;if("eth_requestAccounts"===e.method){let e=l.value;this.accounts=e,this.storage.storeObject(ey,e),null===(n=this.callback)||void 0===n||n.call(this,"accountsChanged",e)}}async request(e){var t;if(0===this.accounts.length){if("wallet_sendCalls"===e.method)return this.sendRequestToPopup(e);throw m.provider.unauthorized()}switch(e.method){case"eth_requestAccounts":return null===(t=this.callback)||void 0===t||t.call(this,"connect",{chainId:B(this.chain.id)}),this.accounts;case"eth_accounts":return this.accounts;case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return B(this.chain.id);case"wallet_getCapabilities":return this.storage.loadObject(e_);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(e);case"eth_ecRecover":case"personal_sign":case"wallet_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(e);default:if(!this.chain.rpcUrl)throw m.rpc.internal("No RPC URL set for chain");return ef(e,this.chain.rpcUrl)}}async sendRequestToPopup(e){var t,r;await (null===(r=(t=this.communicator).waitForPopupLoaded)||void 0===r?void 0:r.call(t));let i=await this.sendEncryptedRequest(e),n=(await this.decryptResponseMessage(i)).result;if("error"in n)throw n.error;return n.value}async cleanup(){var e,t;this.storage.clear(),await this.keyManager.clear(),this.accounts=[],this.chain={id:null!==(t=null===(e=this.metadata.appChainIds)||void 0===e?void 0:e[0])&&void 0!==t?t:1}}async handleSwitchChainRequest(e){var t;let r=e.params;if(!r||!(null===(t=r[0])||void 0===t?void 0:t.chainId))throw m.rpc.invalidParams();let i=Z(r[0].chainId);if(this.updateChain(i))return null;let n=await this.sendRequestToPopup(e);return null===n&&this.updateChain(i),n}async sendEncryptedRequest(e){let t=await this.keyManager.getSharedSecret();if(!t)throw m.provider.unauthorized("No valid session found, try requestAccounts before other methods");let r=await eo({action:e,chainId:this.chain.id},t),i=await this.createRequestMessage({encrypted:r});return this.communicator.postRequestAndWaitForResponse(i)}async createRequestMessage(e){let t=await ei("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),sender:t,content:e,timestamp:new Date}}async decryptResponseMessage(e){var t,r;let i=e.content;if("failure"in i)throw i.failure;let n=await this.keyManager.getSharedSecret();if(!n)throw m.provider.unauthorized("Invalid session");let o=await es(i.encrypted,n),s=null===(t=o.data)||void 0===t?void 0:t.chains;if(s){let e=Object.entries(s).map(([e,t])=>({id:Number(e),rpcUrl:t}));this.storage.storeObject(ev,e),this.updateChain(this.chain.id,e)}let a=null===(r=o.data)||void 0===r?void 0:r.capabilities;return a&&this.storage.storeObject(e_,a),o}updateChain(e,t){var r;let i=null!=t?t:this.storage.loadObject(ev),n=null==i?void 0:i.find(t=>
2t.id===e);return!!n&&(n!==this.chain&&(this.chain=n,this.storage.storeObject(eb,n),null===(r=this.callback)||void 0===r||r.call(this,"chainChanged",B(n.id))),!0)}}var eE=r(11057);let eC="walletUsername",ek="Addresses",eS="AppVersion";function eA(e){return void 0!==e.errorMessage}class eI{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");let r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",M(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),n=new TextEncoder,o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},i,n.encode(e)),s=16,a=o.slice(o.byteLength-s),l=o.slice(0,o.byteLength-s),c=new Uint8Array(a),u=new Uint8Array(l);return N(new Uint8Array([...r,...c,...u]))}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((r,i)=>{!async function(){let n=await crypto.subtle.importKey("raw",M(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=M(e),s=o.slice(0,12),a=o.slice(12,28),l=new Uint8Array([...o.slice(28),...a]),c={name:"AES-GCM",iv:new Uint8Array(s)};try{let e=await window.crypto.subtle.decrypt(c,n,l),t=new TextDecoder;r(t.decode(e))}catch(e){i(e)}}()})}}class eT{constructor(e,t,r){this.linkAPIUrl=e,this.sessionId=t;let i=`${t}:${r}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(e=>console.error("Unabled to mark event as failed:",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:r,error:i}=await t.json();if(i)throw Error(`Check unseen events failed: ${i}`);let n=null!==(e=null==r?void 0:r.filter(e=>"Web3Response"===e.event).map(e=>({type:"Event",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))&&void 0!==e?e:[];return this.markUnseenEventsAsSeen(n),n}throw Error(`Check unseen events failed: ${t.status}`)}}!function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"}(I||(I={}));class eR{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw Error("webSocket object is not null");return new Promise((e,t)=>{var r;let i;try{this.webSocket=i=new this.WebSocketClass(this.url)}catch(e){t(e);return}null===(r=this.connectionStateListener)||void 0===r||r.call(this,I.CONNECTING),i.onclose=e=>{var r;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null===(r=this.connectionStateListener)||void 0===r||r.call(this,I.DISCONNECTED)},i.onopen=t=>{var r;e(),null===(r=this.connectionStateListener)||void 0===r||r.call(this,I.CONNECTED),this.pendingData.length>0&&([...this.pendingData].forEach(e=>this.sendData(e)),this.pendingData=[])},i.onmessage=e=>{var t,r;if("h"===e.data)null===(t=this.incomingDataListener)||void 0===t||t.call(this,{type:"Heartbeat"});else try{let t=JSON.parse(e.data);null===(r=this.incomingDataListener)||void 0===r||r.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null===(e=this.connectionStateListener)||void 0===e||e.call(this,I.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}let eO=1e4,eP=6e4;class eN{constructor({session:e,linkAPIUrl:t,listener:r}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=A(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{e&&new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",t=>
2e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]).forEach((t,r)=>{let i=e[r];void 0!==i&&t(i)})},this.handleDestroyed=e=>{var t;"1"===e&&(null===(t=this.listener)||void 0===t||t.resetAndReload())},this.handleAccountUpdated=async e=>{var t;let r=await this.cipher.decrypt(e);null===(t=this.listener)||void 0===t||t.accountUpdated(r)},this.handleMetadataUpdated=async(e,t)=>{var r;let i=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.metadataUpdated(e,i)},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated(eC,e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated(eS,e)},this.handleChainUpdated=async(e,t)=>{var r;let i=await this.cipher.decrypt(e),n=await this.cipher.decrypt(t);null===(r=this.listener)||void 0===r||r.chainUpdated(i,n)},this.session=e,this.cipher=new eI(e.secret),this.listener=r;let i=new eR(`${t}/rpc`,WebSocket);i.setConnectionStateListener(async e=>{let t=!1;switch(e){case I.DISCONNECTED:if(!this.destroyed){let e=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||i.connect().catch(()=>{e()})};e()}break;case I.CONNECTED:t=await this.handleConnected(),this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},eO),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case I.CONNECTING:}this.connected!==t&&(this.connected=t)}),i.setIncomingDataListener(e=>{var t;switch(e.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{let t="IsLinkedOK"===e.type?e.linked:void 0;this.linked=t||e.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":this.handleSessionMetadataUpdated(e.metadata);break;case"Event":this.handleIncomingEvent(e)}void 0!==e.id&&(null===(t=this.requestResolutions.get(e.id))||void 0===t||t(e))}),this.ws=i,this.http=new eT(t,e.id,e.key)}connect(){if(this.destroyed)throw Error("instance is destroyed");this.ws.connect()}async destroy(){this.destroyed||(await this.makeRequest({type:"SetSessionConfig",id:A(this.nextReqId++),sessionId:this.session.id,metadata:{__destroyed:"1"}},{timeout:1e3}),this.destroyed=!0,this.ws.disconnect(),this.listener=void 0)}get connected(){return this._connected}set connected(e){this._connected=e}get linked(){return this._linked}set linked(e){var t,r;this._linked=e,e&&(null===(t=this.onceLinked)||void 0===t||t.call(this)),null===(r=this.listener)||void 0===r||r.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t;if("Event"!==e.type||"Web3Response"!==e.event)return;let r=JSON.parse(await this.cipher.decrypt(e.data));if("WEB3_RESPONSE"!==r.type)return;let{id:i,response:n}=r;null===(t=this.listener)||void 0===t||t.handleWeb3ResponseMessage(i,n)}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1,(await this.http.fetchUnseenEvents()).forEach(e=>this.handleIncomingEvent(e))}async publishEvent(e,t,r=!1){let i=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,location:location.href,relaySource:"coinbaseWalletExtension"in window&&window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),n={type:"PublishEvent",id:A(this.nextReqId++),sessionId:this.session.id,event:e,data:i,callWebhook:r};return this.setOnceLinked(async()=>{let e=await this.makeRequest(n);if("Fail"===e.type)throw Error(e.error||"failed to publish event");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2*eO){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(e){}}async makeRequest(e,t={timeout:eP}){let r;let i=e.id;return this.sendData(e),Promise.race([new Promise((e,n)=>{r=window.setTimeout(()=>{n(Error(`request ${i} timed out`))},t.timeout)}),new Promise(e=>{this.requestResolutions.set(i,t=>{clearTimeout(r),e(t),this.requestResolutions.delete(i)})})])}
2async handleConnected(){return"Fail"!==(await this.makeRequest({type:"HostSession",id:A(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key})).type&&(this.sendData({type:"IsLinked",id:A(this.nextReqId++),sessionId:this.session.id}),this.sendData({type:"GetSessionConfig",id:A(this.nextReqId++),sessionId:this.session.id}),!0)}}class eM{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=F(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}var eD=r(29272),eL=r(25884);let ej="session:id",eB="session:secret",e$="session:linked";class eU{constructor(e,t,r,i=!1){this.storage=e,this.id=t,this.secret=r,this.key=(0,eL.ci)((0,eD.J)(`${t}, ${r} WalletLink`)),this._linked=!!i}static create(e){return new eU(e,P(16),P(32)).save()}static load(e){let t=e.getItem(ej),r=e.getItem(e$),i=e.getItem(eB);return t&&i?new eU(e,t,i,"1"===r):null}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this.storage.setItem(ej,this.id),this.storage.setItem(eB,this.secret),this.persistLinked(),this}persistLinked(){this.storage.setItem(e$,this._linked?"1":"0")}}function eF(){try{return null!==window.frameElement}catch(e){return!1}}function ez(){try{if(eF()&&window.top)return window.top.location;return window.location}catch(e){return window.location}}function eq(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null===(e=null==window?void 0:window.navigator)||void 0===e?void 0:e.userAgent)}function eW(){var e,t;return null!==(t=null===(e=null==window?void 0:window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)&&void 0!==t&&t}var eH='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';function eV(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(eH)),document.documentElement.appendChild(e)}var eZ=r(54365),eK=r(79080),eG=r(99799),eY=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;
2cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}";let eJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",eQ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";class eX{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=eW()}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,eK.render)((0,eK.h)("div",null,(0,eK.h)(e0,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,eK.h)(e1,Object.assign({},t,{key:e}))))),this.root)}}let e0=e=>(0,eK.h)("div",{class:(0,eZ.clsx)("-cbwsdk-snackbar-container")},(0,eK.h)("style",null,eY),(0,eK.h)("div",{class:"-cbwsdk-snackbar"},e.children)),e1=({autoExpand:e,message:t,menuItems:r})=>{let[i,n]=(0,eG.useState)(!0),[o,s]=(0,eG.useState)(null!=e&&e);(0,eG.useEffect)(()=>{let e=[window.setTimeout(()=>{n(!1)},1),window.setTimeout(()=>{s(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}});let a=()=>{s(!o)};return(0,eK.h)("div",{class:(0,eZ.clsx)("-cbwsdk-snackbar-instance",i&&"-cbwsdk-snackbar-instance-hidden",o&&"-cbwsdk-snackbar-instance-expanded")},(0,eK.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:a},(0,eK.h)("img",{src:eJ,class:"-cbwsdk-snackbar-instance-header-cblogo"})," ",(0,eK.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,eK.h)("div",{class:"-gear-container"},!o&&(0,eK.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,eK.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,eK.h)("img",{src:eQ,class:"-gear-icon",title:"Expand"}))),r&&r.length>0&&(0,eK.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},r.map((e,t)=>(0,eK.h)("div",{class:(0,eZ.clsx)("-cbwsdk-snackbar-instance-menu
2-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,eK.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,eK.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,eK.h)("span",{class:(0,eZ.clsx)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))};class e2{constructor(){this.attached=!1,this.snackbar=new eX}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.snackbar.attach(t),this.attached=!0,eV()}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}}var e3=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}
2.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";class e5{constructor(){this.root=null,this.darkMode=eW()}attach(){let e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),eV()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,eK.render)(null,this.root),e&&(0,eK.render)((0,eK.h)(e4,Object.assign({},e,{onDismiss:()=>{this.clear()},darkMode:this.darkMode})),this.root))}}let e4=({title:e,buttonText:t,darkMode:r,onButtonClick:i,onDismiss:n})=>{let o=r?"dark":"light";return(0,eK.h)(e0,{darkMode:r},(0,eK.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,eK.h)("style",null,e3),(0,eK.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:n}),(0,eK.h)("div",{class:(0,eZ.clsx)("-cbwsdk-redirect-dialog-box",o)},(0,eK.h)("p",null,e),(0,eK.h)("button",{onClick:i},t))))},e6="https://keys.coinbase.com/connect",e8="http://rpc.wallet.coinbase.com",e7="https://www.walletlink.org",e9="https://go.cb-w.com/walletlink";class te{constructor(){this.attached=!1,this.redirectDialog=new e5}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}redirectToCoinbaseWallet(e){let t=new URL(e9);t.searchParams.append("redirect_url",ez().href),e&&t.searchParams.append("wl_url",e);let r=document.createElement("a");r.target="cbw-opener",r.href=t.href,r.rel="noreferrer noopener",r.click()}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.redirectDialog.clear()}}}class tt{constructor(e){this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.isMobileWeb=eq(),this.linkedUpdated=e=>{this.isLinked=e;let t=this.storage.getItem(ek);if(e&&(this._session.linked=e),this.isUnlinkedErrorState=!1,t){let r=t.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");""===r[0]||e||!this._session.linked||i||(this.isUnlinkedErrorState=!0)}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(t,Number.parseInt(e,10)))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),tt.accountRequestCallbackIds.size>0&&(Array.from(tt.accountRequestCallbackIds.values()).forEach(t=>{this.invokeCallback(t,{method:"requestEthereumAccounts",result:[e]})}),tt.accountRequestCallbackIds.clear())},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.metadata=e.metadata,this.accountsCallback=e.accountsCallback,this.chainCallback=e.chainCallback;let{session:t,ui:r,connection:i}=this.subscribe();this._session=t,this.connection=i,this.relayEventManager=new eM,this.ui=r,this.ui.attach()}subscribe(){let e=eU.load(this.storage)||eU.create(this.storage),{linkAPIUrl:t}=this,r=new eN({session:e,linkAPIUrl:t,listener:this}),i=this.isMobileWeb?new te:new e2;return r.connect(),{session:e,ui:i,connection:r}}resetAndReload(){this.connection.destroy().then(()=>{let e=eU.load(this.storage);(null==e?void 0:e.id)===this._session.id&&n.clearAll(),document.location.reload()}).catch(e=>{})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:j(e.weiValue),data:D(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?j(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?j(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?j(e.gasPriceInWei):null,gasLimit:e.gasLim
vendor: 4,213 bytes, line 2
2it?j(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:j(e.weiValue),data:D(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?j(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?j(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?j(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?j(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:D(e,!0),chainId:t}})}getWalletLinkSession(){return this._session}sendRequest(e){let t=null,r=P(8),i=i=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,i),null==t||t()};return new Promise((n,o)=>{t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload}),this.relayEventManager.callbacks.set(r,e=>{if(null==t||t(),eA(e))return o(Error(e.errorMessage));n(e)}),this.publishWeb3RequestEvent(r,e)})}publishWeb3RequestEvent(e,t){let r={type:"WEB3_REQUEST",id:e,request:t};this.publishEvent("Web3Request",r,!0).then(e=>{}).catch(e=>{this.handleWeb3ResponseMessage(r.id,{method:t.method,errorMessage:e.message})}),this.isMobileWeb&&this.openCoinbaseWalletDeeplink(t.method)}openCoinbaseWalletDeeplink(e){if(this.ui instanceof te)switch(e){case"requestEthereumAccounts":case"switchEthereumChain":return;default:window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0}),this.ui.openCoinbaseWalletDeeplink()}}publishWeb3RequestCanceledEvent(e){let t={type:"WEB3_REQUEST_CANCELED",id:e};this.publishEvent("Web3RequestCanceled",t,!1).then()}publishEvent(e,t,r){return this.connection.publishEvent(e,t,r)}handleWeb3ResponseMessage(e,t){if("requestEthereumAccounts"===t.method){tt.accountRequestCallbackIds.forEach(e=>this.invokeCallback(e,t)),tt.accountRequestCallbackIds.clear();return}this.invokeCallback(e,t)}handleErrorResponse(e,t,r){var i;let n=null!==(i=null==r?void 0:r.message)&&void 0!==i?i:"Unspecified error message.";this.handleWeb3ResponseMessage(e,{method:t,errorMessage:n})}invokeCallback(e,t){let r=this.relayEventManager.callbacks.get(e);r&&(r(t),this.relayEventManager.callbacks.delete(e))}requestEthereumAccounts(){let{appName:e,appLogoUrl:t}=this.metadata,r={method:"requestEthereumAccounts",params:{appName:e,appLogoUrl:t}},i=null,n=P(8);return new Promise((e,t)=>{this.relayEventManager.callbacks.set(n,r=>{if(null==i||i(),eA(r))return t(Error(r.errorMessage));e(r)}),tt.accountRequestCallbackIds.add(n),this.publishWeb3RequestEvent(n,r)})}watchAsset(e,t,r,i,n,o){let s={method:"watchAsset",params:{type:e,options:{address:t,symbol:r,decimals:i,image:n},chainId:o}},a=null,l=P(8),c=e=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,s.method,e),null==a||a()};return a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(l,r=>{if(null==a||a(),eA(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(l,s)})}addEthereumChain(e,t,r,i,n,o){let s={method:"addEthereumChain",params:{chainId:e,rpcUrls:t,blockExplorerUrls:i,chainName:n,iconUrls:r,nativeCurrency:o}},a=null,l=P(8),c=e=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,s.method,e),null==a||a()};return a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload}),new Promise((e,t)=>{this.relayEventManager.callbacks.set(l,r=>{if(null==a||a(),eA(r))return t(Error(r.errorMessage));e(r)}),this.publishWeb3RequestEvent(l,s)})}switchEthereumChain(e,t){let r={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:t})},i=null,n=P(8),o=e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,e),null==i||i()};return i=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:o,onResetConnection:this.resetAndReload}),new Promise((e,t)=>
vendor: 6,300 bytes, line 2
2{this.relayEventManager.callbacks.set(n,r=>(null==i||i(),eA(r)&&r.errorCode)?t(m.provider.custom({code:r.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):eA(r)?t(Error(r.errorMessage)):void e(r)),this.publishWeb3RequestEvent(n,r)})}}tt.accountRequestCallbackIds=new Set;var tr=r(82957).Buffer;let ti="DefaultChainId",tn="DefaultJsonRpcUrl";class to{constructor(e){this._relay=null,this._addresses=[],this.metadata=e.metadata,this._storage=new n("walletlink",e7),this.callback=e.callback||null;let t=this._storage.getItem(ek);if(t){let e=t.split(" ");""!==e[0]&&(this._addresses=e.map(e=>H(e)))}this.initializeRelay()}getSession(){let{id:e,secret:t}=this.initializeRelay().getWalletLinkSession();return{id:e,secret:t}}async handshake(){await this._eth_requestAccounts()}get selectedAddress(){return this._addresses[0]||void 0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(tn))&&void 0!==e?e:void 0}set jsonRpcUrl(e){this._storage.setItem(tn,e)}updateProviderInfo(e,t){var r;this.jsonRpcUrl=e;let i=this.getChainId();this._storage.setItem(ti,t.toString(10)),Z(t)!==i&&(null===(r=this.callback)||void 0===r||r.call(this,"chainChanged",B(t)))}async watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw m.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw m.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw m.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw m.rpc.invalidParams("Address is required");let r=this.getChainId(),{address:i,symbol:n,image:o,decimals:s}=t.options,a=this.initializeRelay(),l=await a.watchAsset(t.type,i,n,s,o,null==r?void 0:r.toString());return!eA(l)&&!!l.result}async addEthereumChain(e){var t,r;let i=e[0];if((null===(t=i.rpcUrls)||void 0===t?void 0:t.length)===0)throw m.rpc.invalidParams("please pass in at least 1 rpcUrl");if(!i.chainName||""===i.chainName.trim())throw m.rpc.invalidParams("chainName is a required field");if(!i.nativeCurrency)throw m.rpc.invalidParams("nativeCurrency is a required field");let n=Number.parseInt(i.chainId,16);if(n===this.getChainId())return!1;let o=this.initializeRelay(),{rpcUrls:s=[],blockExplorerUrls:a=[],chainName:l,iconUrls:c=[],nativeCurrency:u}=i,d=await o.addEthereumChain(n.toString(),s,c,a,l,u);if(eA(d))return!1;if((null===(r=d.result)||void 0===r?void 0:r.isApproved)===!0)return this.updateProviderInfo(s[0],n),null;throw m.rpc.internal("unable to add ethereum chain")}async switchEthereumChain(e){let t=Number.parseInt(e[0].chainId,16),r=this.initializeRelay(),i=await r.switchEthereumChain(t.toString(10),this.selectedAddress||void 0);if(eA(i))throw i;let n=i.result;return n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,t),null}async cleanup(){this.callback=null,this._relay&&this._relay.resetAndReload(),this._storage.clear()}_setAddresses(e,t){var r;if(!Array.isArray(e))throw Error("addresses is not an array");let i=e.map(e=>H(e));JSON.stringify(i)!==JSON.stringify(this._addresses)&&(this._addresses=i,null===(r=this.callback)||void 0===r||r.call(this,"accountsChanged",i),this._storage.setItem(ek,i.join(" ")))}async request(e){let t=e.params||[];switch(e.method){case"eth_accounts":return[...this._addresses];case"eth_coinbase":return this.selectedAddress||null;case"net_version":return this.getChainId().toString(10);case"eth_chainId":return B(this.getChainId());case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_ecRecover":case"personal_ecRecover":return this.ecRecover(e);case"personal_sign":return this.personalSign(e);case"eth_signTransaction":return this._eth_signTransaction(t);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(t);case"eth_sendTransaction":return this._eth_sendTransaction(t);case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":return this.signTypedData(e);case"wallet_addEthereumChain":return this.addEthereumChain(t);case"wallet_switchEthereumChain":return this.switchEthereumChain(t);case"wallet_watchAsset":return this.watchAsset(t);default:if(!this.jsonRpcUrl)throw m.rpc.internal("No RPC URL set for chain");return ef(e,this.jsonRpcUrl)}}_ensureKnownAddress(e){let t=H(e);if(!this._addresses.map(e=>H(e)).includes(t))throw Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?H(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let r=e.to?H(e.to):null,i=null!=e.value?K(e.value):BigInt(0),n=e.data?V(e.data):tr.alloc(0),o=null!=e.nonce?Z(e.nonce):null,s=null!=e.gasPrice?K(e.gasPrice):null,a=null!=e.maxFeePerGas?K(e.maxFeePerGas):null;return{fromAddress:t,toAddress:r,weiValue:i,data:n,nonce:o,gasPriceInWei:s,maxFeePerGas:a,maxPriorityFeePerGas:null!=e.maxPriorityFeePerGas?K(e.maxPriorityFeePerGas):null,gasLimit:null!=e.gas?K(e.gas):null,chainId:e.chainId?Z(e.chainId):this.getChainId()}}async ecRecover(e){let{method:t,params:r}=e;if(!Array.isArray(r))throw m.rpc.invalidParams();let i=this.initializeRelay(),n=await i.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:L(r[0]),signature:L(r[1]),addPrefix:"personal_ecRecover"===t}});if(eA(n))throw n;return n.result}getChainId(){var e;return Number.parseInt(null!==(e=this._storage.getItem(ti))&&void 0!==e?e:"1",10)}async _eth_requestAccounts(){var e,t;if(this._addresses.length>0)return null===(e=this.callback)||void 0===e||e.call(this,"connect",{chainId:B(this.getChainId())}),this._addresses;let r=this.initializeRelay(),i=await r.requestEthereumAccounts();if(eA(i))throw i;if(!i.result)throw Error("accounts received is empty");return this._setAddresses(i.result),null===(t=this.callback)||void 0===t||t.call(this,"connect",{chainId:B(this.getChainId())}),this._addresses}async personalSign({params:e}){if(!Array.isArray(e))throw m.rpc.invalidParams();let t=e[1],r=e[0];this._ensureKnownAddress(t);let i=this.initializeRelay(),n=await i.sendRequest({method:"signEthereumMessage",params:{address:H(t),message:L(r),addPrefix:!0,typedDataJson:null}});if(eA(n))throw n;return n.result}async _eth_signTransaction(e){let t=this._prepareTransactionParams(e[0]||{}),r=this.initializeRelay(),i=await r.signEthereumTransaction(t);
2if(eA(i))throw i;return i.result}async _eth_sendRawTransaction(e){let t=V(e[0]),r=this.initializeRelay(),i=await r.submitEthereumTransaction(t,this.getChainId());if(eA(i))throw i;return i.result}async _eth_sendTransaction(e){let t=this._prepareTransactionParams(e[0]||{}),r=this.initializeRelay(),i=await r.signAndSubmitEthereumTransaction(t);if(eA(i))throw i;return i.result}async signTypedData(e){let{method:t,params:r}=e;if(!Array.isArray(r))throw m.rpc.invalidParams();let i=e=>D(({eth_signTypedData_v1:eE.hashForSignTypedDataLegacy,eth_signTypedData_v3:eE.hashForSignTypedData_v3,eth_signTypedData_v4:eE.hashForSignTypedData_v4,eth_signTypedData:eE.hashForSignTypedData_v4})[t]({data:G(e)}),!0),n=r["eth_signTypedData_v1"===t?1:0],o=r["eth_signTypedData_v1"===t?0:1];this._ensureKnownAddress(n);let s=this.initializeRelay(),a=await s.sendRequest({method:"signEthereumMessage",params:{address:H(n),message:i(o),typedDataJson:JSON.stringify(o,null,2),addPrefix:!1}});if(eA(a))throw a;return a.result}initializeRelay(){return this._relay||(this._relay=new tt({linkAPIUrl:e7,storage:this._storage,metadata:this.metadata,accountsCallback:this._setAddresses.bind(this),chainCallback:this.updateProviderInfo.bind(this)})),this._relay}}let ts="SignerType",ta=new n("CBWSDK","SignerConfigurator");function tl(){return ta.getItem(ts)}function tc(e){ta.setItem(ts,e)}
2async function tu(e){let{communicator:t,metadata:r,handshakeRequest:i,callback:n}=e;th(t,r,n).catch(()=>{});let o={id:crypto.randomUUID(),event:"selectSignerType",data:Object.assign(Object.assign({},e.preference),{handshakeRequest:i})},{data:s}=await t.postRequestAndWaitForResponse(o);return s}function td(e){let{signerType:t,metadata:r,communicator:i,callback:n}=e;switch(t){case"scw":return new ex({metadata:r,callback:n,communicator:i});case"walletlink":return new to({metadata:r,callback:n})}}async function th(e,t,r){await e.onMessage(({event:e})=>"WalletLinkSessionRequest"===e);let i=new to({metadata:t,callback:r});e.postMessage({event:"WalletLinkUpdate",data:{session:i.getSession()}}),await i.handshake(),e.postMessage({event:"WalletLinkUpdate",data:{connected:!0}})}let tf=`Coinbase Wallet SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Coinbase Smart Wallet app. 3 4Please see https://www.smartwallet.dev/guides/tips/popup-tips#cross-origin-opener-policy for more information.`,{checkCrossOriginOpenerPolicy:tp,getCrossOriginOpenerPolicy:tg}=(()=>{let e;return{getCrossOriginOpenerPolicy:()=>void 0===e?"undefined":e,checkCrossOriginOpenerPolicy:async()=>{if("undefined"==typeof window){e="non-browser-env";return}try{let t=`${window.location.origin}${window.location.pathname}`,r=await fetch(t,{method:"HEAD"});if(!r.ok)throw Error(`HTTP error! status: ${r.status}`);let i=r.headers.get("Cross-Origin-Opener-Policy");e=null!=i?i:"null","same-origin"===e&&console.error(tf)}catch(t){console.error("Error checking Cross-Origin-Opener-Policy:",t.message),e="error"}}}})(),tm=420,tw=540;function ty(e){let t=(window.innerWidth-tm)/2+window.screenX,r=(window.innerHeight-tw)/2+window.screenY;tv(e);let i=`wallet_${crypto.randomUUID()}`,n=window.open(e,i,`width=${tm}, height=${tw}, left=${t}, top=${r}`);if(null==n||n.focus(),!n)throw m.rpc.internal("Pop up window failed to open");return n}function tb(e){e&&!e.closed&&e.close()}function tv(e){for(let[t,r]of Object.entries({sdkName:eh,sdkVersion:ed,origin:window.location.origin,coop:tg()}))e.searchParams.append(t,r.toString())}class t_{constructor({url:e=e6,metadata:t,preference:r}){this.popup=null,this.listeners=new Map,this.postMessage=async e=>{(await this.waitForPopupLoaded()).postMessage(e,this.url.origin)},this.postRequestAndWaitForResponse=async e=>{let t=this.onMessage(({requestId:t})=>t===e.id);return this.postMessage(e),await t},this.onMessage=async e=>new Promise((t,r)=>{let i=r=>{if(r.origin!==this.url.origin)return;let n=r.data;e(n)&&(t(n),window.removeEventListener("message",i),this.listeners.delete(i))};window.addEventListener("message",i),this.listeners.set(i,{reject:r})}),this.disconnect=()=>{tb(this.popup),this.popup=null,this.listeners.forEach(({reject:e},t)=>{e(m.provider.userRejectedRequest("Request rejected")),window.removeEventListener("message",t)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(this.popup=ty(this.url),this.onMessage(({event:e})=>"PopupUnload"===e).then(this.disconnect).catch(()=>{}),this.onMessage(({event:e})=>"PopupLoaded"===e).then(e=>{this.postMessage({requestId:e.id,data:{version:ed,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw m.rpc.internal();return this.popup})),this.url=new URL(e),this.metadata=t,this.preference=r}}function tx(e){let t=d(tE(e),{shouldIncludeStack:!0}),r=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");return r.searchParams.set("version",ed),r.searchParams.set("code",t.code.toString()),r.searchParams.set("message",t.message),Object.assign(Object.assign({},t),{docUrl:r.href})}function tE(e){var t;if("string"==typeof e)return{message:e,code:o.rpc.internal};if(eA(e)){let r=e.errorMessage,i=null!==(t=e.errorCode)&&void 0!==t?t:r.match(/(denied|rejected)/i)?o.provider.userRejectedRequest:void 0;return Object.assign(Object.assign({},e),{message:r,code:i,data:{method:e.method}})}return e}var tC=r(87336);class tk extends tC.v{}var tS=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};class tA extends tk{constructor(e){var{metadata:t}=e,r=e.preference,{keysUrl:i}=r,n=tS(r,["keysUrl"]);super(),this.signer=null,this.isCoinbaseWallet=!0,this.metadata=t,this.preference=n,this.communicator=new t_({url:i,metadata:t,preference:n});let o=tl();o&&(this.signer=this.initSigner(o))}async request(e){try{if(ew(e),!this.signer)switch(e.method){case"eth_requestAccounts":{let t=await this.requestSignerSelection(e),r=this.initSigner(t);await r.handshake(e),this.signer=r,tc(t);break}case"wallet_sendCalls":{let t=this.initSigner("scw");await t.handshake({method:"handshake"});let r=await t.request(e);return await t.cleanup(),r}case"wallet_getCallsStatus":return ef(e,e8);case"net_version":return 1;case"eth_chainId":return B(1);default:throw m.provider.unauthorized("Must call 'eth_requestAccounts' before other methods")}return await this.signer.request(e)}catch(t){let{code:e}=t;return e===o.provider.unauthorized&&this.disconnect(),Promise.reject(tx(t))}}async enable(){return console.warn('.enable() has been deprecated. Please use .request({ method: "eth_requestAccounts" }) instead.'),await this.request({method:"eth_requestAccounts"})}async disconnect(){var e;await (null===(e=this.signer)||void 0===e?void 0:e.cleanup()),this.signer=null,n.clearAll(),this.emit
4("disconnect",m.provider.disconnected("User initiated disconnection"))}requestSignerSelection(e){return tu({communicator:this.communicator,preference:this.preference,metadata:this.metadata,handshakeRequest:e,callback:this.emit.bind(this)})}initSigner(e){return td({signerType:e,metadata:this.metadata,communicator:this.communicator,callback:this.emit.bind(this)})}}function tI(e){if(e){if(!["all","smartWalletOnly","eoaOnly"].includes(e.options))throw Error(`Invalid options: ${e.options}`);if(e.attribution&&void 0!==e.attribution.auto&&void 0!==e.attribution.dataSuffix)throw Error("Attribution cannot contain both auto and dataSuffix properties")}}class tT{constructor(e){this.metadata={appName:e.appName||"Dapp",appLogoUrl:e.appLogoUrl||J(),appChainIds:e.appChainIds||[]},this.storeLatestVersion(),tp()}makeWeb3Provider(e={options:"all"}){var t;tI(e);let r={metadata:this.metadata,preference:e};return null!==(t=em(r))&&void 0!==t?t:new tA(r)}getCoinbaseWalletLogo(e,t=240){return i(e,t)}storeLatestVersion(){new n("CBWSDK").setItem("VERSION",ed)}}var tR=tT},5845:function(e,t,r){"use strict";r.d(t,{yd:function(){return eL},gK:function(){return eU},PY:function(){return e$},Xy:function(){return eI}});var i,n=-32e3,o=-32001,s=-32002,a=-32003,l=-32004,c=-32005,u=-32700,d=-32600,h=-32601,f=-32602,p=-32603,g=4001,m=4100,w=4200,y=4900,b=4901,v={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};function _(e){return null==e}function x(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}let E=(e,t)=>Object.hasOwnProperty.call(e,t);function C(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}!function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(i=i||(i={}));class k extends TypeError{constructor(e,t){let r;let{message:i,explanation:n,...o}=e,{path:s}=e,a=0===s.length?i:`At path: ${s.join(".")} -- ${i}`;super(n??a),null!=n&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function S(e){return A(e)&&"function"==typeof e[Symbol.iterator]}function A(e){return"object"==typeof e&&null!==e}function I(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function T(e){let{done:t,value:r}=e.next();return t?void 0:r}function R(e,t,r,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:n,branch:o}=t,{type:s}=r,{refinement:a,message:l=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${I(i)}\``}=e;return{value:i,type:s,refinement:a,key:n[n.length-1],path:n,branch:o,...e,message:l}}function*O(e,t,r,i){for(let n of(S(e)||(e=[e]),e)){let e=R(n,t,r,i);e&&(yield e)}}function*P(e,t,r={}){let{path:i=[],branch:n=[e],coerce:o=!1,mask:s=!1}=r,a={path:i,branch:n};if(o&&(e=t.coercer(e,a),s&&"type"!==t.type&&A(t.schema)&&A(e)&&!Array.isArray(e)))for(let r in e)void 0===t.schema[r]&&delete e[r];let l="valid";for(let i of t.validator(e,a))i.explanation=r.message,l="not_val
4id",yield[i,void 0];for(let[c,u,d]of t.entries(e,a))for(let t of P(u,d,{path:void 0===c?i:[...i,c],branch:void 0===c?n:[...n,u],coerce:o,mask:s,message:r.message}))t[0]?(l=null===t[0].refinement||void 0===t[0].refinement?"not_valid":"not_refined",yield[t[0],void 0]):o&&(u=t[1],void 0===c?e=u:e instanceof Map?e.set(c,u):e instanceof Set?e.add(u):A(e)&&(void 0!==u||c in e)&&(e[c]=u));if("not_valid"!==l)for(let i of t.refiner(e,a))i.explanation=r.message,l="not_refined",yield[i,void 0];"valid"===l&&(yield[void 0,e])}class N{constructor(e){let{type:t,schema:r,validator:i,refiner:n,coercer:o=e=>e,entries:s=function*(){}}=e;this.type=t,this.schema=r,this.entries=s,this.coercer=o,i?this.validator=(e,t)=>O(i(e,t),t,this,e):this.validator=()=>[],n?this.refiner=(e,t)=>O(n(e,t),t,this,e):this.refiner=()=>[]}assert(e,t){return M(e,this,t)}create(e,t){return D(e,this,t)}is(e){return j(e,this)}mask(e,t){return L(e,this,t)}validate(e,t={}){return B(e,this,t)}}function M(e,t,r){let i=B(e,t,{message:r});if(i[0])throw i[0]}function D(e,t,r){let i=B(e,t,{coerce:!0,message:r});if(!i[0])return i[1];throw i[0]}function L(e,t,r){let i=B(e,t,{coerce:!0,mask:!0,message:r});if(!i[0])return i[1];throw i[0]}function j(e,t){return!B(e,t)[0]}function B(e,t,r={}){let i=P(e,t,r),n=T(i);return n[0]?[new k(n[0],function*(){for(let e of i)e[0]&&(yield e[0])}),void 0]:[void 0,n[1]]}function $(e,t){return new N({type:e,schema:null,validator:t})}function U(e){let t;return new N({type:"lazy",schema:null,*entries(r,i){t??(t=e()),yield*t.entries(r,i)},validator:(r,i)=>(t??(t=e()),t.validator(r,i)),coercer:(r,i)=>(t??(t=e()),t.coercer(r,i)),refiner:(r,i)=>(t??(t=e()),t.refiner(r,i))})}function F(){return $("any",()=>!0)}function z(e){return new N({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[r,i]of t.entries())yield[r,i,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${I(e)}`})}function q(){return $("boolean",e=>"boolean"==typeof e)}function W(){return $("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${I(e)}`)}function H(e){let t=I(e),r=typeof e;return new N({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${I(r)}`})}function V(){return $("never",()=>!1)}function Z(e){return new N({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})}function K(){return $("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${I(e)}`)}function G(e){let t=e?Object.keys(e):[],r=V();return new N({type:"object",schema:e??null,*entries(i){if(e&&A(i)){let n=new Set(Object.keys(i));for(let r of t)n.delete(r),yield[r,i[r],e[r]];for(let e of n)yield[e,i[e],r]}},validator:e=>A(e)||`Expected an object, but received: ${I(e)}`,coercer:e=>A(e)?{...e}:e})}function Y(e){return new N({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function J(e,t){return new N({type:"record",schema:null,*entries(r){if(A(r))for(let i in r){let n=r[i];yield[i,i,e],yield[i,n,t]}},validator:e=>A(e)||`Expected an object, but received: ${I(e)}`})}function Q(){return $("string",e=>"string"==typeof e||`Expected a string, but received: ${I(e)}`)}function X(e){let t=e.map(e=>e.type).join(" | ");return new N({type:"union",schema:null,coercer(t){for(let r of e){let[e,i]=r.validate(t,{coerce:!0});if(!e)return i}return t},validator(r,i){let n=[];for(let t of e){let[...e]=P(r,t,i),[o]=e;if(!o?.[0])return[];for(let[t]of e)t&&n.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${I(r)}`,...n]}})}function ee(){return $("unknown",()=>!0)}function et(e,t,r){return new N({...e,coercer:(i,n)=>j(i,t)?e.coercer(r(i,n),n):e.coercer(i,n)})}function er(e){return"object"==typeof e&&null!==e&&"message"in e}function ei(e){return er(e)&&"string"==typeof e.message?e.message:_(e)?"":String(e)}function en(e){return"string"==typeof e?.prototype?.constructor?.name}function eo(e){return ei(e).replace(/\.$/u,"")}function es(e,t){return en(e)?new e({message:t}):e({message:t})}
4class ea extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function el(e,t,r="Assertion failed",i=ea){try{M(e,t)}catch(e){throw es(i,`${r}: ${eo(e)}.`)}}let ec=e=>G(e);function eu({path:e,branch:t}){let r=e[e.length-1];return E(t[t.length-2],r)}function ed(e){return new N({...e,type:`optional ${e.type}`,validator:(t,r)=>!eu(r)||e.validator(t,r),refiner:(t,r)=>!eu(r)||e.refiner(t,r)})}let eh=()=>$("finite number",e=>j(e,K())&&Number.isFinite(e)),ef=X([H(null),q(),eh(),Q(),z(U(()=>ef)),J(Q(),U(()=>ef))]),ep=et(ef,F(),e=>(el(e,ef),JSON.parse(JSON.stringify(e,(e,t)=>{if("__proto__"!==e&&"constructor"!==e)return t}))));function eg(e){try{return em(e),!0}catch{return!1}}function em(e){return D(e,ep)}let ew=H("2.0"),ey=Z(X([K(),Q()])),eb=ec({code:W(),message:Q(),data:ed(ep),stack:ed(Q())}),ev=X([J(Q(),ep),z(ep)]);function e_(e){return j(e,eb)}ec({id:ey,jsonrpc:ew,method:Q(),params:ed(ev)}),ec({jsonrpc:ew,method:Q(),params:ed(ev)}),G({id:ey,jsonrpc:ew,result:Y(ee()),error:Y(eb)}),X([ec({id:ey,jsonrpc:ew,result:ep}),ec({id:ey,jsonrpc:ew,error:eb})]);var ex=p,eE="Unspecified error message. This is a bug, please report it.",eC={code:ex,message:eS(ex)},ek="Unspecified server error.";function eS(e,t=eE){if(eA(e)){let t=e.toString();if(E(v,t))return v[t].message;if(eR(e))return ek}return t}function eA(e){return Number.isInteger(e)}function eI(e,{fallbackError:t=eC,shouldIncludeStack:r=!0}={}){if(!e_(t))throw Error("Must provide fallback error with integer number code and string message.");let i=eT(e,t);return r||delete i.stack,i}function eT(e,t){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if(e_(e))return e;let r=eO(e);return{...t,data:{cause:r}}}function eR(e){return e>=-32099&&e<=-32e3}function eO(e){return Array.isArray(e)?e.map(e=>eg(e)?e:x(e)?eP(e):null):x(e)?eP(e):eg(e)?e:null}function eP(e){return Object.getOwnPropertyNames(e).reduce((t,r)=>{let i=e[r];return eg(i)&&(t[r]=i),t},{})}function eN(e){return x(e)&&E(e,"cause")&&x(e.cause)}var eM=r(71107),eD=class extends Error{constructor(e,t,r){var i=(...e)=>{super(...e)};if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a non-empty string.');eN(r)?(i(t,{cause:r.cause}),E(this,"cause")||Object.assign(this,{cause:r.cause})):i(t),void 0!==r&&(this.data=r),this.code=e}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data,C(this.data)&&(e.data.cause=eO(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return eM(this.serialize(),eB,2)}},eL=class extends eD{constructor(e,t,r){if(!ej(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}};function ej(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function eB(e,t){if("[Circular]"!==t)return t}var e$={parse:e=>eF(u,e),invalidRequest:e=>eF(d,e),invalidParams:e=>eF(f,e),methodNotFound:e=>eF(h,e),internal:e=>eF(p,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code
4<= -32005');return eF(t,e)},invalidInput:e=>eF(n,e),resourceNotFound:e=>eF(o,e),resourceUnavailable:e=>eF(s,e),transactionRejected:e=>eF(a,e),methodNotSupported:e=>eF(l,e),limitExceeded:e=>eF(c,e)},eU={userRejectedRequest:e=>ez(g,e),unauthorized:e=>ez(m,e),unsupportedMethod:e=>ez(w,e),disconnected:e=>ez(y,e),chainDisconnected:e=>ez(b,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:r,data:i}=e;if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string');return new eL(t,r,i)}};function eF(e,t){let[r,i]=eq(t);return new eD(e,r??eS(e),i)}function ez(e,t){let[r,i]=eq(t);return new eL(e,r??eS(e),i)}function eq(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t??void 0,r]}}return[]}},33024:function(e,t,r){"use strict";r.d(t,{K:function(){return l},M:function(){return a}});var i=r(27665),n=r(81025);let o=BigInt(0),s=BigInt(1);function a(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},i=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let i=e.ZERO,n=t;for(;r>o;)r&s&&(i=i.add(n)),n=n.double(),r>>=s;return i},precomputeWindow(e,t){let{windows:r,windowSize:n}=i(t),o=[],s=e,a=s;for(let e=0;e<r;e++){a=s,o.push(a);for(let e=1;e<n;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(t,n,o){let{windows:a,windowSize:l}=i(t),c=e.ZERO,u=e.BASE,d=BigInt(2**t-1),h=2**t,f=BigInt(t);for(let e=0;e<a;e++){let t=e*l,i=Number(o&d);o>>=f,i>l&&(i-=h,o+=s);let a=t,p=t+Math.abs(i)-1,g=e%2!=0,m=i<0;0===i?u=u.add(r(g,n[a])):c=c.add(r(m,n[p]))}return{p:c,f:u}},wNAFCached(e,t,r,i){let n=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,n),1!==n&&t.set(e,i(o))),this.wNAF(n,o,r)}}}function l(e){return(0,i.OP)(e.Fp),(0,n.FF)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,i.kK)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},27665:function(e,t,r){"use strict";r.d(t,{DV:function(){return C},OP:function(){return b},PS:function(){return S},Tu:function(){return w},U_:function(){return p},Us:function(){return A},gN:function(){return E}
4,kK:function(){return x},oA:function(){return f},wQ:function(){return d}});var i=r(81025);let n=BigInt(0),o=BigInt(1),s=BigInt(2),a=BigInt(3),l=BigInt(4),c=BigInt(5),u=BigInt(8);function d(e,t){let r=e%t;return r>=n?r:t+r}function h(e,t,r){if(r<=n||t<n)throw Error("Expected power/modulo > 0");if(r===o)return n;let i=o;for(;t>n;)t&o&&(i=i*e%r),e=e*e%r,t>>=o;return i}function f(e,t,r){let i=e;for(;t-- >n;)i*=i,i%=r;return i}function p(e,t){if(e===n||t<=n)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=d(e,t),i=t,s=n,a=o,l=o,c=n;for(;r!==n;){let e=i/r,t=i%r,n=s-l*e,o=a-c*e;i=r,r=t,s=l,a=c,l=n,c=o}if(i!==o)throw Error("invert: does not exist");return d(s,t)}function g(e){let t,r,i;let a=(e-o)/s;for(t=e-o,r=0;t%s===n;t/=s,r++);for(i=s;i<e&&h(i,a,e)!==e-o;i++);if(1===r){let t=(e+o)/l;return function(e,r){let i=e.pow(r,t);if(!e.eql(e.sqr(i),r))throw Error("Cannot find square root");return i}}let c=(t+o)/s;return function(e,n){if(e.pow(n,a)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,l=e.pow(e.mul(e.ONE,i),t),u=e.pow(n,c),d=e.pow(n,t);for(;!e.eql(d,e.ONE);){if(e.eql(d,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(d);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(l,o<<BigInt(s-t-1));l=e.sqr(r),u=e.mul(u,r),d=e.mul(d,l),s=t}return u}}function m(e){if(e%l===a){let t=(e+o)/l;return function(e,r){let i=e.pow(r,t);if(!e.eql(e.sqr(i),r))throw Error("Cannot find square root");return i}}if(e%u===c){let t=(e-c)/u;return function(e,r){let i=e.mul(r,s),n=e.pow(i,t),o=e.mul(r,n),a=e.mul(e.mul(o,s),n),l=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(l),r))throw Error("Cannot find square root");return l}}return g(e)}BigInt(9),BigInt(16);let w=(e,t)=>(d(e,t)&o)===o,y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(e){let t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=y.reduce((e,t)=>(e[t]="function",e),t);return(0,i.FF)(e,r)}function v(e,t,r){if(r<n)throw Error("Expected power > 0");if(r===n)return e.ONE;if(r===o)return t;let i=e.ONE,s=t;for(;r>n;)r&o&&(i=e.mul(i,s)),s=e.sqr(s),r>>=o;return i}function _(e,t){let r=Array(t.length),i=t.reduce((t,i,n)=>e.is0(i)?t:(r[n]=t,e.mul(t,i)),e.ONE),n=e.inv(i);return t.reduceRight((t,i,n)=>e.is0(i)?t:(r[n]=e.mul(t,r[n]),e.mul(t,i)),n),r}function x(e,t){let r=void 0!==t?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function E(e,t,r=!1,s={}){if(e<=n)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:a,nByteLength:l}=x(e,t);if(l>2048)throw Error("Field lengths over 2048 bytes are not supported");let c=m(e),u=Object.freeze({ORDER:e,BITS:a,BYTES:l,MASK:(0,i.dQ)(a),ZERO:n,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return n<=t&&t<e},is0:e=>e===n,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,r)=>d(t+r,e),sub:(t,r)=>d(t-r,e),mul:(t,r)=>d(t*r,e),pow:(e,t)=>v(u,e,t),div:(t,r)=>d(t*p(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:s.sqrt||(e=>c(u,e)),invertBatch:e=>_(u,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,i.S5)(e,l):(0,i.tL)(e,l),fromBytes:e=>{if(e.length!==l)throw Error(`Fp.fromBytes: expected ${l}, got ${e.length}`);return r?(0,i.ty)(e):(0,i.bytesToNumberBE)(e)}});return Object.freeze(u)}function C(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r}function k(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function S(e){let t=k(e);return t+Math.ceil(t/2)}function A(e,t,r=!1){let n=e.length,s=k(t),a=S(t);if(n<16||n<a||n>1024)throw Error(`expected ${a}-1024 bytes of input, got ${n}`);let l=d(r?(0,i.bytesToNumberBE)(e):(0,i.ty)(e),t-o)+o;return r?(0,i.S5)(l,s):(0,i.tL)(l,s)}},81025:function(e,t,r){"use strict";r.d(t,{FF:function(){return C},S5:function(){return m},_t:function(){return o},bytesToNumberBE:function(){return f},ci:function(){return l},dQ:function(){return b},eV:function(){return y},gk:function(){return s},hexToBytes:function(){return h},n$:function(){return x},ql:function(){return w},tL:function(){return g},ty:function(){return p}}),BigInt(0);let i=BigInt(1),n=BigInt(2);function o(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(e){if(!o(e))throw Error("Uint8Array expected")}let a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){s(e);let t="";for(let r=0;r<e.length;r++)t+=a[e[r]];return t}function c(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}let u={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function d(e){return e>=u._0&&e<=u._9?e-u._0:e>=u._A&&e<=u._F?e-(u._A-10):e>=u._a&&e<=u._f?e-(u._a-10):void 0}function h(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let t=0,n=0;t<r;t++,n+=2){let r=d(e.charCodeAt(n)),o=d(e.charCodeAt(n+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[n]+e[n+1])+'" at index '+n);i[t]=16*r+o}return i}function f(e){return c(l(e))}function p(e){return s(e),c(l(Uint8Array.from(e).reverse()))}function g(e,t){return h(e.toString(16).padStart(2*t,"0"))}function m(e,t){return g(e,t).reverse()}function w(e,t,r){let i;if("string"==typeof t)try{i=h(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(o(t))i=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let n=i.length;if("number"==typeof r&&n!==r)throw Error(`${e} expected ${r} bytes, got ${n}`);return i}function y(...e){let t=0;for(let r=0;r<e.length;r++){let i=e[r];s(i),t+=i.length}let r=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){let n=e[t];r.set(n,i),i+=n.length}return r}let b=e=>(n<<BigInt(e-1))-i,v=e=>new Uint8Array(e),_=e=>Uint8Array.from(e);function x(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let i=v(e),n=v(e),o=0,s=()=>{i.fill(1),n.fill(0),o=0},a=(...e)=>r(n,i,...e),l=(e=v())=>{n=a(_([0]),e),i=a(),0!==e.length&&(n=a(_([1]),e),i=a())},c=()=>
4{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(i=a()).slice();r.push(t),e+=i.length}return y(...r)};return(e,t)=>{let r;for(s(),l(e);!(r=t(c()));)l();return s(),r}}let E={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||o(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function C(e,t,r={}){let i=(t,r,i)=>{let n=E[r];if("function"!=typeof n)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!i||void 0!==o)&&!n(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))i(e,r,!1);for(let[e,t]of Object.entries(r))i(e,t,!0);return e}},71629:function(e,t,r){"use strict";r.d(t,{kA:function(){return R}});var i=r(29272),n=r(27665),o=r(74043),s=r(25884);class a extends s.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,o.vp)(e);let r=(0,s.O0)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,n=new Uint8Array(i);n.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<n.length;e++)n[e]^=54;this.iHash.update(n),this.oHash=e.create();for(let e=0;e<n.length;e++)n[e]^=106;this.oHash.update(n),n.fill(0)}update(e){return(0,o.Gg)(this),this.iHash.update(e),this}digestInto(e){(0,o.Gg)(this),(0,o.aI)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:i,destroyed:n,blockLen:o,outputLen:s}=this;return e.finished=i,e.destroyed=n,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let l=(e,t,r)=>new a(e,t).update(r).digest();l.create=(e,t)=>new a(e,t);var c=r(81025),u=r(33024);function d(e){let t=(0,u.K)(e);c.FF(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:i,a:n}=t;if(r){if(!i.eql(n,i.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}let{bytesToNumberBE:h,hexToBytes:f}=c,p={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=p;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let r=e[1],i=e.subarray(2,r+2);if(!r||i.length!==r)throw new t("Invalid signature integer: wrong length");if(128&i[0])throw new t("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:h(i),l:e.subarray(r+2)}},toSig(e){let{Err:t}=p,r="string"==typeof e?f(e):e;c.gk(r);let i=r.length;if(i<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==i-2)throw new t("Invalid signature: incorrect length");let{d:n,l:o}=p._parseInt(r.subarray(2)),{d:s,l:a}=p._parseInt(o);if(a.length)throw new t("Invalid signature: left bytes after parsing");return{r:n,s}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},i=t(r(e.s)),n=t(r(e.r)),o=i.length/2,s=n.length/2,a=r(o),l=r(s);return`30${r(s+o+4)}02${l}${n}02${a}${i}`}},g=BigInt(0),m=BigInt(1),w=(BigInt(2),BigInt(3));function y(e){let t=d(e),{Fp:r}=t,i=t.toBytes||((e,t,i)=>{let n=t.toAffine();return c.eV(Uint8Array.from([4]),r.toBytes(n.x),r.toBytes(n.y))}),o=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function s(e){let{a:i,b:n}=t,o=r.sqr(e),s=r.mul(o,e);return r.add(r.add(s,r.mul(e,i)),n)}if(!r.eql(r.sqr(t.Gy),s(t.Gx)))throw Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&g<e&&e<t.n}function l(e){if(!a(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function h(e){let r;let{allowedPrivateKeyLengths:i,nByteLength:o,wrapPrivateKey:s,n:a}=t;if(i&&"bigint"!=typeof e){if(c._t(e)&&(e=c.ci(e)),"string"!=typeof e||!i.includes(e.length))throw Error("Invalid key");e=e.padStart(2*o,"0")}try{r="bigint"==typeof e?e:c.bytesToNumberBE((0,c.ql)("private key",e,o))}catch(t){throw Error(`private key must be ${o} bytes, hex or bigint, not ${typeof e}`)}return s&&(r=n.wQ(r,a)),l(r),r}let f=new Map;function p(e){if(!(e instanceof y))throw Error("ProjectivePoint expected")}class y{constructor(e,t,i){if(this.px=e,this.py=t,this.pz=i,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==i||!r.isValid(i))throw Error("z required")}static fromAffine(e){let{x:t,y:i}=e||{};if(!e||!r.isValid(t)||!r.isValid(i))throw Error("invalid affine point");if(e instanceof y)throw Error("projective point not allowed");let n=e=>r.eql(e,r.ZERO);return n(t)&&n(i)?y.ZERO:new y(t,i,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)}static fromHex(e){let t=y.fromAffine(o((0,c.ql)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(h(e))}_setWindowSize(e){this._WINDOW_SIZE=e,f.delete(this)}
4assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:i}=this.toAffine();if(!r.isValid(e)||!r.isValid(i))throw Error("bad point: x or y not FE");let n=r.sqr(i),o=s(e);if(!r.eql(n,o))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){p(e);let{px:t,py:i,pz:n}=this,{px:o,py:s,pz:a}=e,l=r.eql(r.mul(t,a),r.mul(o,n)),c=r.eql(r.mul(i,a),r.mul(s,n));return l&&c}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:i}=t,n=r.mul(i,w),{px:o,py:s,pz:a}=this,l=r.ZERO,c=r.ZERO,u=r.ZERO,d=r.mul(o,o),h=r.mul(s,s),f=r.mul(a,a),p=r.mul(o,s);return p=r.add(p,p),u=r.mul(o,a),u=r.add(u,u),l=r.mul(e,u),c=r.mul(n,f),c=r.add(l,c),l=r.sub(h,c),c=r.add(h,c),c=r.mul(l,c),l=r.mul(p,l),u=r.mul(n,u),f=r.mul(e,f),p=r.sub(d,f),p=r.mul(e,p),p=r.add(p,u),u=r.add(d,d),d=r.add(u,d),d=r.add(d,f),d=r.mul(d,p),c=r.add(c,d),f=r.mul(s,a),f=r.add(f,f),d=r.mul(f,p),l=r.sub(l,d),u=r.mul(f,h),u=r.add(u,u),new y(l,c,u=r.add(u,u))}add(e){p(e);let{px:i,py:n,pz:o}=this,{px:s,py:a,pz:l}=e,c=r.ZERO,u=r.ZERO,d=r.ZERO,h=t.a,f=r.mul(t.b,w),g=r.mul(i,s),m=r.mul(n,a),b=r.mul(o,l),v=r.add(i,n),_=r.add(s,a);v=r.mul(v,_),_=r.add(g,m),v=r.sub(v,_),_=r.add(i,o);let x=r.add(s,l);return _=r.mul(_,x),x=r.add(g,b),_=r.sub(_,x),x=r.add(n,o),c=r.add(a,l),x=r.mul(x,c),c=r.add(m,b),x=r.sub(x,c),d=r.mul(h,_),c=r.mul(f,b),d=r.add(c,d),c=r.sub(m,d),d=r.add(m,d),u=r.mul(c,d),m=r.add(g,g),m=r.add(m,g),b=r.mul(h,b),_=r.mul(f,_),m=r.add(m,b),b=r.sub(g,b),b=r.mul(h,b),_=r.add(_,b),g=r.mul(m,_),u=r.add(u,g),g=r.mul(x,_),c=r.mul(v,c),c=r.sub(c,g),g=r.mul(v,m),d=r.mul(x,d),new y(c,u,d=r.add(d,g))}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return v.wNAFCached(this,f,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)})}multiplyUnsafe(e){let i=y.ZERO;if(e===g)return i;if(l(e),e===m)return this;let{endo:n}=t;if(!n)return v.unsafeLadder(this,e);let{k1neg:o,k1:s,k2neg:a,k2:c}=n.splitScalar(e),u=i,d=i,h=this;for(;s>g||c>g;)s&m&&(u=u.add(h)),c&m&&(d=d.add(h)),h=h.double(),s>>=m,c>>=m;return o&&(u=u.negate()),a&&(d=d.negate()),d=new y(r.mul(d.px,n.beta),d.py,d.pz),u.add(d)}multiply(e){let i,n;l(e);let o=e,{endo:s}=t;if(s){let{k1neg:e,k1:t,k2neg:a,k2:l}=s.splitScalar(o),{p:c,f:u}=this.wNAF(t),{p:d,f:h}=this.wNAF(l);c=v.constTimeNegate(e,c),d=v.constTimeNegate(a,d),d=new y(r.mul(d.px,s.beta),d.py,d.pz),i=c.add(d),n=u.add(h)}else{let{p:e,f:t}=this.wNAF(o);i=e,n=t}return y.normalizeZ([i,n])[0]}multiplyAndAddUnsafe(e,t,r){let i=y.BASE,n=(e,t)=>t!==g&&t!==m&&e.equals(i)?e.multiply(t):e.multiplyUnsafe(t),o=n(this,t).add(n(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:i,pz:n}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(n));let s=r.mul(t,e),a=r.mul(i,e),l=r.mul(n,e);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(l,r.ONE))throw Error("invZ was invalid");return{x:s,y:a}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===m)return!0;if(r)return r(y,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===m?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),i(y,this,e)}toHex(e=!0){return c.ci(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);let b=t.nBitLength,v=(0,u.M)(y,t.endo?Math.ceil(b/2):b);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:h,weierstrassEquation:s,isWithinCurveOrder:a}}function b(e){let t=(0,u.K)(e);return c.FF(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function v(e){let t=b(e),{Fp:r,n:i}=t,o=r.BYTES+1,s=2*r.BYTES+1;function a(e){return g<e&&e<r.ORDER}function l(e){return n.wQ(e,i)}function u(e){return n.U_(e,i)}let{ProjectivePoint:d,normPrivateKeyToScalar:h,weierstrassEquation:f,isWithinCurveOrder:w}=y({...t,toBytes(e,t,i){let n=t.toAffine(),o=r.toBytes(n.x),s=c.eV;return i?s(Uint8Array.from([t.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,r.toBytes(n.y))},fromBytes(e){let t=e.length,i=e[0],n=e.subarray(1);if(t===o&&(2===i||3===i)){let e;let t=c.bytesToNumberBE(n);if(!a(t))throw Error("Point is not on curve");let o=f(t);try{e=r.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&i)==1!=((e&m)===m)&&(e=r.neg(e)),{x:t,y:e}}if(t===s&&4===i)return{x:r.fromBytes(n.subarray(0,r.BYTES)),y:r.fromBytes(n.subarray(r.BYTES,2*r.BYTES))};throw Error(`Point of length ${t}
4 was invalid. Expected ${o} compressed bytes or ${s} uncompressed bytes`)}}),v=e=>c.ci(c.tL(e,t.nByteLength));function _(e){return e>i>>m}function x(e){return _(e)?l(-e):e}let E=(e,t,r)=>c.bytesToNumberBE(e.slice(t,r));class C{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new C(E(e=(0,c.ql)("compactSignature",e,2*r),0,r),E(e,r,2*r))}static fromDER(e){let{r:t,s:r}=p.toSig((0,c.ql)("DER",e));return new C(t,r)}assertValidity(){if(!w(this.r))throw Error("r must be 0 < r < CURVE.n");if(!w(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new C(this.r,this.s,e)}recoverPublicKey(e){let{r:i,s:n,recovery:o}=this,s=R((0,c.ql)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let a=2===o||3===o?i+t.n:i;if(a>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let h=(1&o)==0?"02":"03",f=d.fromHex(h+v(a)),p=u(a),g=l(-s*p),m=l(n*p),w=d.BASE.multiplyAndAddUnsafe(f,g,m);if(!w)throw Error("point at infinify");return w.assertValidity(),w}hasHighS(){return _(this.s)}normalizeS(){return this.hasHighS()?new C(this.r,l(-this.s),this.recovery):this}toDERRawBytes(){return c.hexToBytes(this.toDERHex())}toDERHex(){return p.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return c.hexToBytes(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}let k={isValidPrivateKey(e){try{return h(e),!0}catch(e){return!1}},normPrivateKeyToScalar:h,randomPrivateKey:()=>{let e=n.PS(t.n);return n.Us(t.randomBytes(e),t.n)},precompute:(e=8,t=d.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function S(e,t=!0){return d.fromPrivateKey(e).toRawBytes(t)}function A(e){let t=c._t(e),r="string"==typeof e,i=(t||r)&&e.length;return t?i===o||i===s:r?i===2*o||i===2*s:e instanceof d}function I(e,t,r=!0){if(A(e))throw Error("first arg must be private key");if(!A(t))throw Error("second arg must be public key");return d.fromHex(t).multiply(h(e)).toRawBytes(r)}let T=t.bits2int||function(e){let r=c.bytesToNumberBE(e),i=8*e.length-t.nBitLength;return i>0?r>>BigInt(i):r},R=t.bits2int_modN||function(e){return l(T(e))},O=c.dQ(t.nBitLength);function P(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(g<=e&&e<O))throw Error(`bigint expected < 2^${t.nBitLength}`);return c.tL(e,t.nByteLength)}function N(e,i,n=M){if(["recovered","canonical"].some(e=>e in n))throw Error("sign() legacy options not supported");let{hash:o,randomBytes:s}=t,{lowS:a,prehash:f,extraEntropy:p}=n;null==a&&(a=!0),e=(0,c.ql)("msgHash",e),f&&(e=(0,c.ql)("prehashed msgHash",o(e)));let y=R(e),b=h(i),v=[P(b),P(y)];if(null!=p&&!1!==p){let e=!0===p?s(r.BYTES):p;v.push((0,c.ql)("extraEntropy",e))}let E=c.eV(...v),k=y;return{seed:E,k2sig:function(e){let t=T(e);if(!w(t))return;let r=u(t),i=d.BASE.multiply(t).toAffine(),n=l(i.x);if(n===g)return;let o=l(r*l(k+n*b));if(o===g)return;let s=(i.x===n?0:2)|Number(i.y&m),c=o;return a&&_(o)&&(c=x(o),s^=1),new C(n,c,s)}}}let M={lowS:t.lowS,prehash:!1},D={lowS:t.lowS,prehash:!1};function L(e,r,i=M){let{seed:n,k2sig:o}=N(e,r,i),s=t;return c.n$(s.hash.outputLen,s.nByteLength,s.hmac)(n,o)}function j(e,r,i,n=D){let o,s;let a=e;if(r=(0,c.ql)("msgHash",r),i=(0,c.ql)("publicKey",i),"strict"in n)throw Error("options.strict was renamed to lowS");let{lowS:h,prehash:f}=n;try{if("string"==typeof a||c._t(a))try{s=C.fromDER(a)}catch(e){if(!(e instanceof p.Err))throw e;s=C.fromCompact(a)}else if("object"==typeof a&&"bigint"==typeof a.r&&"bigint"==typeof a.s){let{r:e,s:t}=a;s=new C(e,t)}else throw Error("PARSE");o=d.fromHex(i)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(h&&s.hasHighS())return!1;f&&(r=t.hash(r));let{r:g,s:m}=s,w=R(r),y=u(m),b=l(w*y),v=l(g*y),_=d.BASE.multiplyAndAddUnsafe(o,b,v)?.toAffine();return!!_&&l(_.x)===g}return d.BASE._setWindowSize(8),{CURVE:t,getPublicKey:S,getSharedSecret:I,sign:L,verify:j,ProjectivePoint:d,Signature:C,utils:k}}function _(e){return{hash:e,hmac:(t,...r)=>l(e,t,(0,s.eV)(...r)),randomBytes:s.O6}}function x(e,t){let r=t=>v({...e,..._(t)});return Object.freeze({...r(t),create:r})}BigInt(4);let E=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),C=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),k=BigInt(1),S=BigInt(2),A=(e,t)=>
4(e+t/S)/t;function I(e){let t=E,r=BigInt(3),i=BigInt(6),o=BigInt(11),s=BigInt(22),a=BigInt(23),l=BigInt(44),c=BigInt(88),u=e*e*e%t,d=u*u*e%t,h=(0,n.oA)(d,r,t)*d%t,f=(0,n.oA)(h,r,t)*d%t,p=(0,n.oA)(f,S,t)*u%t,g=(0,n.oA)(p,o,t)*p%t,m=(0,n.oA)(g,s,t)*g%t,w=(0,n.oA)(m,l,t)*m%t,y=(0,n.oA)(w,c,t)*w%t,b=(0,n.oA)(y,l,t)*m%t,v=(0,n.oA)(b,r,t)*d%t,_=(0,n.oA)(v,a,t)*g%t,x=(0,n.oA)(_,i,t)*u%t,C=(0,n.oA)(x,S,t);if(!T.eql(T.sqr(C),e))throw Error("Cannot find square root");return C}let T=(0,n.gN)(E,void 0,void 0,{sqrt:I}),R=x({a:BigInt(0),b:BigInt(7),Fp:T,n:C,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=C,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-k*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=r,a=BigInt("0x100000000000000000000000000000000"),l=A(s*e,t),c=A(-i*e,t),u=(0,n.wQ)(e-l*r-c*o,t),d=(0,n.wQ)(-l*i-c*s,t),h=u>a,f=d>a;if(h&&(u=t-u),f&&(d=t-d),u>a||d>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:h,k1:u,k2neg:f,k2:d}}}},i.J),O=BigInt(0),P=e=>"bigint"==typeof e&&O<e&&e<E,N={};function M(e,...t){let r=N[e];if(void 0===r){let t=sha256(Uint8Array.from(e,e=>e.charCodeAt(0)));r=concatBytes(t,t),N[e]=r}return sha256(concatBytes(r,...t))}let D=e=>mod(e,E),L=e=>mod(e,C),j=R.ProjectivePoint},74043:function(e,t,r){"use strict";function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function n(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(e,...t){if(!n(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");i(e.outputLen),i(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function l(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{Gg:function(){return a},J8:function(){return l},Rx:function(){return i},aI:function(){return o},vp:function(){return s}});let c={number:i,bool:function(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)},bytes:o,hash:s,exists:a,output:l};t.ZP=c},88577:function(e,t,r){"use strict";r.d(t,{VR:function(){return l},bc:function(){return s},l3:function(){return a}});var i=r(74043),n=r(25884);function o(e,t,r,i){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,i);let n=BigInt(32),o=BigInt(4294967295),s=Number(r>>n&o),a=Number(r&o),l=i?4:0,c=i?0:4;e.setUint32(t+l,s,i),e.setUint32(t+c,a,i)}let s=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r;
4class l extends n.kb{constructor(e,t,r,i){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,n.GL)(this.buffer)}update(e){(0,i.Gg)(this);let{view:t,buffer:r,blockLen:o}=this,s=(e=(0,n.O0)(e)).length;for(let i=0;i<s;){let a=Math.min(o-this.pos,s-i);if(a===o){let t=(0,n.GL)(e);for(;o<=s-i;i+=o)this.process(t,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,i.Gg)(this),(0,i.J8)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:s,isLE:a}=this,{pos:l}=this;t[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>s-l&&(this.process(r,0),l=0);for(let e=l;e<s;e++)t[e]=0;o(r,s-8,BigInt(8*this.length),a),this.process(r,0);let c=(0,n.GL)(e),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=u/4,h=this.get();if(d>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<d;e++)c.setUint32(4*e,h[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:i,finished:n,destroyed:o,pos:s}=this;return e.length=i,e.pos=s,e.finished=n,e.destroyed=o,i%t&&e.buffer.set(r),e}}},16177:function(e,t,r){"use strict";r.d(t,{EP:function(){return a},SD:function(){return c},Vl:function(){return s},gm:function(){return l},mk:function(){return u}});let i=BigInt(4294967296-1),n=BigInt(32);function o(e,t=!1){return t?{h:Number(e&i),l:Number(e>>n&i)}:{h:0|Number(e>>n&i),l:0|Number(e&i)}}function s(e,t=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let n=0;n<e.length;n++){let{h:s,l:a}=o(e[n],t);[r[n],i[n]]=[s,a]}return[r,i]}let a=(e,t,r)=>e<<r|t>>>32-r,l=(e,t,r)=>t<<r|e>>>32-r,c=(e,t,r)=>t<<r-32|e>>>64-r,u=(e,t,r)=>e<<r-32|t>>>64-r,d={fromBig:o,split:s,toBig:(e,t)=>BigInt(e>>>0)<<n|BigInt(t>>>0),shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:a,rotlSL:l,rotlBH:c,rotlBL:u,add:function(e,t,r,i){let n=(t>>
4>0)+(i>>>0);return{h:e+r+(n/4294967296|0)|0,l:0|n}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,i)=>t+r+i+(e/4294967296|0)|0,add4L:(e,t,r,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0),add4H:(e,t,r,i,n)=>t+r+i+n+(e/4294967296|0)|0,add5H:(e,t,r,i,n,o)=>t+r+i+n+o+(e/4294967296|0)|0,add5L:(e,t,r,i,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(i>>>0)+(n>>>0)};t.ZP=d},29272:function(e,t,r){"use strict";r.d(t,{J:function(){return c}});var i=r(88577),n=r(25884);let o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),a=new Uint32Array(64);class l extends i.VR{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){let{A:e,B:t,C:r,D:i,E:n,F:o,G:s,H:a}=this;return[e,t,r,i,n,o,s,a]}set(e,t,r,i,n,o,s,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|i,this.E=0|n,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)a[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=a[e-15],r=a[e-2],i=(0,n.np)(t,7)^(0,n.np)(t,18)^t>>>3,o=(0,n.np)(r,17)^(0,n.np)(r,19)^r>>>10;a[e]=o+a[e-7]+i+a[e-16]|0}let{A:r,B:s,C:l,D:c,E:u,F:d,G:h,H:f}=this;for(let e=0;e<64;e++){let t=f+((0,n.np)(u,6)^(0,n.np)(u,11)^(0,n.np)(u,25))+(0,i.bc)(u,d,h)+o[e]+a[e]|0,p=((0,n.np)(r,2)^(0,n.np)(r,13)^(0,n.np)(r,22))+(0,i.l3)(r,s,l)|0;f=h,h=d,d=u,u=c+t|0,c=l,l=s,s=r,r=t+p|0}r=r+this.A|0,s=s+this.B|0,l=l+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(r,s,l,c,u,d,h,f)}roundClean(){a.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let c=(0,n.hE)(()=>new l)},92530:function(e,t,r){"use strict";r.d(t,{HY:function(){return C},R4:function(){return x},fr:function(){return E},x:function(){return k}});var i=r(74043),n=r(16177),o=r(25884);let s=[],a=[],l=[],c=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(7),f=BigInt(256),p=BigInt(113);for(let e=0,t=u,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],s.push(2*(5*i+r)),a.push((e+1)*(e+2)/2%64);let n=c;for(let e=0;e<7;e++)(t=(t<<u^(t>>h)*p)%f)&d&&(n^=u<<(u<<BigInt(e))-u);l.push(n)}let[g,m]=(0,n.Vl)(l,!0),w=(e,t,r)=>r>32?(0,n.SD)(e,t,r):(0,n.EP)(e,t,r),y=(e,t,r)=>r>32?(0,n.mk)(e,t,r):(0,n.gm)(e,t,r);function b(e,t=24){let r=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let i=(t+8)%10,n=(t+2)%10,o=r[n],s=r[n+1],a=w(o,s,1)^r[i],l=y(o,s,1)^r[i+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=l}let t=e[2],n=e[3];for(let r=0;r<24;r++){let i=a[r],o=w(t,n,i),l=y(t,n,i),c=s[r];t=e[c],n=e[c+1],e[c]=o,e[c+1]=l}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)r[i]=e[t+i];for(let i=0;i<10;i++)e[t+i]^=~r[(i+2)%10]&r[(i+4)%10]}e[0]^=g[i],e[1]^=m[i]}r.fill(0)}class v extends o.kb{constructor(e,t,r,n=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,i.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.Jq)(this.state)}keccak(){o.iA||(0,o.l1)(this.state32),b(this.state32,this.rounds),o.iA||(0,o.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.Gg)(this);let{blockLen:t,state:r}=this,n=(e=(0,o.O0)(e)).length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:i}=this;e[r]^=t,(128&t)!=0&&r===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,i.Gg)(this,!1),(0,i.aI)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let i=0,n=e.length;i<n;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,n-i);e.set(t.subarray(this.posOut,this.posOut+o),i),this.posOut+=o,i+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:i,rounds:n,enableXOF:o}=this;return e||(e=new v(t,r,i,o,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=r,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}let _=(e,t,r)=>(0,o.hE)(()=>new v(t,e,r)),x=_(1,144,28),E=_(1,136,32),C=_(1,104,48),k=_(1,72,64)},25884:function(e,t,r){"use strict";r.d(t,{kb:function(){return m},l1:function(){return u},ci:function(){return h},eV:function(){return g},GL:function(){return s},iA:function(){return l},O6:function(){return y},np:function(){return a},O0:function(){return p},Jq:function(){return o},iY:function(){return f},hE:function(){return w}});let i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;var n=r(74043);let o=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),s=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),a=(e,t)=>e<<32-t|e>>>t,l=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],c=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function u(e){for(let t=0;t<e.length;t++)e[t]=c(e[t])}let d=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function h(e){(0,n.aI)(e);let t="";for(let r=0;r<e.length;r++)t+=d[e[r]];return t}function f(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function p(e){return"string"==typeof e&&(e=f(e)),(0,n.aI)(e),e}function g(...e){let t=0;for(let r=0;r<e.length;r++){let i=e[r];(0,n.aI)(i),t+=i.length}let r=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){let n=e[t];r.set(n,i),i+=n.length}return r}class m{clone(){return this._cloneInto()}}function w(e){let t=t=>e().update(p(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function y(e=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},57146:function(e,t,r){"use strict";function i(e){if(e)return n(e)}
4function n(e){for(var t in i.prototype)e[t]=i.prototype[t];return e}r.r(t),r.d(t,{Emitter:function(){return i}}),i.prototype.on=i.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},i.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var n=0;n<i.length;n++)if((r=i[n])===t||r.fn===t){i.splice(n,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},i.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(r){r=r.slice(0);for(var i=0,n=r.length;i<n;++i)r[i].apply(this,t)}return this},i.prototype.emitReserved=i.prototype.emit,i.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},i.prototype.hasListeners=function(e){return!!this.listeners(e).length}},21134:function(e,t,r){"use strict";r.d(t,{bq:function(){return g},Em:function(){return l},kg:function(){return h},UE:function(){return p},p1:function(){return c},C6:function(){return d},em:function(){return f},tU:function(){return m}});var i=r(45792),n=r(67408),o=r(69367),s=r(60645);i.extend(o),i.extend(s);let a={...n,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d sec",m:"1 min",mm:"%d min",h:"1 hr",hh:"%d hrs",d:"1 d",dd:"%d d",M:"1 mo",MM:"%d mo",y:"1 yr",yy:"%d yr"}};i.locale("en-web3-modal",a);let l={getYear:(e=new Date().toISOString())=>i(e).year(),getRelativeDateFromNow:e=>i(e).locale("en-web3-modal").fromNow(!0),formatDate:(e,t="DD MMM")=>i(e).format(t)},c={caipNetworkIdToNumber:e=>e?Number(e.split(":")[1]):void 0};var u=r(68651);let d={bigNumber:e=>new u.Z(e),multiply(e,t){if(void 0===e||void 0===t)return(0,u.Z)(0);let r=new u.Z(e),i=new u.Z(t);return r.multipliedBy(i)},formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})},h={numericInputKeyDown(e,t,r){let i=["Backspace","Meta","Ctrl","a","A","c","C","x","X","v","V","ArrowLeft","ArrowRight","Tab"],n=e.metaKey||e.ctrlKey,o="a"===e.key||"A"===e.key,s="c"===e.key||"C"===e.key,a="v"===e.key||"V"===e.key,l="x"===e.key||"X"===e.key,c=","===e.key,u="."===e.key,d=e.key>="0"&&e.key<="9";!n&&(o||s||a||l)&&e.preventDefault(),"0"!==t||c||u||"0"!==e.key||e.preventDefault(),"0"===t&&d&&(r(e.key),e.preventDefault()),(c||u)&&(t||(r("0."),e.preventDefault()),(t?.includes(".")||t?.includes(","))&&e.preventDefault()),d||i.includes(e.key)||u||c||e.preventDefault()}},f=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],p={URLS:{FAQ:"https://walletconnect.com/faq"}}
4,g={WC_NAME_SUFFIX:".wcn.id",WC_NAMES_ALLOWED_DOMAINS:["walletconnect.com"]};function m(e,t){return"light"===t?{"--w3m-accent":e?.["--w3m-accent"]||"hsla(231, 100%, 70%, 1)","--w3m-background":"#fff"}:{"--w3m-accent":e?.["--w3m-accent"]||"hsla(230, 100%, 67%, 1)","--w3m-background":"#121313"}}},56374:function(e,t,r){"use strict";r.d(t,{AccountController:function(){return K},ApiController:function(){return eo},WM:function(){return Y},fz:function(){return e_},Lr:function(){return m},ConnectionController:function(){return N},ConnectorController:function(){return ee},bq:function(){return a},j1:function(){return l},a:function(){return ev},Xs:function(){return T},IN:function(){return ea},NetworkController:function(){return j},ph:function(){return eh},OptionsController:function(){return f},Ie:function(){return D},RouterController:function(){return U},_4:function(){return ex},Si:function(){return ep},SnackController:function(){return y},MO:function(){return k},nY:function(){return V},ThemeController:function(){return Q},fw:function(){return em},sl:function(){return O}});var i=r(55543),n=r(33085);let o="https://secure.walletconnect.com",s=[{label:"Coinbase",name:"coinbase",feeRange:"1-2%",url:""}],a={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,ONE_SEC_MS:1e3,SECURE_SITE:o,SECURE_SITE_DASHBOARD:`${o}/dashboard`,SECURE_SITE_FAVICON:`${o}/images/favicon.png`,RESTRICTED_TIMEZONES:["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],WC_COINBASE_PAY_SDK_CHAINS:["ethereum","arbitrum","polygon","avalanche-c-chain","optimism","celo","base"],WC_COINBASE_PAY_SDK_FALLBACK_CHAIN:"ethereum",WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP:{Ethereum:"ethereum","Arbitrum One":"arbitrum",Polygon:"polygon",Avalanche:"avalanche-c-chain","OP Mainnet":"optimism",Celo:"celo",Base:"base"},WC_COINBASE_ONRAMP_APP_ID:"bf18c88d-495a-463b-b249-0b9d3656cf5e",SWAP_SUGGESTED_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP"],SWAP_POPULAR_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP","METAL","DAI","CHAMP","WOLF","SALE","BAL","BUSD","MUST","BTCpx","ROUTE","HEX","WELT","amDAI","VSQ","VISION","AURUM","pSP","SNX","VC","LINK","CHP","amUSDT","SPHERE","FOX","GIDDY","GFC","OMEN","OX_OLD","DE","WNT"],SWAP_SUPPORTED_NETWORKS:["eip155:1","eip155:42161","eip155:10","eip155:324","eip155:8453","eip155:56","eip155:137","eip155:100","eip155:43114","eip155:250","eip155:8217","eip155:1313161554"],NATIVE_TOKEN_ADDRESS:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",CONVERT_SLIPPAGE_TOLERANCE:1},l={isMobile:()=>"undefined"!=typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),checkCaipNetwork:(e,t="")=>e?.id.toLocaleLowerCase().includes(t.toLowerCase()),isAndroid(){let e=window.navigator.userAgent.toLowerCase();return l.isMobile()&&e.includes("android")},isIos(){let e=window.navigator.userAgent.toLowerCase();return l.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isClient:()=>"undefined"!=typeof window,isPairingExpired:e=>!e||e-Date.now()<=a.TEN_SEC_MS,isAllowedRetry:e=>Date.now()-e>=a.ONE_SEC_MS,copyToClopboard(e){navigator.clipboard.writeText(e)},getPairingExpiry:()=>Date.now()+a.FOUR_MINUTES_MS,getNetworkId:e=>e?.split(":")[1],getPlainAddress:e=>e?.split(":")[2],wait:async e=>new Promise(t=>{setTimeout(t,e)}),debounce(e,t=500){let r;return(...i)=>{function n(){e(...i)}r&&clearTimeout(r),r=setTimeout(n,t)}},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),formatNativeUrl(e,t){if(l.isHttpUrl(e))return this.formatUniversalUrl(e,t);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`);let i=encodeURIComponent(t);return{redirect:`${r}wc?uri=${i}`,href:r}},formatUniversalUrl(e,t){if(!l.isHttpUrl(e))return this.formatNativeUrl(e,t);let r=e;r.endsWith("/")||(r=`${r}/`);let i=encodeURIComponent(t);return{redirect:`${r}wc?uri=${i}`,href:r}},openHref(e,t,r){window.open(e,t,r||"noreferrer noopener")},returnOpenHref:(e,t,r)=>window.open(e,t,r||"noreferrer noopener"),preloadImage:async e=>Promise.race([new Promise((t,r)=>{let i=new Image;i.onload=t,i.onerror=r,i.crossOrigin="anonymous",i.src=e}),l.wait(2e3)]),formatBalance(e,t){let r;if("0"===e)r="0.000";else if("string"==typeof e){let t=Number(e);t&&(r=t.toString().match(/^-?\d+(?:\.\d{0,3})?/u)?.[0])}return r?`${r} ${t??""}`:`0.000 ${t??""}`},formatBalance2(e,t){let r;if("0"===e)r="0";else if("string"==typeof e){let t=Number(e);t&&(r=t.toString().match(/^-?\d+(?:\.\d{0,3})?/u)?.[0])}
4return{value:r??"0",rest:"0"===r?"000":"",symbol:t}},isRestrictedRegion(){try{let{timeZone:e}=new Intl.DateTimeFormat().resolvedOptions(),t=e.toUpperCase();return a.RESTRICTED_TIMEZONES.includes(t)}catch{return!1}},getApiUrl:()=>l.isRestrictedRegion()?"https://api.web3modal.org":"https://api.web3modal.com",getBlockchainApiUrl:()=>l.isRestrictedRegion()?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com",getAnalyticsUrl:()=>l.isRestrictedRegion()?"https://pulse.walletconnect.org":"https://pulse.walletconnect.com",getUUID:()=>crypto?.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),parseError:e=>"string"==typeof e?e:"string"==typeof e?.issues?.[0]?.message?e.issues[0].message:e instanceof Error?e.message:"Unknown error",sortRequestedNetworks(e,t=[]){let r={};return t&&e&&(e.forEach((e,t)=>{r[e]=t}),t.sort((e,t)=>{let i=r[e.id],n=r[t.id];return void 0!==i&&void 0!==n?i-n:void 0!==i?-1:void 0!==n?1:0})),t},calculateBalance(e){let t=0;for(let r of e)t+=r.value??0;return t},formatTokenBalance(e){let[t,r]=e.toFixed(2).split(".");return{dollars:t,pennies:r}},isAddress:e=>!!(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)&&(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)||/^(?:0x)?[0-9A-F]{40}$/iu.test(e)))};async function c(...e){let t=await fetch(...e);if(!t.ok)throw Error(`HTTP status code: ${t.status}`,{cause:t});return t}class u{constructor({baseUrl:e}){this.baseUrl=e}async get({headers:e,signal:t,...r}){let i=this.createUrl(r);return(await c(i,{method:"GET",headers:e,signal:t,cache:"no-cache"})).json()}async getBlob({headers:e,signal:t,...r}){let i=this.createUrl(r);return(await c(i,{method:"GET",headers:e,signal:t})).blob()}async post({body:e,headers:t,signal:r,...i}){let n=this.createUrl(i);return(await c(n,{method:"POST",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async put({body:e,headers:t,signal:r,...i}){let n=this.createUrl(i);return(await c(n,{method:"PUT",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async delete({body:e,headers:t,signal:r,...i}){let n=this.createUrl(i);return(await c(n,{method:"DELETE",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}createUrl({path:e,params:t}){let r=new URL(e,this.baseUrl);return t&&Object.entries(t).forEach(([e,t])=>{t&&r.searchParams.append(e,t)}),r}}var d=r(21134);let h=(0,n.sj)({projectId:"",sdkType:"w3m",sdkVersion:"html-wagmi-undefined"}),f={state:h,subscribeKey:(e,t)=>(0,i.VW)(h,e,t),setProjectId(e){h.projectId=e},setAllWallets(e){h.allWallets=e},setIncludeWalletIds(e){h.includeWalletIds=e},setExcludeWalletIds(e){h.excludeWalletIds=e},setFeaturedWalletIds(e){h.featuredWalletIds=e},setTokens(e){h.tokens=e},setTermsConditionsUrl(e){h.termsConditionsUrl=e},setPrivacyPolicyUrl(e){h.privacyPolicyUrl=e},setCustomWallets(e){h.customWallets=e},setIsSiweEnabled(e){h.isSiweEnabled=e},setEnableAnalytics(e){h.enableAnalytics=e},setSdkVersion(e){h.sdkVersion=e},setMetadata(e){h.metadata=e},setOnrampEnabled(e){h.enableOnramp=e},setWalletFeaturesEnabled(e){h.enableWalletFeatures=e},getSnapshot:()=>(0,n.CO)(h)},p={purchaseCurrencies:[{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"Ether",symbol:"ETH",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]}],paymentCurrencies:[{id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},{id:"EUR",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]}]},g=new u({baseUrl:l.getBlockchainApiUrl()}),m={fetchIdentity:({address:e})=>g.get({path:`/v1/identity/${e}`,params:{projectId:f.state.projectId}}),fetchTransactions({account:e,projectId:t,cursor:r,onramp:i,signal:n}){let o=r?{cursor:r}:{};return g.get({path:`/v1/account/${e}/history?projectId=${t}${i?`&onramp=${i}`:""}`,params:o,signal:n})},fetchSwapQuote:({projectId:e,amount:t,userAddress:r,from:i,to:n,gasPrice:o})=>g.get({path:"/v1/convert/quotes",headers:{"Content-Type":"application/json"},params:{projectId:e,amount:t,userAddress:r,from:i,to:n,gasPrice:o}}),fetchSwapTokens:({projectId:e,chainId:t})=>g.get({path:`/v1/convert/tokens?projectId=${e}&chainId=${t}`}),fetchTokenPrice:({projectId:e,addresses:t})=>g.post({path:"/v1/fungible/price",body:{projectId:e,currency:"usd",addresses:t},headers:{"Content-Type":"application/json"}}),fetchSwapAllowance({projectId:e,tokenAddress:t,userAddress:r}){let{sdkType:i,sdkVersion:n}=f.state;return g.get({path:`/v1/convert/allowance?projectId=${e}&tokenAddress=${t}&userAddress=${r}`,headers:{"Content-Type":"application/json","x-sdk-type":i,"x-sdk-version":n}})},fetchGasPrice({projectId:e,chainId:t}){let{sdkType:r,sdkVersion:i}=f.state;return g.get({path:"/v1/convert/gas-price",headers:{"Content-Type":"application/json","x-sdk-type":r,"x-sdk-version":i},params:{projectId:e,chainId:t}})},generateSwapCalldata:({amount:e,from:t,projectId:r,to:i,userAddress:n})=>g.post({path:"/v1/convert/build-transaction",headers:{"Content-Type":"application/json"},body:{amount:e,eip155:{slippage:a.CONVERT_SLIPPAGE_TOLERANCE},from:t,projectId:r,to:i,userAddress:n}}),generateApproveCalldata({from:e,projectId:t,to:r,userAddress:i}){let{sdkType:n,sdkVersion:o}=f.state;return g.get({path:"/v1/convert/build-approve",headers:{"Content-Type":"application/json","x-sdk-type":n,"x-sdk-version":o},params:{projectId:t,userAddress:i,from:e,to:r}})},async getBalance(e,t,r){let{sdkType:i,sdkVersion:n}=f.state;return g.get({path:`/v1/account/${e}/balance`,headers:{"x-sdk-type":i,"x-sdk-version":n},params:{currency:"usd",projectId:f.state.projectId,chainId:t,forceUpdate:r}})},lookupEnsName:async e=>g.get({path:`/v1/profile/account/${e}${d.bq.WC_NAME_SUFFIX}?projectId=${f.state.projectId}`}),reverseLookupEnsName:async({address:e})=>g.get({path:`/v1/profile/reverse/${e}?projectId=${f.state.projectId}`}),getEnsNameSuggestions:async e=>g.get({path:`/v1/profile/suggestions/${e}?projectId=${f.state.projectId}`}),registerEnsName:async({coinType:e,address:t,message:r,signature:i})=>g.post({path:"/v1/profile/account",body:{coin_type:e,address:t,message:r,signature:i},headers:{"Content-Type":"application/json"}}),generateOnRampURL:async({destinationWallets:e,partnerUserId:t,defaultNetwork:r,purchaseAmount:i,paymentAmount:n})=>(await g.post({path:`/v1/generators/onrampurl?projectId=${f.state.projectId}`,body:{destinationWallets:e,defaultNetwork:r,partnerUserId:t,defaultExperience:"buy",presetCryptoAmount:i,presetFiatAmount:n}}
4)).url,async getOnrampOptions(){try{return await g.get({path:`/v1/onramp/options?projectId=${f.state.projectId}`})}catch(e){return p}},async getOnrampQuote({purchaseCurrency:e,paymentCurrency:t,amount:r,network:i}){try{return await g.post({path:`/v1/onramp/quote?projectId=${f.state.projectId}`,body:{purchaseCurrency:e,paymentCurrency:t,amount:r,network:i}})}catch(e){return{coinbaseFee:{amount:r,currency:t.id},networkFee:{amount:r,currency:t.id},paymentSubtotal:{amount:r,currency:t.id},paymentTotal:{amount:r,currency:t.id},purchaseAmount:{amount:r,currency:t.id},quoteId:"mocked-quote-id"}}}},w=(0,n.sj)({message:"",variant:"success",open:!1}),y={state:w,subscribeKey:(e,t)=>(0,i.VW)(w,e,t),showSuccess(e){w.message=e,w.variant="success",w.open=!0},showError(e){let t=l.parseError(e);w.message=t,w.variant="error",w.open=!0},hide(){w.open=!1}},b="WALLETCONNECT_DEEPLINK_CHOICE",v="@w3m/recent",_="@w3m/connected_wallet_image_url",x="@w3m/connected_connector",E="@w3m/connected_social",C="@w3m-storage/SOCIAL_USERNAME",k={setWalletConnectDeepLink({href:e,name:t}){try{localStorage.setItem(b,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{let e=localStorage.getItem(b);if(e)return JSON.parse(e)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{localStorage.removeItem(b)}catch{console.info("Unable to delete WalletConnect deep link")}},setWeb3ModalRecent(e){try{let t=k.getRecentWallets();t.find(t=>t.id===e.id)||(t.unshift(e),t.length>2&&t.pop(),localStorage.setItem(v,JSON.stringify(t)))}catch{console.info("Unable to set Web3Modal recent")}},getRecentWallets(){try{let e=localStorage.getItem(v);return e?JSON.parse(e):[]}catch{console.info("Unable to get Web3Modal recent")}return[]},setConnectedWalletImageUrl(e){try{localStorage.setItem(_,e)}catch{console.info("Unable to set Connected Wallet Image Url")}},removeConnectedWalletImageUrl(){try{localStorage.removeItem(_)}catch{console.info("Unable to remove Connected Wallet Image Url")}},getConnectedWalletImageUrl(){try{return localStorage.getItem(_)}catch{console.info("Unable to set Connected Wallet Image Url")}},setConnectedConnector(e){try{localStorage.setItem(x,e)}catch{console.info("Unable to set Connected Connector")}},getConnectedConnector(){try{return localStorage.getItem(x)}catch{console.info("Unable to get Connected Connector")}},setConnectedSocialProvider(e){try{localStorage.setItem(E,e)}catch{console.info("Unable to set Connected Social Provider")}},getConnectedSocialProvider(){try{return localStorage.getItem(E)}catch{console.info("Unable to get Connected Social Provider")}},getConnectedSocialUsername(){try{return localStorage.getItem(C)}catch{console.info("Unable to get Connected Social Username")}}},S=new u({baseUrl:l.getAnalyticsUrl()}),A=["MODAL_CREATED"],I=(0,n.sj)({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),T={state:I,subscribe:e=>(0,n.Ld)(I,()=>e(I)),_getApiHeaders(){let{projectId:e,sdkType:t,sdkVersion:r}=f.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":r}},async _sendAnalyticsEvent(e){try{if(A.includes(e.data.event)||"undefined"==typeof window)return;await S.post({path:"/e",headers:T._getApiHeaders(),body:{eventId:l.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:e.timestamp,props:e.data}})}catch{}},sendEvent(e){I.timestamp=Date.now(),I.data=e,f.state.enableAnalytics&&T._sendAnalyticsEvent(I)}},R=(0,n.sj)({transactions:[],coinbaseTransactions:{},transactionsByYear:{},loading:!1,empty:!1,next:void 0}),O={state:R,subscribe:e=>(0,n.Ld)(R,()=>e(R)),async fetchTransactions(e,t){let{projectId:r}=f.state;if(!r||!e)throw Error("Transactions can't be fetched without a projectId and an accountAddress");R.loading=!0;try{let i=await m.fetchTransactions({account:e,projectId:r,cursor:R.next,onramp:t}),n=this.filterSpamTransactions(i.data),o=[...R.transactions,...n];R.loading=!1,"coinbase"===t?R.coinbaseTransactions=this.groupTransactionsByYearAndMonth(R.coinbaseTransactions,i.data):(R.transactions=o,R.transactionsByYear=this.groupTransactionsByYearAndMonth(R.transactionsByYear,n)),R.empty=0===o.length,R.next=i.next?i.next:void 0}catch(t){T.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:e,projectId:r,cursor:R.next}}),y.showError("Failed to fetch transactions"),R.loading=!1,R.empty=!0,R.next=void 0}},groupTransactionsByYearAndMonth(e={},t=[]){let r=e;
4return t.forEach(e=>{let t=new Date(e.metadata.minedAt).getFullYear(),i=new Date(e.metadata.minedAt).getMonth(),n=r[t]??{},o=(n[i]??[]).filter(t=>t.id!==e.id);r[t]={...n,[i]:[...o,e].sort((e,t)=>new Date(t.metadata.minedAt).getTime()-new Date(e.metadata.minedAt).getTime())}}),r},filterSpamTransactions:e=>e.filter(e=>!e.transfers.every(e=>e.nft_info?.flags.is_spam===!0)),clearCursor(){R.next=void 0},resetTransactions(){R.transactions=[],R.transactionsByYear={},R.loading=!1,R.empty=!1,R.next=void 0}},P=(0,n.sj)({wcError:!1,buffering:!1}),N={state:P,subscribeKey:(e,t)=>(0,i.VW)(P,e,t),_getClient(){if(!P._client)throw Error("ConnectionController client not set");return P._client},setClient(e){P._client=(0,n.iH)(e)},connectWalletConnect(){P.wcPromise=this._getClient().connectWalletConnect(e=>{P.wcUri=e,P.wcPairingExpiry=l.getPairingExpiry()}),k.setConnectedConnector("WALLET_CONNECT")},async connectExternal(e){await this._getClient().connectExternal?.(e),k.setConnectedConnector(e.type)},async reconnectExternal(e){await this._getClient().reconnectExternal?.(e),k.setConnectedConnector(e.type)},async signMessage(e){return this._getClient().signMessage(e)},parseUnits(e,t){return this._getClient().parseUnits(e,t)},formatUnits(e,t){return this._getClient().formatUnits(e,t)},async sendTransaction(e){return this._getClient().sendTransaction(e)},async estimateGas(e){return this._getClient().estimateGas(e)},async writeContract(e){return this._getClient().writeContract(e)},async getEnsAddress(e){return this._getClient().getEnsAddress(e)},async getEnsAvatar(e){return this._getClient().getEnsAvatar(e)},checkInstalled(e){return this._getClient().checkInstalled?.(e)},resetWcConnection(){P.wcUri=void 0,P.wcPairingExpiry=void 0,P.wcPromise=void 0,P.wcLinking=void 0,P.recentWallet=void 0,O.resetTransactions(),k.deleteWalletConnectDeepLink()},setWcLinking(e){P.wcLinking=e},setWcError(e){P.wcError=e,P.buffering=!1},setRecentWallet(e){P.recentWallet=e},setBuffering(e){P.buffering=e},async disconnect(){await this._getClient().disconnect(),k.removeConnectedWalletImageUrl(),this.resetWcConnection()}},M=(0,n.sj)({loading:!1,open:!1,selectedNetworkId:void 0}),D={state:M,subscribe:e=>(0,n.Ld)(M,()=>e(M)),set(e){Object.assign(M,{...M,...e})}},L=(0,n.sj)({supportsAllNetworks:!0,isDefaultCaipNetwork:!1,smartAccountEnabledNetworks:[]}),j={state:L,subscribe:e=>(0,n.Ld)(L,()=>e(L)),subscribeKey:(e,t)=>(0,i.VW)(L,e,t),_getClient(){if(!L._client)throw Error("NetworkController client not set");return L._client},setClient(e){L._client=(0,n.iH)(e)},setCaipNetwork(e){L.caipNetwork=e,D.set({selectedNetworkId:e?.id}),this.state.allowUnsupportedChain||this.checkIfSupportedNetwork()},setDefaultCaipNetwork(e){L.caipNetwork=e,D.set({selectedNetworkId:e?.id}),L.isDefaultCaipNetwork=!0},setRequestedCaipNetworks(e){L.requestedCaipNetworks=e},setAllowUnsupportedChain(e){L.allowUnsupportedChain=e},setSmartAccountEnabledNetworks(e){L.smartAccountEnabledNetworks=e},getRequestedCaipNetworks(){let{approvedCaipNetworkIds:e,requestedCaipNetworks:t}=L,r=e,i=t;return l.sortRequestedNetworks(r,i)},async getApprovedCaipNetworksData(){let e=await this._getClient().getApprovedCaipNetworksData();L.supportsAllNetworks=e.supportsAllNetworks,L.approvedCaipNetworkIds=e.approvedCaipNetworkIds},async switchActiveNetwork(e){await this._getClient().switchCaipNetwork(e),L.caipNetwork=e,e&&T.sendEvent({type:"track",event:"SWITCH_NETWORK",properties:{network:e.id}})},checkIfSupportedNetwork(){L.isUnsupportedChain=!L.requestedCaipNetworks?.some(e=>e.id===L.caipNetwork?.id),L.isUnsupportedChain&&this.showUnsupportedChainUI()},checkIfSmartAccountEnabled(){let e=d.p1.caipNetworkIdToNumber(L.caipNetwork?.id);return!!e&&!!L.smartAccountEnabledNetworks?.includes(e)},resetNetwork(){L.isDefaultCaipNetwork||(L.caipNetwork=void 0),L.approvedCaipNetworkIds=void 0,L.supportsAllNetworks=!0,L.smartAccountEnabledNetworks=[]},showUnsupportedChainUI(){setTimeout(()=>{ea.open({view:"UnsupportedChain"})},300)}},B={async getTokenList(){let e=await m.fetchSwapTokens({chainId:j.state.caipNetwork?.id,projectId:f.state.projectId});return e?.tokens?.map(e=>({...e,eip2612:!1,quantity:{decimals:"0",numeric:"0"},price:0,value:0}))||[]},async fetchGasPrice(){let e=f.state.projectId,t=j.state.caipNetwork;return t?await m.fetchGasPrice({projectId:e,chainId:t.id}):null},async fetchSwapAllowance({tokenAddress:e,userAddress:t,sourceTokenAmount:r,sourceTokenDecimals:i}
4){let n=f.state.projectId,o=await m.fetchSwapAllowance({projectId:n,tokenAddress:e,userAddress:t});if(o?.allowance&&r&&i){let e=N.parseUnits(r,i);return BigInt(o.allowance)>=e}return!1},async getMyTokensWithBalance(e){let t=K.state.address,r=j.state.caipNetwork;if(!t||!r)return[];let i=(await m.getBalance(t,r.id,e)).balances.filter(e=>"0"!==e.quantity.decimals);return K.setTokenBalance(i),this.mapBalancesToSwapTokens(i)},mapBalancesToSwapTokens:e=>e?.map(e=>({...e,address:e?.address?e.address:`${e.chainId}:${a.NATIVE_TOKEN_ADDRESS}`,decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1}))||[]},$=(0,n.sj)({view:"Connect",history:["Connect"],transactionStack:[]}),U={state:$,subscribeKey:(e,t)=>(0,i.VW)($,e,t),pushTransactionStack(e){$.transactionStack.push(e)},popTransactionStack(e){let t=$.transactionStack.pop();t&&(e?(this.goBack(),t?.onCancel?.()):(t.goBack?this.goBack():t.view&&this.reset(t.view),t?.onSuccess?.()))},push(e,t){e!==$.view&&($.view=e,$.history.push(e),$.data=t)},reset(e){$.view=e,$.history=[e]},replace(e,t){$.history.length>=1&&$.history.at(-1)!==e&&($.view=e,$.history[$.history.length-1]=e,$.data=t)},goBack(){if($.history.length>1){$.history.pop();let[e]=$.history.slice(-1);e&&($.view=e)}},goBackToIndex(e){if($.history.length>1){$.history=$.history.slice(0,e+1);let[t]=$.history.slice(-1);t&&($.view=t)}}},F={getGasPriceInEther:(e,t)=>Number(t*e)/1e18,getGasPriceInUSD(e,t,r){let i=F.getGasPriceInEther(t,r);return d.C6.bigNumber(e).multipliedBy(i).toNumber()},getPriceImpact({sourceTokenAmount:e,sourceTokenPriceInUSD:t,toTokenPriceInUSD:r,toTokenAmount:i}){let n=d.C6.bigNumber(e).multipliedBy(t),o=d.C6.bigNumber(i).multipliedBy(r);return n.minus(o).dividedBy(n).multipliedBy(100).toNumber()},getMaxSlippage(e,t){let r=d.C6.bigNumber(e).dividedBy(100);return d.C6.multiply(t,r).toNumber()},getProviderFee:(e,t=.0085)=>d.C6.bigNumber(e).multipliedBy(t).toString(),isInsufficientNetworkTokenForGas(e,t){let r=t||"0";return!!d.C6.bigNumber(e).isZero()||d.C6.bigNumber(d.C6.bigNumber(r)).isGreaterThan(e)},isInsufficientSourceTokenForSwap(e,t,r){let i=r?.find(e=>e.address===t)?.quantity?.numeric;return d.C6.bigNumber(i||"0").isLessThan(e)},getToTokenAmount({sourceToken:e,toToken:t,sourceTokenPrice:r,toTokenPrice:i,sourceTokenAmount:n}){if("0"===n||!e||!t)return"0";let o=e.decimals,s=r,a=t.decimals,l=i;if(l<=0)return"0";let c=d.C6.bigNumber(n).multipliedBy(.0085),u=d.C6.bigNumber(n).minus(c).multipliedBy(d.C6.bigNumber(10).pow(o)),h=d.C6.bigNumber(s).dividedBy(l),f=o-a;return u.multipliedBy(h).dividedBy(d.C6.bigNumber(10).pow(f)).dividedBy(d.C6.bigNumber(10).pow(a)).toFixed(a).toString()}},z=15e4,q=6,W={initializing:!1,initialized:!1,loading:!1,loadingPrices:!1,fetchError:!1,approvalTransaction:void 0,swapTransaction:void 0,transactionError:void 0,transactionLoading:!1,sourceToken:void 0,sourceTokenAmount:"",sourceTokenPriceInUSD:0,toToken:void 0,toTokenAmount:"",toTokenPriceInUSD:0,networkPrice:"0",networkBalanceInUSD:"0",networkTokenSymbol:"",inputError:void 0,slippage:a.CONVERT_SLIPPAGE_TOLERANCE,tokens:void 0,popularTokens:void 0,suggestedTokens:void 0,foundTokens:void 0,myTokensWithBalance:void 0,tokensPriceMap:{},gasFee:"0",gasPriceInUSD:0,priceImpact:void 0,maxSlippage:void 0,providerFee:void 0},H=(0,n.sj)(W),V={state:H,subscribe:e=>(0,n.Ld)(H,()=>e(H)),subscribeKey:(e,t)=>(0,i.VW)(H,e,t),getParams(){let{address:e}=K.state,t=`${j.state.caipNetwork?.id}:${a.NATIVE_TOKEN_ADDRESS}`;if(!e)throw Error("No address found to swap the tokens from.");let r=K.state.caipAddress,i=!H.toToken?.address||!H.toToken?.decimals,n=!H.sourceToken?.address||!H.sourceToken?.decimals||!d.C6.bigNumber(H.sourceTokenAmount).isGreaterThan(0),o=!H.sourceTokenAmount;return{networkAddress:t,fromAddress:e,fromCaipAddress:K.state.caipAddress,sourceTokenAddress:H.sourceToken?.address,toTokenAddress:H.toToken?.address,toTokenAmount:H.toTokenAmount,toTokenDecimals:H.toToken?.decimals,sourceTokenAmount:H.sourceTokenAmount,sourceTokenDecimals:H.sourceToken?.decimals,invalidToToken:i,invalidSourceToken:n,invalidSourceTokenAmount:o,availableToSwap:r&&!i&&!n&&!o}}
4,setLoading(e){H.loading=e},setSourceToken(e){if(!e){H.sourceToken=e,H.sourceTokenAmount="",H.sourceTokenPriceInUSD=0;return}H.sourceToken=e,this.setTokenPrice(e.address,"sourceToken")},setSourceTokenAmount(e){H.sourceTokenAmount=e},setToToken(e){if(!e){H.toToken=e,H.toTokenAmount="",H.toTokenPriceInUSD=0;return}H.toToken=e,this.setTokenPrice(e.address,"toToken")},setToTokenAmount(e){H.toTokenAmount=e?d.C6.formatNumberToLocalString(e,q):""},async setTokenPrice(e,t){let{availableToSwap:r}=this.getParams(),i=H.tokensPriceMap[e]||0;i||(H.loadingPrices=!0,i=await this.getAddressPrice(e)),"sourceToken"===t?H.sourceTokenPriceInUSD=i:"toToken"===t&&(H.toTokenPriceInUSD=i),H.loadingPrices&&(H.loadingPrices=!1,r&&this.swapTokens())},switchTokens(){if(H.initializing||!H.initialized)return;let e=H.toToken?{...H.toToken}:void 0,t=H.sourceToken?{...H.sourceToken}:void 0,r=e&&""===H.toTokenAmount?"1":H.toTokenAmount;this.setSourceToken(e),this.setToToken(t),this.setSourceTokenAmount(r),this.setToTokenAmount(""),this.swapTokens()},resetState(){H.myTokensWithBalance=W.myTokensWithBalance,H.tokensPriceMap=W.tokensPriceMap,H.initialized=W.initialized,H.sourceToken=W.sourceToken,H.sourceTokenAmount=W.sourceTokenAmount,H.sourceTokenPriceInUSD=W.sourceTokenPriceInUSD,H.toToken=W.toToken,H.toTokenAmount=W.toTokenAmount,H.toTokenPriceInUSD=W.toTokenPriceInUSD,H.networkPrice=W.networkPrice,H.networkTokenSymbol=W.networkTokenSymbol,H.networkBalanceInUSD=W.networkBalanceInUSD,H.inputError=W.inputError},resetValues(){let{networkAddress:e}=this.getParams(),t=H.tokens?.find(t=>t.address===e);this.setSourceToken(t),this.setToToken(void 0)},clearError(){H.transactionError=void 0},async initializeState(){if(!H.initializing){if(H.initializing=!0,!H.initialized)try{await this.fetchTokens(),H.initialized=!0}catch(e){H.initialized=!1,y.showError("Failed to initialize swap"),U.goBack()}H.initializing=!1}},async fetchTokens(){let{networkAddress:e}=this.getParams();await this.getTokenList(),await this.getNetworkTokenPrice(),await this.getMyTokensWithBalance();let t=H.tokens?.find(t=>t.address===e);t&&(H.networkTokenSymbol=t.symbol,this.setSourceToken(t),this.setSourceTokenAmount("1"))},async getTokenList(){let e=await B.getTokenList();H.tokens=e,H.popularTokens=e.sort((e,t)=>e.symbol<t.symbol?-1:e.symbol>t.symbol?1:0).filter(e=>!!a.SWAP_POPULAR_TOKENS.includes(e.symbol),{}),H.suggestedTokens=e.filter(e=>!!a.SWAP_SUGGESTED_TOKENS.includes(e.symbol),{})},async getAddressPrice(e){let t=H.tokensPriceMap[e];if(t)return t;let r=(await m.fetchTokenPrice({projectId:f.state.projectId,addresses:[e]})).fungibles||[],i=[...H.tokens||[],...H.myTokensWithBalance||[]],n=i?.find(t=>t.address===e)?.symbol,o=parseFloat((r.find(e=>e.symbol.toLowerCase()===n?.toLowerCase())?.price||0).toString());return H.tokensPriceMap[e]=o,o},async getNetworkTokenPrice(){let{networkAddress:e}=this.getParams(),t=await m.fetchTokenPrice({projectId:f.state.projectId,addresses:[e]}),r=t.fungibles?.[0],i=r?.price.toString()||"0";H.tokensPriceMap[e]=parseFloat(i),H.networkTokenSymbol=r?.symbol||"",H.networkPrice=i},async getMyTokensWithBalance(e){let t=await B.getMyTokensWithBalance(e);t&&(await this.getInitialGasPrice(),this.setBalances(t))},setBalances(e){let{networkAddress:t}=this.getParams(),r=j.state.caipNetwork;if(!r)return;let i=e.find(e=>e.address===t);e.forEach(e=>{H.tokensPriceMap[e.address]=e.price||0}),H.myTokensWithBalance=e.filter(e=>e.address.startsWith(r.id)),H.networkBalanceInUSD=i?d.C6.multiply(i.quantity.numeric,i.price).toString():"0"},async getInitialGasPrice(){let e=await B.fetchGasPrice();if(!e)return{gasPrice:null,gasPriceInUsd:null};let t=e.standard,r=BigInt(t),i=BigInt(z),n=F.getGasPriceInUSD(H.networkPrice,i,r);return H.gasFee=t,H.gasPriceInUSD=n,{gasPrice:r,gasPriceInUSD:H.gasPriceInUSD}},async swapTokens(){let e=K.state.address,t=H.sourceToken,r=H.toToken,i=d.C6.bigNumber(H.sourceTokenAmount).isGreaterThan(0);if(!r||!t||H.loadingPrices||!i)return;H.loading=!0;let n=d.C6.bigNumber(H.sourceTokenAmount).multipliedBy(10**t.decimals),o=await m.fetchSwapQuote({userAddress:e,projectId:f.state.projectId,from:t.address,to:r.address,gasPrice:H.gasFee,amount:n.toString()}),s=o?.quotes?.[0]?.toAmount;if(!s)return;let a=d.C6.bigNumber(s).dividedBy(10**r.decimals).toString();this.setToTokenAmount(a),this.hasInsufficientToken(H.sourceTokenAmount,t.address)?H.inputError="Insufficient balance":(H.inputError=void 0,this.setTransactionDetail
4s()),H.loading=!1},async getTransaction(){let{fromCaipAddress:e,availableToSwap:t}=this.getParams(),r=H.sourceToken,i=H.toToken;if(e&&t&&r&&i&&!H.loading)try{let t;return H.loading=!0,t=await B.fetchSwapAllowance({userAddress:e,tokenAddress:r.address,sourceTokenAmount:H.sourceTokenAmount,sourceTokenDecimals:r.decimals})?await this.createSwapTransaction():await this.createAllowanceTransaction(),H.loading=!1,H.fetchError=!1,t}catch(e){U.goBack(),y.showError("Failed to check allowance"),H.approvalTransaction=void 0,H.swapTransaction=void 0,H.fetchError=!0;return}},async createAllowanceTransaction(){let{fromCaipAddress:e,fromAddress:t,sourceTokenAddress:r,toTokenAddress:i}=this.getParams();if(e&&i){if(!r)throw Error(">>> createAllowanceTransaction - No source token address found.");try{let n=await m.generateApproveCalldata({projectId:f.state.projectId,from:r,to:i,userAddress:e}),o=await N.estimateGas({address:t,to:l.getPlainAddress(n.tx.to),data:n.tx.data}),s={data:n.tx.data,to:l.getPlainAddress(n.tx.from),gas:o,gasPrice:BigInt(n.tx.eip155.gasPrice),value:BigInt(n.tx.value),toAmount:H.toTokenAmount};return H.swapTransaction=void 0,H.approvalTransaction=s,s}catch(e){U.goBack(),y.showError("Failed to create approval transaction"),H.approvalTransaction=void 0,H.swapTransaction=void 0,H.fetchError=!0;return}}},async createSwapTransaction(){let{networkAddress:e,fromCaipAddress:t,sourceTokenAmount:r}=this.getParams(),i=H.sourceToken,n=H.toToken;if(!t||!r||!i||!n)return;let o=N.parseUnits(r,i.decimals).toString();try{let r=await m.generateSwapCalldata({projectId:f.state.projectId,userAddress:t,from:i.address,to:n.address,amount:o}),s=i.address===e,a=BigInt(r.tx.eip155.gas),c=BigInt(r.tx.eip155.gasPrice),u={data:r.tx.data,to:l.getPlainAddress(r.tx.to),gas:a,gasPrice:c,value:s?BigInt(o):BigInt("0"),toAmount:H.toTokenAmount};return H.gasPriceInUSD=F.getGasPriceInUSD(H.networkPrice,a,c),H.approvalTransaction=void 0,H.swapTransaction=u,u}catch(e){U.goBack(),y.showError("Failed to create transaction"),H.approvalTransaction=void 0,H.swapTransaction=void 0,H.fetchError=!0;return}},async sendTransactionForApproval(e){let{fromAddress:t}=this.getParams();H.transactionLoading=!0,U.pushTransactionStack({view:null,goBack:!0});try{await N.sendTransaction({address:t,to:e.to,data:e.data,value:BigInt(e.value),gasPrice:BigInt(e.gasPrice)}),H.approvalTransaction=void 0,H.transactionLoading=!1,this.swapTokens()}catch(t){let e=t;H.transactionError=e?.shortMessage,H.transactionLoading=!1}},async sendTransactionForSwap(e){if(!e)return;let{fromAddress:t,toTokenAmount:r}=this.getParams();H.transactionLoading=!0,U.pushTransactionStack({view:"Account",goBack:!1,onSuccess(){V.resetState()}});try{let i=`Swapped ${H.sourceToken?.symbol} to ${d.C6.formatNumberToLocalString(r,3)} ${H.toToken?.symbol}!`,n=[H.sourceToken?.address,H.toToken?.address].join(","),o=await N.sendTransaction({address:t,to:e.to,data:e.data,gas:e.gas,gasPrice:BigInt(e.gasPrice),value:e.value});return H.transactionLoading=!1,y.showSuccess(i),V.resetState(),V.getMyTokensWithBalance(n),o}catch(t){let e=t;H.transactionError=e?.shortMessage,H.transactionLoading=!1,y.showError(e?.shortMessage||"Transaction error");return}},hasInsufficientToken(e,t){let r=F.isInsufficientSourceTokenForSwap(e,t,H.myTokensWithBalance);return F.isInsufficientNetworkTokenForGas(H.networkBalanceInUSD,H.gasPriceInUSD)||r},setTransactionDetails(){let{toTokenAddress:e,toTokenDecimals:t}=this.getParams();e&&t&&(H.gasPriceInUSD=F.getGasPriceInUSD(H.networkPrice,BigInt(H.gasFee),BigInt(z)),H.priceImpact=F.getPriceImpact({sourceTokenAmount:H.sourceTokenAmount,sourceTokenPriceInUSD:H.sourceTokenPriceInUSD,toTokenPriceInUSD:H.toTokenPriceInUSD,toTokenAmount:H.toTokenAmount}),H.maxSlippage=F.getMaxSlippage(H.slippage,H.toTokenAmount),H.providerFee=F.getProviderFee(H.sourceTokenAmount))}},Z=(0,n.sj)({isConnected:!1,currentTab:0,tokenBalance:[],smartAccountDeployed:!1}),K={state:Z,subscribe:e=>(0,n.Ld)(Z,()=>e(Z)),subscribeKey:(e,t)=>(0,i.VW)(Z,e,t),setIsConnected(e){Z.isConnected=e},setCaipAddress(e){Z.caipAddress=e,Z.address=e?l.getPlainAddress(e):void 0},setBalance(e,t){Z.balance=e,Z.balanceSymbol=t},setProfileName(e){Z.profileName=e},setProfileImage(e){Z.profileImage=e},setAddressExplorerUrl(e){Z.addressExplorerUrl=e},setSmartAccountDeployed(e){Z.smartAccountDeployed=e},setCurrentTab(e){Z.currentTab=e},setTokenBalance(e){e&&(Z.tokenBalance=(0,n.iH)(e))},setConnectedWalletInfo(e){Z.connectedWalletInfo=e},setPreferredAccountType(e){Z.preferredAccountType=e},setSocialProvider(e){e&&(Z.socialProvider=e)},setSocialWindow(e){e&&(Z.socialWindow=(0,n.iH)(e))},async fetchTokenBalance(){let e=j.state.caipNetwork?.id;try{if(Z.address&&e){let t=await m.getBalance(Z.address,e),r=t.balances.filter(e=>"0"!==e.quantity.decimals);this.setTokenBalance(r),V.setBalances(B.mapBalancesToSwapTokens(t.balances))}}catch(e){y.showError("Failed to fetch token balance")}},resetAccount(){Z.isConnected=!1,Z.smartAccountDeployed=!1,Z.currentTab=0,Z.caipAddress=void 0,Z.address=void 0,Z.balance=void 0,Z.balanceSymbol=void 0,Z.profileName=void 0,Z.profileImage=void 0,Z.addressExplorerUrl=void 0,Z.tokenBalance=[],Z.connectedWalletInfo=void 0,Z.preferredAccountType=void 0,Z.socialProvider=void 0,Z.socialWindow=void 0}},G=(0,n.sj)({walletImages:{},networkImages:{},connectorImages:{},tokenImages:{},currencyImages:{}}),Y={state:G,subscribeNetworkImages:e=>(0,n.Ld)(G.networkImages,()=>e(G.networkImages)),subscribeKey:(e,t)=>(0,i.VW)(G,e,t),subscribe:e=>(0,n.Ld)(G,()=>e(G)),setWalletImage(e,t){G.walletImages[e]=t},setNetworkImage(e,t){G.networkImages[e]=t},setConnectorImage(e,t){G.connectorImages[e]=t},setTokenImage(e,t){G.tokenImages[e]=t},setCurrencyImage(e,t){G.currencyImages[e]=t}},J=(0,n.sj)({themeMode:"dark",themeVariables:{},w3mThemeVariables:void 0}),Q={state:J,subscribe:e=>(0,n.Ld)(J,()=>e(J)),setThemeMode(e){J.themeMode=e;try{let t=ee.getAuthConnector();if(t){let r=Q.getSnapshot().themeVariables;t.provider.syncTheme({themeMode:e,themeVariables:r,w3mThemeVariables:(0,d.tU)(r,e)})}}catch{console.info("Unable to sync theme to auth connector")}},setThemeVariables(e){J.themeVariables={...J.themeVariables,...e};try{let e=ee.getAuthConnector();if(e){let t=Q.getSnapshot().themeVariables;e.provider.syncTheme({themeVariables:t,w3mThemeVariables:(0,d.tU)(J.themeVariables,J.themeMode)})}}catch{console.info("Unable to sync theme to auth connector")}},getSnapshot:()=>(0,n.CO)(J)},X=(0,n.sj)({connectors:[]}),ee={state:X,subscribeKey:(e,t)=>(0,i.VW)(X,e,t),setConnectors(e){X.connectors=e.map(e=>(0,n.iH)(e))},addConnector(e){if(X.connectors.push((0,n.iH)(e)),"w3mAuth"===e.id){let t=e,r=(0,n.CO)(f.state),i=Q.getSnapshot().themeMode,o=Q.getSnapshot().themeVariables;t?.provider?.syncDappData?.({metadata:r.metadata,sdkVersion:r.sdkVersion,projectId:r.projectId}),t.provider.syncTheme({themeMode:i,themeVariables:o,w3mThemeVariables:(0,d.tU)(o,i)})}},getAuthConnector:()=>X.connectors.find(e=>"AUTH"===e.type),getAnnouncedConnectorRdns:()=>X.connectors.filter(e=>"ANNOUNCED"===e.type).map(e=>e.info?.rdns),getConnectors:()=>X.connectors,getConnector:(e,t)=>
4X.connectors.find(r=>r.explorerId===e||r.info?.rdns===t)},et=new u({baseUrl:l.getApiUrl()}),er="40",ei="4",en=(0,n.sj)({page:1,count:0,featured:[],recommended:[],wallets:[],search:[],isAnalyticsEnabled:!1}),eo={state:en,subscribeKey:(e,t)=>(0,i.VW)(en,e,t),_getApiHeaders(){let{projectId:e,sdkType:t,sdkVersion:r}=f.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":r}},async _fetchWalletImage(e){let t=`${et.baseUrl}/getWalletImage/${e}`,r=await et.getBlob({path:t,headers:eo._getApiHeaders()});Y.setWalletImage(e,URL.createObjectURL(r))},async _fetchNetworkImage(e){let t=`${et.baseUrl}/public/getAssetImage/${e}`,r=await et.getBlob({path:t,headers:eo._getApiHeaders()});Y.setNetworkImage(e,URL.createObjectURL(r))},async _fetchConnectorImage(e){let t=`${et.baseUrl}/public/getAssetImage/${e}`,r=await et.getBlob({path:t,headers:eo._getApiHeaders()});Y.setConnectorImage(e,URL.createObjectURL(r))},async _fetchCurrencyImage(e){let t=`${et.baseUrl}/public/getCurrencyImage/${e}`,r=await et.getBlob({path:t,headers:eo._getApiHeaders()});Y.setCurrencyImage(e,URL.createObjectURL(r))},async _fetchTokenImage(e){let t=`${et.baseUrl}/public/getTokenImage/${e}`,r=await et.getBlob({path:t,headers:eo._getApiHeaders()});Y.setTokenImage(e,URL.createObjectURL(r))},async fetchNetworkImages(){let{requestedCaipNetworks:e}=j.state,t=e?.map(({imageId:e})=>
4e).filter(Boolean);t&&await Promise.allSettled(t.map(e=>eo._fetchNetworkImage(e)))},async fetchConnectorImages(){let{connectors:e}=ee.state,t=e.map(({imageId:e})=>e).filter(Boolean);await Promise.allSettled(t.map(e=>eo._fetchConnectorImage(e)))},async fetchCurrencyImages(e=[]){await Promise.allSettled(e.map(e=>eo._fetchCurrencyImage(e)))},async fetchTokenImages(e=[]){await Promise.allSettled(e.map(e=>eo._fetchTokenImage(e)))},async fetchFeaturedWallets(){let{featuredWalletIds:e}=f.state;if(e?.length){let{data:t}=await et.get({path:"/getWallets",headers:eo._getApiHeaders(),params:{page:"1",entries:e?.length?String(e.length):ei,include:e?.join(",")}});t.sort((t,r)=>e.indexOf(t.id)-e.indexOf(r.id));let r=t.map(e=>e.image_id).filter(Boolean);await Promise.allSettled(r.map(e=>eo._fetchWalletImage(e))),en.featured=t}},async fetchRecommendedWallets(){let{includeWalletIds:e,excludeWalletIds:t,featuredWalletIds:r}=f.state,i=[...t??[],...r??[]].filter(Boolean),{data:n,count:o}=await et.get({path:"/getWallets",headers:eo._getApiHeaders(),params:{page:"1",chains:j.state.caipNetwork?.id,entries:ei,include:e?.join(","),exclude:i?.join(",")}}),s=k.getRecentWallets(),a=n.map(e=>e.image_id).filter(Boolean),l=s.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...a,...l].map(e=>eo._fetchWalletImage(e))),en.recommended=n,en.count=o??0},async fetchWallets({page:e}){let{includeWalletIds:t,excludeWalletIds:r,featuredWalletIds:i}=f.state,n=[...en.recommended.map(({id:e})=>e),...r??[],...i??[]].filter(Boolean),{data:o,count:s}=await et.get({path:"/getWallets",headers:eo._getApiHeaders(),params:{page:String(e),entries:er,chains:j.state.caipNetwork?.id,include:t?.join(","),exclude:n.join(",")}}),a=o.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...a.map(e=>eo._fetchWalletImage(e)),l.wait(300)]),en.wallets=[...en.wallets,...o],en.count=s>en.count?s:en.count,en.page=e},async searchWallet({search:e}){let{includeWalletIds:t,excludeWalletIds:r}=f.state;en.search=[];let{data:i}=await et.get({path:"/getWallets",headers:eo._getApiHeaders(),params:{page:"1",entries:"100",search:e?.trim(),chains:j.state.caipNetwork?.id,include:t?.join(","),exclude:r?.join(",")}}),n=i.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...n.map(e=>eo._fetchWalletImage(e)),l.wait(300)]),en.search=i},async reFetchWallets(){en.page=1,en.wallets=[],await eo.fetchFeaturedWallets(),await eo.fetchRecommendedWallets()},prefetch(){let e=[eo.fetchFeaturedWallets(),eo.fetchRecommendedWallets(),eo.fetchNetworkImages(),eo.fetchConnectorImages()];void 0===f.state.enableAnalytics&&e.push(eo.fetchAnalyticsConfig()),en.prefetchPromise=Promise.race([Promise.allSettled(e),l.wait(3e3)])},async fetchAnalyticsConfig(){let{isAnalyticsEnabled:e}=await et.get({path:"/getAnalyticsConfig",headers:eo._getApiHeaders()});f.setEnableAnalytics(e)}},es=(0,n.sj)({loading:!1,open:!1}),ea={state:es,subscribe:e=>(0,n.Ld)(es,()=>e(es)),subscribeKey:(e,t)=>(0,i.VW)(es,e,t),async open(e){await eo.state.prefetchPromise;let t=K.state.isConnected;e?.view?U.reset(e.view):t?U.reset("Account"):U.reset("Connect"),es.open=!0,D.set({open:!0}),T.sendEvent({type:"track",event:"MODAL_OPEN",properties:{connected:t}})},close(){let e=K.state.isConnected;es.open=!1,D.set({open:!1}),T.sendEvent({type:"track",event:"MODAL_CLOSE",properties:{connected:e}})},setLoading(e){es.loading=e,D.set({loading:e})}},el={id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},ec={id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},eu={providers:s,selectedProvider:null,error:null,purchaseCurrency:el,paymentCurrency:ec,purchaseCurrencies:[el],paymentCurrencies:[],quotesLoading:!1},ed=(0,n.sj)(eu),eh={state:ed,subscribe:e=>(0,n.Ld)(ed,()=>e(ed)),subscribeKey:(e,t)=>(0,i.VW)(ed,e,t),setSelectedProvider(e){ed.selectedProvider=e},setPurchaseCurrency(e){ed.purchaseCurrency=e},setPaymentCurrency(e){ed.paymentCurrency=e},setPurchaseAmount(e){this.state.purchaseAmount=e},setPaymentAmount(e){this.state.paymentAmount=e},async getAvailableCurrencies(){let e=await m.getOnrampOptions();ed.purchaseCurrencies=e.purchaseCurrencies,ed.paymentCurrencies=e.paymentCurrencies,ed.paymentCurrency=e.paymentCurrencies[0]||ec,ed.purchaseCurrency=e.purchaseCurrencies[0]||el,await eo.fetchCurrencyImages(e.paymentCurrencies.map(e=>e.id)),await eo.fetchTokenImages(e.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){ed.quotesLoading=!0;try{let e=await m.getOnrampQuote({purchaseCurrency:ed.purchaseCurrency,paymentCurrency:ed.paymentCurrency,amount:ed.paymentAmount?.toString()||"0",network:ed.purchaseCurrency?.symbol});return ed.quotesLoading=!1,ed.purchaseAmount=Number(e.purchaseAmount.amount),e}catch(e){return ed.error=e.message,ed.quotesLoading=!1,null}finally{ed.quotesLoading=!1}},resetState(){ed.providers=s,ed.selectedProvider=null,ed.error=null,ed.purchaseCurrency=el,ed.paymentCurrency=ec,ed.purchaseCurrencies=[el],ed.paymentCurrencies=[],ed.paymentAmount=void 0,ed.purchaseAmount=void 0,ed.quotesLoading=!1}},ef=(0,n.sj)({loading:!1}),ep={state:ef,subscribe:e=>(0,n.Ld)(ef,()=>e(ef)),subscribeKey:(e,t)=>(0,i.VW)(ef,e,t),setToken(e){e&&(ef.token=(0,n.iH)(e))},setTokenAmount(e){ef.sendTokenAmount=e},setReceiverAddress(e){ef.receiverAddress=e},setReceiverProfileImageUrl(e){ef.receiverProfileImageUrl=e},setReceiverProfileName(e){ef.receiverProfileName=e},setGasPrice(e){ef.gasPrice=e},setGasPriceInUsd(e){ef.gasPriceInUSD=e},setLoading(e){ef.loading=e},sendToken(){this.state.token?.address&&this.state.sendTokenAmount&&this.state.receiverAddress?this.sendERC20Token({receiverAddress:this.state.receiverAddress,tokenAddress:this.state.token.address,sendTokenAmount:this.state.sendTokenAmount,decimals:this.state.token.quantity.decimals}):this.state.receiverAddress&&this.state.sendTokenAmount&&this.state.gasPrice&&this.state.token?.quantity.decimals&&this.sendNativeToken({receiverAddress:this.state.receiverAddress,sendTokenAmount:this.state.sendTokenAmount,gasPrice:this.state.gasPrice,decimals:this.state.token.quantity.decimals})},async sendNativeToken(e){U.pushTransactionStack({view:"Account",goBack:!1});let t=e.receiverAddress,r=K.state.address,i=N.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals)),n="0x";try{await N.sendTransaction({to:t,address:r,data:n,value:i,gasPrice:e.gasPrice}),y.showSuccess("Transaction started"),this.resetSend()}catch(e){y.showError("Something went wrong")}},async sendERC20Token(e){U.pushTransactionStack({view:"Account",goBack:!1});let t=N.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{K.state.address&&e.sendTokenAmount&&e.receiverAddress&&e.tokenAddress&&(await N.writeContract({fromAddress:K.state.address,tokenAddress:l.getPlainAddress(e.tokenAddress),receiverAddress:e.receiverAddress,tokenAmount:t,method:"transfer",abi:d.em}),y.showSuccess("Transaction started"),this.resetSend())}catch(e){y.showError("Something went wrong")}},resetSend(){ef.token=void 0,ef.sendTokenAmount=void 0,ef.receiverAddress=void 0,ef.receiverProfileImageUrl=void 0,ef.receiverProfileName=void 0,ef.loading=!1}},eg=(0,n.sj)({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),em={state:eg,subscribe:e=>(0,n.Ld)(eg,()=>e(eg)),subscribeKey:(e,t)=>(0,i.VW)(eg,e,t),showTooltip({message:e,triggerRect:t,variant:r}){eg.open=!0,eg.message=e,eg.triggerRect=t,eg.variant=r},hide(){eg.open=!1,eg.message="",eg.triggerRect={width:0,height:0,top:0,left:0}}},ew=2147483648,ey={convertEVMChainIdToCoinType(e){if(e>=ew)throw Error("Invalid chainId");return(ew|e)>>>0}},eb=(0,n.sj)({suggestions:[],loading:!1}),ev={state:eb,subscribe:e=>(0,n.Ld)(eb,()=>e(eb)),subscribeKey:(e,t)=>(0,i.VW)(eb,e,t),async resolveName(e){try{return await m.lookupEnsName(e)}catch(t){let e=t;throw Error(e?.reasons?.[0]?.description||"Error resolving name")}},async isNameRegistered(e){try{return await m.lookupEnsName(e),!0}catch{return!1}},async getSuggestions(e){try{eb.loading=!0,eb.suggestions=[];let t=await m.getEnsNameSuggestions(e);return eb.suggestions=t.suggestions.map(e=>({...e,name:e.name.replace(d.bq.WC_NAME_SUFFIX,"")}))||[],eb.suggestions}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching name suggestions"))}finally{eb.loading=!1}},async getNamesForAddress(e){try{if(!j.state.caipNetwork)return[];return await m.reverseLookupEnsName({address:e})}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching names for address"))}},async registerName(e){let t=j.state.caipNetwork;if(!t)throw Error("Network not found");let r=K.state.address,i=ee.getAuthConnector();if(!r||!i)throw Error("Address or auth connector not found");if(!this.isAllowedToRegisterName())throw Error("Not allowed to register name");eb.loading=!0;try{let i=JSON.stringify({name:`${e}${d.bq.WC_NAME_SUFFIX}`,attributes:{},timestamp:Math.floor(Date.now()/1e3)});U.pushTransactionStack({view:"RegisterAccountNameSuccess",goBack:!1,replace:!0,onCancel(){eb.loading=!1}});let n=await N.signMessage(i),o=d.p1.caipNetworkIdToNumber(t.id);if(!o)throw Error("Network not found");let s=ey.convertEVMChainIdToCoinType(o);await m.registerEnsName({coinType:s,address:r,signature:n,message:i}),K.setProfileName(`${e}${d.bq.WC_NAME_SUFFIX}`),U.replace("RegisterAccountNameSuccess")}catch(r){let t=this.parseEnsApiError(r,`Error registering name ${e}`);throw U.replace("RegisterAccountName"),Error(t)}finally{eb.loading=!1}},validateName:e=>/^[a-zA-Z0-9-]{4,}$/u.test(e),parseEnsApiError(e,t){let r=e;return r?.reasons?.[0]?.description||t},isAllowedToRegisterName(){let e=ee.getAuthConnector(),t=e?.provider.getEmail()||"",r=t.split("@")?.[1];return r&&d.bq.WC_NAMES_ALLOWED_DOMAINS.includes(r)}},e_={getWalletImage:e=>e?.image_url?e?.image_url:e?.image_id?Y.state.walletImages[e.image_id]:void 0,getNetworkImage:e=>e?.imageUrl?e?.imageUrl:e?.imageId?Y.state.networkImages[e.imageId]:void 0,getConnectorImage:e=>e?.imageUrl?e.imageUrl:e?.imageId?Y.state.connectorImages[e.imageId]:void 0},ex={goBackOrCloseModal(){U.state.history.length>1?U.goBack():ea.close()},navigateAfterNetworkSwitch(){let{history:e}=U.state,t=e.findIndex(e=>"Networks"===e);t>=1?U.goBackToIndex(t-1):ea.close()},navigateAfterPreferredAccountTypeSelect(){let{isSiweEnabled:e}=f.state,{profileName:t}=K.state;e?U.push("ConnectingSiwe"):t?U.push("Account"):U.push("ChooseAccountName")}}},94511:function(e,t,r){"use strict";r.d(t,{O:function(){return c1},u:function(){return c0}});var i=r(56374),n=r(98179),o=r(25266),s=r(67970),a=r(20484);let l=e=>e??a.Ld;var c=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
4);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let u=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.address=i.AccountController.state.address,this.balanceVal=i.AccountController.state.balance,this.balanceSymbol=i.AccountController.state.balanceSymbol,this.profileName=i.AccountController.state.profileName,this.profileImage=i.AccountController.state.profileImage,this.network=i.NetworkController.state.caipNetwork,this.isUnsupportedChain=i.NetworkController.state.isUnsupportedChain,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.isConnected?(this.address=e.address,this.balanceVal=e.balance,this.profileName=e.profileName,this.profileImage=e.profileImage,this.balanceSymbol=e.balanceSymbol):(this.address="",this.balanceVal="",this.profileName="",this.profileImage="",this.balanceSymbol="")}),i.NetworkController.subscribeKey("caipNetwork",e=>this.network=e),i.NetworkController.subscribeKey("isUnsupportedChain",e=>this.isUnsupportedChain=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=i.fz.getNetworkImage(this.network),t="show"===this.balance;return(0,o.dy)` 5 <wui-account-button 6 .disabled=${!!this.disabled} 7 .isUnsupportedChain=${this.isUnsupportedChain} 8 address=${l(this.address)} 9 profileName=${l(this.profileName)} 10 networkSrc=${l(e)} 11 avatarSrc=${l(this.profileImage)} 12 balance=${t?i.j1.formatBalance(this.balanceVal,this.balanceSymbol):""} 13 @click=${this.onClick.bind(this)} 14 data-testid="account-button" 15 .charsStart=${this.charsStart} 16 .charsEnd=${this.charsEnd} 17 > 18 </wui-account-button> 19 `}onClick(){this.isUnsupportedChain?i.IN.open({view:"UnsupportedChain"}):i.IN.open()}};c([(0,s.Cb)({type:Boolean})],u.prototype,"disabled",void 0),c([(0,s.Cb)()],u.prototype,"balance",void 0),c([(0,s.Cb)()],u.prototype,"charsStart",void 0),c([(0,s.Cb)()],u.prototype,"charsEnd",void 0),c([(0,s.SB)()],u.prototype,"address",void 0),c([(0,s.SB)()],u.prototype,"balanceVal",void 0),c([(0,s.SB)()],u.prototype,"balanceSymbol",void 0),c([(0,s.SB)()],u.prototype,"profileName",void 0),c([(0,s.SB)()],u.prototype,"profileImage",void 0),c([(0,s.SB)()],u.prototype,"network",void 0),c([(0,s.SB)()],u.prototype,"isUnsupportedChain",void 0),u=c([(0,n.customElement)("w3m-account-button")],u);var d=(0,o.iv)` 20 :host { 21 display: block; 22 width: max-content; 23 } 24`,h=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let f=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance=void 0,this.size=void 0,this.label=void 0,this.loadingLabel=void 0,this.charsStart=4,this.charsEnd=6,this.isAccount=i.AccountController.state.isConnected,this.isLoading=i.IN.state.loading,this.unsubscribe.push(i.AccountController.subscribeKey("isConnected",e=>{this.isAccount=e}),i.IN.subscribeKey("loading",e=>{this.isLoading=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.isAccount&&!this.isLoading?(0,o.dy)` 25 <w3m-account-button 26 .disabled=${!!this.disabled} 27 balance=${l(this.balance)} 28 .charsStart=${l(this.charsStart)} 29 .charsEnd=${l(this.charsEnd)} 30 > 31 </w3m-account-button> 32 `:(0,o.dy)` 33 <w3m-connect-button 34 size=${l(this.size)} 35 label=${l(this.label)} 36 loadingLabel=${l(this.loadingLabel)} 37 ></w3m-connect-button> 38 `}};f.styles=d,h([(0,s.Cb)({type:Boolean})],f.prototype,"disabled",void 0),h([(0,s.Cb)()],f.prototype,"balance",void 0),h([(0,s.Cb)()],f.prototype,"size",void 0),h([(0,s.Cb)()],f.prototype,"label",void 0),h([(0,s.Cb)()],f.prototype,"loadingLabel",void 0),h([(0,s.Cb)()],f.prototype,"charsStart",void 0),h([(0,s.Cb)()],f.prototype,"charsEnd",void 0),h([(0,s.SB)()],f.prototype,"isAccount",void 0),h([(0,s.SB)()],f.prototype,"isLoading",void 0),f=h([(0,n.customElement)("w3m-button")],f);var p=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
38);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let g=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=i.IN.state.open,this.loading=i.IN.state.loading,this.unsubscribe.push(i.IN.subscribe(e=>{this.open=e.open,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.loading||this.open;return(0,o.dy)` 39 <wui-connect-button 40 size=${l(this.size)} 41 .loading=${e} 42 @click=${this.onClick.bind(this)} 43 data-testid="connect-button" 44 > 45 ${e?this.loadingLabel:this.label} 46 </wui-connect-button> 47 `}onClick(){this.open?i.IN.close():this.loading||i.IN.open()}};p([(0,s.Cb)()],g.prototype,"size",void 0),p([(0,s.Cb)()],g.prototype,"label",void 0),p([(0,s.Cb)()],g.prototype,"loadingLabel",void 0),p([(0,s.SB)()],g.prototype,"open",void 0),p([(0,s.SB)()],g.prototype,"loading",void 0),g=p([(0,n.customElement)("w3m-connect-button")],g),r(65132);var m=(0,o.iv)` 48 :host { 49 display: block; 50 width: max-content; 51 } 52`,w=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let y=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.network=i.NetworkController.state.caipNetwork,this.connected=i.AccountController.state.isConnected,this.loading=i.IN.state.loading,this.isUnsupportedChain=i.NetworkController.state.isUnsupportedChain,this.unsubscribe.push(i.NetworkController.subscribeKey("caipNetwork",e=>this.network=e),i.AccountController.subscribeKey("isConnected",e=>this.connected=e),i.IN.subscribeKey("loading",e=>this.loading=e),i.NetworkController.subscribeKey("isUnsupportedChain",e=>this.isUnsupportedChain=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 53 <wui-network-button 54 .disabled=${!!(this.disabled||this.loading)} 55 .isUnsupportedChain=${this.isUnsupportedChain} 56 imageSrc=${l(i.fz.getNetworkImage(this.network))} 57 @click=${this.onClick.bind(this)} 58 > 59 ${this.isUnsupportedChain?"Switch Network":this.network?.name??(this.connected?"Unknown Network":"Select Network")} 60 </wui-network-button> 61 `}onClick(){this.loading||(i.Xs.sendEvent({type:"track",event:"CLICK_NETWORKS"}),i.IN.open({view:"Networks"}))}};y.styles=m,w([(0,s.Cb)({type:Boolean})],y.prototype,"disabled",void 0),w([(0,s.SB)()],y.prototype,"network",void 0),w([(0,s.SB)()],y.prototype,"connected",void 0),w([(0,s.SB)()],y.prototype,"loading",void 0),w([(0,s.SB)()],y.prototype,"isUnsupportedChain",void 0),y=w([(0,n.customElement)("w3m-network-button")],y);var b=(0,o.iv)` 62 :host { 63 display: block; 64 will-change: transform, opacity; 65 } 66`,v=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let _=class extends o.oi{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=i.RouterController.state.view,this.unsubscribe.push(i.RouterController.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(async([e])=>{let t=`${e?.contentRect.height}px`;"0px"!==this.prevHeight&&(await this.animate([{height:this.prevHeight},{height:t}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.style.height="auto"),this.prevHeight=t}),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e
66=>e())}render(){return(0,o.dy)`<div>${this.viewTemplate()}</div>`}viewTemplate(){switch(this.view){case"Account":return(0,o.dy)`<w3m-account-view></w3m-account-view>`;case"AccountSettings":return(0,o.dy)`<w3m-account-settings-view></w3m-account-settings-view>`;case"AllWallets":return(0,o.dy)`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return(0,o.dy)`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return(0,o.dy)`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return(0,o.dy)`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return(0,o.dy)`<w3m-connect-view></w3m-connect-view>`;case"ConnectingWalletConnect":return(0,o.dy)`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingExternal":return(0,o.dy)`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return(0,o.dy)`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return(0,o.dy)`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return(0,o.dy)`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return(0,o.dy)`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"Downloads":return(0,o.dy)`<w3m-downloads-view></w3m-downloads-view>`;case"EmailVerifyOtp":return(0,o.dy)`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return(0,o.dy)`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"Networks":return(0,o.dy)`<w3m-networks-view></w3m-networks-view>`;case"RegisterAccountName":return(0,o.dy)`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return(0,o.dy)`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;case"SwitchNetwork":return(0,o.dy)`<w3m-network-switch-view></w3m-network-switch-view>`;case"GetWallet":return(0,o.dy)`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Transactions":return(0,o.dy)`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return(0,o.dy)`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampActivity":return(0,o.dy)`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case"OnRampTokenSelect":return(0,o.dy)`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return(0,o.dy)`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return(0,o.dy)`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpgradeToSmartAccount":return(0,o.dy)`<w3m-upgrade-to-smart-account-view></w3m-upgrade-to-smart-account-view>`;case"UpdateEmailWallet":return(0,o.dy)`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return(0,o.dy)`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return(0,o.dy)`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return(0,o.dy)`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"WalletReceive":return(0,o.dy)`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return(0,o.dy)`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"Swap":return(0,o.dy)`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return(0,o.dy)`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return(0,o.dy)`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return(0,o.dy)`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return(0,o.dy)`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return(0,o.dy)`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WhatIsABuy":return(0,o.dy)`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WhatIsANetwork":return(0,o.dy)`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"WhatIsAWallet":return(0,o.dy)`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`}}async onViewChange(e){i.fw.hide();let{history:t}=i.RouterController.state,r=-10,n=10;t.length<this.prevHistoryLength&&(r=10,n=-10),this.prevHistoryLength=t.length,await this.animate([{opacity:1,transform:"translateX(0px)"},{opacity:0,transform:`translateX(${r}px)`}],{duration:150,easing:"ease",fill:"forwards"}).finished,this.view=e,await this.animate([{opacity:0,transform:`translateX(${n}px)`},{opacity:1,transform:"translateX(0px)"}],{duration:150,easing:"ease",fill:"forwards",delay:50}).finished}getWrapper(){return this.shadowRoot?.querySelector("div")}};_.styles=b,v([(0,s.SB)()],_.prototype,"view",void 0),_=v([(0,n.customElement)("w3m-router")],_);var x=(0,o.iv)` 67 :host > wui-flex { 68 width: 100%; 69 max-width: 360px; 70 } 71 72 :host > wui-flex > wui-flex { 73 border-radius: var(--wui-border-radius-l); 74 width: 100%; 75 } 76 77 .amounts-container { 78 width: 100%; 79 } 80`,E=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
80);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let C={USD:"$",EUR:"â¬",GBP:"\xa3"},k=[100,250,500,1e3],S=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.connected=i.AccountController.state.isConnected,this.loading=i.IN.state.loading,this.paymentCurrency=i.ph.state.paymentCurrency,this.paymentAmount=i.ph.state.paymentAmount,this.purchaseAmount=i.ph.state.purchaseAmount,this.quoteLoading=i.ph.state.quotesLoading,this.unsubscribe.push(i.AccountController.subscribeKey("isConnected",e=>{this.connected=e}),i.IN.subscribeKey("loading",e=>{this.loading=e}),i.ph.subscribe(e=>{this.paymentCurrency=e.paymentCurrency,this.paymentAmount=e.paymentAmount,this.purchaseAmount=e.purchaseAmount,this.quoteLoading=e.quotesLoading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 81 <wui-flex flexDirection="column" justifyContent="center" alignItems="center"> 82 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 83 <w3m-onramp-input 84 type="Fiat" 85 @inputChange=${this.onPaymentAmountChange.bind(this)} 86 .value=${this.paymentAmount||0} 87 ></w3m-onramp-input> 88 <w3m-onramp-input 89 type="Token" 90 .value=${this.purchaseAmount||0} 91 .loading=${this.quoteLoading} 92 ></w3m-onramp-input> 93 <wui-flex justifyContent="space-evenly" class="amounts-container" gap="xs"> 94 ${k.map(e=>(0,o.dy)`<wui-button 95 variant=${this.paymentAmount===e?"accent":"neutral"} 96 size="md" 97 textVariant="paragraph-600" 98 fullWidth 99 @click=${()=>this.selectPresetAmount(e)} 100 >${`${C[this.paymentCurrency?.id||"USD"]} ${e}`}</wui-button 101 >`)} 102 </wui-flex> 103 ${this.templateButton()} 104 </wui-flex> 105 </wui-flex> 106 `}templateButton(){return this.connected?(0,o.dy)`<wui-button 107 @click=${this.getQuotes.bind(this)} 108 variant="main" 109 fullWidth 110 size="lg" 111 borderRadius="xs" 112 > 113 Get quotes 114 </wui-button>`:(0,o.dy)`<wui-button 115 @click=${this.openModal.bind(this)} 116 variant="accent" 117 fullWidth 118 size="lg" 119 borderRadius="xs" 120 > 121 Connect wallet 122 </wui-button>`}getQuotes(){this.loading||i.IN.open({view:"OnRampProviders"})}openModal(){i.IN.open({view:"Connect"})}async onPaymentAmountChange(e){i.ph.setPaymentAmount(Number(e.detail)),await i.ph.getQuote()}async selectPresetAmount(e){i.ph.setPaymentAmount(e),await i.ph.getQuote()}};S.styles=x,E([(0,s.Cb)({type:Boolean})],S.prototype,"disabled",void 0),E([(0,s.SB)()],S.prototype,"connected",void 0),E([(0,s.SB)()],S.prototype,"loading",void 0),E([(0,s.SB)()],S.prototype,"paymentCurrency",void 0),E([(0,s.SB)()],S.prototype,"paymentAmount",void 0),E([(0,s.SB)()],S.prototype,"purchaseAmount",void 0),E([(0,s.SB)()],S.prototype,"quoteLoading",void 0),S=E([(0,n.customElement)("w3m-onramp-widget")],S);var A=(0,o.iv)` 123 wui-flex { 124 width: 100%; 125 } 126 127 wui-icon-link { 128 margin-right: calc(var(--wui-icon-box-size-md) * -1); 129 } 130 131 .account-links { 132 display: flex; 133 justify-content: space-between; 134 align-items: center; 135 } 136 137 .account-links wui-flex { 138 cursor: pointer; 139 display: flex; 140 align-items: center; 141 justify-content: center; 142 flex: 1; 143 background: red; 144 align-items: center; 145 justify-content: center; 146 height: 48px; 147 padding: 10px; 148 flex: 1 0 0; 149 150 border-radius: var(--XS, 16px); 151 border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 152 background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 153 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 154 will-change: background-color; 155 } 156 157 .account-links wui-flex:hover { 158 background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15)); 159 } 160 161 .account-links wui-flex wui-icon { 162 width: var(--S, 20px); 163 height: var(--S, 20px); 164 } 165 166 .account-links wui-flex wui-icon svg path { 167 stroke: #47a1ff; 168 } 169`,I=r(14306),T=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
169);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let R=class extends o.oi{constructor(){super(),this.usubscribe=[],this.networkImages=i.WM.state.networkImages,this.address=i.AccountController.state.address,this.profileImage=i.AccountController.state.profileImage,this.profileName=i.AccountController.state.profileName,this.network=i.NetworkController.state.caipNetwork,this.preferredAccountType=i.AccountController.state.preferredAccountType,this.disconnecting=!1,this.loading=!1,this.switched=!1,this.text="",this.usubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):i.IN.close()}),i.NetworkController.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-settings-view: No account provided");let e=this.networkImages[this.network?.imageId??""];return(0,o.dy)` 170 <wui-flex 171 flexDirection="column" 172 .padding=${["0","xl","m","xl"]} 173 alignItems="center" 174 gap="l" 175 > 176 <wui-avatar 177 alt=${this.address} 178 address=${this.address} 179 .imageSrc=${this.profileImage||""} 180 ></wui-avatar> 181 <wui-flex flexDirection="column" alignItems="center"> 182 <wui-flex gap="3xs" alignItems="center" justifyContent="center"> 183 <wui-text variant="large-600" color="fg-100" data-testid="account-settings-address"> 184 ${n.UiHelperUtil.getTruncateString({string:this.address,charsStart:4,charsEnd:6,truncate:"middle"})} 185 </wui-text> 186 <wui-icon-link 187 size="md" 188 icon="copy" 189 iconColor="fg-200" 190 @click=${this.onCopyAddress} 191 ></wui-icon-link> 192 </wui-flex> 193 </wui-flex> 194 </wui-flex> 195 196 <wui-flex flexDirection="column" gap="m"> 197 <wui-flex flexDirection="column" gap="xs" .padding=${["0","xl","m","xl"]}> 198 <w3m-account-auth-button></w3m-account-auth-button> 199 <wui-list-item 200 .variant=${e?"image":"icon"} 201 iconVariant="overlay" 202 icon="networkPlaceholder" 203 imageSrc=${l(e)} 204 ?chevron=${this.isAllowedNetworkSwitch()} 205 @click=${this.onNetworks.bind(this)} 206 data-testid="account-switch-network-button" 207 > 208 <wui-text variant="paragraph-500" color="fg-100"> 209 ${this.network?.name??"Unknown"} 210 </wui-text> 211 </wui-list-item> 212 ${this.togglePreferredAccountBtnTemplate()} ${this.chooseNameButtonTemplate()} 213 <wui-list-item 214 variant="icon" 215 iconVariant="overlay" 216 icon="disconnect" 217 ?chevron=${!1} 218 .loading=${this.disconnecting} 219 @click=${this.onDisconnect.bind(this)} 220 data-testid="disconnect-button" 221 > 222 <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text> 223 </wui-list-item> 224 </wui-flex> 225 </wui-flex> 226 `}chooseNameButtonTemplate(){let e=i.MO.getConnectedConnector(),t=i.ConnectorController.getAuthConnector(),r=i.a.isAllowedToRegisterName();return t&&"AUTH"===e&&!this.profileName&&r?(0,o.dy)` 227 <wui-list-item 228 variant="icon" 229 iconVariant="overlay" 230 icon="id" 231 iconSize="sm" 232 ?chevron=${!0} 233 @click=${this.onChooseName.bind(this)} 234 data-testid="account-choose-name-button" 235 > 236 <wui-text variant="paragraph-500" color="fg-100">Choose account name </wui-text> 237 </wui-list-item> 238 `:null}isAllowedNetworkSwitch(){let{requestedCaipNetworks:e}=i.NetworkController.state,t=!!e&&e.length>1,r=e?.find(({id:e})=>e===this.network?.id);return t||!r}onCopyAddress(){try{this.address&&(i.j1.copyToClopboard(this.address),i.SnackController.showSuccess("Address copied"))}catch{i.SnackController.showError("Failed to copy")}}togglePreferredAccountBtnTemplate(){let e=i.NetworkController.checkIfSmartAccountEnabled(),t=i.MO.getConnectedConnector();return i.ConnectorController.getAuthConnector()&&"AUTH"===t&&e?(this.switched||(this.text=this.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account"),(0,o.dy)` 239 <wui-list-item 240 variant="icon" 241 iconVariant="overlay" 242 icon="swapHorizontalBold" 243 iconSize="sm" 244 ?chevron=${!0} 245 ?loading=${this.loading} 246 @click=${this.changePreferredAccountType.bind(this)} 247 data-testid="account-toggle-preferred-account-type" 248 > 249 <wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text> 250 </wui-list-item> 251 `):null}onChooseName(){i.RouterController.push("ChooseAccountName")}async changePreferredAccountType(){let e=i.NetworkController.checkIfSmartAccountEnabled(),t=this.preferredAccountType!==I.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&e?I.y_.ACCOUNT_TYPES.SMART_ACCOUNT:I.y_.ACCOUNT_TYPES.EOA,r=i.ConnectorController.getAuthConnector();r&&(this.loading=!0,i.IN.setLoading(!0),await r?.provider.setPreferredAccount(t),await i.ConnectionController.reconnectExternal(r),i.IN.setLoading(!1),this.text=t===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account",this.switched=!0,i.Si.resetSend(),this.loading=!1,this.requestUpdate())}onNetworks(){this.isAllowedNetworkSwitch()&&i.RouterController.push("Networks")}async onDisconnect(){try{this.disconnecting=!0,await i.ConnectionController.disconnect(),i.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),i.IN.close()}catch{i.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),i.SnackController.showError("Failed to disconnect")}finally{this.disconnecting=!1}}};R.styles=A,T([(0,s.SB)()],R.prototype,"address",void 0),T([(0,s.SB)()],R.prototype,"profileImage",void 0),T([(0,s.SB)()],R.prototype,"profileName",void 0),T([(0,s.SB)()],R.prototype,"network",void 0),T([(0,s.SB)()],R.prototype,"preferredAccountType",void 0),T([(0,s.SB)()],R.prototype,"disconnecting",void 0),T([(0,s.SB)()],R.prototype,"loading",void 0),T([(0,s.SB)()],R.prototype,"switched",void 0),T([(0,s.SB)()],R.prototype,"text",void 0),R=T([(0,n.customElement)("w3m-account-settings-view")],R);let O=class extends o.oi{render(){let e=i.MO.getConnectedConnector();return(0,o.dy)` 252 ${i.OptionsController.state.enableWalletFeatures&&"AUTH"===e?this.walletFeaturesTemplate():this.defaultTemplate()} 253 `}walletFeaturesTemplate(){return(0,o.dy)`<w3m-account-wallet-features-widget></w3m-account-wallet-features-widget>`}defaultTemplate(){return(0,o.dy)`<w3m-account-default-widget></w3m-account-default-widget>`}};O=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
253);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-account-view")],O);var P=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let N=class extends o.oi{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=i.j1.debounce(e=>{this.search=e})}render(){let e=this.search.length>=2;return(0,o.dy)` 254 <wui-flex .padding=${["0","s","s","s"]} gap="s"> 255 <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar> 256 ${this.qrButtonTemplate()} 257 </wui-flex> 258 ${e?(0,o.dy)`<w3m-all-wallets-search query=${this.search}></w3m-all-wallets-search>`:(0,o.dy)`<w3m-all-wallets-list></w3m-all-wallets-list>`} 259 `}onInputChange(e){this.onDebouncedSearch(e.detail)}qrButtonTemplate(){return i.j1.isMobile()?(0,o.dy)` 260 <wui-icon-box 261 size="lg" 262 iconSize="xl" 263 iconColor="accent-100" 264 backgroundColor="accent-100" 265 icon="qrCode" 266 background="transparent" 267 border 268 borderColor="wui-accent-glass-010" 269 @click=${this.onWalletConnectQr.bind(this)} 270 ></wui-icon-box> 271 `:null}onWalletConnectQr(){i.RouterController.push("ConnectingWalletConnect")}};P([(0,s.SB)()],N.prototype,"search",void 0),N=P([(0,n.customElement)("w3m-all-wallets-view")],N);var M=(0,o.iv)` 272 @keyframes shake { 273 0% { 274 transform: translateX(0); 275 } 276 25% { 277 transform: translateX(3px); 278 } 279 50% { 280 transform: translateX(-3px); 281 } 282 75% { 283 transform: translateX(3px); 284 } 285 100% { 286 transform: translateX(0); 287 } 288 } 289 290 wui-flex:first-child:not(:only-child) { 291 position: relative; 292 } 293 294 wui-loading-thumbnail { 295 position: absolute; 296 } 297 298 wui-visual { 299 width: var(--wui-wallet-image-size-lg); 300 height: var(--wui-wallet-image-size-lg); 301 border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); 302 position: relative; 303 overflow: hidden; 304 } 305 306 wui-visual::after { 307 content: ''; 308 display: block; 309 width: 100%; 310 height: 100%; 311 position: absolute; 312 inset: 0; 313 border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs)); 314 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 315 } 316 317 wui-icon-box { 318 position: absolute; 319 right: calc(var(--wui-spacing-3xs) * -1); 320 bottom: calc(var(--wui-spacing-3xs) * -1); 321 opacity: 0; 322 transform: scale(0.5); 323 transition: 324 opacity var(--wui-ease-out-power-2) var(--wui-duration-lg), 325 transform var(--wui-ease-out-power-2) var(--wui-duration-lg); 326 will-change: opacity, transform; 327 } 328 329 wui-text[align='center'] { 330 width: 100%; 331 padding: 0px var(--wui-spacing-l); 332 } 333 334 [data-error='true'] wui-icon-box { 335 opacity: 1; 336 transform: scale(1); 337 } 338 339 [data-error='true'] > wui-flex:first-child { 340 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 341 } 342 343 [data-retry='false'] wui-link { 344 display: none; 345 } 346 347 [data-retry='true'] wui-link { 348 display: block; 349 opacity: 1; 350 } 351 352 wui-link { 353 padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); 354 } 355`,D=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let L=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=i.ph.state.selectedProvider,this.uri=i.ConnectionController.state.wcUri,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.error=!1,this.startTime=null,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(i.ph.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e})),this.watchTransactions()}disconnectedCallback(){this.intervalId&&clearInterval(this.intervalId)}render(){let e="Continue in external window";this.error?e="Buy failed":this.selectedOnRampProvider&&(e=`Buy in ${this.selectedOnRampProvider?.label}`);let t=this.error?"Buy can be declined from your side or due to and error on the provider app":`Weâll notify you once your Buy is processed`;return(0,o.dy)` 356 <wui-flex 357 data-error=${l(this.error)} 358 data-retry=${this.showRetry} 359 flexDirection="column" 360 alignItems="center" 361 .padding=${["3xl","xl","xl","xl"]} 362 gap="xl" 363 > 364 <wui-flex justifyContent="center" alignItems="center"> 365 <wui-visual 366 name=${l(this.selectedOnRampProvider?.name)} 367 size="lg" 368 class="provider-image" 369 > 370 </wui-visual> 371 372 ${this.error?null:this.loaderTemplate()} 373 374 <wui-icon-box 375 backgroundColor="error-100" 376 background="opaque" 377 iconColor="error-100" 378 icon="close" 379 size="sm" 380 border 381 borderColor="wui-color-bg-125" 382 ></wui-icon-box> 383 </wui-flex> 384 385 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 386 <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}> 387 ${e} 388 </wui-text> 389 <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text> 390 </wui-flex> 391 392 ${this.error?this.tryAgainTemplate():null} 393 </wui-flex> 394 395 <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center"> 396 <wui-link @click=${this.onCopyUri} color="fg-200"> 397 <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> 398 Copy link 399 </wui-link> 400 </wui-flex> 401 `}watchTransactions(){this.selectedOnRampProvider&&"coinbase"===this.selectedOnRampProvider.name&&(this.startTime=Date.now(),this.initializeCoinbaseTransactions())}async initializeCoinbaseTransactions(){await this.watchCoinbaseTransactions(),this.intervalId=setInterval(()=>this.watchCoinbaseTransactions(),4e3)}async watchCoinbaseTransactions(){try{let e=i.AccountController.state.address,t=i.OptionsController.state.projectId;if(!e)throw Error("No address found");(await i.Lr.fetchTransactions({account:e,onramp:"coinbase",projectId:t})).data.filter(e=>new Date(e.metadata.minedAt)>new Date(this.startTime)||"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length?(clearInterval(this.intervalId),i.RouterController.replace("OnRampActivity")):this.startTime&&Date.now()-this.startTime>=18e4&&(clearInterval(this.intervalId),this.error=!0)}catch(e){i.SnackController.showError(e)}}onTryAgain(){this.selectedOnRampProvider&&(this.error=!1,i.j1.openHref(this.selectedOnRampProvider.url,"popupWindow","width=600,height=800,scrollbars=yes"))}tryAgainTemplate(){return this.selectedOnRampProvider?.url?(0,o.dy)`<wui-button size="md" variant="accent" @click=${this.onTryAgain.bind(this)}> 402 <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon> 403 Try again 404 </wui-button>
404`:null}loaderTemplate(){let e=i.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,o.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){if(!this.selectedOnRampProvider?.url){i.SnackController.showError("No link found"),i.RouterController.goBack();return}try{i.j1.copyToClopboard(this.selectedOnRampProvider.url),i.SnackController.showSuccess("Link copied")}catch{i.SnackController.showError("Failed to copy")}}};L.styles=M,D([(0,s.SB)()],L.prototype,"intervalId",void 0),D([(0,s.SB)()],L.prototype,"selectedOnRampProvider",void 0),D([(0,s.SB)()],L.prototype,"uri",void 0),D([(0,s.SB)()],L.prototype,"ready",void 0),D([(0,s.SB)()],L.prototype,"showRetry",void 0),D([(0,s.SB)()],L.prototype,"buffering",void 0),D([(0,s.SB)()],L.prototype,"error",void 0),D([(0,s.SB)()],L.prototype,"startTime",void 0),D([(0,s.Cb)({type:Boolean})],L.prototype,"isMobile",void 0),D([(0,s.Cb)()],L.prototype,"onRetry",void 0),L=D([(0,n.customElement)("w3m-buy-in-progress-view")],L);var j=(0,o.iv)` 405 :host > wui-flex { 406 max-height: clamp(360px, 540px, 80vh); 407 scrollbar-width: none; 408 overflow-y: scroll; 409 overflow-x: hidden; 410 } 411 412 :host > wui-flex::-webkit-scrollbar {
413 display: none; 414 } 415 416 .all-wallets { 417 flex-flow: column; 418 } 419`,B=r(63779),$=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let U=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 420 <wui-flex flexDirection="column" .padding=${["3xs","s","s","s"]}> 421 <w3m-email-login-widget></w3m-email-login-widget> 422 <w3m-social-login-widget></w3m-social-login-widget> 423 ${this.walletListTemplate()} 424 </wui-flex> 425 <w3m-legal-footer></w3m-legal-footer> 426 `}walletListTemplate(){let e=this.connectors.find(e=>"AUTH"===e.type);return e?.socials?e?.showWallets?(0,o.dy)` 427 <wui-flex flexDirection="column" gap="xs" .margin=${["xs","0","0","0"]}> 428 <w3m-connect-walletconnect-widget></w3m-connect-walletconnect-widget> 429 <w3m-connect-recent-widget></w3m-connect-recent-widget> 430 <w3m-connect-announced-widget></w3m-connect-announced-widget> 431 <w3m-connect-injected-widget></w3m-connect-injected-widget> 432 <w3m-connect-coinbase-widget></w3m-connect-coinbase-widget> 433 <w3m-connect-custom-widget></w3m-connect-custom-widget> 434 <w3m-connect-recommended-widget></w3m-connect-recommended-widget> 435 <wui-flex class="all-wallets" .margin=${["xs","0","0","0"]}> 436 <w3m-all-wallets-widget></w3m-all-wallets-widget> 437 </wui-flex> 438 </wui-flex> 439 `:(0,o.dy)` <wui-list-button 440 @click=${this.onContinueWalletClick.bind(this)} 441 text="Continue with a wallet" 442 ></wui-list-button>`:(0,o.dy)`<w3m-wallet-login-list></w3m-wallet-login-list>`}onContinueWalletClick(){i.RouterController.push("ConnectWallets")}};U.styles=j,$([(0,B.S)()],U.prototype,"connectors",void 0),U=$([(0,n.customElement)("w3m-connect-view")],U);var F=(0,o.iv)` 443 @keyframes shake { 444 0% { 445 transform: translateX(0); 446 } 447 25% { 448 transform: translateX(3px); 449 } 450 50% { 451 transform: translateX(-3px); 452 } 453 75% { 454 transform: translateX(3px); 455 } 456 100% { 457 transform: translateX(0); 458 } 459 } 460 461 wui-flex:first-child:not(:only-child) { 462 position: relative; 463 } 464 465 wui-loading-thumbnail { 466 position: absolute; 467 } 468 469 wui-icon-box { 470 position: absolute; 471 right: calc(var(--wui-spacing-3xs) * -1); 472 bottom: calc(var(--wui-spacing-3xs) * -1); 473 opacity: 0; 474 transform: scale(0.5); 475 transition-property: opacity, transform; 476 transition-duration: var(--wui-duration-lg); 477 transition-timing-function: var(--wui-ease-out-power-2); 478 will-change: opacity, transform; 479 } 480 481 wui-text[align='center'] { 482 width: 100%; 483 padding: 0px var(--wui-spacing-l); 484 } 485 486 [data-error='true'] wui-icon-box { 487 opacity: 1; 488 transform: scale(1); 489 } 490 491 [data-error='true'] > wui-flex:first-child { 492 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 493 } 494 495 [data-retry='false'] wui-link { 496 display: none; 497 } 498 499 [data-retry='true'] wui-link { 500 display: block; 501 opacity: 1; 502 } 503`,z=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};class q extends o.oi{constructor(){super(),this.wallet=i.RouterController.state.data?.wallet,this.connector=i.RouterController.state.data?.connector,this.timeout=void 0,this.secondaryBtnLabel="Try again",this.secondaryBtnIcon="refresh",this.secondaryLabel="Accept connection request in the wallet",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=i.fz.getWalletImage(this.wallet)??i.fz.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=i.ConnectionController.state.wcUri,this.error=i.ConnectionController.state.wcError,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(i.ConnectionController.subscribeKey("wcUri",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),i.ConnectionController.subscribeKey("wcError",e=>this.error=e),i.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}
503disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();let e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel,t=`Continue in ${this.name}`;return this.buffering&&(t="Connecting..."),this.error&&(t="Connection declined"),(0,o.dy)` 504 <wui-flex 505 data-error=${l(this.error)} 506 data-retry=${this.showRetry} 507 flexDirection="column" 508 alignItems="center" 509 .padding=${["3xl","xl","xl","xl"]} 510 gap="xl" 511 > 512 <wui-flex justifyContent="center" alignItems="center"> 513 <wui-wallet-image size="lg" imageSrc=${l(this.imageSrc)}></wui-wallet-image> 514 515 ${this.error?null:this.loaderTemplate()} 516 517 <wui-icon-box 518 backgroundColor="error-100" 519 background="opaque" 520 iconColor="error-100" 521 icon="close" 522 size="sm" 523 border 524 borderColor="wui-color-bg-125" 525 ></wui-icon-box> 526 </wui-flex> 527 528 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 529 <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}> 530 ${t} 531 </wui-text> 532 <wui-text align="center" variant="small-500" color="fg-200">${e}</wui-text> 533 </wui-flex> 534 535 <wui-button 536 variant="accent" 537 size="md" 538 ?disabled=${!this.error&&this.buffering} 539 @click=${this.onTryAgain.bind(this)} 540 > 541 <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon> 542 ${this.secondaryBtnLabel} 543 </wui-button> 544 </wui-flex> 545 546 ${this.isWalletConnect?(0,o.dy)` 547 <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center"> 548 <wui-link @click=${this.onCopyUri} color="fg-200"> 549 <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> 550 Copy link 551 </wui-link> 552 </wui-flex> 553 `:null} 554 555 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 556 `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){this.buffering||(i.ConnectionController.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){let e=i.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,o.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(i.j1.copyToClopboard(this.uri),i.SnackController.showSuccess("Link copied"))}catch{i.SnackController.showError("Failed to copy")}}}q.styles=F,z([(0,s.SB)()],q.prototype,"uri",void 0),z([(0,s.SB)()],q.prototype,"error",void 0),z([(0,s.SB)()],q.prototype,"ready",void 0),z([(0,s.SB)()],q.prototype,"showRetry",void 0),z([(0,s.SB)()],q.prototype,"buffering",void 0),z([(0,s.Cb)({type:Boolean})],q.prototype,"isMobile",void 0),z([(0,s.Cb)()],q.prototype,"onRetry",void 0);var W=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let H=class extends q{constructor(){if(super(),!this.connector)throw Error("w3m-connecting-view: No connector provided");i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:"browser"}}),this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),this.isWalletConnect=!1}async onConnectProxy(){try{this.error=!1,this.connector&&(this.connector.imageUrl&&i.MO.setConnectedWalletImageUrl(this.connector.imageUrl),await i.ConnectionController.connectExternal(this.connector),i.OptionsController.state.isSiweEnabled?i.RouterController.push("ConnectingSiwe"):i.IN.close(),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.connector.name||"Unknown"}}))}catch(e){i.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};H=W([(0,n.customElement)("w3m-connecting-external-view")],H);var V=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
556);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let Z=class extends o.oi{constructor(){super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=i.RouterController.state.data?.wallet,this.platform=void 0,this.platforms=[],this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),i.bq.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(this.determinePlatforms(),(0,o.dy)` 557 ${this.headerTemplate()} 558 <div>${this.platformTemplate()}</div> 559 `):(0,o.dy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`}async initializeConnection(e=!1){try{let{wcPairingExpiry:t}=i.ConnectionController.state;if(e||i.j1.isPairingExpired(t)){if(i.ConnectionController.connectWalletConnect(),this.wallet){let e=i.fz.getWalletImage(this.wallet);e&&i.MO.setConnectedWalletImageUrl(e)}else{let e=i.ConnectorController.state.connectors.find(e=>"WALLET_CONNECT"===e.type),t=i.fz.getConnectorImage(e);t&&i.MO.setConnectedWalletImageUrl(t)}if(await i.ConnectionController.state.wcPromise,this.finalizeConnection(),i.OptionsController.state.isSiweEnabled){let{SIWEController:e}=await Promise.all([r.e(3138),r.e(1609)]).then(r.bind(r,41609));"success"===e.state.status?i.IN.close():i.RouterController.push("ConnectingSiwe")}else i.IN.close()}}catch(e){i.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),i.ConnectionController.setWcError(!0),i.j1.isAllowedRetry(this.lastRetry)&&(i.SnackController.showError("Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0))}}finalizeConnection(){let{wcLinking:e,recentWallet:t}=i.ConnectionController.state;e&&i.MO.setWalletConnectDeepLink(e),t&&i.MO.setWeb3ModalRecent(t),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:e?"mobile":"qrcode",name:this.wallet?.name||"Unknown"}})}determinePlatforms(){if(!this.wallet)throw Error("w3m-connecting-wc-view:determinePlatforms No wallet");if(this.platform)return;let{mobile_link:e,desktop_link:t,webapp_link:r,injected:n,rdns:o}=this.wallet,s=n?.map(({injected_id:e})=>
559e).filter(Boolean),a=o?[o]:s??[],l=a.length,c=e,u=r,d=i.ConnectionController.checkInstalled(a),h=l&&d,f=t&&!i.j1.isMobile();h&&this.platforms.push("browser"),c&&this.platforms.push(i.j1.isMobile()?"mobile":"qrcode"),u&&this.platforms.push("web"),f&&this.platforms.push("desktop"),!h&&l&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return(0,o.dy)`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"desktop":return(0,o.dy)` 560 <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}> 561 </w3m-connecting-wc-desktop> 562 `;case"web":return(0,o.dy)` 563 <w3m-connecting-wc-web .onRetry=${()=>this.initializeConnection(!0)}> 564 </w3m-connecting-wc-web> 565 `;case"mobile":return(0,o.dy)` 566 <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}> 567 </w3m-connecting-wc-mobile> 568 `;case"qrcode":return(0,o.dy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return(0,o.dy)`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?(0,o.dy)` 569 <w3m-connecting-header 570 .platforms=${this.platforms} 571 .onSelectPlatfrom=${this.onSelectPlatform.bind(this)} 572 > 573 </w3m-connecting-header> 574 `:null}async onSelectPlatform(e){let t=this.shadowRoot?.querySelector("div");t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};V([(0,s.SB)()],Z.prototype,"platform",void 0),V([(0,s.SB)()],Z.prototype,"platforms",void 0),Z=V([(0,n.customElement)("w3m-connecting-wc-view")],Z);var K=(0,o.iv)` 575 .continue-button-container { 576 width: 100%; 577 } 578`,G=r(21134),Y=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let J=class extends o.oi{constructor(){super(...arguments),this.loading=!1}render(){return(0,o.dy)` 579 <wui-flex 580 flexDirection="column" 581 alignItems="center" 582 gap="xxl" 583 .padding=${["0","0","l","0"]} 584 > 585 ${this.onboardingTemplate()} ${this.buttonsTemplate()} 586 <wui-link 587 @click=${()=>{i.j1.openHref(G.UE.URLS.FAQ,"_blank")}} 588 > 589 Learn more about names 590 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 591 </wui-link> 592 </wui-flex> 593 `}onboardingTemplate(){return(0,o.dy)` <wui-flex 594 flexDirection="column" 595 gap="xxl" 596 alignItems="center" 597 .padding=${["0","xxl","0","xxl"]} 598 > 599 <wui-flex gap="s" alignItems="center" justifyContent="center"> 600 <wui-icon-box 601 icon="id" 602 size="xl" 603 iconSize="xxl" 604 iconColor="fg-200" 605 backgroundColor="fg-200" 606 ></wui-icon-box> 607 </wui-flex> 608 <wui-flex flexDirection="column" alignItems="center" gap="s"> 609 <wui-text align="center" variant="medium-600" color="fg-100"> 610 Choose your account name 611 </wui-text> 612 <wui-text align="center" variant="paragraph-400" color="fg-100"> 613 Finally say goodbye to 0x addresses, name your account to make it easier to exchange 614 assets 615 </wui-text> 616 </wui-flex> 617 </wui-flex>`}buttonsTemplate(){return(0,o.dy)`<wui-flex 618 .padding=${["0","2l","0","2l"]} 619 gap="s" 620 class="continue-button-container" 621 > 622 <wui-button 623 fullWidth 624 .loading=${this.loading} 625 size="lg" 626 borderRadius="xs" 627 @click=${()=>i.RouterController.push("RegisterAccountName")} 628 >Choose name 629 </wui-button> 630 </wui-flex>`}};J.styles=K,Y([(0,s.SB)()],J.prototype,"loading",void 0),J=Y([(0,n.customElement)("w3m-choose-account-name-view")],J);let Q=class extends o.oi{constructor(){super(...arguments),this.wallet=i.RouterController.state.data?.wallet}
630render(){if(!this.wallet)throw Error("w3m-downloads-view");return(0,o.dy)` 631 <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}> 632 ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()} 633 ${this.homepageTemplate()} 634 </wui-flex> 635 `}chromeTemplate(){return this.wallet?.chrome_store?(0,o.dy)`<wui-list-item 636 variant="icon" 637 icon="chromeStore" 638 iconVariant="square" 639 @click=${this.onChromeStore.bind(this)} 640 chevron 641 > 642 <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text> 643 </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?(0,o.dy)`<wui-list-item 644 variant="icon" 645 icon="appStore" 646 iconVariant="square" 647 @click=${this.onAppStore.bind(this)} 648 chevron 649 > 650 <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text> 651 </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?(0,o.dy)`<wui-list-item 652 variant="icon" 653 icon="playStore" 654 iconVariant="square" 655 @click=${this.onPlayStore.bind(this)} 656 chevron 657 > 658 <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text> 659 </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?(0,o.dy)` 660 <wui-list-item 661 variant="icon" 662 icon="browser" 663 iconVariant="square-blue" 664 @click=${this.onHomePage.bind(this)} 665 chevron 666 > 667 <wui-text variant="paragraph-500" color="fg-100">Website</wui-text> 668 </wui-list-item> 669 `:null}onChromeStore(){this.wallet?.chrome_store&&i.j1.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&i.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&i.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&i.j1.openHref(this.wallet.homepage,"_blank")}};Q=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-downloads-view")],Q);let X="https://walletconnect.com/explorer",ee=class extends o.oi{render(){return(0,o.dy)` 670 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 671 ${this.recommendedWalletsTemplate()} 672 <wui-list-wallet 673 name="Explore all" 674 showAllWallets 675 walletIcon="allWallets" 676 icon="externalLink" 677 @click=${()=>{i.j1.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}} 678 ></wui-list-wallet> 679 </wui-flex> 680 `}recommendedWalletsTemplate(){let{recommended:e,featured:t}=i.ApiController.state,{customWallets:r}=i.OptionsController.state;return[...t,...r??[],...e].slice(0,4).map(e=>(0,o.dy)` 681 <wui-list-wallet 682 name=${e.name??"Unknown"} 683 tagVariant="main" 684 imageSrc=${l(i.fz.getWalletImage(e))} 685 @click=${()=>{i.j1.openHref(e.homepage??X,"_blank")}} 686 ></wui-list-wallet> 687 `)}};ee=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-get-wallet-view")],ee);var et=(0,o.iv)` 688 wui-flex { 689 width: 100%; 690 } 691 692 .suggestion { 693 background: var(--wui-gray-glass-002); 694 border-radius: var(--wui-border-radius-xs); 695 } 696 697 .suggestion:hover { 698 background-color: var(--wui-gray-glass-005); 699 cursor: pointer; 700 } 701 702 .suggested-name { 703 max-width: 75%; 704 overflow: hidden; 705 text-overflow: ellipsis; 706 white-space: nowrap; 707 } 708 709 form { 710 width: 100%; 711 } 712 713 wui-icon-link { 714 position: absolute; 715 right: 20px; 716 transform: translateY(11px); 717 } 718`;let{I:er}=a._$LH,ei=e=>void 0===e.strings,en=2,eo=e=>(...t)=>({_$litDirective$:e,values:t});class es{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let ea=(e,t)=>{let r=e._$AN;if(void 0===r)return!1;for(let e of r)e._$AO?.(t,!1),ea(e,t);return!0},el=e=>{let t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===r?.size)},ec=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),eh(t)}};function eu(e){void 0!==this._$AN?(el(this),this._$AM=e,ec(this)):this._$AM=e}function ed(e,t=!1,r=0){let i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size){if(t){if(Array.isArray(i))for(let e=r;e<i.length;e++)ea(i[e],!1),el(i[e]);else null!=i&&(ea(i,!1),el(i))}else ea(this,e)}}let eh=e=>{e.type==en&&(e._$AP??=ed,e._$AQ??=eu)};class ef extends es{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),ec(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(ea(this,e),el(this))}setValue(e){if(ei(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}let ep=()=>new eg;class eg{}let em=new WeakMap,ew=eo(class extends ef{render(e){return a.Ld}update(e,[t]){let r=t!==this.Y;return r&&void 0!==this.Y&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),a.Ld}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.Y){let t=this.ht??globalThis,r=em.get(t);void 0===r&&(r=new WeakMap,em.set(t,r)),void 0!==r.get(this.Y)&&this.Y.call(this.ht,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return"function"==typeof this.Y?em.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ey=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
718);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eb=class extends o.oi{constructor(){super(),this.formRef=ep(),this.usubscribe=[],this.name="",this.error="",this.loading=i.a.state.loading,this.suggestions=i.a.state.suggestions,this.registered=!1,this.onDebouncedNameInputChange=i.j1.debounce(e=>{i.a.validateName(e)?(this.error="",this.name=e,i.a.getSuggestions(e),i.a.isNameRegistered(e).then(e=>{this.registered=e})):e.length<4?this.error="Name must be at least 4 characters long":this.error="Can only contain letters, numbers and - characters"}),this.usubscribe.push(i.a.subscribe(e=>{this.suggestions=e.suggestions,this.loading=e.loading}))}firstUpdated(){this.formRef.value?.addEventListener("keydown",this.onEnterKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.usubscribe.forEach(e=>e()),this.formRef.value?.removeEventListener("keydown",this.onEnterKey.bind(this))}render(){return(0,o.dy)` 719 <wui-flex 720 flexDirection="column" 721 alignItems="center" 722 gap="m" 723 .padding=${["0","s","m","s"]} 724 > 725 <form ${ew(this.formRef)} @submit=${this.onSubmitName.bind(this)}> 726 <wui-ens-input 727 @inputChange=${this.onNameInputChange.bind(this)} 728 .errorMessage=${this.error} 729 .value=${this.name} 730 > 731 </wui-ens-input> 732 ${this.submitButtonTemplate()} 733 <input type="submit" hidden /> 734 </form> 735 ${this.templateSuggestions()} 736 </wui-flex> 737 `}submitButtonTemplate(){return this.isAllowedToSubmit()?(0,o.dy)` 738 <wui-icon-link 739 size="sm" 740 icon="chevronRight" 741 iconcolor="accent-100" 742 @click=${this.onSubmitName.bind(this)} 743 > 744 </wui-icon-link> 745 `:null}onSelectSuggestion(e){return()=>{this.name=e,this.registered=!1,this.requestUpdate()}}onNameInputChange(e){this.onDebouncedNameInputChange(e.detail)}nameSuggestionTagTemplate(){return this.loading?(0,o.dy)`<wui-loading-spinner size="lg" color="fg-100"></wui-loading-spinner>`:this.registered?(0,o.dy)`<wui-tag variant="shade" size="lg">Registered</wui-tag>`:(0,o.dy)`<wui-tag variant="success" size="lg">Available</wui-tag>`}templateSuggestions(){if(!this.name||this.name.length<4||this.error)return null;let e=this.registered?this.suggestions.filter(e=>e.name!==this.name):[];return(0,o.dy)`<wui-flex flexDirection="column" gap="xxs" alignItems="center"> 746 <wui-flex 747 .padding=${["m","m","m","m"]} 748 justifyContent="space-between" 749 class="suggestion" 750 > 751 <wui-text color="fg-100" variant="paragraph-400" class="suggested-name"> 752 ${this.name}</wui-text 753 >${this.nameSuggestionTagTemplate()} 754 </wui-flex> 755 ${e.map(e=>this.availableNameTemplate(e.name))} 756 </wui-flex>`}availableNameTemplate(e){return(0,o.dy)` <wui-flex 757 .padding=${["m","m","m","m"]} 758 justifyContent="space-between" 759 class="suggestion" 760 @click=${this.onSelectSuggestion(e)} 761 > 762 <wui-text color="fg-100" variant="paragraph-400" class="suggested-name"> 763 ${e} 764 </wui-text> 765 <wui-tag variant="success" size="lg">Available</wui-tag> 766 </wui-flex>`}isAllowedToSubmit(){return!this.loading&&!this.registered&&!this.error&&i.a.validateName(this.name)}async onSubmitName(){try{if(!this.isAllowedToSubmit())return;await i.a.registerName(this.name)}catch(e){i.SnackController.showError(e.message)}}onEnterKey(e){"Enter"===e.key&&this.isAllowedToSubmit()&&this.onSubmitName()}};eb.styles=et,ey([(0,s.Cb)()],eb.prototype,"errorMessage",void 0),ey([(0,s.SB)()],eb.prototype,"name",void 0),ey([(0,s.SB)()],eb.prototype,"error",void 0),ey([(0,s.SB)()],eb.prototype,"loading",void 0),ey([(0,s.SB)()],eb.prototype,"suggestions",void 0),ey([(0,s.SB)()],eb.prototype,"registered",void 0),eb=ey([(0,n.customElement)("w3m-register-account-name-view")],eb);var ev=(0,o.iv)` 767 .continue-button-container { 768 width: 100%; 769 } 770`,e_=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
770);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ex=class extends o.oi{render(){return(0,o.dy)` 771 <wui-flex 772 flexDirection="column" 773 alignItems="center" 774 gap="xxl" 775 .padding=${["0","0","l","0"]} 776 > 777 ${this.onboardingTemplate()} ${this.buttonsTemplate()} 778 <wui-link 779 @click=${()=>{i.j1.openHref(G.UE.URLS.FAQ,"_blank")}} 780 > 781 Learn more 782 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 783 </wui-link> 784 </wui-flex> 785 `}onboardingTemplate(){return(0,o.dy)` <wui-flex 786 flexDirection="column" 787 gap="xxl" 788 alignItems="center" 789 .padding=${["0","xxl","0","xxl"]} 790 > 791 <wui-flex gap="s" alignItems="center" justifyContent="center"> 792 <wui-icon-box 793 size="xl" 794 iconcolor="success-100" 795 backgroundcolor="success-100" 796 icon="checkmark" 797 background="opaque" 798 ></wui-icon-box> 799 </wui-flex> 800 <wui-flex flexDirection="column" alignItems="center" gap="s"> 801 <wui-text align="center" variant="medium-600" color="fg-100"> 802 Account name chosen successfully 803 </wui-text> 804 <wui-text align="center" variant="paragraph-400" color="fg-100"> 805 You can now fund your account and trade crypto 806 </wui-text> 807 </wui-flex> 808 </wui-flex>`}buttonsTemplate(){return(0,o.dy)`<wui-flex 809 .padding=${["0","2l","0","2l"]} 810 gap="s" 811 class="continue-button-container" 812 > 813 <wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)} 814 >Let's Go! 815 </wui-button> 816 </wui-flex>`}redirectToAccount(){i.RouterController.replace("Account")}};ex.styles=ev,ex=e_([(0,n.customElement)("w3m-register-account-name-success-view")],ex);var eE=(0,o.iv)` 817 @keyframes shake { 818 0% { 819 transform: translateX(0); 820 } 821 25% { 822 transform: translateX(3px); 823 } 824 50% { 825 transform: translateX(-3px); 826 } 827 75% { 828 transform: translateX(3px); 829 } 830 100% { 831 transform: translateX(0); 832 } 833 } 834 835 wui-flex:first-child:not(:only-child) { 836 position: relative; 837 } 838 839 wui-loading-hexagon { 840 position: absolute; 841 } 842 843 wui-icon-box { 844 position: absolute; 845 right: 4px; 846 bottom: 0; 847 opacity: 0; 848 transform: scale(0.5); 849 z-index: 1; 850 } 851 852 wui-button { 853 display: none; 854 } 855 856 [data-error='true'] wui-icon-box { 857 opacity: 1; 858 transform: scale(1); 859 } 860 861 [data-error='true'] > wui-flex:first-child { 862 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 863 } 864 865 wui-button[data-retry='true'] { 866 display: block; 867 opacity: 1; 868 } 869`,eC=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ek=class extends o.oi{constructor(){super(),this.network=i.RouterController.state.data?.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw Error("w3m-network-switch-view: No network provided");this.onShowRetry();let e=this.getLabel(),t=this.getSubLabel();return(0,o.dy)` 870 <wui-flex 871 data-error=${this.error} 872 flexDirection="column" 873 alignItems="center" 874 .padding=${["3xl","xl","3xl","xl"]} 875 gap="xl" 876 > 877 <wui-flex justifyContent="center" alignItems="center"> 878 <wui-network-image 879 size="lg" 880 imageSrc=${l(i.fz.getNetworkImage(this.network))} 881 ></wui-network-image> 882 883 ${this.error?null:(0,o.dy)`<wui-loading-hexagon></wui-loading-hexagon>`} 884 885 <wui-icon-box 886 backgroundColor="error-100" 887 background="opaque" 888 iconColor="error-100" 889 icon="close" 890 size="sm" 891 ?border=${!0} 892 borderColor="wui-color-bg-125" 893 ></wui-icon-box> 894 </wui-flex> 895 896 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 897 <wui-text align="center" variant="paragraph-500" color="fg-100">${e}</wui-text> 898 <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text> 899 </wui-flex> 900 901 <wui-button 902 data-retry=${this.showRetry} 903 variant="accent" 904 size="md" 905 .disabled=${!this.error} 906 @click=${this.onSwitchNetwork.bind(this)} 907 > 908 <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon> 909 Try again 910 </wui-button>
910 911 </wui-flex> 912 `}getSubLabel(){let e=i.MO.getConnectedConnector();return i.ConnectorController.getAuthConnector()&&"AUTH"===e?"":this.error?"Switch can be declined if chain is not supported by a wallet or previous request is still active":"Accept connection request in your wallet"}getLabel(){let e=i.MO.getConnectedConnector();return i.ConnectorController.getAuthConnector()&&"AUTH"===e?`Switching to ${this.network?.name??"Unknown"} network...`:this.error?"Switch declined":"Approve in wallet"}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&(await i.NetworkController.switchActiveNetwork(this.network),i.OptionsController.state.isSiweEnabled||i._4.navigateAfterNetworkSwitch())}catch{this.error=!0}}};ek.styles=eE,eC([(0,s.SB)()],ek.prototype,"showRetry",void 0),eC([(0,s.SB)()],ek.prototype,"error",void 0),ek=eC([(0,n.customElement)("w3m-network-switch-view")],ek);var eS=(0,o.iv)` 913 :host > wui-grid { 914 max-height: 360px; 915 overflow: auto; 916 } 917 918 wui-grid::-webkit-scrollbar {
919 display: none; 920 } 921`,eA=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eI=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.caipNetwork=i.NetworkController.state.caipNetwork,this.unsubscribe.push(i.NetworkController.subscribeKey("caipNetwork",e=>this.caipNetwork=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 922 <wui-grid padding="s" gridTemplateColumns="repeat(4, 1fr)" rowGap="l" columnGap="xs"> 923 ${this.networksTemplate()} 924 </wui-grid> 925 926 <wui-separator></wui-separator> 927 928 <wui-flex padding="s" flexDirection="column" gap="m" alignItems="center"> 929 <wui-text variant="small-400" color="fg-300" align="center"> 930 Your connected wallet may not support some of the networks available for this dApp 931 </wui-text> 932 <wui-link @click=${this.onNetworkHelp.bind(this)}> 933 <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon> 934 What is a network 935 </wui-link> 936 </wui-flex> 937 `}onNetworkHelp(){i.Xs.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),i.RouterController.push("WhatIsANetwork")}networksTemplate(){let{approvedCaipNetworkIds:e,requestedCaipNetworks:t,supportsAllNetworks:r}=i.NetworkController.state,n=i.j1.sortRequestedNetworks(e,t);return n?.map(t=>o.dy` 938 <wui-card-select 939 .selected=${this.caipNetwork?.id===t.id} 940 imageSrc=${l(i.fz.getNetworkImage(t))} 941 type="network" 942 name=${t.name??t.id} 943 @click=${()=>this.onSwitchNetwork(t)} 944 .disabled=${!r&&!e?.includes(t.id)} 945 data-testid=${`w3m-network-switch-${t.name??t.id}`} 946 ></wui-card-select> 947 `)}async onSwitchNetwork(e){let{isConnected:t}=i.AccountController.state,{approvedCaipNetworkIds:r,supportsAllNetworks:n,caipNetwork:o}=i.NetworkController.state,{data:s}=i.RouterController.state;t&&o?.id!==e.id?r?.includes(e.id)?(await i.NetworkController.switchActiveNetwork(e),i._4.navigateAfterNetworkSwitch()):n&&i.RouterController.push("SwitchNetwork",{...s,network:e}):t||(i.NetworkController.setCaipNetwork(e),i.RouterController.push("Connect"))}};eI.styles=eS,eA([(0,s.SB)()],eI.prototype,"caipNetwork",void 0),eI=eA([(0,n.customElement)("w3m-networks-view")],eI);var eT=(0,o.iv)` 948 :host > wui-flex { 949 height: 500px; 950 overflow-y: auto; 951 overflow-x: hidden; 952 scrollbar-width: none; 953 padding: var(--wui-spacing-m); 954 box-sizing: border-box; 955 display: flex; 956 align-items: center; 957 justify-content: flex-start; 958 } 959 960 :host > wui-flex::-webkit-scrollbar {
961 display: none; 962 } 963 964 :host > wui-flex > wui-flex { 965 width: 100%; 966 } 967 968 wui-transaction-list-item-loader { 969 width: 100%; 970 } 971`,eR=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eO=7,eP=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=i.ph.state.selectedProvider,this.loading=!1,this.coinbaseTransactions=i.sl.state.coinbaseTransactions,this.tokenImages=i.WM.state.tokenImages,this.unsubscribe.push(i.ph.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e}),i.WM.subscribeKey("tokenImages",e=>this.tokenImages=e),()=>{clearTimeout(this.refetchTimeout)},i.sl.subscribe(e=>{this.coinbaseTransactions={...e.coinbaseTransactions}})),i.sl.clearCursor(),this.fetchTransactions()}render(){return(0,o.dy)` 972 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 973 ${this.loading?this.templateLoading():this.templateTransactionsByYear()} 974 </wui-flex> 975 `}templateTransactions(e){return e?.map(e=>{let t=G.Em.formatDate(e?.metadata?.minedAt),r=e.transfers[0],i=r?.fungible_info;if(!i)return null;let n=i?.icon?.url||this.tokenImages?.[i.symbol||""];return o.dy` 976 <wui-onramp-activity-item 977 label="Bought" 978 .completed=${"ONRAMP_TRANSACTION_STATUS_SUCCESS"===e.metadata.status} 979 .inProgress=${"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status} 980 .failed=${"ONRAMP_TRANSACTION_STATUS_FAILED"===e.metadata.status} 981 purchaseCurrency=${l(i.symbol)} 982 purchaseValue=${r.quantity.numeric} 983 date=${t} 984 icon=${l(n)} 985 symbol=${l(i.symbol)} 986 ></wui-onramp-activity-item> 987 `})}templateTransactionsByYear(){return Object.keys(this.coinbaseTransactions).sort().reverse().map(e=>{let t=parseInt(e,10);return Array(12).fill(null).map((e,t)=>t).reverse().map(e=>{let r=n.TransactionUtil.getTransactionGroupTitle(t,e),i=this.coinbaseTransactions[t]?.[e];return i?(0,o.dy)` 988 <wui-flex flexDirection="column"> 989 <wui-flex 990 alignItems="center" 991 flexDirection="row" 992 .padding=${["xs","s","s","s"]} 993 > 994 <wui-text variant="paragraph-500" color="fg-200">${r}</wui-text> 995 </wui-flex> 996 <wui-flex flexDirection="column" gap="xs"> 997 ${this.templateTransactions(i)} 998 </wui-flex> 999 </wui-flex> 1000 `:null})})}async fetchTransactions(){await this.fetchCoinbaseTransactions()}async fetchCoinbaseTransactions(){let e=i.AccountController.state.address,t=i.OptionsController.state.projectId;if(!e)throw Error("No address found");if(!t)throw Error("No projectId found");this.loading=!0,await i.sl.fetchTransactions(e,"coinbase"),this.loading=!1,this.refetchLoadingTransactions()}refetchLoadingTransactions(){let e=new Date;if(0===(this.coinbaseTransactions[e.getFullYear()]?.[e.getMonth()]||[]).filter(e=>"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length){clearTimeout(this.refetchTimeout);return}this.refetchTimeout=setTimeout(async()=>{let e=i.AccountController.state.address;await i.sl.fetchTransactions(e,"coinbase"),this.refetchLoadingTransactions()},3e3)}templateLoading(){return Array(eO).fill((0,o.dy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e)}};eP.styles=eT,eR([(0,s.SB)()],eP.prototype,"selectedOnRampProvider",void 0),eR([(0,s.SB)()],eP.prototype,"loading",void 0),eR([(0,s.SB)()],eP.prototype,"coinbaseTransactions",void 0),eR([(0,s.SB)()],eP.prototype,"tokenImages",void 0),eP=eR([(0,n.customElement)("w3m-onramp-activity-view")],eP);var eN=(0,o.iv)` 1001 :host > wui-grid { 1002 max-height: 360px; 1003 overflow: auto; 1004 } 1005 1006 wui-grid::-webkit-scrollbar {
1007 display: none; 1008 } 1009`,eM=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eD=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=i.ph.state.paymentCurrency,this.currencies=i.ph.state.paymentCurrencies,this.currencyImages=i.WM.state.currencyImages,this.unsubscribe.push(i.ph.subscribe(e=>{this.selectedCurrency=e.paymentCurrency,this.currencies=e.paymentCurrencies}),i.WM.subscribeKey("currencyImages",e=>this.currencyImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 1010 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 1011 ${this.currenciesTemplate()} 1012 </wui-flex> 1013 <w3m-legal-footer></w3m-legal-footer> 1014 `}currenciesTemplate(){return this.currencies.map(e=>(0,o.dy)` 1015 <wui-list-item 1016 imageSrc=${l(this.currencyImages?.[e.id])} 1017 @click=${()=>this.selectCurrency(e)} 1018 variant="image" 1019 > 1020 <wui-text variant="paragraph-500" color="fg-100">${e.id}</wui-text> 1021 </wui-list-item> 1022 `)}selectCurrency(e){e&&(i.ph.setPaymentCurrency(e),i.IN.close())}};eD.styles=eN,eM([(0,s.SB)()],eD.prototype,"selectedCurrency",void 0),eM([(0,s.SB)()],eD.prototype,"currencies",void 0),eM([(0,s.SB)()],eD.prototype,"currencyImages",void 0),eD=eM([(0,n.customElement)("w3m-onramp-fiat-select-view")],eD);var eL=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ej=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.providers=i.ph.state.providers,this.unsubscribe.push(i.ph.subscribeKey("providers",e=>{this.providers=e}))}firstUpdated(){Promise.all(this.providers.map(async e=>"coinbase"===e.name?await this.getCoinbaseOnRampURL():Promise.resolve(e?.url))).then(e=>{this.providers=this.providers.map((t,r)=>({...t,url:e[r]||""}))})}render(){return(0,o.dy)` 1023 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 1024 ${this.onRampProvidersTemplate()} 1025 </wui-flex> 1026 <w3m-onramp-providers-footer></w3m-onramp-providers-footer> 1027 `}onRampProvidersTemplate(){return this.providers.map(e=>(0,o.dy)` 1028 <wui-onramp-provider-item 1029 label=${e.label} 1030 name=${e.name} 1031 feeRange=${e.feeRange} 1032 @click=${()=>{this.onClickProvider(e)}} 1033 ?disabled=${!e.url} 1034 ></wui-onramp-provider-item> 1035 `)}onClickProvider(e){i.ph.setSelectedProvider(e),i.RouterController.push("BuyInProgress"),i.j1.openHref(e.url,"popupWindow","width=600,height=800,scrollbars=yes")}async getCoinbaseOnRampURL(){let e=i.AccountController.state.address,t=i.NetworkController.state.caipNetwork;if(!e)throw Error("No address found");if(!t?.name)throw Error("No network found");let r=i.bq.WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP[t.name]??i.bq.WC_COINBASE_PAY_SDK_FALLBACK_CHAIN,n=i.ph.state.purchaseCurrency,o=n?[n.symbol]:i.ph.state.purchaseCurrencies.map(e=>e.symbol);return await i.Lr.generateOnRampURL({defaultNetwork:r,destinationWallets:[{address:e,blockchains:i.bq.WC_COINBASE_PAY_SDK_CHAINS,assets:o}],partnerUserId:e,purchaseAmount:i.ph.state.purchaseAmount})}};eL([(0,s.SB)()],ej.prototype,"providers",void 0),ej=eL([(0,n.customElement)("w3m-onramp-providers-view")],ej);var eB=(0,o.iv)` 1036 :host > wui-grid { 1037 max-height: 360px; 1038 overflow: auto; 1039 } 1040 1041 wui-grid::-webkit-scrollbar {
1042 display: none; 1043 } 1044`,e$=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eU=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=i.ph.state.purchaseCurrencies,this.tokens=i.ph.state.purchaseCurrencies,this.tokenImages=i.WM.state.tokenImages,this.unsubscribe.push(i.ph.subscribe(e=>{this.selectedCurrency=e.purchaseCurrencies,this.tokens=e.purchaseCurrencies}),i.WM.subscribeKey("tokenImages",e=>this.tokenImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 1045 <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs"> 1046 ${this.currenciesTemplate()} 1047 </wui-flex> 1048 <w3m-legal-footer></w3m-legal-footer> 1049 `}currenciesTemplate(){return this.tokens.map(e=>(0,o.dy)` 1050 <wui-list-item 1051 imageSrc=${l(this.tokenImages?.[e.symbol])} 1052 @click=${()=>this.selectToken(e)} 1053 variant="image" 1054 > 1055 <wui-flex gap="3xs" alignItems="center"> 1056 <wui-text variant="paragraph-500" color="fg-100">${e.name}</wui-text> 1057 <wui-text variant="small-400" color="fg-200">${e.symbol}</wui-text> 1058 </wui-flex> 1059 </wui-list-item> 1060 `)}selectToken(e){e&&(i.ph.setPurchaseCurrency(e),i.IN.close())}};eU.styles=eB,e$([(0,s.SB)()],eU.prototype,"selectedCurrency",void 0),e$([
1060(0,s.SB)()],eU.prototype,"tokens",void 0),e$([(0,s.SB)()],eU.prototype,"tokenImages",void 0),eU=e$([(0,n.customElement)("w3m-onramp-token-select-view")],eU);var eF=(0,o.iv)` 1061 :host > wui-flex:first-child { 1062 overflow-y: auto; 1063 overflow-x: hidden; 1064 scrollbar-width: none; 1065 } 1066 1067 :host > wui-flex:first-child::-webkit-scrollbar { 1068 display: none; 1069 } 1070 1071 wui-loading-hexagon { 1072 position: absolute; 1073 } 1074 1075 .action-button { 1076 width: 100%; 1077 border-radius: var(--wui-border-radius-xs); 1078 } 1079 1080 .action-button:disabled { 1081 border-color: 1px solid var(--wui-color-gray-glass-005); 1082 } 1083 1084 .swap-inputs-container { 1085 position: relative; 1086 } 1087 1088 .replace-tokens-button-container { 1089 display: flex; 1090 justify-content: center; 1091 align-items: center; 1092 position: absolute; 1093 top: 50%; 1094 left: 50%; 1095 transform: translate(-50%, -50%); 1096 gap: var(--wui-spacing-1xs); 1097 border-radius: var(--wui-border-radius-xs); 1098 background-color: var(--wui-color-modal-bg-base); 1099 padding: var(--wui-spacing-xxs); 1100 } 1101 1102 .replace-tokens-button-container > button { 1103 display: flex; 1104 justify-content: center; 1105 align-items: center; 1106 height: 40px; 1107 width: 40px; 1108 padding: var(--wui-spacing-xs); 1109 border: none; 1110 border-radius: var(--wui-border-radius-xxs); 1111 background: var(--wui-color-gray-glass-002); 1112 transition: background-color var(--wui-duration-md) var(--wui-ease-out-power-1); 1113 will-change: background-color; 1114 z-index: 20; 1115 } 1116 1117 .replace-tokens-button-container > button:hover { 1118 background: var(--wui-color-gray-glass-005); 1119 } 1120 1121 .details-container > wui-flex { 1122 background: var(--wui-color-gray-glass-002); 1123 border-radius: var(--wui-border-radius-xxs); 1124 width: 100%; 1125 } 1126 1127 .details-container > wui-flex > button { 1128 border: none; 1129 background: none; 1130 padding: var(--wui-spacing-s); 1131 border-radius: var(--wui-border-radius-xxs); 1132 transition: background 0.2s linear; 1133 } 1134 1135 .details-container > wui-flex > button:hover { 1136 background: var(--wui-color-gray-glass-002); 1137 } 1138 1139 .details-content-container { 1140 padding: var(--wui-spacing-1xs); 1141 display: flex; 1142 align-items: center; 1143 justify-content: center; 1144 } 1145 1146 .details-content-container > wui-flex { 1147 width: 100%; 1148 } 1149 1150 .details-row { 1151 width: 100%; 1152 padding: var(--wui-spacing-s) var(--wui-spacing-xl); 1153 border-radius: var(--wui-border-radius-xxs); 1154 background: var(--wui-color-gray-glass-002); 1155 } 1156`,ez=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eq=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!1,this.caipNetworkId=i.NetworkController.state.caipNetwork?.id,this.initialized=i.nY.state.initialized,this.loading=i.nY.state.loading,this.loadingPrices=i.nY.state.loadingPrices,this.sourceToken=i.nY.state.sourceToken,this.sourceTokenAmount=i.nY.state.sourceTokenAmount,this.sourceTokenPriceInUSD=i.nY.state.sourceTokenPriceInUSD,this.toToken=i.nY.state.toToken,this.toTokenAmount=i.nY.state.toTokenAmount,this.toTokenPriceInUSD=i.nY.state.toTokenPriceInUSD,this.inputError=i.nY.state.inputError,this.gasPriceInUSD=i.nY.state.gasPriceInUSD,this.transactionLoading=i.nY.state.transactionLoading,this.fetchError=i.nY.state.fetchError,this.onDebouncedGetSwapCalldata=i.j1.debounce(async()=>{await i.nY.swapTokens()},200),i.NetworkController.subscribeKey("caipNetwork",e=>{this.caipNetworkId!==e?.id&&(this.caipNetworkId=e?.id,i.nY.resetState(),i.nY.initializeState())}),this.unsubscribe.push(i.IN.subscribeKey("open",e=>{e||i.nY.resetState()}),i.RouterController.subscribeKey("view",e=>{e.includes("Swap")||i.nY.resetValues()}),i.nY.subscribe(e=>{this.initialized=e.initialized,this.loading=e.loading,this.loadingPrices=e.loadingPrices,this.transactionLoading=e.transactionLoading,this.sourceToken=e.sourceToken,this.sourceTokenAmount=e.sourceTokenAmount,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError,this.gasPriceInUSD=e.gasPriceInUSD,this.fetchError=e.fetchError}))}firstUpdated(){i.nY.initializeState(),this.watchTokensAndValues()}
1156disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,o.dy)` 1157 <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s"> 1158 ${this.initialized?this.templateSwap():this.templateLoading()} 1159 </wui-flex> 1160 `}watchTokensAndValues(){this.interval=setInterval(()=>{i.nY.getNetworkTokenPrice(),i.nY.getMyTokensWithBalance(),i.nY.swapTokens()},1e4)}templateSwap(){return(0,o.dy)` 1161 <wui-flex flexDirection="column" gap="s"> 1162 <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container"> 1163 ${this.templateTokenInput("sourceToken",this.sourceToken)} 1164 ${this.templateTokenInput("toToken",this.toToken)} ${this.templateReplaceTokensButton()} 1165 </wui-flex> 1166 ${this.templateDetails()} ${this.templateActionButton()} 1167 </wui-flex> 1168 `}actionButtonLabel(){return this.fetchError?"Swap":this.sourceToken&&this.toToken?this.sourceTokenAmount?this.initialized?this.inputError?this.inputError:"Review swap":"Swap":"Enter amount":"Select token"}templateReplaceTokensButton(){return(0,o.dy)` 1169 <wui-flex class="replace-tokens-button-container"> 1170 <button @click=${this.onSwitchTokens.bind(this)}> 1171 <wui-icon name="recycleHorizontal" color="fg-250" size="lg"></wui-icon> 1172 </button> 1173 </wui-flex> 1174 `}templateLoading(){return(0,o.dy)` 1175 <wui-flex flexDirection="column" gap="l"> 1176 <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container"> 1177 <w3m-swap-input-skeleton target="sourceToken"></w3m-swap-input-skeleton> 1178 <w3m-swap-input-skeleton target="toToken"></w3m-swap-input-skeleton> 1179 ${this.templateReplaceTokensButton()} 1180 </wui-flex> 1181 ${this.templateActionButton()} 1182 </wui-flex> 1183 `}templateTokenInput(e,t){let r=i.nY.state.myTokensWithBalance?.find(e=>e?.address===t?.address),n="toToken"===e?this.toTokenAmount:this.sourceTokenAmount,s="toToken"===e?this.toTokenPriceInUSD:this.sourceTokenPriceInUSD,a=parseFloat(n)*s;return"toToken"===e&&(a-=this.gasPriceInUSD||0),(0,o.dy)`<w3m-swap-input 1184 .value=${"toToken"===e?this.toTokenAmount:this.sourceTokenAmount} 1185 ?disabled=${this.loading&&"toToken"===e} 1186 .onSetAmount=${this.handleChangeAmount.bind(this)} 1187 target=${e} 1188 .token=${t} 1189 .balance=${r?.quantity?.numeric} 1190 .price=${r?.price} 1191 .marketValue=${a} 1192 .onSetMaxValue=${this.onSetMaxValue.bind(this)} 1193 ></w3m-swap-input>`}onSetMaxValue(e,t){let r="sourceToken"===e?this.sourceToken:this.toToken,n=r?.address===i.bq.NATIVE_TOKEN_ADDRESS,o="0";if(!t){o="0",this.handleChangeAmount(e,o);return}if(!this.gasPriceInUSD){o=t,this.handleChangeAmount(e,o);return}let s=G.C6.bigNumber(this.gasPriceInUSD.toFixed(5)).dividedBy(this.sourceTokenPriceInUSD),a=n?G.C6.bigNumber(t).minus(s):G.C6.bigNumber(t);this.handleChangeAmount(e,a.isGreaterThan(0)?a.toFixed(20):"0")}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,o.dy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}handleChangeAmount(e,t){i.nY.clearError(),"sourceToken"===e?i.nY.setSourceTokenAmount(t):i.nY.setToTokenAmount(t),this.onDebouncedGetSwapCalldata()}templateActionButton(){let e=!this.toToken||!this.sourceToken,t=!this.sourceTokenAmount,r=this.loading||this.loadingPrices||this.transactionLoading,i=r||e||t||this.inputError;return(0,o.dy)` <wui-flex gap="xs"> 1194 <wui-button 1195 class="action-button" 1196 fullWidth 1197 size="lg" 1198 borderRadius="xs" 1199 variant=${e?"neutral":"main"} 1200 .loading=${r} 1201 .disabled=${i} 1202 @click=${this.onSwapPreview} 1203 > 1204 ${this.actionButtonLabel()} 1205 </wui-button> 1206 </wui-flex>`}onSwitchTokens(){i.nY.switchTokens()}onSwapPreview(){if(this.fetchError){i.nY.swapTokens();return}i.RouterController.push("SwapPreview")}};eq.styles=eF,ez([(0,s.SB)()],eq.prototype,"interval",void 0),ez([(0,s.SB)()],eq.prototype,"detailsOpen",void 0),ez([(0,s.SB)()],eq.prototype,"caipNetworkId",void 0),ez([(0,s.SB)()],eq.prototype,"initialized",void 0),ez([(0,s.SB)()],eq.prototype,"loading",void 0),ez([(0,s.SB)()],eq.prototype,"loadingPrices",void 0),ez([(0,s.SB)()],eq.prototype,"sourceToken",void 0),ez([(0,s.SB)()],eq.prototype,"sourceTokenAmount",void 0),ez([(0,s.SB)()],eq.prototype,"sourceTokenPriceInUSD",void 0),ez([(0,s.SB)()],eq.prototype,"toToken",void 0),ez([(0,s.SB)()],eq.prototype,"toTokenAmount",void 0),ez([(0,s.SB)()],eq.prototype,"toTokenPriceInUSD",void 0),ez([(0,s.SB)()],eq.prototype,"inputError",void 0),ez([(0,s.SB)()],eq.prototype,"gasPriceInUSD",void 0),ez([(0,s.SB)()],eq.prototype,"transactionLoading",void 0),ez([(0,s.SB)()],eq.prototype,"fetchError",void 0),eq=ez([(0,n.customElement)("w3m-swap-view")],eq);var eW=(0,o.iv)` 1207 :host > wui-flex:first-child { 1208 overflow-y: auto; 1209 overflow-x: hidden; 1210 scrollbar-width: none; 1211 } 1212 1213 :host > wui-flex:first-child::-webkit-scrollbar {
1214 display: none; 1215 } 1216 1217 .preview-container, 1218 .details-container { 1219 width: 100%; 1220 } 1221 1222 .token-image { 1223 width: 24px; 1224 height: 24px; 1225 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 1226 border-radius: 12px; 1227 } 1228 1229 wui-loading-hexagon { 1230 position: absolute; 1231 } 1232 1233 .token-item { 1234 display: flex; 1235 align-items: center; 1236 justify-content: center; 1237 gap: var(--wui-spacing-xxs); 1238 padding: var(--wui-spacing-xs); 1239 height: 40px; 1240 border: none; 1241 border-radius: 80px; 1242 background: var(--wui-color-gray-glass-002); 1243 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 1244 cursor: pointer; 1245 transition: background 0.2s linear; 1246 } 1247 1248 .token-item:hover { 1249 background: var(--wui-color-gray-glass-005); 1250 } 1251 1252 .preview-token-details-container { 1253 width: 100%; 1254 } 1255 1256 .details-row { 1257 width: 100%; 1258 padding: var(--wui-spacing-s) var(--wui-spacing-xl); 1259 border-radius: var(--wui-border-radius-xxs); 1260 background: var(--wui-color-gray-glass-002); 1261 } 1262 1263 .action-buttons-container { 1264 width: 100%; 1265 gap: var(--wui-spacing-xs); 1266 } 1267 1268 .action-buttons-container > button { 1269 display: flex; 1270 align-items: center; 1271 justify-content: center; 1272 background: transparent; 1273 height: 48px; 1274 border-radius: var(--wui-border-radius-xs); 1275 border: none; 1276 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 1277 } 1278 1279 .action-buttons-container > button:disabled { 1280 opacity: 0.8; 1281 cursor: not-allowed; 1282 } 1283 1284 .cancel-button:hover, 1285 .action-button:hover { 1286 cursor: pointer; 1287 } 1288 1289 .action-buttons-container > wui-button.cancel-button { 1290 flex: 2; 1291 } 1292 1293 .action-buttons-container > wui-button.action-button { 1294 flex: 4; 1295 } 1296 1297 .action-buttons-container > button.action-button > wui-text { 1298 color: white; 1299 } 1300 1301 .details-container > wui-flex { 1302 background: var(--wui-color-gray-glass-002); 1303 border-radius: var(--wui-border-radius-xxs); 1304 width: 100%; 1305 } 1306 1307 .details-container > wui-flex > button { 1308 border: none; 1309 background: none; 1310 padding: var(--wui-spacing-s); 1311 border-radius: var(--wui-border-radius-xxs); 1312 transition: background 0.2s linear; 1313 } 1314 1315 .details-container > wui-flex > button:hover { 1316 background: var(--wui-color-gray-glass-002); 1317 } 1318 1319 .details-content-container { 1320 padding: var(--wui-spacing-1xs); 1321 display: flex; 1322 align-items: center; 1323 justify-content: center; 1324 } 1325 1326 .details-content-container > wui-flex { 1327 width: 100%; 1328 } 1329 1330 .details-row { 1331 width: 100%; 1332 padding: var(--wui-spacing-s) var(--wui-spacing-xl); 1333 border-radius: var(--wui-border-radius-xxs); 1334 background: var(--wui-color-gray-glass-002); 1335 } 1336`,eH=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eV=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!0,this.approvalTransaction=i.nY.state.approvalTransaction,this.swapTransaction=i.nY.state.swapTransaction,this.sourceToken=i.nY.state.sourceToken,this.sourceTokenAmount=i.nY.state.sourceTokenAmount??"",this.sourceTokenPriceInUSD=i.nY.state.sourceTokenPriceInUSD,this.toToken=i.nY.state.toToken,this.toTokenAmount=i.nY.state.toTokenAmount??"",this.toTokenPriceInUSD=i.nY.state.toTokenPriceInUSD,this.caipNetwork=i.NetworkController.state.caipNetwork,this.transactionLoading=i.nY.state.transactionLoading,this.balanceSymbol=i.AccountController.state.balanceSymbol,this.gasPriceInUSD=i.nY.state.gasPriceInUSD,this.inputError=i.nY.state.inputError,this.loading=i.nY.state.loading,this.unsubscribe.push(i.AccountController.subscribeKey("balanceSymbol",e=>{this.balanceSymbol!==e&&i.RouterController.goBack()}),i.NetworkController.subscribeKey("caipNetwork",e=>{this.caipNetwork!==e&&(this.caipNetwork=e)}),i.nY.subscribe(e=>{this.approvalTransaction=e.approvalTransaction,this.swapTransaction=e.swapTransaction,this.sourceToken=e.sourceToken,this.gasPriceInUSD=e.gasPriceInUSD,this.toToken=e.toToken,this.transactionLoading=e.transactionLoading,this.gasPriceInUSD=e.gasPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.sourceTokenAmount=e.sourceTokenAmount??"",this.toTokenAmount=e.toTokenAmount??"",this.inputError=e.inputError,this.loading=e.loading}))}firstUpdated(){i.nY.getTransaction(),this.refreshTransaction()}
1336disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,o.dy)` 1337 <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s"> 1338 ${this.templateSwap()} 1339 </wui-flex> 1340 `}refreshTransaction(){this.interval=setInterval(()=>{i.nY.getTransaction()},1e4)}templateSwap(){let e=`${n.UiHelperUtil.formatNumberToLocalString(parseFloat(this.sourceTokenAmount))} ${this.sourceToken?.symbol}`,t=`${n.UiHelperUtil.formatNumberToLocalString(parseFloat(this.toTokenAmount))} ${this.toToken?.symbol}`,r=parseFloat(this.sourceTokenAmount)*this.sourceTokenPriceInUSD,i=parseFloat(this.toTokenAmount)*this.toTokenPriceInUSD-(this.gasPriceInUSD||0),s=n.UiHelperUtil.formatNumberToLocalString(r),a=n.UiHelperUtil.formatNumberToLocalString(i);return(0,o.dy)` 1341 <wui-flex flexDirection="column" alignItems="center" gap="l"> 1342 <wui-flex class="preview-container" flexDirection="column" alignItems="flex-start" gap="l"> 1343 <wui-flex 1344 class="preview-token-details-container" 1345 alignItems="center" 1346 justifyContent="space-between" 1347 gap="l" 1348 > 1349 <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs"> 1350 <wui-text variant="small-400" color="fg-150">Send</wui-text> 1351 <wui-text variant="paragraph-400" color="fg-100">$${s}</wui-text> 1352 </wui-flex> 1353 <wui-token-button 1354 flexDirection="row-reverse" 1355 text=${e} 1356 imageSrc=${this.sourceToken?.logoUri} 1357 > 1358 </wui-token-button> 1359 </wui-flex> 1360 <wui-icon name="recycleHorizontal" color="fg-200" size="md"></wui-icon> 1361 <wui-flex 1362 class="preview-token-details-container" 1363 alignItems="center" 1364 justifyContent="space-between" 1365 gap="l" 1366 > 1367 <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs"> 1368 <wui-text variant="small-400" color="fg-150">Receive</wui-text> 1369 <wui-text variant="paragraph-400" color="fg-100">$${a}</wui-text> 1370 </wui-flex> 1371 <wui-token-button 1372 flexDirection="row-reverse" 1373 text=${t} 1374 imageSrc=${this.toToken?.logoUri} 1375 > 1376 </wui-token-button> 1377 </wui-flex> 1378 </wui-flex> 1379 1380 ${this.templateDetails()} 1381 1382 <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="xs"> 1383 <wui-icon size="sm" color="fg-200" name="infoCircle"></wui-icon> 1384 <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text> 1385 </wui-flex> 1386 1387 <wui-flex 1388 class="action-buttons-container" 1389 flexDirection="row" 1390 alignItems="center" 1391 justifyContent="space-between" 1392 gap="xs" 1393 > 1394 <wui-button 1395 class="cancel-button" 1396 fullWidth 1397 size="lg" 1398 borderRadius="xs" 1399 variant="neutral" 1400 @click=${this.onCancelTransaction.bind(this)} 1401 > 1402 <wui-text variant="paragraph-600" color="fg-200">Cancel</wui-text> 1403 </wui-button> 1404 <wui-button 1405 class="action-button" 1406 fullWidth 1407 size="lg" 1408 borderRadius="xs" 1409 variant="main" 1410 ?loading=${this.loading} 1411 ?disabled=${this.transactionLoading} 1412 @click=${this.onSendTransaction.bind(this)} 1413 > 1414 ${this.transactionLoading?(0,o.dy)`<wui-loading-spinner color="inverse-100"></wui-loading-spinner>`:(0,o.dy)`<wui-text variant="paragraph-600" color="inverse-100"> 1415 ${this.actionButtonLabel()} 1416 </wui-text>`} 1417 </wui-button> 1418 </wui-flex> 1419 </wui-flex> 1420 `}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,o.dy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}actionButtonLabel(){return this.approvalTransaction?"Approve":"Swap"}onCancelTransaction(){i.RouterController.goBack()}onSendTransaction(){this.approvalTransaction?i.nY.sendTransactionForApproval(this.approvalTransaction):i.nY.sendTransactionForSwap(this.swapTransaction)}};eV.styles=eW,eH([(0,s.SB)()],eV.prototype,"interval",void 0),eH([(0,s.SB)()],eV.prototype,"detailsOpen",void 0),eH([(0,s.SB)()],eV.prototype,"approvalTransaction",void 0),eH([(0,s.SB)()],eV.prototype,"swapTransaction",void 0),eH([(0,s.SB)()],eV.prototype,"sourceToken",void 0),eH([(0,s.SB)()],eV.prototype,"sourceTokenAmount",void 0),eH([(0,s.SB)()],eV.prototype,"sourceTokenPriceInUSD",void 0),eH([(0,s.SB)()],eV.prototype,"toToken",void 0),eH([(0,s.SB)()],eV.prototype,"toTokenAmount",void 0),eH([(0,s.SB)()],eV.prototype,"toTokenPriceInUSD",void 0),eH([(0,s.SB)()],eV.prototype,"caipNetwork",void 0),eH([(0,s.SB)()],eV.prototype,"transactionLoading",void 0),eH([(0,s.SB)()],eV.prototype,"balanceSymbol",void 0),eH([(0,s.SB)()],eV.prototype,"gasPriceInUSD",void 0),eH([(0,s.SB)()],eV.prototype,"inputError",void 0),eH([(0,s.SB)()],eV.prototype,"loading",void 0),eV=eH([(0,n.customElement)("w3m-swap-preview-view")],eV);var eZ=(0,o.iv)` 1421 :host { 1422 --tokens-scroll--top-opacity: 0; 1423 --tokens-scroll--bottom-opacity: 1; 1424 --suggested-tokens-scroll--left-opacity: 0; 1425 --suggested-tokens-scroll--right-opacity: 1; 1426 } 1427 1428 :host > wui-flex:first-child { 1429 overflow-y: hidden; 1430 overflow-x: hidden; 1431 scrollbar-width: none; 1432 scrollbar-height: none; 1433 } 1434 1435 :host > wui-flex:first-child::-webkit-scrollbar {
1436 display: none; 1437 } 1438 1439 wui-loading-hexagon { 1440 position: absolute; 1441 } 1442 1443 .suggested-tokens-container { 1444 overflow-x: auto; 1445 mask-image: linear-gradient( 1446 to right, 1447 rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 0px, 1448 rgba(200, 200, 200, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 1px, 1449 black 50px, 1450 black 90px, 1451 black calc(100% - 90px), 1452 black calc(100% - 50px), 1453 rgba(155, 155, 155, calc(1 - var(--suggested-tokens-scroll--right-opacity))) calc(100% - 1px), 1454 rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--right-opacity))) 100% 1455 ); 1456 } 1457 1458 .suggested-tokens-container::-webkit-scrollbar { 1459 display: none; 1460 } 1461 1462 .tokens-container { 1463 border-top: 1px solid var(--wui-color-gray-glass-005); 1464 height: 100%; 1465 max-height: 390px; 1466 } 1467 1468 .tokens { 1469 width: 100%; 1470 overflow-y: auto; 1471 mask-image: linear-gradient( 1472 to bottom, 1473 rgba(0, 0, 0, calc(1 - var(--tokens-scroll--top-opacity))) 0px, 1474 rgba(200, 200, 200, calc(1 - var(--tokens-scroll--top-opacity))) 1px, 1475 black 50px, 1476 black 90px, 1477 black calc(100% - 90px), 1478 black calc(100% - 50px), 1479 rgba(155, 155, 155, calc(1 - var(--tokens-scroll--bottom-opacity))) calc(100% - 1px), 1480 rgba(0, 0, 0, calc(1 - var(--tokens-scroll--bottom-opacity))) 100% 1481 ); 1482 } 1483 1484 .network-search-input, 1485 .select-network-button { 1486 height: 40px; 1487 } 1488 1489 .select-network-button { 1490 border: none; 1491 display: flex; 1492 flex-direction: row; 1493 align-items: center; 1494 justify-content: center; 1495 gap: var(--wui-spacing-xs); 1496 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 1497 background-color: transparent; 1498 border-radius: var(--wui-border-radius-xxs); 1499 padding: var(--wui-spacing-xs); 1500 align-items: center; 1501 transition: background-color 0.2s linear; 1502 } 1503 1504 .select-network-button:hover { 1505 background-color: var(--wui-color-gray-glass-002); 1506 } 1507 1508 .select-network-button > wui-image { 1509 width: 26px; 1510 height: 26px; 1511 border-radius: var(--wui-border-radius-xs); 1512 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 1513 } 1514`,eK=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eG=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.targetToken=i.RouterController.state.data?.target,this.sourceToken=i.nY.state.sourceToken,this.sourceTokenAmount=i.nY.state.sourceTokenAmount,this.toToken=i.nY.state.toToken,this.myTokensWithBalance=i.nY.state.myTokensWithBalance,this.popularTokens=i.nY.state.popularTokens,this.searchValue="",this.unsubscribe.push(i.nY.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.myTokensWithBalance=e.myTokensWithBalance}))}updated(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e?.addEventListener("scroll",this.handleSuggestedTokensScroll.bind(this));let t=this.renderRoot?.querySelector(".tokens");t?.addEventListener("scroll",this.handleTokenListScroll.bind(this))}disconnectedCallback(){super.disconnectedCallback();let e=this.renderRoot?.querySelector(".suggested-tokens-container"),t=this.renderRoot?.querySelector(".tokens");e?.removeEventListener("scroll",this.handleSuggestedTokensScroll.bind(this)),t?.removeEventListener("scroll",this.handleTokenListScroll.bind(this)),clearInterval(this.interval)}render(){return(0,o.dy)` 1515 <wui-flex flexDirection="column" gap="s"> 1516 ${this.templateSearchInput()} ${this.templateSuggestedTokens()} ${this.templateTokens()} 1517 </wui-flex> 1518 `}onSelectToken(e){"sourceToken"===this.targetToken?i.nY.setSourceToken(e):(i.nY.setToToken(e),this.sourceToken&&this.sourceTokenAmount&&i.nY.swapTokens()),i.RouterController.goBack()}templateSearchInput(){return(0,o.dy)` 1519 <wui-flex .padding=${["0","s","0","s"]} gap="xs"> 1520 <wui-input-text 1521 class="network-search-input" 1522 size="sm" 1523 placeholder="Search token" 1524 icon="search" 1525 .value=${this.searchValue} 1526 @inputChange=${this.onSearchInputChange.bind(this)} 1527 ></wui-input-text> 1528 </wui-flex> 1529 `}templateTokens(){let e=this.myTokensWithBalance?Object.values(this.myTokensWithBalance):[],t=this.popularTokens?this.popularTokens:[],r=this.filterTokensWithText(e,this.searchValue),i=this.filterTokensWithText(t,this.searchValue);return(0,o.dy)` 1530 <wui-flex class="tokens-container"> 1531 <wui-flex class="tokens" .padding=${["0","s","s","s"]} flexDirection="column"> 1532 ${r?.length>0?(0,o.dy)` 1533 <wui-flex justifyContent="flex-start" padding="s"> 1534 <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text> 1535 </wui-flex> 1536 ${r.map(e=>{let t=e.symbol===this.sourceToken?.symbol||e.symbol===this.toToken?.symbol;return(0,o.dy)` 1537 <wui-token-list-item 1538 name=${e.name} 1539 ?disabled=${t} 1540 symbol=${e.symbol} 1541 price=${e?.price} 1542 amount=${e?.quantity?.numeric} 1543 imageSrc=${e.logoUri} 1544 @click=${()=>{t||this.onSelectToken(e)}} 1545 > 1546 </wui-token-list-item> 1547 `})} 1548 `:null} 1549 1550 <wui-flex justifyContent="flex-start" padding="s"> 1551 <wui-text variant="paragraph-500" color="fg-200">Popular tokens</wui-text> 1552 </wui-flex> 1553 ${i?.length>0?i.map(e=>(0,o.dy)` 1554 <wui-token-list-item 1555 name=${e.name} 1556 symbol=${e.symbol} 1557 imageSrc=${e.logoUri} 1558 @click=${()=>this.onSelectToken(e)} 1559 > 1560 </wui-token-list-item> 1561 `):null} 1562 </wui-flex> 1563 </wui-flex> 1564 `}templateSuggestedTokens(){let e=i.nY.state.suggestedTokens?i.nY.state.suggestedTokens.slice(0,8):null;return e?(0,o.dy)` 1565 <wui-flex class="suggested-tokens-container" .padding=${["0","s","0","s"]} gap="xs"> 1566 ${e.map(e=>(0,o.dy)` 1567 <wui-token-button 1568 text=${e.symbol} 1569 imageSrc=${e.logoUri} 1570 @click=${()=>this.onSelectToken(e)} 1571 > 1572 </wui-token-button>
1572 1573 `)} 1574 </wui-flex> 1575 `:null}onSearchInputChange(e){this.searchValue=e.detail}handleSuggestedTokensScroll(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e&&(e.style.setProperty("--suggested-tokens-scroll--left-opacity",n.MathUtil.interpolate([0,100],[0,1],e.scrollLeft).toString()),e.style.setProperty("--suggested-tokens-scroll--right-opacity",n.MathUtil.interpolate([0,100],[0,1],e.scrollWidth-e.scrollLeft-e.offsetWidth).toString()))}handleTokenListScroll(){let e=this.renderRoot?.querySelector(".tokens");e&&(e.style.setProperty("--tokens-scroll--top-opacity",n.MathUtil.interpolate([0,100],[0,1],e.scrollTop).toString()),e.style.setProperty("--tokens-scroll--bottom-opacity",n.MathUtil.interpolate([0,100],[0,1],e.scrollHeight-e.scrollTop-e.offsetHeight).toString()))}filterTokensWithText(e,t){return e.filter(e=>`${e.symbol} ${e.name} ${e.address}`.toLowerCase().includes(t.toLowerCase()))}};eG.styles=eZ,eK([(0,s.SB)()],eG.prototype,"interval",void 0),eK([(0,s.SB)()],eG.prototype,"targetToken",void 0),eK([(0,s.SB)()],eG.prototype,"sourceToken",void 0),eK([(0,s.SB)()],eG.prototype,"sourceTokenAmount",void 0),eK([(0,s.SB)()],eG.prototype,"toToken",void 0),eK([(0,s.SB)()],eG.prototype,"myTokensWithBalance",void 0),eK([(0,s.SB)()],eG.prototype,"popularTokens",void 0),eK([(0,s.SB)()],eG.prototype,"searchValue",void 0),eG=eK([(0,n.customElement)("w3m-swap-select-token-view")],eG);var eY=(0,o.iv)` 1576 :host > wui-flex:first-child { 1577 height: 500px; 1578 overflow-y: auto; 1579 overflow-x: hidden; 1580 scrollbar-width: none; 1581 } 1582 1583 :host > wui-flex:first-child::-webkit-scrollbar {
1584 display: none; 1585 } 1586`,eJ=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eQ=class extends o.oi{render(){return(0,o.dy)` 1587 <wui-flex flexDirection="column" .padding=${["0","m","m","m"]} gap="s"> 1588 <w3m-activity-list page="activity"></w3m-activity-list> 1589 </wui-flex> 1590 `}};eQ.styles=eY,eQ=eJ([(0,n.customElement)("w3m-transactions-view")],eQ);let eX=[{images:["network","layers","system"],title:"The systemâs nuts and bolts",text:"A network is what brings the blockchain to life, as this technical infrastructure allows apps to access the ledger and smart contract services."},{images:["noun","defiAlt","dao"],title:"Designed for different uses",text:"Each network is designed differently, and may therefore suit certain apps and experiences."}],e0=class extends o.oi{render(){return(0,o.dy)` 1591 <wui-flex 1592 flexDirection="column" 1593 .padding=${["xxl","xl","xl","xl"]} 1594 alignItems="center" 1595 gap="xl" 1596 > 1597 <w3m-help-widget .data=${eX}></w3m-help-widget> 1598 <wui-button 1599 variant="main" 1600 size="md" 1601 @click=${()=>{i.j1.openHref("https://ethereum.org/en/developers/docs/networks/","_blank")}} 1602 > 1603 Learn more 1604 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 1605 </wui-button> 1606 </wui-flex> 1607 `}};e0=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-what-is-a-network-view")],e0);let e1=[{images:["login","profile","lock"],title:"One login for all of web3",text:"Log in to any app by connecting your wallet. Say goodbye to countless passwords!"},{images:["defi","nft","eth"],title:"A home for your digital assets",text:"A wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs."},{images:["browser","noun","dao"],title:"Your gateway to a new web",text:"With your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more."}],e2=class extends o.oi{render(){return(0,o.dy)` 1608 <wui-flex 1609 flexDirection="column" 1610 .padding=${["xxl","xl","xl","xl"]} 1611 alignItems="center" 1612 gap="xl" 1613 > 1614 <w3m-help-widget .data=${e1}></w3m-help-widget> 1615 <wui-button variant="main" size="md" @click=${this.onGetWallet.bind(this)}> 1616 <wui-icon color="inherit" slot="iconLeft" name="wallet"></wui-icon> 1617 Get a wallet 1618 </wui-button> 1619 </wui-flex> 1620 `}onGetWallet(){i.Xs.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),i.RouterController.push("GetWallet")}};e2=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-what-is-a-wallet-view")],e2);let e3=class extends o.oi{render(){return(0,o.dy)` 1621 <wui-flex 1622 flexDirection="column" 1623 .padding=${["xxl","3xl","xl","3xl"]} 1624 alignItems="center" 1625 gap="xl" 1626 > 1627 <wui-visual name="onrampCard"></wui-visual> 1628 <wui-flex flexDirection="column" gap="xs" alignItems="center"> 1629 <wui-text align="center" variant="paragraph-500" color="fg-100"> 1630 Quickly and easily buy digital assets! 1631 </wui-text> 1632 <wui-text align="center" variant="small-400" color="fg-200"> 1633 Simply select your preferred onramp provider and add digital assets to your account 1634 using your credit card or bank transfer 1635 </wui-text> 1636 </wui-flex> 1637 <wui-button @click=${i.RouterController.goBack}> 1638 <wui-icon size="sm" color="inherit" name="add" slot="iconLeft"></wui-icon> 1639 Buy 1640 </wui-button>
1640 1641 </wui-flex> 1642 `}};e3=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-what-is-a-buy-view")],e3);var e5=(0,o.iv)` 1643 wui-loading-spinner { 1644 margin: 9px auto; 1645 } 1646`,e4=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let e6=6,e8=class extends o.oi{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){super(),this.loading=!1,this.timeoutTimeLeft=I.$D.getTimeToNextEmailLogin(),this.error="",this.otp="",this.email=i.RouterController.state.data?.email,this.authConnector=i.ConnectorController.getAuthConnector()}render(){if(!this.email)throw Error("w3m-email-otp-widget: No email provided");let e=!!this.timeoutTimeLeft,t=this.getFooterLabels(e);return(0,o.dy)` 1647 <wui-flex 1648 flexDirection="column" 1649 alignItems="center" 1650 .padding=${["l","0","l","0"]} 1651 gap="l" 1652 > 1653 <wui-flex flexDirection="column" alignItems="center"> 1654 <wui-text variant="paragraph-400" color="fg-100">Enter the code we sent to</wui-text> 1655 <wui-text variant="paragraph-500" color="fg-100">${this.email}</wui-text> 1656 </wui-flex> 1657 1658 <wui-text variant="small-400" color="fg-200">The code expires in 20 minutes</wui-text> 1659 1660 ${this.loading?(0,o.dy)`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:(0,o.dy)` <wui-flex flexDirection="column" alignItems="center" gap="xs"> 1661 <wui-otp 1662 dissabled 1663 length="6" 1664 @inputChange=${this.onOtpInputChange.bind(this)} 1665 .otp=${this.otp} 1666 ></wui-otp> 1667 ${this.error?(0,o.dy)` 1668 <wui-text variant="small-400" align="center" color="error-100"> 1669 ${this.error}. Try Again 1670 </wui-text> 1671 `:null} 1672 </wui-flex>`} 1673 1674 <wui-flex alignItems="center" gap="xs"> 1675 <wui-text variant="small-400" color="fg-200">${t.title}</wui-text> 1676 <wui-link @click=${this.onResendCode.bind(this)} .disabled=${e}> 1677 ${t.action} 1678 </wui-link> 1679 </wui-flex> 1680 </wui-flex> 1681 `}startOTPTimeout(){this.timeoutTimeLeft=I.$D.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=I.$D.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(e){try{!this.loading&&(this.otp=e.detail,this.authConnector&&this.otp.length===e6&&(this.loading=!0,await this.onOtpSubmit?.(this.otp)))}catch(e){this.error=i.j1.parseError(e),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!i.ConnectorController.getAuthConnector()||!this.email)throw Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),i.SnackController.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(e){i.SnackController.showError(e)}finally{this.loading=!1}}getFooterLabels(e){return this.onStartOver?{title:"Something wrong?",action:`Try again ${e?`in ${this.timeoutTimeLeft}s`:""}`}:{title:"Didn't receive it?",action:`Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"}`}}};e8.styles=e5,e4([(0,s.SB)()],e8.prototype,"loading",void 0),e4([(0,s.SB)()],e8.prototype,"timeoutTimeLeft",void 0),e4([(0,s.SB)()],e8.prototype,"error",void 0),e8=e4([(0,n.customElement)("w3m-email-otp-widget")],e8);var e7=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
1681);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let e9=class extends e8{constructor(){super(),this.unsubscribe=[],this.smartAccountDeployed=i.AccountController.state.smartAccountDeployed,this.onOtpSubmit=async e=>{try{if(this.authConnector){let t=i.NetworkController.checkIfSmartAccountEnabled();await this.authConnector.provider.connectOtp({otp:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),await i.ConnectionController.connectExternal(this.authConnector),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email",name:this.authConnector.name||"Unknown"}}),t&&!this.smartAccountDeployed?i.RouterController.push("UpgradeToSmartAccount"):i.IN.close()}}catch(e){throw i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))},this.unsubscribe.push(i.AccountController.subscribeKey("smartAccountDeployed",e=>{this.smartAccountDeployed=e}))}};e7([(0,s.SB)()],e9.prototype,"smartAccountDeployed",void 0),e9=e7([(0,n.customElement)("w3m-email-verify-otp-view")],e9);var te=(0,o.iv)` 1682 wui-icon-box { 1683 height: var(--wui-icon-box-size-xl); 1684 width: var(--wui-icon-box-size-xl); 1685 } 1686`,tt=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tr=class extends o.oi{constructor(){super(),this.email=i.RouterController.state.data?.email,this.authConnector=i.ConnectorController.getAuthConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw Error("w3m-email-verify-device-view: No email provided");if(!this.authConnector)throw Error("w3m-email-verify-device-view: No auth connector provided");return(0,o.dy)` 1687 <wui-flex 1688 flexDirection="column" 1689 alignItems="center" 1690 .padding=${["xxl","s","xxl","s"]} 1691 gap="l" 1692 > 1693 <wui-icon-box 1694 size="xl" 1695 iconcolor="accent-100" 1696 backgroundcolor="accent-100" 1697 icon="verify" 1698 background="opaque" 1699 ></wui-icon-box> 1700 1701 <wui-flex flexDirection="column" alignItems="center" gap="s"> 1702 <wui-flex flexDirection="column" alignItems="center"> 1703 <wui-text variant="paragraph-400" color="fg-100"> 1704 Approve the login link we sent to 1705 </wui-text> 1706 <wui-text variant="paragraph-400" color="fg-100"><b>${this.email}</b></wui-text> 1707 </wui-flex> 1708 1709 <wui-text variant="small-400" color="fg-200" align="center"> 1710 The code expires in 20 minutes 1711 </wui-text> 1712 1713 <wui-flex alignItems="center" id="w3m-resend-section" gap="xs"> 1714 <wui-text variant="small-400" color="fg-100" align="center"> 1715 Didn't receive it? 1716 </wui-text> 1717 <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}> 1718 Resend email 1719 </wui-link> 1720 </wui-flex> 1721 </wui-flex> 1722 </wui-flex> 1723 `}async listenForDeviceApproval(){if(this.authConnector)try{await this.authConnector.provider.connectDevice(),i.Xs.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),i.RouterController.replace("EmailVerifyOtp",{email:this.email})}catch(e){i.RouterController.goBack()}}async onResendCode(){try{if(!this.loading){if(!this.authConnector||!this.email)throw Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.authConnector.provider.connectEmail({email:this.email}),this.listenForDeviceApproval(),i.SnackController.showSuccess("Code email resent")}}catch(e){i.SnackController.showError(e)}finally{this.loading=!1}}};tr.styles=te,tt([(0,s.SB)()],tr.prototype,"loading",void 0),tr=tt([(0,n.customElement)("w3m-email-verify-device-view")],tr);var ti=(0,o.iv)` 1724 div { 1725 width: 100%; 1726 height: 400px; 1727 } 1728 1729 [data-ready='false'] { 1730 transform: scale(1.05); 1731 } 1732 1733 @media (max-width: 430px) { 1734 [data-ready='false'] { 1735 transform: translateY(-50px); 1736 } 1737 } 1738`,tn=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
1738);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let to=400,ts=360,ta=64,tl=class extends o.oi{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(i.IN.subscribeKey("open",e=>{e||(this.onHideIframe(),i.RouterController.popTransactionStack())}))}disconnectedCallback(){this.onHideIframe(),this.unsubscribe.forEach(e=>e()),this.bodyObserver?.unobserve(window.document.body)}async firstUpdated(){await this.syncTheme(),this.iframe.style.display="block",this.bodyObserver=new ResizeObserver(e=>{let t=e?.[0]?.contentBoxSize,r=t?.[0]?.inlineSize;this.iframe.style.height=`${to}px`,r&&r<=430?(this.iframe.style.width="100%",this.iframe.style.left="0px",this.iframe.style.bottom="0px",this.iframe.style.top="unset"):(this.iframe.style.width=`${ts}px`,this.iframe.style.left=`calc(50% - ${ts/2}px)`,this.iframe.style.top=`calc(50% - ${to/2}px + ${ta/2}px)`,this.iframe.style.bottom="unset"),this.ready=!0}),this.bodyObserver.observe(window.document.body)}render(){return this.ready&&this.onShowIframe(),(0,o.dy)`<div data-ready=${this.ready}></div>`}onShowIframe(){let e=window.innerWidth<=430;this.iframe.animate([{opacity:0,transform:e?"translateY(50px)":"scale(.95)"},{opacity:1,transform:e?"translateY(0)":"scale(1)"}],{duration:200,easing:"ease",fill:"forwards"})}async onHideIframe(){this.iframe.style.display="none",await this.iframe.animate([{opacity:1},{opacity:0}],{duration:200,easing:"ease",fill:"forwards"}).finished}async syncTheme(){let e=i.ConnectorController.getAuthConnector();if(e){let t=i.ThemeController.getSnapshot().themeMode,r=i.ThemeController.getSnapshot().themeVariables;await e.provider.syncTheme({themeVariables:r,w3mThemeVariables:(0,G.tU)(r,t)})}}};tl.styles=ti,tn([(0,s.SB)()],tl.prototype,"ready",void 0),tl=tn([(0,n.customElement)("w3m-approve-transaction-view")],tl);let tc=class extends o.oi{render(){return(0,o.dy)` 1739 <wui-flex flexDirection="column" alignItems="center" gap="xl" padding="xl"> 1740 <wui-text variant="paragraph-400" color="fg-100">Follow the instructions on</wui-text> 1741 <wui-chip 1742 icon="externalLink" 1743 variant="fill" 1744 href=${i.bq.SECURE_SITE_DASHBOARD} 1745 imageSrc=${i.bq.SECURE_SITE_FAVICON} 1746 data-testid="w3m-secure-website-button" 1747 > 1748 </wui-chip> 1749 <wui-text variant="small-400" color="fg-200"> 1750 You will have to reconnect for security reasons 1751 </wui-text> 1752 </wui-flex> 1753 `}};tc=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-upgrade-wallet-view")],tc);var tu=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let td=class extends o.oi{constructor(){super(...arguments),this.authConnector=i.ConnectorController.getAuthConnector(),this.loading=!1,this.setPreferSmartAccount=async()=>{if(this.authConnector)try{this.loading=!0,i.IN.setLoading(!0),await this.authConnector.provider.setPreferredAccount(I.y_.ACCOUNT_TYPES.SMART_ACCOUNT),await i.ConnectionController.reconnectExternal(this.authConnector),i.IN.setLoading(!1),this.loading=!1,i._4.navigateAfterPreferredAccountTypeSelect()}catch(e){i.SnackController.showError("Error upgrading to smart account")}}}render(){return(0,o.dy)` 1754 <wui-flex 1755 flexDirection="column" 1756 alignItems="center" 1757 gap="xxl" 1758 .padding=${["0","0","l","0"]} 1759 > 1760 ${this.onboardingTemplate()} ${this.buttonsTemplate()} 1761 <wui-link 1762 @click=${()=>{i.j1.openHref(G.UE.URLS.FAQ,"_blank")}} 1763 > 1764 Learn more 1765 <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon> 1766 </wui-link> 1767 </wui-flex> 1768 `}onboardingTemplate(){return(0,o.dy)` <wui-flex 1769 flexDirection="column" 1770 gap="xxl" 1771 alignItems="center" 1772 .padding=${["0","xxl","0","xxl"]} 1773 > 1774 <wui-flex gap="s" alignItems="center" justifyContent="center"> 1775 <wui-visual name="google"></wui-visual> 1776 <wui-visual name="pencil"></wui-visual> 1777 <wui-visual name="lightbulb"></wui-visual> 1778 </wui-flex> 1779 <wui-flex flexDirection="column" alignItems="center" gap="s"> 1780 <wui-text align="center" variant="medium-600" color="fg-100"> 1781 Discover Smart Accounts 1782 </wui-text> 1783 <wui-text align="center" variant="paragraph-400" color="fg-100"> 1784 Access advanced features such as username, social login, improved security and a smoother 1785 user experience! 1786 </wui-text> 1787 </wui-flex> 1788 </wui-flex>`}buttonsTemplate(){return(0,o.dy)`<wui-flex .padding=${["0","2l","0","2l"]} gap="s"> 1789 <wui-button 1790 variant="accent" 1791 @click=${this.redirectToAccount.bind(this)} 1792 size="lg" 1793 borderRadius="xs" 1794 > 1795 Do it later 1796 </wui-button>
1796 1797 <wui-button 1798 .loading=${this.loading} 1799 size="lg" 1800 borderRadius="xs" 1801 @click=${this.setPreferSmartAccount.bind(this)} 1802 >Continue 1803 </wui-button> 1804 </wui-flex>`}redirectToAccount(){i.RouterController.push("Account")}};tu([(0,s.SB)()],td.prototype,"authConnector",void 0),tu([(0,s.SB)()],td.prototype,"loading",void 0),td=tu([(0,n.customElement)("w3m-upgrade-to-smart-account-view")],td);var th=(0,o.iv)` 1805 wui-email-input { 1806 width: 100%; 1807 } 1808 1809 form { 1810 width: 100%; 1811 display: block; 1812 position: relative; 1813 } 1814`,tf=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tp=class extends o.oi{constructor(){super(...arguments),this.formRef=ep(),this.initialEmail=i.RouterController.state.data?.email??"",this.email="",this.loading=!1}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=!this.loading&&this.email.length>3&&this.email!==this.initialEmail;return(0,o.dy)` 1815 <wui-flex flexDirection="column" padding="m" gap="m"> 1816 <form ${ew(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> 1817 <wui-email-input 1818 value=${this.initialEmail} 1819 .disabled=${this.loading} 1820 @inputChange=${this.onEmailInputChange.bind(this)} 1821 > 1822 </wui-email-input> 1823 <input type="submit" hidden /> 1824 </form> 1825 1826 <wui-flex gap="s"> 1827 <wui-button size="md" variant="neutral" fullWidth @click=${i.RouterController.goBack}> 1828 Cancel 1829 </wui-button> 1830 1831 <wui-button 1832 size="md" 1833 variant="main" 1834 fullWidth 1835 @click=${this.onSubmitEmail.bind(this)} 1836 .disabled=${!e} 1837 .loading=${this.loading} 1838 > 1839 Save 1840 </wui-button> 1841 </wui-flex> 1842 </wui-flex> 1843 `}onEmailInputChange(e){this.email=e.detail}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=i.ConnectorController.getAuthConnector();if(!t)throw Error("w3m-update-email-wallet: Auth connector not found");let r=await t.provider.updateEmail({email:this.email});i.Xs.sendEvent({type:"track",event:"EMAIL_EDIT"}),"VERIFY_SECONDARY_OTP"===r.action?i.RouterController.push("UpdateEmailSecondaryOtp",{email:this.initialEmail,newEmail:this.email}):i.RouterController.push("UpdateEmailPrimaryOtp",{email:this.initialEmail,newEmail:this.email})}catch(e){i.SnackController.showError(e),this.loading=!1}}};tp.styles=th,tf([(0,s.SB)()],tp.prototype,"email",void 0),tf([(0,s.SB)()],tp.prototype,"loading",void 0),tp=tf([(0,n.customElement)("w3m-update-email-wallet-view")],tp);var tg=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tm=class extends e8{constructor(){super(),this.email=i.RouterController.state.data?.email,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailPrimaryOtp({otp:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),i.RouterController.replace("UpdateEmailSecondaryOtp",i.RouterController.state.data))}catch(e){throw i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{i.RouterController.replace("UpdateEmailWallet",i.RouterController.state.data)}}};tm=tg([(0,n.customElement)("w3m-update-email-primary-otp-view")],tm);var tw=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
1843);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ty=class extends e8{constructor(){super(),this.email=i.RouterController.state.data?.newEmail,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailSecondaryOtp({otp:e}),i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),i.RouterController.reset("Account"))}catch(e){throw i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{i.RouterController.replace("UpdateEmailWallet",i.RouterController.state.data)}}};ty=tw([(0,n.customElement)("w3m-update-email-secondary-otp-view")],ty);var tb=(0,o.iv)` 1844 :host > wui-flex { 1845 max-height: clamp(360px, 540px, 80vh); 1846 overflow: scroll; 1847 scrollbar-width: none; 1848 } 1849 1850 :host > wui-flex::-webkit-scrollbar { 1851 display: none; 1852 } 1853`,tv=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t_=class extends o.oi{constructor(){super(...arguments),this.swapUnsupportedChain=i.RouterController.state.data?.swapUnsupportedChain,this.disconecting=!1}render(){return(0,o.dy)` 1854 <wui-flex class="container" flexDirection="column" gap="0"> 1855 <wui-flex 1856 class="container" 1857 flexDirection="column" 1858 .padding=${["m","xl","xs","xl"]} 1859 alignItems="center" 1860 gap="xl" 1861 > 1862 ${this.descriptionTemplate()} 1863 </wui-flex> 1864 1865 <wui-flex flexDirection="column" padding="s" gap="xs"> 1866 ${this.networksTemplate()} 1867 </wui-flex> 1868 1869 <wui-separator text="or"></wui-separator> 1870 <wui-flex flexDirection="column" padding="s" gap="xs"> 1871 <wui-list-item 1872 variant="icon" 1873 iconVariant="overlay" 1874 icon="disconnect" 1875 ?chevron=${!1} 1876 .loading=${this.disconecting} 1877 @click=${this.onDisconnect.bind(this)} 1878 data-testid="disconnect-button" 1879 > 1880 <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text> 1881 </wui-list-item> 1882 </wui-flex> 1883 </wui-flex> 1884 `}descriptionTemplate(){return this.swapUnsupportedChain?(0,o.dy)` 1885 <wui-text variant="small-400" color="fg-200" align="center"> 1886 The swap feature doesnât support your current network. Switch to an available option to 1887 continue. 1888 </wui-text> 1889 `:(0,o.dy)` 1890 <wui-text variant="small-400" color="fg-200" align="center"> 1891 This app doesnât support your current network. Switch to an available option to continue. 1892 </wui-text> 1893 `}networksTemplate(){let{approvedCaipNetworkIds:e,requestedCaipNetworks:t}=i.NetworkController.state,r=i.j1.sortRequestedNetworks(e,t);return(this.swapUnsupportedChain?r.filter(e=>i.bq.SWAP_SUPPORTED_NETWORKS.includes(e.id)):r).map(e=>(0,o.dy)` 1894 <wui-list-network 1895 imageSrc=${l(i.fz.getNetworkImage(e))} 1896 name=${e.name??"Unknown"} 1897 @click=${()=>this.onSwitchNetwork(e)} 1898 > 1899 </wui-list-network> 1900 `)}async onDisconnect(){try{this.disconecting=!0,await i.ConnectionController.disconnect(),i.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),i.IN.close()}catch{i.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),i.SnackController.showError("Failed to disconnect")}finally{this.disconecting=!1}}async onSwitchNetwork(e){let{isConnected:t}=i.AccountController.state,{approvedCaipNetworkIds:r,supportsAllNetworks:n,caipNetwork:o}=i.NetworkController.state,{data:s}=i.RouterController.state;t&&o?.id!==e.id?r?.includes(e.id)?(await i.NetworkController.switchActiveNetwork(e),i._4.navigateAfterNetworkSwitch()):n&&i.RouterController.push("SwitchNetwork",{...s,network:e}):t||(i.NetworkController.setCaipNetwork(e),i.RouterController.push("Connect"))}};t_.styles=tb,tv([(0,s.SB)()],t_.prototype,"disconecting",void 0),t_=tv([(0,n.customElement)("w3m-unsupported-chain-view")],t_);var tx=(0,o.iv)` 1901 wui-compatible-network { 1902 margin-top: var(--wui-spacing-l); 1903 } 1904`,tE=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
1904);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tC=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.address=i.AccountController.state.address,this.profileName=i.AccountController.state.profileName,this.network=i.NetworkController.state.caipNetwork,this.preferredAccountType=i.AccountController.state.preferredAccountType,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):i.SnackController.showError("Account not found")}),i.NetworkController.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-wallet-receive-view: No account provided");let e=i.fz.getNetworkImage(this.network);return(0,o.dy)` <wui-flex 1905 flexDirection="column" 1906 .padding=${["0","l","l","l"]} 1907 alignItems="center" 1908 > 1909 <wui-chip-button 1910 @click=${this.onCopyClick.bind(this)} 1911 text=${n.UiHelperUtil.getTruncateString({string:this.profileName||this.address||"",charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})} 1912 icon="copy" 1913 size="sm" 1914 imageSrc=${e||""} 1915 variant="gray" 1916 ></wui-chip-button> 1917 <wui-flex 1918 flexDirection="column" 1919 .padding=${["l","0","0","0"]} 1920 alignItems="center" 1921 gap="s" 1922 > 1923 <wui-qr-code 1924 size=${232} 1925 theme=${i.ThemeController.state.themeMode} 1926 uri=${this.address} 1927 ?arenaClear=${!0} 1928 data-testid="wui-qr-code" 1929 ></wui-qr-code> 1930 <wui-text variant="paragraph-500" color="fg-100" align="center"> 1931 Copy your address or scan this QR code 1932 </wui-text> 1933 </wui-flex> 1934 ${this.networkTemplate()} 1935 </wui-flex>`}networkTemplate(){let e=i.NetworkController.getRequestedCaipNetworks(),t=i.NetworkController.checkIfSmartAccountEnabled(),r=i.NetworkController.state.caipNetwork;if(this.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&t)return r?(0,o.dy)`<wui-compatible-network 1936 @click=${this.onReceiveClick.bind(this)} 1937 text="Only receive assets on this network" 1938 .networkImages=${[i.fz.getNetworkImage(r)??""]} 1939 ></wui-compatible-network>`:null;let n=(e?.filter(e=>e?.imageId)?.slice(0,5)).map(i.fz.getNetworkImage).filter(Boolean);return(0,o.dy)`<wui-compatible-network 1940 @click=${this.onReceiveClick.bind(this)} 1941 text="Only receive assets on these networks" 1942 .networkImages=${n} 1943 ></wui-compatible-network>`}onReceiveClick(){i.RouterController.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(i.j1.copyToClopboard(this.address),i.SnackController.showSuccess("Address copied"))}catch{i.SnackController.showError("Failed to copy")}}};tC.styles=tx,tE([(0,s.SB)()],tC.prototype,"address",void 0),tE([(0,s.SB)()],tC.prototype,"profileName",void 0),tE([(0,s.SB)()],tC.prototype,"network",void 0),tE([(0,s.SB)()],tC.prototype,"preferredAccountType",void 0),tC=tE([(0,n.customElement)("w3m-wallet-receive-view")],tC);var tk=(0,o.iv)` 1944 :host > wui-flex { 1945 max-height: clamp(360px, 540px, 80vh); 1946 overflow: scroll; 1947 scrollbar-width: none; 1948 } 1949 1950 :host > wui-flex::-webkit-scrollbar {
1951 display: none; 1952 } 1953`,tS=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tA=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.preferredAccountType=i.AccountController.state.preferredAccountType,this.unsubscribe.push(i.AccountController.subscribeKey("preferredAccountType",e=>{this.preferredAccountType=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` <wui-flex 1954 flexDirection="column" 1955 .padding=${["xs","s","m","s"]} 1956 gap="xs" 1957 > 1958 <wui-banner 1959 icon="warningCircle" 1960 text="You can only receive assets on these networks" 1961 ></wui-banner> 1962 ${this.networkTemplate()} 1963 </wui-flex>`}networkTemplate(){let{approvedCaipNetworkIds:e,requestedCaipNetworks:t,caipNetwork:r}=i.NetworkController.state,n=i.NetworkController.checkIfSmartAccountEnabled(),s=i.j1.sortRequestedNetworks(e,t);if(n&&this.preferredAccountType===I.y_.ACCOUNT_TYPES.SMART_ACCOUNT){if(!r)return null;s=[r]}return s.map(e=>(0,o.dy)` 1964 <wui-list-network 1965 imageSrc=${l(i.fz.getNetworkImage(e))} 1966 name=${e.name??"Unknown"} 1967 ?transparent=${!0} 1968 > 1969 </wui-list-network> 1970 `)}};tA.styles=tk,tS([(0,s.SB)()],tA.prototype,"preferredAccountType",void 0),tA=tS([(0,n.customElement)("w3m-wallet-compatible-networks-view")],tA);var tI=(0,o.iv)` 1971 :host { 1972 display: block; 1973 } 1974 1975 wui-flex { 1976 position: relative; 1977 } 1978 1979 wui-icon-box { 1980 width: 40px; 1981 height: 40px; 1982 border-radius: var(--wui-border-radius-xs) !important; 1983 border: 5px solid var(--wui-color-bg-125); 1984 background: var(--wui-color-bg-175); 1985 position: absolute; 1986 top: 50%; 1987 left: 50%; 1988 transform: translate(-50%, -50%); 1989 z-index: 1; 1990 } 1991 1992 wui-button { 1993 --local-border-radius: var(--wui-border-radius-xs) !important; 1994 } 1995 1996 .inputContainer { 1997 height: fit-content; 1998 } 1999`,tT=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tR=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.token=i.Si.state.token,this.sendTokenAmount=i.Si.state.sendTokenAmount,this.receiverAddress=i.Si.state.receiverAddress,this.receiverProfileName=i.Si.state.receiverProfileName,this.loading=i.Si.state.loading,this.gasPriceInUSD=i.Si.state.gasPriceInUSD,this.message="Preview Send",this.fetchNetworkPrice(),this.unsubscribe.push(i.Si.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.getMessage(),(0,o.dy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}> 2000 <wui-flex class="inputContainer" gap="xs" flexDirection="column"> 2001 <w3m-input-token 2002 .token=${this.token} 2003 .sendTokenAmount=${this.sendTokenAmount} 2004 .gasPriceInUSD=${this.gasPriceInUSD} 2005 ></w3m-input-token> 2006 <wui-icon-box 2007 size="inherit" 2008 backgroundColor="fg-300" 2009 iconSize="lg" 2010 iconColor="fg-250" 2011 background="opaque" 2012 icon="arrowBottom" 2013 ></wui-icon-box> 2014 <w3m-input-address 2015 .value=${this.receiverProfileName?this.receiverProfileName:this.receiverAddress} 2016 ></w3m-input-address> 2017 </wui-flex> 2018 <wui-flex .margin=${["l","0","0","0"]}> 2019 <wui-button 2020 @click=${this.onButtonClick.bind(this)} 2021 ?disabled=${!this.message.startsWith("Preview Send")} 2022 size="lg" 2023 variant="main" 2024 ?loading=${this.loading} 2025 fullWidth 2026 > 2027 ${this.message} 2028 </wui-button>
2028 2029 </wui-flex> 2030 </wui-flex>`}async fetchNetworkPrice(){await i.nY.getNetworkTokenPrice();let e=await i.nY.getInitialGasPrice();e?.gasPrice&&e?.gasPriceInUSD&&(i.Si.setGasPrice(e.gasPrice),i.Si.setGasPriceInUsd(e.gasPriceInUSD))}onButtonClick(){i.RouterController.push("WalletSendPreview")}getMessage(){this.message="Preview Send",this.receiverAddress&&!i.j1.isAddress(this.receiverAddress)&&(this.message="Invalid Address"),this.receiverAddress||(this.message="Add Address"),this.sendTokenAmount&&this.token&&this.sendTokenAmount>Number(this.token.quantity.numeric)&&(this.message="Insufficient Funds"),this.sendTokenAmount||(this.message="Add Amount"),this.sendTokenAmount&&this.token?.price&&!(this.sendTokenAmount*this.token.price)&&(this.message="Incorrect Value"),this.token||(this.message="Select Token")}};tR.styles=tI,tT([(0,s.SB)()],tR.prototype,"token",void 0),tT([(0,s.SB)()],tR.prototype,"sendTokenAmount",void 0),tT([(0,s.SB)()],tR.prototype,"receiverAddress",void 0),tT([(0,s.SB)()],tR.prototype,"receiverProfileName",void 0),tT([(0,s.SB)()],tR.prototype,"loading",void 0),tT([(0,s.SB)()],tR.prototype,"gasPriceInUSD",void 0),tT([(0,s.SB)()],tR.prototype,"message",void 0),tR=tT([(0,n.customElement)("w3m-wallet-send-view")],tR);var tO=(0,o.iv)` 2031 .contentContainer { 2032 height: 440px; 2033 overflow: scroll; 2034 scrollbar-width: none; 2035 } 2036 2037 .contentContainer::-webkit-scrollbar {
2038 display: none; 2039 } 2040 2041 wui-icon-box { 2042 width: 40px; 2043 height: 40px; 2044 border-radius: var(--wui-border-radius-xxs); 2045 } 2046`,tP=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tN=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.tokenBalance=i.AccountController.state.tokenBalance,this.search="",this.onDebouncedSearch=i.j1.debounce(e=>{this.search=e}),this.unsubscribe.push(i.AccountController.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 2047 <wui-flex flexDirection="column"> 2048 ${this.templateSearchInput()} <wui-separator></wui-separator> ${this.templateTokens()} 2049 </wui-flex> 2050 `}templateSearchInput(){return(0,o.dy)` 2051 <wui-flex gap="xs" padding="s"> 2052 <wui-input-text 2053 @inputChange=${this.onInputChange.bind(this)} 2054 class="network-search-input" 2055 size="sm" 2056 placeholder="Search token" 2057 icon="search" 2058 ></wui-input-text> 2059 </wui-flex> 2060 `}templateTokens(){return this.tokens=this.tokenBalance?.filter(e=>e.chainId===i.NetworkController.state.caipNetwork?.id),this.search?this.filteredTokens=this.tokenBalance?.filter(e=>e.name.toLowerCase().includes(this.search.toLowerCase())):this.filteredTokens=this.tokens,(0,o.dy)` 2061 <wui-flex 2062 class="contentContainer" 2063 flexDirection="column" 2064 .padding=${["0","s","0","s"]} 2065 > 2066 <wui-flex justifyContent="flex-start" .padding=${["m","s","s","s"]}> 2067 <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text> 2068 </wui-flex> 2069 <wui-flex flexDirection="column" gap="xs"> 2070 ${this.filteredTokens&&this.filteredTokens.length>0?this.filteredTokens.map(e=>(0,o.dy)`<wui-list-token 2071 @click=${this.handleTokenClick.bind(this,e)} 2072 ?clickable=${!0} 2073 tokenName=${e.name} 2074 tokenImageUrl=${e.iconUrl} 2075 tokenAmount=${e.quantity.numeric} 2076 tokenValue=${e.value} 2077 tokenCurrency=${e.symbol} 2078 ></wui-list-token>`):(0,o.dy)`<wui-flex 2079 .padding=${["4xl","0","0","0"]} 2080 alignItems="center" 2081 flexDirection="column" 2082 gap="l" 2083 > 2084 <wui-icon-box 2085 icon="coinPlaceholder" 2086 size="inherit" 2087 iconColor="fg-200" 2088 backgroundColor="fg-200" 2089 iconSize="lg" 2090 ></wui-icon-box> 2091 <wui-flex 2092 class="textContent" 2093 gap="xs" 2094 flexDirection="column" 2095 justifyContent="center" 2096 flexDirection="column" 2097 > 2098 <wui-text variant="paragraph-500" align="center" color="fg-100" 2099 >No tokens found</wui-text 2100 > 2101 <wui-text variant="small-400" align="center" color="fg-200" 2102 >Your tokens will appear here</wui-text 2103 > 2104 </wui-flex> 2105 <wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link> 2106 </wui-flex>`} 2107 </wui-flex> 2108 </wui-flex> 2109 `}onBuyClick(){i.RouterController.push("OnRampProviders")}onInputChange(e){this.onDebouncedSearch(e.detail)}handleTokenClick(e){i.Si.setToken(e),i.Si.setTokenAmount(void 0),i.RouterController.goBack()}};tN.styles=tO,tP([(0,s.SB)()],tN.prototype,"tokenBalance",void 0),tP([(0,s.SB)()],tN.prototype,"tokens",void 0),tP([(0,s.SB)()],tN.prototype,"filteredTokens",void 0),tP([(0,s.SB)()],tN.prototype,"search",void 0),tN=tP([(0,n.customElement)("w3m-wallet-send-select-token-view")],tN);var tM=(0,o.iv)` 2110 wui-avatar, 2111 wui-image { 2112 display: ruby; 2113 width: 32px; 2114 height: 32px; 2115 border-radius: var(--wui-border-radius-3xl); 2116 } 2117 2118 .sendButton { 2119 width: 70%; 2120 --local-width: 100% !important; 2121 --local-border-radius: var(--wui-border-radius-xs) !important; 2122 } 2123 2124 .cancelButton { 2125 width: 30%; 2126 --local-width: 100% !important; 2127 --local-border-radius: var(--wui-border-radius-xs) !important; 2128 } 2129`,tD=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
2129);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tL=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.token=i.Si.state.token,this.sendTokenAmount=i.Si.state.sendTokenAmount,this.receiverAddress=i.Si.state.receiverAddress,this.receiverProfileName=i.Si.state.receiverProfileName,this.receiverProfileImageUrl=i.Si.state.receiverProfileImageUrl,this.gasPriceInUSD=i.Si.state.gasPriceInUSD,this.caipNetwork=i.NetworkController.state.caipNetwork,this.unsubscribe.push(i.Si.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.receiverProfileImageUrl=e.receiverProfileImageUrl}),i.NetworkController.subscribeKey("caipNetwork",e=>this.caipNetwork=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}> 2130 <wui-flex gap="xs" flexDirection="column" .padding=${["0","xs","0","xs"]}> 2131 <wui-flex alignItems="center" justifyContent="space-between"> 2132 <wui-flex flexDirection="column" gap="4xs"> 2133 <wui-text variant="small-400" color="fg-150">Send</wui-text> 2134 ${this.sendValueTemplate()} 2135 </wui-flex> 2136 <wui-preview-item 2137 text="${this.sendTokenAmount?n.UiHelperUtil.roundNumber(this.sendTokenAmount,6,5):"unknown"} ${this.token?.symbol}" 2138 .imageSrc=${this.token?.iconUrl} 2139 ></wui-preview-item> 2140 </wui-flex> 2141 <wui-flex> 2142 <wui-icon color="fg-200" size="md" name="arrowBottom"></wui-icon> 2143 </wui-flex> 2144 <wui-flex alignItems="center" justifyContent="space-between"> 2145 <wui-text variant="small-400" color="fg-150">To</wui-text> 2146 <wui-preview-item 2147 text="${this.receiverProfileName?n.UiHelperUtil.getTruncateString({string:this.receiverProfileName,charsStart:20,charsEnd:0,truncate:"end"}):n.UiHelperUtil.getTruncateString({string:this.receiverAddress?this.receiverAddress:"",charsStart:4,charsEnd:4,truncate:"middle"})}" 2148 address=${this.receiverAddress??""} 2149 .imageSrc=${this.receiverProfileImageUrl??void 0} 2150 .isAddress=${!0} 2151 ></wui-preview-item> 2152 </wui-flex> 2153 </wui-flex> 2154 <wui-flex flexDirection="column" .padding=${["xxl","0","0","0"]}> 2155 <w3m-wallet-send-details 2156 .caipNetwork=${this.caipNetwork} 2157 .receiverAddress=${this.receiverAddress} 2158 .networkFee=${this.gasPriceInUSD} 2159 ></w3m-wallet-send-details> 2160 <wui-flex justifyContent="center" gap="xxs" .padding=${["s","0","0","0"]}> 2161 <wui-icon size="sm" color="fg-200" name="warningCircle"></wui-icon> 2162 <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text> 2163 </wui-flex> 2164 <wui-flex justifyContent="center" gap="s" .padding=${["l","0","0","0"]}> 2165 <wui-button 2166 class="cancelButton" 2167 @click=${this.onCancelClick.bind(this)} 2168 size="lg" 2169 variant="neutral" 2170 > 2171 Cancel 2172 </wui-button> 2173 <wui-button 2174 class="sendButton" 2175 @click=${this.onSendClick.bind(this)} 2176 size="lg" 2177 variant="main" 2178 > 2179 Send 2180 </wui-button> 2181 </wui-flex> 2182 </wui-flex></wui-flex 2183 >`}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,o.dy)`<wui-text variant="paragraph-400" color="fg-100" 2184 >$${e.toFixed(2)}</wui-text 2185 >`}return null}onSendClick(){i.Si.sendToken()}onCancelClick(){i.RouterController.goBack()}};tL.styles=tM,tD([(0,s.SB)()],tL.prototype,"token",void 0),tD([(0,s.SB)()],tL.prototype,"sendTokenAmount",void 0),tD([(0,s.SB)()],tL.prototype,"receiverAddress",void 0),tD([(0,s.SB)()],tL.prototype,"receiverProfileName",void 0),tD([(0,s.SB)()],tL.prototype,"receiverProfileImageUrl",void 0),tD([(0,s.SB)()],tL.prototype,"gasPriceInUSD",void 0),tD([(0,s.SB)()],tL.prototype,"caipNetwork",void 0),tL=tD([(0,n.customElement)("w3m-wallet-send-preview-view")],tL);var tj=(0,o.iv)` 2186 wui-flex { 2187 max-height: clamp(360px, 540px, 80vh); 2188 overflow: scroll; 2189 scrollbar-width: none; 2190 } 2191 wui-flex::-webkit-scrollbar {
2192 display: none; 2193 } 2194`,tB=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t$=class extends o.oi{render(){return(0,o.dy)` 2195 <wui-flex flexDirection="column" padding="s" gap="xs"> 2196 <w3m-wallet-login-list></w3m-wallet-login-list> 2197 </wui-flex> 2198 <w3m-legal-footer></w3m-legal-footer> 2199 `}};t$.styles=tj,t$=tB([(0,n.customElement)("w3m-connect-wallets-view")],t$);var tU=(0,o.iv)` 2200 wui-flex { 2201 max-height: clamp(360px, 540px, 80vh); 2202 overflow: scroll; 2203 scrollbar-width: none; 2204 } 2205 wui-flex::-webkit-scrollbar { 2206 display: none; 2207 } 2208`,tF=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tz=class extends o.oi{render(){return(0,o.dy)` 2209 <wui-flex flexDirection="column" padding="s" gap="xs"> 2210 <w3m-social-login-list></w3m-social-login-list> 2211 </wui-flex> 2212 <w3m-legal-footer></w3m-legal-footer> 2213 `}};tz.styles=tU,tz=tF([(0,n.customElement)("w3m-connect-socials-view")],tz);var tq=(0,o.iv)` 2214 wui-logo { 2215 width: 80px; 2216 height: 80px; 2217 border-radius: var(--wui-border-radius-m); 2218 } 2219 @keyframes shake { 2220 0% { 2221 transform: translateX(0); 2222 } 2223 25% { 2224 transform: translateX(3px); 2225 } 2226 50% { 2227 transform: translateX(-3px); 2228 } 2229 75% { 2230 transform: translateX(3px); 2231 } 2232 100% { 2233 transform: translateX(0); 2234 } 2235 } 2236 wui-flex:first-child:not(:only-child) { 2237 position: relative; 2238 } 2239 wui-loading-thumbnail { 2240 position: absolute; 2241 } 2242 wui-icon-box { 2243 position: absolute; 2244 right: calc(var(--wui-spacing-3xs) * -1); 2245 bottom: calc(var(--wui-spacing-3xs) * -1); 2246 opacity: 0; 2247 transform: scale(0.5); 2248 transition: all var(--wui-ease-out-power-2) var(--wui-duration-lg); 2249 } 2250 wui-text[align='center'] { 2251 width: 100%; 2252 padding: 0px var(--wui-spacing-l); 2253 } 2254 [data-error='true'] wui-icon-box { 2255 opacity: 1; 2256 transform: scale(1); 2257 } 2258 [data-error='true'] > wui-flex:first-child { 2259 animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; 2260 } 2261 .capitalize { 2262 text-transform: capitalize; 2263 } 2264`;let tW={ACCOUNT_TABS:[{label:"Tokens"},{label:"NFTs"},{label:"Activity"}],SECURE_SITE_ORIGIN:r(25566).env.NEXT_PUBLIC_SECURE_SITE_ORIGIN||"https://secure.walletconnect.com"};var tH=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tV=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.socialProvider=i.AccountController.state.socialProvider,this.socialWindow=i.AccountController.state.socialWindow,this.error=!1,this.connecting=!1,this.message="Connect in the provider window",this.authConnector=i.ConnectorController.getAuthConnector(),this.handleSocialConnection=async e=>{if(e.data?.resultUri){if(e.origin===tW.SECURE_SITE_ORIGIN){window.removeEventListener("message",this.handleSocialConnection,!1);try{if(this.authConnector&&!this.connecting){this.socialWindow&&(this.socialWindow.close(),i.AccountController.setSocialWindow(void 0)),this.connecting=!0,this.updateMessage();let t=e.data.resultUri;await this.authConnector.provider.connectSocial(t),this.socialProvider&&i.MO.setConnectedSocialProvider(this.socialProvider),await i.ConnectionController.connectExternal(this.authConnector)}}catch(e){this.error=!0,this.updateMessage()}}else i.RouterController.goBack(),i.SnackController.showError("Untrusted Origin")}},this.unsubscribe.push(i.AccountController.subscribe(e=>{e.socialProvider&&(this.socialProvider=e.socialProvider),e.socialWindow&&(this.socialWindow=e.socialWindow),e.address&&i.IN.state.open&&i.IN.close()})),this.authConnector&&this.connectSocial()}
2264disconnectedCallback(){this.unsubscribe.forEach(e=>e()),window.removeEventListener("message",this.handleSocialConnection,!1)}render(){return(0,o.dy)` 2265 <wui-flex 2266 data-error=${l(this.error)} 2267 flexDirection="column" 2268 alignItems="center" 2269 .padding=${["3xl","xl","xl","xl"]} 2270 gap="xl" 2271 > 2272 <wui-flex justifyContent="center" alignItems="center"> 2273 <wui-logo logo=${l(this.socialProvider)}></wui-logo> 2274 ${this.error?null:this.loaderTemplate()} 2275 <wui-icon-box 2276 backgroundColor="error-100" 2277 background="opaque" 2278 iconColor="error-100" 2279 icon="close" 2280 size="sm" 2281 border 2282 borderColor="wui-color-bg-125" 2283 ></wui-icon-box> 2284 </wui-flex> 2285 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 2286 <wui-text align="center" variant="paragraph-500" color="fg-100" 2287 >Log in with 2288 <span class="capitalize">${this.socialProvider??"Social"}</span></wui-text 2289 > 2290 <wui-text align="center" variant="small-400" color=${this.error?"error-100":"fg-200"} 2291 >${this.message}</wui-text 2292 ></wui-flex 2293 > 2294 </wui-flex> 2295 `}loaderTemplate(){let e=i.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,o.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}connectSocial(){window.addEventListener("message",this.handleSocialConnection,!1)}updateMessage(){this.error?this.message="Something went wrong":this.connecting?this.message="Retrieving user data":this.message="Connect in the provider window"}};tV.styles=tq,tH([(0,s.SB)()],tV.prototype,"socialProvider",void 0),tH([(0,s.SB)()],tV.prototype,"socialWindow",void 0),tH([(0,s.SB)()],tV.prototype,"error",void 0),tH([(0,s.SB)()],tV.prototype,"connecting",void 0),tH([(0,s.SB)()],tV.prototype,"message",void 0),tV=tH([(0,n.customElement)("w3m-connecting-social-view")],tV);var tZ=(0,o.iv)` 2296 wui-grid { 2297 max-height: clamp(360px, 400px, 80vh); 2298 overflow: scroll; 2299 scrollbar-width: none; 2300 grid-auto-rows: min-content; 2301 grid-template-columns: repeat(auto-fill, 76px); 2302 } 2303 2304 @media (max-width: 435px) { 2305 wui-grid { 2306 grid-template-columns: repeat(auto-fill, 77px); 2307 } 2308 } 2309 2310 wui-grid[data-scroll='false'] { 2311 overflow: hidden; 2312 } 2313 2314 wui-grid::-webkit-scrollbar {
2315 display: none; 2316 } 2317 2318 wui-loading-spinner { 2319 padding-top: var(--wui-spacing-l); 2320 padding-bottom: var(--wui-spacing-l); 2321 justify-content: center; 2322 grid-column: 1 / span 4; 2323 } 2324`;function tK(e){let{connectors:t}=i.ConnectorController.state,r=t.filter(e=>"ANNOUNCED"===e.type).reduce((e,t)=>(t.info?.rdns&&(e[t.info.rdns]=!0),e),{});return e.map(e=>({...e,installed:!!e.rdns&&!!r[e.rdns??""]})).sort((e,t)=>Number(t.installed)-Number(e.installed))}var tG=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tY="local-paginator",tJ=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.initial=!i.ApiController.state.wallets.length,this.wallets=i.ApiController.state.wallets,this.recommended=i.ApiController.state.recommended,this.featured=i.ApiController.state.featured,this.unsubscribe.push(i.ApiController.subscribeKey("wallets",e=>this.wallets=e),i.ApiController.subscribeKey("recommended",e=>this.recommended=e),i.ApiController.subscribeKey("featured",e=>this.featured=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return(0,o.dy)` 2325 <wui-grid 2326 data-scroll=${!this.initial} 2327 .padding=${["0","s","s","s"]} 2328 columnGap="xxs" 2329 rowGap="l" 2330 justifyContent="space-between" 2331 > 2332 ${this.initial?this.shimmerTemplate(16):this.walletsTemplate()} 2333 ${this.paginationLoaderTemplate()} 2334 </wui-grid> 2335 `}async initialFetch(){let e=this.shadowRoot?.querySelector("wui-grid");this.initial&&e&&(await i.ApiController.fetchWallets({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.initial=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map(()=>(0,o.dy)` 2336 <wui-card-select-loader type="wallet" id=${l(t)}></wui-card-select-loader> 2337 `)}walletsTemplate(){return tK([...this.featured,...this.recommended,...this.wallets]).map(e=>(0,o.dy)` 2338 <wui-card-select 2339 imageSrc=${l(i.fz.getWalletImage(e))} 2340 type="wallet" 2341 name=${e.name} 2342 @click=${()=>this.onConnectWallet(e)} 2343 .installed=${e.installed} 2344 ></wui-card-select> 2345 `)}paginationLoaderTemplate(){let{wallets:e,recommended:t,featured:r,count:n}=i.ApiController.state,o=window.innerWidth<352?3:4,s=e.length+t.length,a=Math.ceil(s/o)*o-s+o;return(a-=e.length?r.length%o:0,0===n&&r.length>0)?null:0===n||[...r,...e,...t].length<n?this.shimmerTemplate(a,tY):null}createPaginationObserver(){let e=this.shadowRoot?.querySelector(`#${tY}`);e&&(this.paginationObserver=new IntersectionObserver(([e])=>{if(e?.isIntersecting&&!this.initial){let{page:e,count:t,wallets:r}=i.ApiController.state;r.length<t&&i.ApiController.fetchWallets({page:e+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){let t=i.ConnectorController.getConnector(e.id,e.rdns);t?i.RouterController.push("ConnectingExternal",{connector:t}):i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};tJ.styles=tZ,tG([(0,s.SB)()],tJ.prototype,"initial",void 0),tG([(0,s.SB)()],tJ.prototype,"wallets",void 0),tG([(0,s.SB)()],tJ.prototype,"recommended",void 0),tG([(0,s.SB)()],tJ.prototype,"featured",void 0),tJ=tG([(0,n.customElement)("w3m-all-wallets-list")],tJ);var tQ=(0,o.iv)` 2346 wui-grid, 2347 wui-loading-spinner, 2348 wui-flex { 2349 height: 360px; 2350 } 2351 2352 wui-grid { 2353 overflow: scroll; 2354 scrollbar-width: none; 2355 grid-auto-rows: min-content; 2356 } 2357 2358 wui-grid[data-scroll='false'] { 2359 overflow: hidden; 2360 } 2361 2362 wui-grid::-webkit-scrollbar {
2363 display: none; 2364 } 2365 2366 wui-loading-spinner { 2367 justify-content: center; 2368 align-items: center; 2369 } 2370`,tX=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t0=class extends o.oi{constructor(){super(...arguments),this.prevQuery="",this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?(0,o.dy)`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){this.query.trim()!==this.prevQuery.trim()&&(this.prevQuery=this.query,this.loading=!0,await i.ApiController.searchWallet({search:this.query}),this.loading=!1)}walletsTemplate(){let{search:e}=i.ApiController.state,t=tK(e);return e.length?(0,o.dy)` 2371 <wui-grid 2372 .padding=${["0","s","s","s"]} 2373 gridTemplateColumns="repeat(4, 1fr)" 2374 rowGap="l" 2375 columnGap="xs" 2376 > 2377 ${t.map(e=>(0,o.dy)` 2378 <wui-card-select 2379 imageSrc=${l(i.fz.getWalletImage(e))} 2380 type="wallet" 2381 name=${e.name} 2382 @click=${()=>this.onConnectWallet(e)} 2383 .installed=${e.installed} 2384 ></wui-card-select> 2385 `)} 2386 </wui-grid> 2387 `:(0,o.dy)` 2388 <wui-flex justifyContent="center" alignItems="center" gap="s" flexDirection="column"> 2389 <wui-icon-box 2390 size="lg" 2391 iconColor="fg-200" 2392 backgroundColor="fg-300" 2393 icon="wallet" 2394 background="transparent" 2395 ></wui-icon-box> 2396 <wui-text color="fg-200" variant="paragraph-500">No Wallet found</wui-text> 2397 </wui-flex> 2398 `}onConnectWallet(e){let t=i.ConnectorController.getConnector(e.id,e.rdns);t?i.RouterController.push("ConnectingExternal",{connector:t}):i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};t0.styles=tQ,tX([(0,s.SB)()],t0.prototype,"loading",void 0),tX([(0,s.Cb)()],t0.prototype,"query",void 0),t0=tX([(0,n.customElement)("w3m-all-wallets-search")],t0);var t1=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t2=class extends o.oi{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(i.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.generateTabs();return(0,o.dy)` 2399 <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}> 2400 <wui-tabs 2401 ?disabled=${this.buffering} 2402 .tabs=${e} 2403 .onTabChange=${this.onTabChange.bind(this)} 2404 ></wui-tabs> 2405 </wui-flex> 2406 `}generateTabs(){let e=this.platforms.map(e=>"browser"===e?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===e?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===e?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===e?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===e?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=e.map(({platform:e})=>e),e}onTabChange(e){let t=this.platformTabs[e];t&&this.onSelectPlatfrom?.(t)}};t1([(0,s.Cb)({type:Array})],t2.prototype,"platforms",void 0),t1([(0,s.Cb)()],t2.prototype,"onSelectPlatfrom",void 0),t1([(0,s.SB)()],t2.prototype,"buffering",void 0),t2=t1([(0,n.customElement)("w3m-connecting-header")],t2);var t3=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
2406);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t5=class extends q{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;let{connectors:e}=i.ConnectorController.state,t=e.find(e=>"ANNOUNCED"===e.type&&e.info?.rdns===this.wallet?.rdns),r=e.find(e=>"INJECTED"===e.type);t?await i.ConnectionController.connectExternal(t):r&&await i.ConnectionController.connectExternal(r),i.IN.close(),i.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown"}})}catch(e){i.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};t5=t3([(0,n.customElement)("w3m-connecting-wc-browser")],t5);var t4=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t6=class extends q{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.timeout=setTimeout(()=>{this.onConnect?.()},200))}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;let{desktop_link:e,name:t}=this.wallet,{redirect:r,href:n}=i.j1.formatNativeUrl(e,this.uri);i.ConnectionController.setWcLinking({name:t,href:n}),i.ConnectionController.setRecentWallet(this.wallet),i.j1.openHref(r,"_blank")}catch{this.error=!0}}};t6=t4([(0,n.customElement)("w3m-connecting-wc-desktop")],t6);var t8=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t7=class extends q{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-mobile: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this))}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;let{mobile_link:e,name:t}=this.wallet,{redirect:r,href:n}=i.j1.formatNativeUrl(e,this.uri);i.ConnectionController.setWcLinking({name:t,href:n}),i.ConnectionController.setRecentWallet(this.wallet),i.j1.openHref(r,"_self")}catch{this.error=!0}}onBuffering(){let e=i.j1.isIos();document?.visibilityState==="visible"&&!this.error&&e&&(i.ConnectionController.setBuffering(!0),setTimeout(()=>{i.ConnectionController.setBuffering(!1)},5e3))}};t7=t8([(0,n.customElement)("w3m-connecting-wc-mobile")],t7);var t9=(0,o.iv)` 2407 @keyframes fadein { 2408 from { 2409 opacity: 0; 2410 } 2411 to { 2412 opacity: 1; 2413 } 2414 } 2415 2416 wui-shimmer { 2417 width: 100%; 2418 aspect-ratio: 1 / 1; 2419 border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important; 2420 } 2421 2422 wui-qr-code { 2423 opacity: 0; 2424 animation-duration: 200ms; 2425 animation-timing-function: ease; 2426 animation-name: fadein; 2427 animation-fill-mode: forwards; 2428 } 2429`,re=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
2429);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rt=class extends q{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,o.dy)` 2430 <wui-flex 2431 flexDirection="column" 2432 alignItems="center" 2433 .padding=${["0","xl","xl","xl"]} 2434 gap="xl" 2435 > 2436 <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer> 2437 2438 <wui-text variant="paragraph-500" color="fg-100"> 2439 Scan this QR Code with your phone 2440 </wui-text> 2441 ${this.copyTemplate()} 2442 </wui-flex> 2443 2444 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 2445 `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40,t=this.wallet?this.wallet.name:void 0;return i.ConnectionController.setWcLinking(void 0),i.ConnectionController.setRecentWallet(this.wallet),(0,o.dy)` <wui-qr-code 2446 size=${e} 2447 theme=${i.ThemeController.state.themeMode} 2448 uri=${this.uri} 2449 imageSrc=${l(i.fz.getWalletImage(this.wallet))} 2450 alt=${l(t)} 2451 data-testid="wui-qr-code" 2452 ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,o.dy)`<wui-link 2453 .disabled=${e} 2454 @click=${this.onCopyUri} 2455 color="fg-200" 2456 data-testid="copy-wc2-uri" 2457 > 2458 <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon> 2459 Copy link 2460 </wui-link>`}};rt.styles=t9,rt=re([(0,n.customElement)("w3m-connecting-wc-qrcode")],rt);let rr=class extends o.oi{constructor(){if(super(),this.wallet=i.RouterController.state.data?.wallet,!this.wallet)throw Error("w3m-connecting-wc-unsupported: No wallet provided");i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return(0,o.dy)` 2461 <wui-flex 2462 flexDirection="column" 2463 alignItems="center" 2464 .padding=${["3xl","xl","xl","xl"]} 2465 gap="xl" 2466 > 2467 <wui-wallet-image 2468 size="lg" 2469 imageSrc=${l(i.fz.getWalletImage(this.wallet))} 2470 ></wui-wallet-image> 2471 2472 <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text> 2473 </wui-flex> 2474 2475 <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links> 2476 `}};rr=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-connecting-wc-unsupported")],rr);var ri=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rn=class extends q{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",i.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;let{webapp_link:e,name:t}=this.wallet,{redirect:r,href:n}=i.j1.formatUniversalUrl(e,this.uri);i.ConnectionController.setWcLinking({name:t,href:n}),i.ConnectionController.setRecentWallet(this.wallet),i.j1.openHref(r,"_blank")}catch{this.error=!0}}};rn=ri([(0,n.customElement)("w3m-connecting-wc-web")],rn);var ro=(0,o.iv)` 2477 :host { 2478 width: 100%; 2479 } 2480 2481 .details-container > wui-flex { 2482 background: var(--wui-color-gray-glass-002); 2483 border-radius: var(--wui-border-radius-xxs); 2484 width: 100%; 2485 } 2486 2487 .details-container > wui-flex > button { 2488 border: none; 2489 background: none; 2490 padding: var(--wui-spacing-s); 2491 border-radius: var(--wui-border-radius-xxs); 2492 cursor: pointer; 2493 } 2494 2495 .details-content-container { 2496 padding: var(--wui-spacing-1xs); 2497 padding-top: 0px; 2498 display: flex; 2499 align-items: center; 2500 justify-content: center; 2501 } 2502 2503 .details-content-container > wui-flex { 2504 width: 100%; 2505 } 2506 2507 .details-row { 2508 width: 100%; 2509 padding: var(--wui-spacing-s); 2510 padding-left: var(--wui-spacing-s); 2511 padding-right: var(--wui-spacing-1xs); 2512 border-radius: calc(var(--wui-border-radius-5xs) + var(--wui-border-radius-4xs)); 2513 background: var(--wui-color-gray-glass-002); 2514 } 2515 2516 .details-row-title { 2517 white-space: nowrap; 2518 } 2519 2520 .details-row.provider-free-row { 2521 padding-right: var(--wui-spacing-xs); 2522 } 2523`,rs=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
2523);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ra=i.bq.CONVERT_SLIPPAGE_TOLERANCE,rl=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.networkName=i.NetworkController.state.caipNetwork?.name,this.detailsOpen=!1,this.sourceToken=i.nY.state.sourceToken,this.toToken=i.nY.state.toToken,this.toTokenAmount=i.nY.state.toTokenAmount,this.sourceTokenPriceInUSD=i.nY.state.sourceTokenPriceInUSD,this.toTokenPriceInUSD=i.nY.state.toTokenPriceInUSD,this.gasPriceInUSD=i.nY.state.gasPriceInUSD,this.priceImpact=i.nY.state.priceImpact,this.maxSlippage=i.nY.state.maxSlippage,this.networkTokenSymbol=i.nY.state.networkTokenSymbol,this.inputError=i.nY.state.inputError,this.unsubscribe.push(i.nY.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.gasPriceInUSD=e.gasPriceInUSD,this.priceImpact=e.priceImpact,this.maxSlippage=e.maxSlippage,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError}))}render(){let e=this.toTokenAmount&&this.maxSlippage?G.C6.bigNumber(this.toTokenAmount).minus(this.maxSlippage).toString():null;if(!this.sourceToken||!this.toToken||this.inputError)return null;let t=this.sourceTokenPriceInUSD&&this.toTokenPriceInUSD?1/this.toTokenPriceInUSD*this.sourceTokenPriceInUSD:0;return(0,o.dy)` 2524 <wui-flex flexDirection="column" alignItems="center" gap="1xs" class="details-container"> 2525 <wui-flex flexDirection="column"> 2526 <button @click=${this.toggleDetails.bind(this)}> 2527 <wui-flex justifyContent="space-between" .padding=${["0","xs","0","xs"]}> 2528 <wui-flex justifyContent="flex-start" flexGrow="1" gap="xs"> 2529 <wui-text variant="small-400" color="fg-100"> 2530 1 ${this.sourceToken.symbol} = 2531 ${n.UiHelperUtil.formatNumberToLocalString(t,3)} 2532 ${this.toToken.symbol} 2533 </wui-text> 2534 <wui-text variant="small-400" color="fg-200"> 2535 $${n.UiHelperUtil.formatNumberToLocalString(this.sourceTokenPriceInUSD)} 2536 </wui-text> 2537 </wui-flex> 2538 <wui-icon name="chevronBottom"></wui-icon> 2539 </wui-flex> 2540 </button> 2541 ${this.detailsOpen?(0,o.dy)` 2542 <wui-flex flexDirection="column" gap="xs" class="details-content-container"> 2543 <wui-flex flexDirection="column" gap="xs"> 2544 <wui-flex 2545 justifyContent="space-between" 2546 alignItems="center" 2547 class="details-row" 2548 > 2549 <wui-flex alignItems="center" gap="xs"> 2550 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 2551 Network cost 2552 </wui-text> 2553 <w3m-tooltip-trigger 2554 text=${`Network cost is paid in ${this.networkTokenSymbol} on the ${this.networkName} network in order to execute transaction.`} 2555 > 2556 <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon> 2557 </w3m-tooltip-trigger> 2558 </wui-flex> 2559 <wui-text variant="small-400" color="fg-100"> 2560 $${n.UiHelperUtil.formatNumberToLocalString(this.gasPriceInUSD,3)} 2561 </wui-text> 2562 </wui-flex> 2563 </wui-flex> 2564 ${this.priceImpact?(0,o.dy)` <wui-flex flexDirection="column" gap="xs"> 2565 <wui-flex 2566 justifyContent="space-between" 2567 alignItems="center" 2568 class="details-row" 2569 > 2570 <wui-flex alignItems="center" gap="xs"> 2571 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 2572 Price impact 2573 </wui-text> 2574 <w3m-tooltip-trigger 2575 text="Price impact reflects the change in market price due to your trade" 2576 > 2577 <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon> 2578 </w3m-tooltip-trigger> 2579 </wui-flex> 2580 <wui-flex> 2581 <wui-text variant="small-400" color="fg-200"> 2582 ${n.UiHelperUtil.formatNumberToLocalString(this.priceImpact,3)}% 2583 </wui-text> 2584 </wui-flex> 2585 </wui-flex> 2586 </wui-flex>`:null} 2587 ${this.maxSlippage&&this.sourceToken.symbol?(0,o.dy)`<wui-flex flexDirection="column" gap="xs"> 2588 <wui-flex 2589 justifyContent="space-between" 2590 alignItems="center" 2591 class="details-row" 2592 > 2593 <wui-flex alignItems="center" gap="xs"> 2594 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 2595 Max. slippage 2596 </wui-text> 2597 <w3m-tooltip-trigger 2598 text=${`Max slippage sets the minimum amount you must receive for the transaction to proceed. ${e?`Transaction will be reversed if you receive less than ${n.UiHelperUtil.formatNumberToLocalString(e,6)} ${this.toToken.symbol} due to price changes.`:""}`} 2599 > 2600 <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon> 2601 </w3m-tooltip-trigger> 2602 </wui-flex> 2603 <wui-flex> 2604 <wui-text variant="small-400" color="fg-200"> 2605 ${n.UiHelperUtil.formatNumberToLocalString(this.maxSlippage,6)} 2606 ${this.toToken.symbol} ${ra}% 2607 </wui-text> 2608 </wui-flex> 2609 </wui-flex> 2610 </wui-flex>`:null} 2611 <wui-flex flexDirection="column" gap="xs"> 2612 <wui-flex 2613 justifyContent="space-between" 2614 alignItems="center" 2615 class="details-row provider-free-row" 2616 > 2617 <wui-flex alignItems="center" gap="xs"> 2618 <wui-text class="details-row-title" variant="small-400" color="fg-150"> 2619 Provider fee 2620 </wui-text> 2621 </wui-flex> 2622 <wui-flex> 2623 <wui-text variant="small-400" color="fg-200">0.85%</wui-text> 2624 </wui-flex> 2625 </wui-flex> 2626 </wui-flex> 2627 </wui-flex> 2628 `:null} 2629 </wui-flex> 2630 </wui-flex> 2631 `}toggleDetails(){this.detailsOpen=!this.detailsOpen}};rl.styles=[ro],rs([(0,s.SB)()],rl.prototype,"networkName",void 0),rs([(0,s.Cb)()],rl.prototype,"detailsOpen",void 0),rs([(0,s.SB)()],rl.prototype,"sourceToken",void 0),rs([(0,s.SB)()],rl.prototype,"toToken",void 0),rs([(0,s.SB)()],rl.prototype,"toTokenAmount",void 0),rs([(0,s.SB)()],rl.prototype,"sourceTokenPriceInUSD",void 0),rs([(0,s.SB)()],rl.prototype,"toTokenPriceInUSD",void 0),rs([(0,s.SB)()],rl.prototype,"gasPriceInUSD",void 0),rs([(0,s.SB)()],rl.prototype,"priceImpact",void 0),rs([(0,s.SB)()],rl.prototype,"maxSlippage",void 0),rs([(0,s.SB)()],rl.prototype,"networkTokenSymbol",void 0),rs([(0,s.SB)()],rl.prototype,"inputError",void 0),rl=rs([(0,n.customElement)("w3m-swap-details")],rl);var rc=(0,o.iv)` 2632 :host > wui-flex { 2633 display: flex; 2634 flex-direction: row; 2635 justify-content: space-between; 2636 align-items: center; 2637 border-radius: var(--wui-border-radius-s); 2638 background-color: var(--wui-color-gray-glass-002); 2639 padding: var(--wui-spacing-xl); 2640 padding-right: var(--wui-spacing-s); 2641 width: 100%; 2642 height: 100px; 2643 box-sizing: border-box; 2644 box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002); 2645 position: relative; 2646 transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-lg); 2647 will-change: background-color; 2648 } 2649 2650 :host wui-flex.focus { 2651 box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-005); 2652 } 2653 2654 :host > wui-flex .swap-input, 2655 :host > wui-flex .swap-token-button { 2656 z-index: 10; 2657 } 2658 2659 :host > wui-flex .swap-input { 2660 -webkit-mask-image: linear-gradient( 2661 270deg, 2662 transparent 0px, 2663 transparent 8px, 2664 black 24px, 2665 black 25px, 2666 black 32px, 2667 black 100% 2668 ); 2669 mask-image: linear-gradient( 2670 270deg, 2671 transparent 0px, 2672 transparent 8px, 2673 black 24px, 2674 black 25px, 2675 black 32px, 2676 black 100% 2677 ); 2678 } 2679 2680 :host > wui-flex .swap-input input { 2681 background: none; 2682 border: none; 2683 height: 42px; 2684 width: 100%; 2685 font-size: 32px; 2686 font-style: normal; 2687 font-weight: 400; 2688 line-height: 130%; 2689 letter-spacing: -1.28px; 2690 outline: none; 2691 caret-color: var(--wui-color-accent-100); 2692 color: var(--wui-color-fg-100); 2693 padding: 0px; 2694 } 2695 2696 :host > wui-flex .swap-input input:focus-visible { 2697 outline: none; 2698 } 2699 2700 :host > wui-flex .swap-input input::-webkit-outer-spin-button, 2701 :host > wui-flex .swap-input input::-webkit-inner-spin-button { 2702 -webkit-appearance: none; 2703 margin: 0; 2704 } 2705 2706 .max-value-button { 2707 background-color: transparent; 2708 border: none; 2709 cursor: pointer; 2710 color: var(--wui-color-gray-glass-020); 2711 padding-left: 0px; 2712 } 2713 2714 .market-value { 2715 min-height: 18px; 2716 } 2717`,ru=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
2717);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rd=5e-5,rh=class extends o.oi{constructor(){super(...arguments),this.focused=!1,this.price=0,this.target="sourceToken",this.onSetAmount=null,this.onSetMaxValue=null}render(){let e=this.marketValue||"0",t=G.C6.bigNumber(e).isGreaterThan("0");return(0,o.dy)` 2718 <wui-flex class="${this.focused?"focus":""}" justifyContent="space-between"> 2719 <wui-flex 2720 flex="1" 2721 flexDirection="column" 2722 alignItems="flex-start" 2723 justifyContent="center" 2724 class="swap-input" 2725 > 2726 <input 2727 @focusin=${()=>this.onFocusChange(!0)} 2728 @focusout=${()=>this.onFocusChange(!1)} 2729 ?disabled=${this.disabled} 2730 .value=${this.value} 2731 @input=${this.dispatchInputChangeEvent} 2732 @keydown=${this.handleKeydown} 2733 placeholder="0" 2734 type="text" 2735 inputmode="decimal" 2736 /> 2737 <wui-text class="market-value" variant="small-400" color="fg-200"> 2738 ${t?`$${n.UiHelperUtil.formatNumberToLocalString(this.marketValue,3)}`:null} 2739 </wui-text> 2740 </wui-flex> 2741 ${this.templateTokenSelectButton()} 2742 </wui-flex> 2743 `}handleKeydown(e){return G.kg.numericInputKeyDown(e,this.value,e=>this.onSetAmount?.(this.target,e))}dispatchInputChangeEvent(e){if(!this.onSetAmount)return;let t=e.target.value.replace(/[^0-9.]/gu,"");","===t||"."===t?this.onSetAmount(this.target,"0."):t.endsWith(",")?this.onSetAmount(this.target,t.replace(",",".")):this.onSetAmount(this.target,t)}setMaxValueToInput(){this.onSetMaxValue?.(this.target,this.balance)}templateTokenSelectButton(){return this.token?(0,o.dy)` 2744 <wui-flex 2745 class="swap-token-button" 2746 flexDirection="column" 2747 alignItems="flex-end" 2748 justifyContent="center" 2749 gap="xxs" 2750 > 2751 <wui-token-button 2752 text=${this.token.symbol} 2753 imageSrc=${this.token.logoUri} 2754 @click=${this.onSelectToken.bind(this)} 2755 > 2756 </wui-token-button> 2757 <wui-flex alignItems="center" gap="xxs"> ${this.tokenBalanceTemplate()} </wui-flex> 2758 </wui-flex> 2759 `:(0,o.dy)` <wui-button 2760 class="swap-token-button" 2761 size="md" 2762 variant="accent" 2763 @click=${this.onSelectToken.bind(this)} 2764 > 2765 Select token 2766 </wui-button>`}tokenBalanceTemplate(){let e=G.C6.multiply(this.balance,this.price),t=!!e&&e?.isGreaterThan(rd);return(0,o.dy)` 2767 ${t?(0,o.dy)`<wui-text variant="small-400" color="fg-200"> 2768 ${n.UiHelperUtil.formatNumberToLocalString(this.balance,3)} 2769 </wui-text>`:null} 2770 ${"sourceToken"===this.target?this.tokenActionButtonTemplate(t):null} 2771 `}tokenActionButtonTemplate(e){return e?(0,o.dy)` <button class="max-value-button" @click=${this.setMaxValueToInput.bind(this)}> 2772 <wui-text color="accent-100" variant="small-600">Max</wui-text> 2773 </button>`:(0,o.dy)` <button class="max-value-button" @click=${this.onBuyToken.bind(this)}> 2774 <wui-text color="accent-100" variant="small-600">Buy</wui-text> 2775 </button>`}onFocusChange(e){this.focused=e}onSelectToken(){i.Xs.sendEvent({type:"track",event:"CLICK_SELECT_TOKEN_TO_SWAP"}),i.RouterController.push("SwapSelectToken",{target:this.target})}onBuyToken(){i.RouterController.push("OnRampProviders")}};rh.styles=[rc],ru([(0,s.Cb)()],rh.prototype,"focused",void 0),ru([(0,s.Cb)()],rh.prototype,"balance",void 0),ru([(0,s.Cb)()],rh.prototype,"value",void 0),ru([(0,s.Cb)()],rh.prototype,"price",void 0),ru([(0,s.Cb)()],rh.prototype,"marketValue",void 0),ru([(0,s.Cb)()],rh.prototype,"disabled",void 0),ru([(0,s.Cb)()],rh.prototype,"target",void 0),ru([(0,s.Cb)()],rh.prototype,"token",void 0),ru([(0,s.Cb)()],rh.prototype,"onSetAmount",void 0),ru([(0,s.Cb)()],rh.prototype,"onSetMaxValue",void 0),rh=ru([(0,n.customElement)("w3m-swap-input")],rh);var rf=(0,o.iv)` 2776 :host { 2777 width: 100%; 2778 } 2779 2780 :host > wui-flex { 2781 display: flex; 2782 flex-direction: row; 2783 justify-content: space-between; 2784 align-items: center; 2785 border-radius: var(--wui-border-radius-s); 2786 padding: var(--wui-spacing-xl); 2787 padding-right: var(--wui-spacing-s); 2788 background-color: var(--wui-color-gray-glass-002); 2789 box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002); 2790 width: 100%; 2791 height: 100px; 2792 box-sizing: border-box; 2793 position: relative; 2794 } 2795 2796 wui-shimmer.market-value { 2797 opacity: 0; 2798 } 2799 2800 :host > wui-flex > svg.input_mask { 2801 position: absolute; 2802 inset: 0; 2803 z-index: 5; 2804 } 2805 2806 :host wui-flex .input_mask__border, 2807 :host wui-flex .input_mask__background { 2808 transition: fill var(--wui-duration-md) var(--wui-ease-out-power-1); 2809 will-change: fill; 2810 } 2811 2812 :host wui-flex .input_mask__border { 2813 fill: var(--wui-color-gray-glass-020); 2814 } 2815 2816 :host wui-flex .input_mask__background { 2817 fill: var(--wui-color-gray-glass-002); 2818 } 2819`,rp=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
2819);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rg=class extends o.oi{constructor(){super(...arguments),this.target="sourceToken"}render(){return(0,o.dy)` 2820 <wui-flex class justifyContent="space-between"> 2821 <wui-flex 2822 flex="1" 2823 flexDirection="column" 2824 alignItems="flex-start" 2825 justifyContent="center" 2826 class="swap-input" 2827 gap="xxs" 2828 > 2829 <wui-shimmer width="80px" height="40px" borderRadius="xxs" variant="light"></wui-shimmer> 2830 </wui-flex> 2831 ${this.templateTokenSelectButton()} 2832 </wui-flex> 2833 `}templateTokenSelectButton(){return(0,o.dy)` 2834 <wui-flex 2835 class="swap-token-button" 2836 flexDirection="column" 2837 alignItems="flex-end" 2838 justifyContent="center" 2839 gap="xxs" 2840 > 2841 <wui-shimmer width="80px" height="40px" borderRadius="3xl" variant="light"></wui-shimmer> 2842 </wui-flex> 2843 `}};rg.styles=[rf],rp([(0,s.Cb)()],rg.prototype,"target",void 0),rg=rp([(0,n.customElement)("w3m-swap-input-skeleton")],rg);var rm=(0,o.iv)` 2844 :host { 2845 height: 64px; 2846 } 2847 2848 wui-text { 2849 text-transform: capitalize; 2850 } 2851 2852 wui-icon-link[data-hidden='true'] { 2853 opacity: 0 !important; 2854 pointer-events: none; 2855 } 2856`,rw=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ry=["Swap","SwapSelectToken","SwapPreview"];function rb(){let e=i.RouterController.state.data?.connector?.name,t=i.RouterController.state.data?.wallet?.name,r=i.RouterController.state.data?.network?.name,n=t??e,o=i.ConnectorController.getConnectors(),s=1===o.length&&o[0]?.id==="w3m-email";return{Connect:`Connect ${s?"Email":""} Wallet`,ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,ConnectingExternal:n??"Connect Wallet",ConnectingWalletConnect:n??"WalletConnect",ConnectingSiwe:"Sign In",Networks:"Choose Network",SwitchNetwork:r??"Switch Network",AllWallets:"All Wallets",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",GetWallet:"Get a wallet",Downloads:n?`Get ${n}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",ApproveTransaction:"Approve Transaction",Transactions:"Activity",UpgradeEmailWallet:"Upgrade your Wallet",UpgradeToSmartAccount:void 0,UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",UnsupportedChain:"Switch Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",WhatIsABuy:"What is Buy?",BuyInProgress:"Buy",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:i.AccountController.state.socialProvider?i.AccountController.state.socialProvider:"Connect Social"}}let rv=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.heading=rb()[i.RouterController.state.view],this.buffering=!1,this.showBack=!1,this.unsubscribe.push(i.RouterController.subscribeKey("view",e=>{this.onViewChange(e),this.onHistoryChange()}),i.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` 2857 <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center"> 2858 ${this.dynamicButtonTemplate()} ${this.titleTemplate()} 2859 <wui-icon-link 2860 ?disabled=${this.buffering} 2861 icon="close" 2862 @click=${this.onClose.bind(this)} 2863 data-testid="w3m-header-close" 2864 ></wui-icon-link> 2865 </wui-flex> 2866 `}onWalletHelp(){i.Xs.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),i.RouterController.push("WhatIsAWallet")}async onClose(){if(i.OptionsController.state.isSiweEnabled){let{SIWEController:e}=await Promise.all([r.e(3138),r.e(1609)]).then(r.bind(r,41609));"success"!==e.state.status&&await i.ConnectionController.disconnect()}i.IN.close()}titleTemplate(){let e=ry.includes(i.RouterController.state.view);return(0,o.dy)` 2867 <wui-flex class="w3m-header-title" alignItems="center" gap="xs"> 2868 <wui-text variant="paragraph-700" color="fg-100">${this.heading}</wui-text> 2869 ${e?(0,o.dy)`<wui-tag variant="main">Beta</wui-tag>`:null} 2870 </wui-flex> 2871 `}dynamicButtonTemplate(){let{view:e}=i.RouterController.state,t="Connect"===e,r="ApproveTransaction"===e,n="UpgradeToSmartAccount"===e,s="ConnectingSiwe"===e,a=r||n||s;return this.showBack&&!a?(0,o.dy)`<wui-icon-link 2872 id="dynamic" 2873 icon="chevronLeft" 2874 ?disabled=${this.buffering} 2875 @click=${this.onGoBack.bind(this)} 2876 ></wui-icon-link>`:(0,o.dy)`<wui-icon-link 2877 data-hidden=${!t} 2878 id="dynamic" 2879 icon="helpCircle" 2880 @click=${this.onWalletHelp.bind(this)} 2881 ></wui-icon-link>`}getPadding(){return this.heading?["l","2l","l","2l"]:["l","2l","0","2l"]}async onViewChange(e){let t=this.shadowRoot?.querySelector("wui-flex.w3m-header-title");if(t){let r=rb()[e];await t.animate([{opacity:1},{opacity:0}
2881],{duration:200,fill:"forwards",easing:"ease"}).finished,this.heading=r,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})}}async onHistoryChange(){let{history:e}=i.RouterController.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){i.RouterController.goBack()}};rv.styles=[rm],rw([(0,s.SB)()],rv.prototype,"heading",void 0),rw([(0,s.SB)()],rv.prototype,"buffering",void 0),rw([(0,s.SB)()],rv.prototype,"showBack",void 0),rv=rw([(0,n.customElement)("w3m-header")],rv);var r_=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rx=class extends o.oi{constructor(){super(...arguments),this.data=[]}render(){return(0,o.dy)` 2882 <wui-flex flexDirection="column" alignItems="center" gap="l"> 2883 ${this.data.map(e=>(0,o.dy)` 2884 <wui-flex flexDirection="column" alignItems="center" gap="xl"> 2885 <wui-flex flexDirection="row" justifyContent="center" gap="1xs"> 2886 ${e.images.map(e=>(0,o.dy)`<wui-visual name=${e}></wui-visual>`)} 2887 </wui-flex> 2888 </wui-flex> 2889 <wui-flex flexDirection="column" alignItems="center" gap="xxs"> 2890 <wui-text variant="paragraph-500" color="fg-100" align="center"> 2891 ${e.title} 2892 </wui-text> 2893 <wui-text variant="small-500" color="fg-200" align="center">${e.text}</wui-text> 2894 </wui-flex> 2895 `)} 2896 </wui-flex> 2897 `}};r_([(0,s.Cb)({type:Array})],rx.prototype,"data",void 0),rx=r_([(0,n.customElement)("w3m-help-widget")],rx);var rE=(0,o.iv)` 2898 :host { 2899 width: 100%; 2900 } 2901 2902 wui-loading-spinner { 2903 position: absolute; 2904 top: 50%; 2905 right: 20px; 2906 transform: translateY(-50%); 2907 } 2908 2909 .currency-container { 2910 position: absolute; 2911 top: 50%; 2912 transform: translateY(-50%); 2913 right: var(--wui-spacing-1xs); 2914 height: 40px; 2915 padding: var(--wui-spacing-xs) var(--wui-spacing-1xs) var(--wui-spacing-xs) 2916 var(--wui-spacing-xs); 2917 min-width: 95px; 2918 border-radius: var(--FULL, 1000px); 2919 border: 1px solid var(--wui-color-gray-glass-002); 2920 background: var(--wui-color-gray-glass-002); 2921 cursor: pointer; 2922 } 2923 2924 .currency-container > wui-image { 2925 height: 24px; 2926 width: 24px; 2927 border-radius: 50%; 2928 } 2929`,rC=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rk=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.type="Token",this.value=0,this.currencies=[],this.selectedCurrency=this.currencies?.[0],this.currencyImages=i.WM.state.currencyImages,this.tokenImages=i.WM.state.tokenImages,this.unsubscribe.push(i.ph.subscribeKey("purchaseCurrency",e=>{e&&"Fiat"!==this.type&&(this.selectedCurrency=this.formatPurchaseCurrency(e))}),i.ph.subscribeKey("paymentCurrency",e=>{e&&"Token"!==this.type&&(this.selectedCurrency=this.formatPaymentCurrency(e))}),i.ph.subscribe(e=>{"Fiat"===this.type?this.currencies=e.purchaseCurrencies.map(this.formatPurchaseCurrency):this.currencies=e.paymentCurrencies.map(this.formatPaymentCurrency)}),i.WM.subscribe(e=>{this.currencyImages={...e.currencyImages},this.tokenImages={...e.tokenImages}}))}firstUpdated(){i.ph.getAvailableCurrencies()}
2929disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.selectedCurrency?.symbol||"",t=this.currencyImages[e]||this.tokenImages[e];return(0,o.dy)`<wui-input-text type="number" size="lg" value=${this.value}> 2930 ${this.selectedCurrency?(0,o.dy)` <wui-flex 2931 class="currency-container" 2932 justifyContent="space-between" 2933 alignItems="center" 2934 gap="xxs" 2935 @click=${()=>i.IN.open({view:`OnRamp${this.type}Select`})} 2936 > 2937 <wui-image src=${l(t)}></wui-image> 2938 <wui-text color="fg-100">${this.selectedCurrency.symbol}</wui-text> 2939 </wui-flex>`:(0,o.dy)`<wui-loading-spinner></wui-loading-spinner>`} 2940 </wui-input-text>`}formatPaymentCurrency(e){return{name:e.id,symbol:e.id}}formatPurchaseCurrency(e){return{name:e.name,symbol:e.symbol}}};rk.styles=rE,rC([(0,s.Cb)({type:String})],rk.prototype,"type",void 0),rC([(0,s.Cb)({type:Number})],rk.prototype,"value",void 0),rC([(0,s.SB)()],rk.prototype,"currencies",void 0),rC([(0,s.SB)()],rk.prototype,"selectedCurrency",void 0),rC([(0,s.SB)()],rk.prototype,"currencyImages",void 0),rC([(0,s.SB)()],rk.prototype,"tokenImages",void 0),rk=rC([(0,n.customElement)("w3m-onramp-input")],rk);var rS=(0,o.iv)` 2941 wui-flex { 2942 background-color: var(--wui-color-gray-glass-005); 2943 } 2944 2945 a { 2946 text-decoration: none; 2947 color: var(--wui-color-fg-175); 2948 font-weight: 500; 2949 } 2950`,rA=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rI=class extends o.oi{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=i.OptionsController.state;return e||t?(0,o.dy)` 2951 <wui-flex .padding=${["m","s","s","s"]} justifyContent="center"> 2952 <wui-text color="fg-250" variant="small-400" align="center"> 2953 By connecting your wallet, you agree to our <br /> 2954 ${this.termsTemplate()} ${this.andTemplate()} ${this.privacyTemplate()} 2955 </wui-text> 2956 </wui-flex> 2957 `:null}andTemplate(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=i.OptionsController.state;return e&&t?"and":""}termsTemplate(){let{termsConditionsUrl:e}=i.OptionsController.state;return e?(0,o.dy)`<a href=${e}>Terms of Service</a>`:null}privacyTemplate(){let{privacyPolicyUrl:e}=i.OptionsController.state;return e?(0,o.dy)`<a href=${e}>Privacy Policy</a>`:null}};rI.styles=[rS],rI=rA([(0,n.customElement)("w3m-legal-footer")],rI);var rT=(0,o.iv)` 2958 :host { 2959 display: block; 2960 padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl); 2961 } 2962`,rR=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rO=class extends o.oi{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;let{name:e,app_store:t,play_store:r,chrome_store:s,homepage:a}=this.wallet,l=i.j1.isMobile(),c=i.j1.isIos(),u=i.j1.isAndroid(),d=[t,r,a,s].filter(Boolean).length>1,h=n.UiHelperUtil.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return d&&!l?(0,o.dy)` 2963 <wui-cta-button 2964 label=${`Don't have ${h}?`} 2965 buttonLabel="Get" 2966 @click=${()=>i.RouterController.push("Downloads",{wallet:this.wallet})} 2967 ></wui-cta-button> 2968 `:!d&&a?(0,o.dy)` 2969 <wui-cta-button 2970 label=${`Don't have ${h}?`} 2971 buttonLabel="Get" 2972 @click=${this.onHomePage.bind(this)} 2973 ></wui-cta-button> 2974 `:t&&c?(0,o.dy)` 2975 <wui-cta-button 2976 label=${`Don't have ${h}?`} 2977 buttonLabel="Get" 2978 @click=${this.onAppStore.bind(this)} 2979 ></wui-cta-button> 2980 `:r&&u?(0,o.dy)` 2981 <wui-cta-button 2982 label=${`Don't have ${h}?`} 2983 buttonLabel="Get" 2984 @click=${this.onPlayStore.bind(this)} 2985 ></wui-cta-button> 2986 `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&i.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&i.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&i.j1.openHref(this.wallet.homepage,"_blank")}};rO.styles=[rT],rR([(0,s.Cb)({type:Object})],rO.prototype,"wallet",void 0),rO=rR([(0,n.customElement)("w3m-mobile-download-l
2986inks")],rO);var rP=(0,o.iv)` 2987 wui-flex { 2988 border-top: 1px solid var(--wui-color-gray-glass-005); 2989 } 2990 2991 a { 2992 text-decoration: none; 2993 color: var(--wui-color-fg-175); 2994 font-weight: 500; 2995 display: flex; 2996 align-items: center; 2997 justify-content: center; 2998 gap: var(--wui-spacing-3xs); 2999 } 3000`,rN=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rM=class extends o.oi{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=i.OptionsController.state;return e||t?(0,o.dy)` 3001 <wui-flex 3002 .padding=${["m","s","s","s"]} 3003 flexDirection="column" 3004 alignItems="center" 3005 justifyContent="center" 3006 gap="s" 3007 > 3008 <wui-text color="fg-250" variant="small-400" align="center"> 3009 We work with the best providers to give you the lowest fees and best support. More options 3010 coming soon! 3011 </wui-text> 3012 3013 ${this.howDoesItWorkTemplate()} 3014 </wui-flex> 3015 `:null}howDoesItWorkTemplate(){return(0,o.dy)` <wui-link @click=${this.onWhatIsBuy.bind(this)}> 3016 <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon> 3017 How does it work? 3018 </wui-link>`}onWhatIsBuy(){i.RouterController.push("WhatIsABuy")}};rM.styles=[rP],rM=rN([(0,n.customElement)("w3m-onramp-providers-footer")],rM);var rD=(0,o.iv)` 3019 :host { 3020 display: block; 3021 position: absolute; 3022 opacity: 0; 3023 pointer-events: none; 3024 top: 11px; 3025 left: 50%; 3026 width: max-content; 3027 } 3028`,rL=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rj={success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}},rB=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=i.SnackController.state.open,this.unsubscribe.push(i.SnackController.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t}=i.SnackController.state,r=rj[t];return(0,o.dy)` 3029 <wui-snackbar 3030 message=${e} 3031 backgroundColor=${r.backgroundColor} 3032 iconColor=${r.iconColor} 3033 icon=${r.icon} 3034 ></wui-snackbar> 3035 `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout=setTimeout(()=>i.SnackController.hide(),2500)):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};rB.styles=rD,rL([(0,s.SB)()],rB.prototype,"open",void 0),rB=rL([(0,n.customElement)("w3m-snackbar")],rB);var r$=(0,o.iv)` 3036 wui-separator { 3037 margin: var(--wui-spacing-s) calc(var(--wui-spacing-s) * -1); 3038 width: calc(100% + var(--wui-spacing-s) * 2); 3039 } 3040 3041 wui-email-input { 3042 width: 100%; 3043 } 3044 3045 form { 3046 width: 100%; 3047 display: block; 3048 position: relative; 3049 } 3050 3051 wui-icon-link, 3052 wui-loading-spinner { 3053 position: absolute; 3054 top: 50%; 3055 transform: translateY(-50%); 3056 } 3057 3058 wui-icon-link { 3059 right: var(--wui-spacing-xs); 3060 } 3061 3062 wui-loading-spinner { 3063 right: var(--wui-spacing-m); 3064 } 3065`,rU=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rF=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.formRef=ep(),this.connectors=i.ConnectorController.state.connectors,this.email="",this.loading=!1,this.error="",this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}
3065disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=this.connectors.find(e=>"AUTH"===e.type),t=this.connectors.length>1;return e?.email?(0,o.dy)` 3066 <form ${ew(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> 3067 <wui-email-input 3068 @focus=${this.onFocusEvent.bind(this)} 3069 .disabled=${this.loading} 3070 @inputChange=${this.onEmailInputChange.bind(this)} 3071 .errorMessage=${this.error} 3072 > 3073 </wui-email-input> 3074 3075 ${this.submitButtonTemplate()}${this.loadingTemplate()} 3076 <input type="submit" hidden /> 3077 </form> 3078 3079 ${e.socials||!t?null:(0,o.dy)`<wui-flex .padding=${["xxs","0","0","0"]}> 3080 <wui-separator text="or"></wui-separator> 3081 </wui-flex>`} 3082 `:null}submitButtonTemplate(){return!this.loading&&this.email.length>3?(0,o.dy)` 3083 <wui-icon-link 3084 size="sm" 3085 icon="chevronRight" 3086 iconcolor="accent-100" 3087 @click=${this.onSubmitEmail.bind(this)} 3088 > 3089 </wui-icon-link> 3090 `:null}loadingTemplate(){return this.loading?(0,o.dy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}onEmailInputChange(e){this.email=e.detail.trim(),this.error=""}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=i.ConnectorController.getAuthConnector();if(!t)throw Error("w3m-email-login-widget: Auth connector not found");let{action:r}=await t.provider.connectEmail({email:this.email});i.Xs.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),"VERIFY_OTP"===r?(i.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),i.RouterController.push("EmailVerifyOtp",{email:this.email})):"VERIFY_DEVICE"===r&&i.RouterController.push("EmailVerifyDevice",{email:this.email})}catch(t){let e=i.j1.parseError(t);e?.includes("Invalid email")?this.error="Invalid email. Try again.":i.SnackController.showError(t)}finally{this.loading=!1}}onFocusEvent(){i.Xs.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};rF.styles=r$,rU([(0,s.SB)()],rF.prototype,"connectors",void 0),rU([(0,s.SB)()],rF.prototype,"email",void 0),rU([(0,s.SB)()],rF.prototype,"loading",void 0),rU([(0,s.SB)()],rF.prototype,"error",void 0),rF=rU([(0,n.customElement)("w3m-email-login-widget")],rF);var rz=(0,o.iv)` 3091 wui-flex { 3092 width: 100%; 3093 } 3094 3095 :host > wui-flex:first-child { 3096 transform: translateY(calc(var(--wui-spacing-xxs) * -1)); 3097 } 3098 3099 wui-icon-link { 3100 margin-right: calc(var(--wui-icon-box-size-md) * -1); 3101 } 3102 3103 wui-notice-card { 3104 margin-bottom: var(--wui-spacing-3xs); 3105 } 3106 3107 w3m-transactions-view { 3108 max-height: 200px; 3109 } 3110 3111 .tab-content-container { 3112 height: 300px; 3113 overflow-y: auto; 3114 overflow-x: hidden; 3115 scrollbar-width: none; 3116 } 3117 3118 .tab-content-container::-webkit-scrollbar {
3119 display: none; 3120 } 3121 3122 .account-button { 3123 width: auto; 3124 border: none; 3125 display: flex; 3126 align-items: center; 3127 justify-content: center; 3128 gap: var(--wui-spacing-s); 3129 height: 48px; 3130 padding: var(--wui-spacing-xs); 3131 padding-right: var(--wui-spacing-s); 3132 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 3133 background-color: var(--wui-color-gray-glass-002); 3134 border-radius: 24px; 3135 transaction: background-color 0.2s linear; 3136 } 3137 3138 .account-button:hover { 3139 background-color: var(--wui-color-gray-glass-005); 3140 } 3141 3142 .avatar-container { 3143 position: relative; 3144 } 3145 3146 wui-avatar.avatar { 3147 width: 32px; 3148 height: 32px; 3149 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 3150 } 3151 3152 wui-avatar.network-avatar { 3153 width: 16px; 3154 height: 16px; 3155 position: absolute; 3156 left: 100%; 3157 top: 100%; 3158 transform: translate(-75%, -75%); 3159 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 3160 } 3161 3162 .account-links { 3163 display: flex; 3164 justify-content: space-between; 3165 align-items: center; 3166 } 3167 3168 .account-links wui-flex { 3169 cursor: pointer; 3170 display: flex; 3171 align-items: center; 3172 justify-content: center; 3173 flex: 1; 3174 background: red; 3175 align-items: center; 3176 justify-content: center; 3177 height: 48px; 3178 padding: 10px; 3179 flex: 1 0 0; 3180 border-radius: var(--XS, 16px); 3181 border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 3182 background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1)); 3183 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 3184 will-change: background-color; 3185 } 3186 3187 .account-links wui-flex:hover { 3188 background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15)); 3189 } 3190 3191 .account-links wui-flex wui-icon { 3192 width: var(--S, 20px); 3193 height: var(--S, 20px); 3194 } 3195 3196 .account-links wui-flex wui-icon svg path { 3197 stroke: #667dff; 3198 } 3199`,rq=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rW=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.address=i.AccountController.state.address,this.profileImage=i.AccountController.state.profileImage,this.profileName=i.AccountController.state.profileName,this.network=i.NetworkController.state.caipNetwork,this.disconnecting=!1,this.balance=i.AccountController.state.balance,this.balanceSymbol=i.AccountController.state.balanceSymbol,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.balance=e.balance,this.balanceSymbol=e.balanceSymbol):this.disconnecting||i.SnackController.showError("Account not found")}),i.NetworkController.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=i.fz.getNetworkImage(this.network);return(0,o.dy)`<wui-flex 3200 flexDirection="column" 3201 .padding=${["0","xl","m","xl"]} 3202 alignItems="center" 3203 gap="l" 3204 > 3205 <wui-avatar 3206 alt=${l(this.address)} 3207 address=${l(this.address)} 3208 imageSrc=${l(null===this.profileImage?void 0:this.profileImage)} 3209 ></wui-avatar> 3210 <wui-flex flexDirection="column" alignItems="center"> 3211 <wui-flex gap="3xs" alignItems="center" justifyContent="center"> 3212 <wui-text variant="medium-title-600" color="fg-100"> 3213 ${this.profileName?n.UiHelperUtil.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):n.UiHelperUtil.getTruncateString({string:this.address?this.address:"",charsStart:4,charsEnd:4,truncate:"middle"})} 3214 </wui-text> 3215 <wui-icon-link 3216 size="md" 3217 icon="copy" 3218 iconColor="fg-200" 3219 @click=${this.onCopyAddress} 3220 ></wui-icon-link> 3221 </wui-flex> 3222 <wui-text variant="paragraph-500" color="fg-200" 3223 >${i.j1.formatBalance(this.balance,this.balanceSymbol)}</wui-text 3224 > 3225 </wui-flex> 3226 ${this.explorerBtnTemplate()} 3227 </wui-flex> 3228 3229 <wui-flex flexDirection="column" gap="xs" .padding=${["0","s","s","s"]}> 3230 ${this.emailCardTemplate()} <w3m-account-auth-button></w3m-account-auth-button> 3231 3232 <wui-list-item 3233 .variant=${e?"image":"icon"} 3234 iconVariant="overlay" 3235 icon="networkPlaceholder" 3236 imageSrc=${l(e)} 3237 ?chevron=${this.isAllowedNetworkSwitch()} 3238 @click=${this.onNetworks.bind(this)} 3239 data-testid="w3m-account-select-network" 3240 > 3241 <wui-text variant="paragraph-500" color="fg-100"> 3242 ${this.network?.name??"Unknown"} 3243 </wui-text> 3244 </wui-list-item> 3245 ${this.onrampTemplate()} 3246 <wui-list-item 3247 iconVariant="blue" 3248 icon="swapHorizontalMedium" 3249 iconSize="sm" 3250 ?chevron=${!0} 3251 @click=${this.onTransactions.bind(this)} 3252 > 3253 <wui-text variant="paragraph-500" color="fg-100">Activity</wui-text> 3254 </wui-list-item> 3255 <wui-list-item 3256 variant="icon" 3257 iconVariant="overlay" 3258 icon="disconnect" 3259 ?chevron=${!1} 3260 .loading=${this.disconnecting} 3261 @click=${this.onDisconnect.bind(this)} 3262 data-testid="disconnect-button" 3263 > 3264 <wui-text variant="paragraph-500" color="fg-200">Disconnect</wui-text> 3265 </wui-list-item> 3266 </wui-flex>`}onrampTemplate(){let{enableOnramp:e}=i.OptionsController.state;return e?(0,o.dy)` 3267 <wui-list-item 3268 iconVariant="blue" 3269 icon="card" 3270 ?chevron=${!0} 3271 @click=${this.handleClickPay.bind(this)} 3272 > 3273 <wui-text variant="paragraph-500" color="fg-100">Buy crypto</wui-text> 3274 </wui-list-item> 3275 `:null}emailCardTemplate(){let e=i.MO.getConnectedConnector(),t=i.ConnectorController.getAuthConnector(),{origin:r}=location;return!t||"AUTH"!==e||r.includes(i.bq.SECURE_SITE)?null:(0,o.dy)` 3276 <wui-notice-card 3277 @click=${this.onGoToUpgradeView.bind(this)} 3278 label="Upgrade your wallet" 3279 description="Transition to a self-custodial wallet" 3280 icon="wallet" 3281 data-testid="w3m-wallet-upgrade-card" 3282 ></wui-notice-card> 3283 `}handleClickPay(){i.RouterController.push("OnRampProviders")}explorerBtnTemplate(){let{addressExplorerUrl:e}=i.AccountController.state;return e?(0,o.dy)` 3284 <wui-button size="md" variant="neutral" @click=${this.onExplorer.bind(this)}> 3285 <wui-icon size="sm" color="inherit" slot="iconLeft" name="compass"></wui-icon> 3286 Block Explorer 3287 <wui-icon size="sm" color="inherit" slot="iconRight" name="externalLink"></wui-icon> 3288 </wui-button>
3288 3289 `:null}isAllowedNetworkSwitch(){let{requestedCaipNetworks:e}=i.NetworkController.state,t=!!e&&e.length>1,r=e?.find(({id:e})=>e===this.network?.id);return t||!r}onCopyAddress(){try{this.address&&(i.j1.copyToClopboard(this.address),i.SnackController.showSuccess("Address copied"))}catch{i.SnackController.showError("Failed to copy")}}onNetworks(){this.isAllowedNetworkSwitch()&&(i.Xs.sendEvent({type:"track",event:"CLICK_NETWORKS"}),i.RouterController.push("Networks"))}onTransactions(){i.Xs.sendEvent({type:"track",event:"CLICK_TRANSACTIONS"}),i.RouterController.push("Transactions")}async onDisconnect(){try{this.disconnecting=!0,await i.ConnectionController.disconnect(),i.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),i.IN.close()}catch{i.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),i.SnackController.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onExplorer(){let{addressExplorerUrl:e}=i.AccountController.state;e&&i.j1.openHref(e,"_blank")}onGoToUpgradeView(){i.Xs.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),i.RouterController.push("UpgradeEmailWallet")}};rW.styles=rz,rq([(0,s.SB)()],rW.prototype,"address",void 0),rq([(0,s.SB)()],rW.prototype,"profileImage",void 0),rq([(0,s.SB)()],rW.prototype,"profileName",void 0),rq([(0,s.SB)()],rW.prototype,"network",void 0),rq([(0,s.SB)()],rW.prototype,"disconnecting",void 0),rq([(0,s.SB)()],rW.prototype,"balance",void 0),rq([(0,s.SB)()],rW.prototype,"balanceSymbol",void 0),rW=rq([(0,n.customElement)("w3m-account-default-widget")],rW);var rH=(0,o.iv)` 3290 wui-flex { 3291 width: 100%; 3292 } 3293 3294 wui-promo { 3295 position: absolute; 3296 top: -32px; 3297 } 3298 3299 wui-profile-button { 3300 margin-top: calc(-1 * var(--wui-spacing-2l)); 3301 } 3302 3303 wui-promo + wui-profile-button { 3304 margin-top: var(--wui-spacing-2l); 3305 } 3306 3307 wui-tabs { 3308 width: 100%; 3309 } 3310 3311 .contentContainer { 3312 height: 280px; 3313 } 3314 3315 .contentContainer > wui-icon-box { 3316 width: 40px; 3317 height: 40px; 3318 border-radius: var(--wui-border-radius-xxs); 3319 } 3320 3321 .contentContainer > .textContent { 3322 width: 65%; 3323 } 3324`,rV=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rZ=3,rK=48,rG=430,rY=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.address=i.AccountController.state.address,this.profileImage=i.AccountController.state.profileImage,this.profileName=i.AccountController.state.profileName,this.smartAccountDeployed=i.AccountController.state.smartAccountDeployed,this.network=i.NetworkController.state.caipNetwork,this.currentTab=i.AccountController.state.currentTab,this.tokenBalance=i.AccountController.state.tokenBalance,this.preferredAccountType=i.AccountController.state.preferredAccountType,this.unsubscribe.push(i.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.currentTab=e.currentTab,this.tokenBalance=e.tokenBalance,this.smartAccountDeployed=e.smartAccountDeployed,this.preferredAccountType=e.preferredAccountType):i.IN.close()}),i.NetworkController.subscribe(e=>{this.network=e.caipNetwork})),this.watchSwapValues()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearInterval(this.watchTokenBalance)}firstUpdated(){i.AccountController.fetchTokenBalance()}render(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=i.fz.getNetworkImage(this.network);return(0,o.dy)`<wui-flex 3325 flexDirection="column" 3326 .padding=${["0","xl","m","xl"]} 3327 alignItems="center" 3328 gap="m" 3329 > 3330 ${this.activateAccountTemplate()} 3331 <wui-profile-button 3332 @click=${this.onProfileButtonClick.bind(this)} 3333 address=${l(this.address)} 3334 networkSrc=${l(e)} 3335 icon="chevronBottom" 3336 avatarSrc=${l(this.profileImage?this.profileImage:void 0)} 3337 profileName=${this.profileName} 3338 ></wui-profile-button> 3339 ${this.tokenBalanceTemplate()} 3340 <wui-flex gap="s"> 3341 <w3m-tooltip-trigger text="Buy"> 3342 <wui-icon-button @click=${this.onBuyClick.bind(this)} icon="card"></wui-icon-button> 3343 </w3m-tooltip-trigger> 3344 <w3m-tooltip-trigger text="Swap"> 3345 <wui-icon-button @click=${this.onSwapClick.bind(this)} icon="recycleHorizontal"> 3346 </wui-icon-button> 3347 </w3m-tooltip-trigger> 3348 <w3m-tooltip-trigger text="Receive"> 3349 <wui-icon-button @click=${this.onReceiveClick.bind(this)} icon="arrowBottomCircle"> 3350 </wui-icon-button> 3351 </w3m-tooltip-trigger> 3352 <w3m-tooltip-trigger text="Send"> 3353 <wui-icon-button @click=${this.onSendClick.bind(this)} icon="send"></wui-icon-button> 3354 </w3m-tooltip-trigger> 3355 </wui-flex> 3356 3357 <wui-tabs 3358 .onTabChange=${this.onTabChange.bind(this)} 3359 .activeTab=${this.currentTab} 3360 localTabWidth=${i.j1.isMobile()&&window.innerWidth<rG?`${(window.innerWidth-rK)/rZ}px`:"104px"} 3361 .tabs=${tW.ACCOUNT_TABS} 3362 ></wui-tabs> 3363 ${this.listContentTemplate()} 3364 </wui-flex>`}watchSwapValues(){this.watchTokenBalance=setInterval(()=>i.AccountController.fetchTokenBalance(),1e4)}listContentTemplate(){return 0===this.currentTab?(0,o.dy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`:1===this.currentTab?(0,o.dy)`<w3m-account-nfts-widget></w3m-account-nfts-widget>`:2===this.currentTab?(0,o.dy)`<w3m-account-activity-widget></w3m-account-activity-widget>`:(0,o.dy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`}tokenBalanceTemplate(){if(this.tokenBalance&&this.tokenBalance?.length>=0){let e=i.j1.calculateBalance(this.tokenBalance),{dollars:t="0",pennies:r="00"}=i.j1.formatTokenBalance(e);return(0,o.dy)`<wui-balance dollars=${t} pennies=${r}></wui-balance>`}return(0,o.dy)`<wui-balance dollars="0" pennies="00"></wui-balance>`}activateAccountTemplate(){return!i.NetworkController.checkIfSmartAccountEnabled()||this.preferredAccountType!==I.y_.ACCOUNT_TYPES.EOA||this.smartAccountDeployed?null:(0,o.dy)` <wui-promo 3365 text=${"Activate your account"} 3366 @click=${this.onUpdateToSmartAccount.bind(this)} 3367 data-testid="activate-smart-account-promo" 3368 ></wui-promo>`}onTabChange(e){i.AccountController.setCurrentTab(e)}onProfileButtonClick(){i.RouterController.push("AccountSettings")}onBuyClick(){i.RouterController.push("OnRampProviders")}onSwapClick(){this.network?.id&&!i.bq.SWAP_SUPPORTED_NETWORKS.includes(this.network?.id)?i.RouterController.push("UnsupportedChain",{swapUnsupportedChain:!0}):i.RouterController.push("Swap")}onReceiveClick(){i.RouterController.push("WalletReceive")}onSendClick(){i.RouterController.push("WalletSend")}onUpdateToSmartAccount(){i.RouterController.push("UpgradeToSmartAccount")}};rY.styles=rH,rV([(0,s.SB)()],rY.prototype,"watchTokenBalance",void 0),rV([(0,s.SB)()],rY.prototype,"address",void 0),rV([(0,s.SB)()],rY.prototype,"profileImage",void 0),rV([(0,s.SB)()],rY.prototype,"profileName",void 0),rV([(0,s.SB)()],rY.prototype,"smartAccountDeployed",void 0),rV([(0,s.SB)()],rY.prototype,"network",void 0),rV([(0,s.SB)()],rY.prototype,"currentTab",void 0),rV([(0,s.SB)()],rY.prototype,"tokenBalance",void 0),rV([(0,s.SB)()],rY.prototype,"preferredAccountType",void 0),rY=rV([(0,n.customElement)("w3m-account-wallet-features-widget")],rY);var rJ=(0,o.iv)` 3369 :host { 3370 width: 100%; 3371 max-height: 280px; 3372 overflow: scroll; 3373 scrollbar-width: none; 3374 } 3375 3376 :host::-webkit-scrollbar {
3377 display: none; 3378 } 3379`,rQ=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rX=class extends o.oi{render(){return(0,o.dy)`<w3m-activity-list page="account"></w3m-activity-list>`}};rX.styles=rJ,rX=rQ([(0,n.customElement)("w3m-account-activity-widget")],rX);var r0=(0,o.iv)` 3380 .contentContainer { 3381 height: 280px; 3382 } 3383 3384 .contentContainer > wui-icon-box { 3385 width: 40px; 3386 height: 40px; 3387 border-radius: var(--wui-border-radius-xxs); 3388 } 3389 3390 .contentContainer > .textContent { 3391 width: 65%; 3392 } 3393`,r1=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let r2=class extends o.oi{render(){return(0,o.dy)`${this.nftTemplate()}`}nftTemplate(){return(0,o.dy)` <wui-flex 3394 class="contentContainer" 3395 alignItems="center" 3396 justifyContent="center" 3397 flexDirection="column" 3398 gap="l" 3399 > 3400 <wui-icon-box 3401 icon="wallet" 3402 size="inherit" 3403 iconColor="fg-200" 3404 backgroundColor="fg-200" 3405 iconSize="lg" 3406 ></wui-icon-box> 3407 <wui-flex 3408 class="textContent" 3409 gap="xs" 3410 flexDirection="column" 3411 justifyContent="center" 3412 flexDirection="column" 3413 > 3414 <wui-text variant="paragraph-500" align="center" color="fg-100">No NFTs yet</wui-text> 3415 <wui-text variant="small-400" align="center" color="fg-200" 3416 >Transfer from another wallets to get started</wui-text 3417 > 3418 </wui-flex> 3419 <wui-link @click=${this.onReceiveClick.bind(this)}>Receive NFTs</wui-link> 3420 </wui-flex>`}onReceiveClick(){i.RouterController.push("WalletReceive")}};r2.styles=r0,r2=r1([(0,n.customElement)("w3m-account-nfts-widget")],r2);var r3=(0,o.iv)` 3421 :host { 3422 width: 100%; 3423 } 3424 3425 wui-flex { 3426 width: 100%; 3427 } 3428 3429 .contentContainer { 3430 max-height: 280px; 3431 overflow: scroll; 3432 scrollbar-width: none; 3433 } 3434 3435 .contentContainer::-webkit-scrollbar {
3436 display: none; 3437 } 3438`,r5=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let r4=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.tokenBalance=i.AccountController.state.tokenBalance,this.unsubscribe.push(i.AccountController.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)`${this.tokenTemplate()}`}tokenTemplate(){return this.tokenBalance&&this.tokenBalance?.length>0?(0,o.dy)`<wui-flex class="contentContainer" flexDirection="column" gap="xs"> 3439 ${this.tokenItemTemplate()} 3440 </wui-flex>`:(0,o.dy)` <wui-flex flexDirection="column" gap="xs" 3441 ><wui-list-description 3442 @click=${this.onBuyClick.bind(this)} 3443 text="Buy Crypto" 3444 description="Easy with card or bank account" 3445 icon="card" 3446 iconColor="success-100" 3447 iconBackgroundColor="success-100" 3448 tag="popular" 3449 ></wui-list-description 3450 ><wui-list-description 3451 @click=${this.onReceiveClick.bind(this)} 3452 text="Receive funds" 3453 description="Transfer tokens on your wallet" 3454 icon="arrowBottomCircle" 3455 iconColor="fg-200" 3456 iconBackgroundColor="fg-200" 3457 ></wui-list-description 3458 ></wui-flex>`}tokenItemTemplate(){return this.tokenBalance?.map(e=>o.dy`<wui-list-token 3459 tokenName=${e.name} 3460 tokenImageUrl=${e.iconUrl} 3461 tokenAmount=${e.quantity.numeric} 3462 tokenValue=${e.value} 3463 tokenCurrency=${e.symbol} 3464 ></wui-list-token>`)}onReceiveClick(){i.RouterController.push("WalletReceive")}onBuyClick(){i.RouterController.push("OnRampProviders")}};r4.styles=r3,r5([(0,s.SB)()],r4.prototype,"tokenBalance",void 0),r4=r5([(0,n.customElement)("w3m-account-tokens-widget")],r4);var r6=(0,o.iv)` 3465 :host { 3466 min-height: 100%; 3467 } 3468 3469 .contentContainer { 3470 height: 280px; 3471 } 3472 3473 .contentContainer > wui-icon-box { 3474 width: 40px; 3475 height: 40px; 3476 border-radius: var(--wui-border-radius-xxs); 3477 } 3478 3479 .contentContainer > .textContent { 3480 width: 65%; 3481 } 3482 3483 .emptyContainer { 3484 height: 100%; 3485 } 3486`,r8=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let r7="last-transaction",r9=7,ie=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.address=i.AccountController.state.address,this.transactionsByYear=i.sl.state.transactionsByYear,this.loading=i.sl.state.loading,this.empty=i.sl.state.empty,this.next=i.sl.state.next,i.sl.clearCursor(),this.unsubscribe.push(i.AccountController.subscribe(e=>{e.isConnected&&this.address!==e.address&&(this.address=e.address,i.sl.resetTransactions(),i.sl.fetchTransactions(e.address))}),i.sl.subscribe(e=>{this.transactionsByYear=e.transactionsByYear,this.loading=e.loading,this.empty=e.empty,this.next=e.next}))}firstUpdated(){i.sl.fetchTransactions(this.address),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,o.dy)` ${this.empty?null:this.templateTransactionsByYear()} 3487 ${this.loading?this.templateLoading():null} 3488 ${!this.loading&&this.empty?this.templateEmpty():null}`}templateTransactionsByYear(){let e=Object.keys(this.transactionsByYear).sort().reverse();return e.map((t,r)=>{let i=r===e.length-1,s=parseInt(t,10);return Array(12).fill(null).map((e,t)=>t).reverse().map(e=>{let t=n.TransactionUtil.getTransactionGroupTitle(s,e),r=this.transactionsByYear[s]?.[e];return r?(0,o.dy)` 3489 <wui-flex flexDirection="column"> 3490 <wui-flex 3491 alignItems="center" 3492 flexDirection="row" 3493 .padding=${["xs","s","s","s"]} 3494 > 3495 <wui-text variant="paragraph-500" color="fg-200">${t}</wui-text> 3496 </wui-flex> 3497 <wui-flex flexDirection="column" gap="xs"> 3498 ${this.templateTransactions(r,i)} 3499 </wui-flex> 3500 </wui-flex> 3501 `:null})})}templateRenderTransaction(e,t){let{date:r,descriptions:i,direction:s,isAllNFT:a,images:l,status:c,transfers:u,type:d}=this.getTransactionListItemProps(e),h=u?.length>1;return u?.length!==2||a?h?u.map((e,i)=>{let s=n.TransactionUtil.getTransferDescription(e),a=t&&i===u.length-1;return(0,o.dy)` <wui-transaction-list-item 3502 date=${r} 3503 direction=${e.direction} 3504 id=${a&&this.next?r7:""} 3505 status=${c} 3506 type=${d} 3507 .onlyDirectionIcon=${!0} 3508 .images=${[l[i]]} 3509 .descriptions=${[s]} 3510 ></wui-transaction-list-item>`}):(0,o.dy)` 3511 <wui-transaction-list-item 3512 date=${r} 3513 .direction=${s} 3514 id=${t&&this.next?r7:""} 3515 status=${c} 3516 type=${d} 3517 .images=${l} 3518 .descriptions=${i} 3519 ></wui-transaction-list-item> 3520 `:(0,o.dy)` 3521 <wui-transaction-list-item 3522 date=${r} 3523 .direction=${s} 3524 id=${t&&this.next?r7:""} 3525 status=${c} 3526 type=${d} 3527 .images=${l} 3528 .descriptions=${i} 3529 ></wui-transaction-list-item> 3530 `}templateTransactions(e,t){return e.map((r,i)=>{let n=t&&i===e.length-1;return(0,o.dy)`${this.templateRenderTransaction(r,n)}`})}emptyStateActivity(){return(0,o.dy)`<wui-flex 3531 class="emptyContainer" 3532 flexGrow="1" 3533 flexDirection="column" 3534 justifyContent="center" 3535 alignItems="center" 3536 .padding=${["3xl","xl","3xl","xl"]} 3537 gap="xl" 3538 > 3539 <wui-icon-box 3540 backgroundColor="gray-glass-005" 3541 background="gray" 3542 iconColor="fg-200" 3543 icon="wallet" 3544 size="lg" 3545 ?border=${!0} 3546 borderColor="wui-color-bg-125" 3547 ></wui-icon-box> 3548 <wui-flex flexDirection="column" alignItems="center" gap="xs"> 3549 <wui-text align="center" variant="paragraph-500" color="fg-100" 3550 >No Transactions yet</wui-text 3551 > 3552 <wui-text align="center" variant="small-500" color="fg-200" 3553 >Start trading on dApps <br /> 3554 to grow your wallet!</wui-text 3555 > 3556 </wui-flex> 3557 </wui-flex>`}emptyStateAccount(){return(0,o.dy)`<wui-flex 3558 class="contentContainer" 3559 alignItems="center" 3560 justifyContent="center" 3561 flexDirection="column" 3562 gap="l" 3563 > 3564 <wui-icon-box 3565 icon="swapHorizontal" 3566 size="inherit" 3567 iconColor="fg-200" 3568 backgroundColor="fg-200" 3569 iconSize="lg" 3570 ></wui-icon-box> 3571 <wui-flex 3572 class="textContent" 3573 gap="xs" 3574 flexDirection="column" 3575 justifyContent="center" 3576 flexDirection="column" 3577 > 3578 <wui-text variant="paragraph-500" align="center" color="fg-100">No activity yet</wui-text> 3579 <wui-text variant="small-400" align="center" color="fg-200" 3580 >Your next transactions will appear here</wui-text 3581 > 3582 </wui-flex> 3583 <wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link> 3584 </wui-flex>`}templateEmpty(){return"account"===this.page?(0,o.dy)`${this.emptyStateAccount()}`:(0,o.dy)`${this.emptyStateActivity()}`}templateLoading(){return"activity"===this.page?Array(r9).fill((0,o.dy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e):null}onReceiveClick(){i.RouterController.push("WalletReceive")}createPaginationObserver(){let{projectId:e}=i.OptionsController.state;this.paginationObserver=new IntersectionObserver(([t])=>{t?.isIntersecting&&!this.loading&&(i.sl.fetchTransactions(this.address),i.Xs.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:this.address,projectId:e,cursor:this.next}}))},{}),this.setPaginationObserver()}setPaginationObserver(){this.paginationObserver?.disconnect();let e=this.shadowRoot?.querySelector(`#${r7}`);e&&this.paginationObserver?.observe(e)}getTransactionListItemProps(e){let t=G.Em.formatDate(e?.metadata?.minedAt),r=n.TransactionUtil.getTransactionDescriptions(e),i=e?.transfers,o=e?.transfers?.[0],s=!!o&&e?.transfers?.every(e=>!!e.nft_info),a=n.TransactionUtil.getTransactionImages(i);return{date:t,direction:o?.direction,descriptions:r,isAllNFT:s,images:a,status:e.metadata?.status,transfers:i,type:e.metadata?.operationType}}};ie.styles=r6,r8([(0,s.Cb)()],ie.prototype,"page",void 0),r8([(0,s.SB)()],ie.prototype,"address",void 0),r8([(0,s.SB)()],ie.prototype,"transactionsByYear",void 0),r8([(0,s.SB)()],ie.prototype,"loading",void 0),r8([(0,s.SB)()],ie.prototype,"empty",void 0),r8([(0,s.SB)()],ie.prototype,"next",void 0),ie=r8([(0,n.customElement)("w3m-activity-list")],ie);var it=(0,o.iv)` 3585 :host { 3586 width: 100%; 3587 height: 100px; 3588 border-radius: var(--wui-border-radius-s); 3589 border: 1px solid var(--wui-color-gray-glass-002); 3590 background-color: var(--wui-color-gray-glass-002); 3591 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); 3592 will-change: background-color; 3593 } 3594 3595 :host(:hover) { 3596 background-color: var(--wui-color-gray-glass-005); 3597 } 3598 3599 wui-flex { 3600 width: 100%; 3601 height: fit-content; 3602 } 3603 3604 wui-button { 3605 width: 100%; 3606 display: flex; 3607 justify-content: flex-end; 3608 } 3609 3610 wui-input-amount { 3611 mask-image: linear-gradient( 3612 270deg, 3613 transparent 0px, 3614 transparent 8px, 3615 black 24px, 3616 black 25px, 3617 black 32px, 3618 black 100% 3619 ); 3620 } 3621 3622 .totalValue { 3623 width: 100%; 3624 } 3625`,ir=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
3625);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ii=class extends o.oi{render(){return(0,o.dy)` <wui-flex 3626 flexDirection="column" 3627 gap="4xs" 3628 .padding=${["xl","s","l","l"]} 3629 > 3630 <wui-flex alignItems="center"> 3631 <wui-input-amount 3632 @inputChange=${this.onInputChange.bind(this)} 3633 ?disabled=${!this.token} 3634 .value=${this.sendTokenAmount?String(this.sendTokenAmount):""} 3635 ></wui-input-amount> 3636 ${this.buttonTemplate()} 3637 </wui-flex> 3638 <wui-flex alignItems="center" justifyContent="space-between"> 3639 ${this.sendValueTemplate()} 3640 <wui-flex alignItems="center" gap="4xs" justifyContent="flex-end"> 3641 ${this.maxAmountTemplate()} ${this.actionTemplate()} 3642 </wui-flex> 3643 </wui-flex> 3644 </wui-flex>`}buttonTemplate(){return this.token?(0,o.dy)`<wui-token-button 3645 text=${this.token.symbol} 3646 imageSrc=${this.token.iconUrl} 3647 @click=${this.handleSelectButtonClick.bind(this)} 3648 > 3649 </wui-token-button>`:(0,o.dy)`<wui-button 3650 size="md" 3651 variant="accent" 3652 @click=${this.handleSelectButtonClick.bind(this)} 3653 >Select token</wui-button 3654 >`}handleSelectButtonClick(){i.RouterController.push("WalletSendSelectToken")}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,o.dy)`<wui-text class="totalValue" variant="small-400" color="fg-200" 3655 >${e?`$${n.UiHelperUtil.formatNumberToLocalString(e,2)}`:"Incorrect value"}</wui-text 3656 >`}return null}maxAmountTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,o.dy)` <wui-text variant="small-400" color="error-100"> 3657 ${n.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)} 3658 </wui-text>`:(0,o.dy)` <wui-text variant="small-400" color="fg-200"> 3659 ${n.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)} 3660 </wui-text>`:null}actionTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,o.dy)`<wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link>`:(0,o.dy)`<wui-link @click=${this.onMaxClick.bind(this)}>Max</wui-link>`:null}onInputChange(e){i.Si.setTokenAmount(e.detail)}onMaxClick(){if(this.token&&this.gasPriceInUSD){let e=G.C6.bigNumber(this.gasPriceInUSD.toFixed(5)).dividedBy(this.token.price),t=void 0===this.token.address?G.C6.bigNumber(this.token.quantity.numeric).minus(e):G.C6.bigNumber(this.token.quantity.numeric);i.Si.setTokenAmount(Number(t.toFixed(20)))}}onBuyClick(){i.RouterController.push("OnRampProviders")}};ii.styles=it,ir([(0,s.Cb)({type:Object})],ii.prototype,"token",void 0),ir([(0,s.Cb)({type:Number})],ii.prototype,"sendTokenAmount",void 0),ir([(0,s.Cb)({type:Number})],ii.prototype,"gasPriceInUSD",void 0),ii=ir([(0,n.customElement)("w3m-input-token")],ii);var io=(0,o.iv)` 3661 :host { 3662 width: 100%; 3663 height: 100px; 3664 border-radius: var(--wui-border-radius-s); 3665 border: 1px solid var(--wui-color-gray-glass-002); 3666 background-color: var(--wui-color-gray-glass-002); 3667 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); 3668 will-change: background-color; 3669 position: relative; 3670 } 3671 3672 :host(:hover) { 3673 background-color: var(--wui-color-gray-glass-005); 3674 } 3675 3676 wui-flex { 3677 width: 100%; 3678 height: fit-content; 3679 } 3680 3681 wui-button { 3682 display: ruby; 3683 color: var(--wui-color-fg-100); 3684 margin: 0 var(--wui-spacing-xs); 3685 } 3686 3687 .instruction { 3688 position: absolute; 3689 top: 50%; 3690 transform: translateY(-50%); 3691 } 3692 3693 .paste { 3694 display: inline-flex; 3695 } 3696 3697 textarea { 3698 background: transparent; 3699 width: 100%; 3700 font-family: var(--w3m-font-family); 3701 font-size: var(--wui-font-size-medium); 3702 font-style: normal; 3703 font-weight: var(--wui-font-weight-light); 3704 line-height: 130%; 3705 letter-spacing: var(--wui-letter-spacing-medium); 3706 color: var(--wui-color-fg-100); 3707 caret-color: var(--wui-color-accent-100); 3708 box-sizing: border-box; 3709 -webkit-appearance: none; 3710 -moz-appearance: textfield; 3711 padding: 0px; 3712 border: none; 3713 outline: none; 3714 appearance: none; 3715 resize: none; 3716 overflow: hidden; 3717 } 3718`,is=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
3718);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ia=class extends o.oi{constructor(){super(...arguments),this.inputElementRef=ep(),this.instructionElementRef=ep(),this.instructionHidden=!!this.value,this.pasting=!1,this.onDebouncedSearch=i.j1.debounce(async e=>{let t=await i.ConnectionController.getEnsAddress(e);if(i.Si.setLoading(!1),t){i.Si.setReceiverProfileName(e),i.Si.setReceiverAddress(t);let r=await i.ConnectionController.getEnsAvatar(e);r&&i.Si.setReceiverProfileImageUrl(r)}else i.Si.setReceiverAddress(e),i.Si.setReceiverProfileName(void 0),i.Si.setReceiverProfileImageUrl(void 0)})}firstUpdated(){this.value&&(this.instructionHidden=!0),this.checkHidden()}render(){return(0,o.dy)` <wui-flex 3719 @click=${this.onBoxClick.bind(this)} 3720 flexDirection="column" 3721 justifyContent="center" 3722 gap="4xs" 3723 .padding=${["2xl","l","xl","l"]} 3724 > 3725 <wui-text 3726 ${ew(this.instructionElementRef)} 3727 class="instruction" 3728 color="fg-300" 3729 variant="medium-400" 3730 > 3731 Type or 3732 <wui-button 3733 class="paste" 3734 size="md" 3735 variant="neutral" 3736 iconLeft="copy" 3737 @click=${this.onPasteClick.bind(this)} 3738 > 3739 <wui-icon size="sm" color="inherit" slot="iconLeft" name="copy"></wui-icon> 3740 Paste 3741 </wui-button> 3742 address 3743 </wui-text> 3744 <textarea 3745 spellcheck="false" 3746 ?disabled=${!this.instructionHidden} 3747 ${ew(this.inputElementRef)} 3748 @input=${this.onInputChange.bind(this)} 3749 @blur=${this.onBlur.bind(this)} 3750 .value=${this.value??""} 3751 autocomplete="off" 3752 > 3753${this.value??""}</textarea 3754 > 3755 </wui-flex>`}async focusInput(){this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",this.inputElementRef.value?.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",this.inputElementRef.value?.blur())}async toggleInstructionFocus(e){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:e?0:1},{opacity:e?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){this.value||this.instructionHidden||this.focusInput()}onBlur(){this.value||!this.instructionHidden||this.pasting||this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;let e=await navigator.clipboard.readText();i.Si.setReceiverAddress(e),this.focusInput()}onInputChange(e){this.pasting=!1;let t=e.target;t.value&&!this.instructionHidden&&this.focusInput(),i.Si.setLoading(!0),this.onDebouncedSearch(t.value)}};ia.styles=io,is([(0,s.Cb)()],ia.prototype,"value",void 0),is([(0,s.SB)()],ia.prototype,"instructionHidden",void 0),is([(0,s.SB)()],ia.prototype,"pasting",void 0),ia=is([(0,n.customElement)("w3m-input-address")],ia);var il=(0,o.iv)` 3756 :host { 3757 display: flex; 3758 width: auto; 3759 flex-direction: column; 3760 gap: var(--wui-border-radius-1xs); 3761 border-radius: var(--wui-border-radius-s); 3762 background: var(--wui-color-gray-glass-002); 3763 padding: var(--wui-spacing-s) var(--wui-spacing-1xs) var(--wui-spacing-1xs) 3764 var(--wui-spacing-1xs); 3765 } 3766 3767 wui-text { 3768 padding: 0 var(--wui-spacing-1xs); 3769 } 3770 3771 wui-flex { 3772 margin-top: var(--wui-spacing-1xs); 3773 } 3774 3775 .network { 3776 cursor: pointer; 3777 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg); 3778 will-change: background-color; 3779 } 3780 3781 .network:focus-visible { 3782 border: 1px solid var(--wui-color-accent-100); 3783 background-color: var(--wui-color-gray-glass-005); 3784 -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue);
3785 -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 3786 box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 3787 } 3788 3789 .network:hover { 3790 background-color: var(--wui-color-gray-glass-005); 3791 } 3792 3793 .network:active { 3794 background-color: var(--wui-color-gray-glass-010); 3795 } 3796`,ic=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iu=class extends o.oi{render(){return(0,o.dy)` <wui-text variant="small-400" color="fg-200">Details</wui-text> 3797 <wui-flex flexDirection="column" gap="xxs"> 3798 <wui-list-content textTitle="Network cost" textValue="$${l(n.UiHelperUtil.formatNumberToLocalString(this.networkFee,2))}"></wui-list-content></wui-list-content> 3799 <wui-list-content 3800 textTitle="Address" 3801 textValue=${n.UiHelperUtil.getTruncateString({string:this.receiverAddress??"",charsStart:4,charsEnd:4,truncate:"middle"})} 3802 > 3803 </wui-list-content> 3804 ${this.networkTemplate()} 3805 </wui-flex>`}networkTemplate(){return this.caipNetwork?.name?(0,o.dy)` <wui-list-content 3806 @click=${()=>this.onNetworkClick(this.caipNetwork)} 3807 class="network" 3808 textTitle="Network" 3809 imageSrc=${l(i.fz.getNetworkImage(this.caipNetwork))} 3810 ></wui-list-content>`:null}onNetworkClick(e){e&&i.RouterController.push("Networks",{network:e})}};iu.styles=il,ic([(0,s.Cb)()],iu.prototype,"receiverAddress",void 0),ic([(0,s.Cb)({type:Object})],iu.prototype,"caipNetwork",void 0),ic([(0,s.Cb)({type:Number})],iu.prototype,"networkFee",void 0),iu=ic([(0,n.customElement)("w3m-wallet-send-details")],iu);var id=(0,o.iv)` 3811 :host { 3812 pointer-events: none; 3813 } 3814 3815 :host > wui-flex { 3816 display: var(--w3m-tooltip-display); 3817 opacity: var(--w3m-tooltip-opacity); 3818 padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); 3819 border-radius: var(--wui-border-radius-xxs); 3820 color: var(--wui-color-bg-100); 3821 position: fixed; 3822 top: var(--w3m-tooltip-top); 3823 left: var(--w3m-tooltip-left); 3824 transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px)); 3825 max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl)); 3826 transition: opacity 0.2s var(--wui-ease-out-power-2); 3827 will-change: opacity; 3828 } 3829 3830 :host([data-variant='shade']) > wui-flex { 3831 background-color: var(--wui-color-bg-150); 3832 border: 1px solid var(--wui-color-gray-glass-005); 3833 } 3834 3835 :host([data-variant='shade']) > wui-flex > wui-text { 3836 color: var(--wui-color-fg-150); 3837 } 3838 3839 :host([data-variant='fill']) > wui-flex { 3840 background-color: var(--wui-color-fg-100); 3841 border: none; 3842 } 3843 3844 wui-icon { 3845 position: absolute; 3846 width: 12px !important; 3847 height: 4px !important; 3848 color: var(--wui-color-bg-150); 3849 } 3850 3851 wui-icon[data-placement='top'] { 3852 bottom: 0px; 3853 left: 50%; 3854 transform: translate(-50%, 95%); 3855 } 3856 3857 wui-icon[data-placement='bottom'] { 3858 top: 0; 3859 left: 50%; 3860 transform: translate(-50%, -95%) rotate(180deg); 3861 } 3862 3863 wui-icon[data-placement='right'] { 3864 top: 50%; 3865 left: 0; 3866 transform: translate(-65%, -50%) rotate(90deg); 3867 } 3868 3869 wui-icon[data-placement='left'] { 3870 top: 50%; 3871 right: 0%; 3872 transform: translate(65%, -50%) rotate(270deg); 3873 } 3874`,ih=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ip=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.open=i.fw.state.open,this.message=i.fw.state.message,this.triggerRect=i.fw.state.triggerRect,this.variant=i.fw.state.variant,this.unsubscribe.push(i.fw.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}
3874disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=` 3875 --w3m-tooltip-top: ${e}px; 3876 --w3m-tooltip-left: ${t}px; 3877 --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px; 3878 --w3m-tooltip-display: ${this.open?"flex":"none"}; 3879 --w3m-tooltip-opacity: ${this.open?1:0}; 3880 `,(0,o.dy)`<wui-flex> 3881 <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon> 3882 <wui-text color="inherit" variant="small-500">${this.message}</wui-text> 3883 </wui-flex>`}};ip.styles=[id],ih([(0,s.SB)()],ip.prototype,"open",void 0),ih([(0,s.SB)()],ip.prototype,"message",void 0),ih([(0,s.SB)()],ip.prototype,"triggerRect",void 0),ih([(0,s.SB)()],ip.prototype,"variant",void 0),ip=ih([(0,n.customElement)("w3m-tooltip")],ip);var ig=(0,o.iv)` 3884 :host { 3885 width: 100%; 3886 display: block; 3887 } 3888`,im=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iw=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.text="",this.open=i.fw.state.open,this.unsubscribe.push(i.RouterController.subscribeKey("view",()=>{i.fw.hide()}),i.IN.subscribeKey("open",e=>{e||i.fw.hide()}),i.fw.subscribeKey("open",e=>{this.open=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),i.fw.hide()}render(){return(0,o.dy)` 3889 <div 3890 @pointermove=${this.onMouseEnter.bind(this)} 3891 @pointerleave=${this.onMouseLeave.bind(this)} 3892 > 3893 ${this.renderChildren()} 3894 </div> 3895 `}renderChildren(){return(0,o.dy)`<slot></slot> `}onMouseEnter(){let e=this.getBoundingClientRect();this.open||i.fw.showTooltip({message:this.text,triggerRect:{width:e.width,height:e.height,left:e.left,top:e.top},variant:"shade"})}onMouseLeave(e){this.contains(e.relatedTarget)||i.fw.hide()}};iw.styles=[ig],im([(0,s.Cb)()],iw.prototype,"text",void 0),im([(0,s.SB)()],iw.prototype,"open",void 0),iw=im([(0,n.customElement)("w3m-tooltip-trigger")],iw);var iy=(0,o.iv)` 3896 wui-flex:first-child { 3897 margin-top: var(--wui-spacing-s); 3898 } 3899 wui-separator { 3900 margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-m) 3901 calc(var(--wui-spacing-m) * -1); 3902 width: calc(100% + var(--wui-spacing-s) * 2); 3903 } 3904`,ib=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iv=2,i_=6,ix=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.connector=this.connectors.find(e=>"AUTH"===e.type),this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>{this.connectors=e,this.connector=this.connectors.find(e=>"AUTH"===e.type)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.connector?.socials?(0,o.dy)` 3905 <wui-flex flexDirection="column" gap="xs" .padding=${["0","0","xs","0"]}> 3906 ${this.topViewTemplate()}${this.bottomViewTemplate()} 3907 </wui-flex> 3908 ${this.separatorTemplate()} 3909 `:null}topViewTemplate(){return this.connector?.socials?2===this.connector.socials.length?(0,o.dy)` <wui-flex gap="xs"> 3910 ${this.connector.socials.slice(0,iv).map(e=>(0,o.dy)`<wui-logo-select 3911 data-testid=${`social-selector-${e}`} 3912 @click=${()=>{this.onSocialClick(e)}} 3913 logo=${e} 3914 ></wui-logo-select>`)} 3915 </wui-flex>`:(0,o.dy)` <wui-list-social 3916 data-testid=${`social-selector-${this.connector?.socials?.[0]}`} 3917 @click=${()=>{this.onSocialClick(this.connector?.socials?.[0])}} 3918 logo=${l(this.connector.socials[0])} 3919 align="center" 3920 name=${`Continue with ${this.connector.socials[0]}`} 3921 ></wui-list-social>`:null}bottomViewTemplate(){return!this.connector?.socials||this.connector?.socials.length<=iv?null:this.connector?.socials.length>i_?(0,o.dy)`<wui-flex gap="xs"> 3922 ${this.connector.socials.slice(1,i_-1).map(e=>(0,o.dy)`<wui-logo-select 3923 data-testid=${`social-selector-${e}`} 3924 @click=${()=>{this.onSocialClick(e)}} 3925 logo=${e} 3926 ></wui-logo-select>`)} 3927 <wui-logo-select logo="more" @click=${this.onMoreSocialsClick.bind(this)}></wui-logo-select> 3928 </wui-flex>`:(0,o.dy)`<wui-flex gap="xs"> 3929 ${this.connector.socials.slice(1,this.connector.socials.length).map(e=>(0,o.dy)`<wui-logo-select 3930 data-testid=${`social-selector-${e}`} 3931 @click=${()=>{this.onSocialClick(e)}} 3932 logo=${e} 3933 ></wui-logo-select>`)} 3934 </wui-flex>`}separatorTemplate(){return this.connectors.find(e=>"WALLET_CONNECT"===e.type)?(0,o.dy)`<wui-separator text="or"></wui-separator>`:null}onMoreSocialsClick(){i.RouterController.push("ConnectSocials")}async onSocialClick(e){let t=i.ConnectorController.getAuthConnector();try{if(t&&e){let{uri:r}=await t.provider.getSocialRedirectUri({provider:e});i.AccountController.setSocialProvider(e),setTimeout(()=>{let e=i.j1.returnOpenHref(r,"popupWindow","width=600,height=800,scrollbars=yes");e&&i.AccountController.setSocialWindow(e)}),i.RouterController.push("ConnectingSocial")}}catch(e){i.SnackController.showError("Something went wrong")}}};ix.styles=iy,ib([(0,s.SB)()],ix.prototype,"connectors",void 0),ix=ib([(0,n.customElement)("w3m-social-login-widget")],ix);var iE=(0,o.iv)` 3935 :host { 3936 margin-top: var(--wui-spacing-3xs); 3937 } 3938 wui-separator { 3939 margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs) 3940 calc(var(--wui-spacing-m) * -1); 3941 width: calc(100% + var(--wui-spacing-s) * 2); 3942 } 3943`,iC=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
3943);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ik=class extends o.oi{render(){return(0,o.dy)` 3944 <wui-flex flexDirection="column" gap="xs"> 3945 <w3m-connect-walletconnect-widget></w3m-connect-walletconnect-widget> 3946 <w3m-connect-recent-widget></w3m-connect-recent-widget> 3947 <w3m-connect-announced-widget></w3m-connect-announced-widget> 3948 <w3m-connect-injected-widget></w3m-connect-injected-widget> 3949 <w3m-connect-custom-widget></w3m-connect-custom-widget> 3950 <w3m-connect-recommended-widget></w3m-connect-recommended-widget> 3951 <w3m-connect-external-widget></w3m-connect-external-widget> 3952 <w3m-all-wallets-widget></w3m-all-wallets-widget> 3953 </wui-flex> 3954 `}};ik.styles=iE,ik=iC([(0,n.customElement)("w3m-wallet-login-list")],ik);var iS=(0,o.iv)` 3955 :host { 3956 margin-top: var(--wui-spacing-3xs); 3957 } 3958 wui-separator { 3959 margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs) 3960 calc(var(--wui-spacing-m) * -1); 3961 width: calc(100% + var(--wui-spacing-s) * 2); 3962 } 3963`,iA=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iI=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.connector=this.connectors.find(e=>"AUTH"===e.type),this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>{this.connectors=e,this.connector=this.connectors.find(e=>"AUTH"===e.type)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.connector?.socials?(0,o.dy)` <wui-flex flexDirection="column" gap="xs"> 3964 ${this.connector.socials.map(e=>(0,o.dy)`<wui-list-social name=${e} logo=${e}></wui-list-social>`)} 3965 </wui-flex>`:null}};iI.styles=iS,iA([(0,s.SB)()],iI.prototype,"connectors",void 0),iI=iA([(0,n.customElement)("w3m-social-login-list")],iI);var iT=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iR=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"ANNOUNCED"===e.type);return e?.length?(0,o.dy)` 3966 <wui-flex flexDirection="column" gap="xs"> 3967 ${e.map(e=>(0,o.dy)` 3968 <wui-list-wallet 3969 imageSrc=${l(i.fz.getConnectorImage(e))} 3970 name=${e.name??"Unknown"} 3971 @click=${()=>this.onConnector(e)} 3972 tagVariant="success" 3973 tagLabel="installed" 3974 data-testid=${`wallet-selector-${e.id}`} 3975 .installed=${!0} 3976 > 3977 </wui-list-wallet> 3978 `)} 3979 </wui-flex> 3980 `:(this.style.cssText="display: none",null)}onConnector(e){"WALLET_CONNECT"===e.type?i.j1.isMobile()?i.RouterController.push("AllWallets"):i.RouterController.push("ConnectingWalletConnect"):i.RouterController.push("ConnectingExternal",{connector:e})}};iT([(0,s.SB)()],iR.prototype,"connectors",void 0),iR=iT([(0,n.customElement)("w3m-connect-announced-widget")],iR);var iO=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iP=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}
3980disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{customWallets:e}=i.OptionsController.state;if(!e?.length)return this.style.cssText="display: none",null;let t=this.filterOutDuplicateWallets(e);return(0,o.dy)`<wui-flex flexDirection="column" gap="xs"> 3981 ${t.map(e=>(0,o.dy)` 3982 <wui-list-wallet 3983 imageSrc=${l(i.fz.getWalletImage(e))} 3984 name=${e.name??"Unknown"} 3985 @click=${()=>this.onConnectWallet(e)} 3986 data-testid=${`wallet-selector-${e.id}`} 3987 > 3988 </wui-list-wallet> 3989 `)} 3990 </wui-flex>`}filterOutDuplicateWallets(e){let t=i.MO.getRecentWallets(),r=this.connectors.map(e=>e.info?.rdns).filter(Boolean),n=t.map(e=>e.rdns).filter(Boolean),o=r.concat(n);if(o.includes("io.metamask.mobile")&&i.j1.isMobile()){let e=o.indexOf("io.metamask.mobile");o[e]="io.metamask"}return e.filter(e=>!o.includes(String(e?.rdns)))}onConnectWallet(e){i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};iO([(0,s.SB)()],iP.prototype,"connectors",void 0),iP=iO([(0,n.customElement)("w3m-connect-custom-widget")],iP);var iN=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iM=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>!["WALLET_CONNECT","INJECTED","ANNOUNCED","AUTH"].includes(e.type));return e?.length?(0,o.dy)` 3991 <wui-flex flexDirection="column" gap="xs"> 3992 ${e.map(e=>(0,o.dy)` 3993 <wui-list-wallet 3994 imageSrc=${l(i.fz.getConnectorImage(e))} 3995 name=${e.name??"Unknown"} 3996 @click=${()=>this.onConnector(e)} 3997 > 3998 </wui-list-wallet> 3999 `)} 4000 </wui-flex> 4001 `:(this.style.cssText="display: none",null)}onConnector(e){i.RouterController.push("ConnectingExternal",{connector:e})}};iN([(0,s.SB)()],iM.prototype,"connectors",void 0),iM=iN([(0,n.customElement)("w3m-connect-external-widget")],iM);var iD=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iL=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{featured:e}=i.ApiController.state;if(!e.length)return this.style.cssText="display: none",null;let t=this.filterOutDuplicateWallets(e);return(0,o.dy)` 4002 <wui-flex flexDirection="column" gap="xs"> 4003 ${t.map(e=>(0,o.dy)` 4004 <wui-list-wallet 4005 imageSrc=${l(i.fz.getWalletImage(e))} 4006 name=${e.name??"Unknown"} 4007 @click=${()=>this.onConnectWallet(e)} 4008 > 4009 </wui-list-wallet> 4010 `)} 4011 </wui-flex> 4012 `}filterOutDuplicateWallets(e){let t=i.MO.getRecentWallets(),r=this.connectors.map(e=>e.info?.rdns).filter(Boolean),n=t.map(e=>e.rdns).filter(Boolean),o=r.concat(n);if(o.includes("io.metamask.mobile")&&i.j1.isMobile()){let e=o.indexOf("io.metamask.mobile");o[e]="io.metamask"}return e.filter(e=>!o.includes(String(e?.rdns)))}onConnectWallet(e){i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};iD([(0,s.SB)()],iL.prototype,"connectors",void 0),iL=iD([(0,n.customElement)("w3m-connect-featured-widget")],iL);var ij=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
4012);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iB=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"INJECTED"===e.type);return e?.length&&(1!==e.length||e[0]?.name!=="Browser Wallet"||i.j1.isMobile())?(0,o.dy)` 4013 <wui-flex flexDirection="column" gap="xs"> 4014 ${e.map(e=>(i.j1.isMobile()||"Browser Wallet"!==e.name)&&i.ConnectionController.checkInstalled()?(0,o.dy)` 4015 <wui-list-wallet 4016 imageSrc=${l(i.fz.getConnectorImage(e))} 4017 .installed=${!0} 4018 name=${e.name??"Unknown"} 4019 tagVariant="success" 4020 tagLabel="installed" 4021 data-testid=${`wallet-selector-${e.id}`} 4022 @click=${()=>this.onConnector(e)} 4023 > 4024 </wui-list-wallet> 4025 `:null)} 4026 </wui-flex> 4027 `:(this.style.cssText="display: none",null)}onConnector(e){i.RouterController.push("ConnectingExternal",{connector:e})}};ij([(0,s.SB)()],iB.prototype,"connectors",void 0),iB=ij([(0,n.customElement)("w3m-connect-injected-widget")],iB);var i$=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iU=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"coinbaseWalletSDK"===e.id);return e?(0,o.dy)` 4028 <wui-flex flexDirection="column" gap="xs"> 4029 <wui-list-wallet 4030 imageSrc=${l(i.fz.getConnectorImage(e))} 4031 .installed=${!0} 4032 name=${l(e.name)} 4033 data-testid=${`wallet-selector-${e.id}`} 4034 @click=${()=>this.onConnector(e)} 4035 > 4036 </wui-list-wallet> 4037 </wui-flex> 4038 `:(this.style.cssText="display: none",null)}onConnector(e){i.RouterController.push("ConnectingExternal",{connector:e})}};i$([(0,s.SB)()],iU.prototype,"connectors",void 0),iU=i$([(0,n.customElement)("w3m-connect-coinbase-widget")],iU);let iF=class extends o.oi{render(){let e=i.MO.getRecentWallets();return e?.length?(0,o.dy)` 4039 <wui-flex flexDirection="column" gap="xs"> 4040 ${e.map(e=>(0,o.dy)` 4041 <wui-list-wallet 4042 imageSrc=${l(i.fz.getWalletImage(e))} 4043 name=${e.name??"Unknown"} 4044 @click=${()=>this.onConnectWallet(e)} 4045 tagLabel="recent" 4046 tagVariant="shade" 4047 > 4048 </wui-list-wallet> 4049 `)} 4050 </wui-flex> 4051 `:(this.style.cssText="display: none",null)}onConnectWallet(e){i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};iF=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-connect-recent-widget")],iF);var iz=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iq=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}
4051disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.connectors.find(e=>"WALLET_CONNECT"===e.type))return null;let{recommended:e}=i.ApiController.state,{customWallets:t,featuredWalletIds:r}=i.OptionsController.state,{connectors:n}=i.ConnectorController.state,s=i.MO.getRecentWallets(),a=n.filter(e=>"INJECTED"===e.type||"ANNOUNCED"===e.type).filter(e=>"Browser Wallet"!==e.name);if(r||t||!e.length)return this.style.cssText="display: none",null;let c=Math.max(0,2-(a.length+s.length)),u=this.filterOutDuplicateWallets(e).slice(0,c);return u.length?(0,o.dy)` 4052 <wui-flex flexDirection="column" gap="xs"> 4053 ${u.map(e=>(0,o.dy)` 4054 <wui-list-wallet 4055 imageSrc=${l(i.fz.getWalletImage(e))} 4056 name=${e?.name??"Unknown"} 4057 @click=${()=>this.onConnectWallet(e)} 4058 > 4059 </wui-list-wallet> 4060 `)} 4061 </wui-flex> 4062 `:(this.style.cssText="display: none",null)}filterOutDuplicateWallets(e){let t=i.MO.getRecentWallets(),r=this.connectors.map(e=>e.info?.rdns).filter(Boolean),n=t.map(e=>e.rdns).filter(Boolean),o=r.concat(n);if(o.includes("io.metamask.mobile")&&i.j1.isMobile()){let e=o.indexOf("io.metamask.mobile");o[e]="io.metamask"}return e.filter(e=>!o.includes(String(e?.rdns)))}onConnectWallet(e){i.RouterController.push("ConnectingWalletConnect",{wallet:e})}};iz([(0,s.SB)()],iq.prototype,"connectors",void 0),iq=iz([(0,n.customElement)("w3m-connect-recommended-widget")],iq);var iW=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iH=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(i.j1.isMobile())return this.style.cssText="display: none",null;let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type);return e?(0,o.dy)` 4063 <wui-list-wallet 4064 imageSrc=${l(i.fz.getConnectorImage(e))} 4065 name=${e.name??"Unknown"} 4066 @click=${()=>this.onConnector(e)} 4067 tagLabel="qr code" 4068 tagVariant="main" 4069 data-testid="wallet-selector-walletconnect" 4070 > 4071 </wui-list-wallet> 4072 `:(this.style.cssText="display: none",null)}onConnector(e){"WALLET_CONNECT"===e.type?i.j1.isMobile()?i.RouterController.push("AllWallets"):i.RouterController.push("ConnectingWalletConnect"):i.RouterController.push("ConnectingExternal",{connector:e})}};iW([(0,s.SB)()],iH.prototype,"connectors",void 0),iH=iW([(0,n.customElement)("w3m-connect-walletconnect-widget")],iH);var iV=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iZ=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.connectors=i.ConnectorController.state.connectors,this.count=i.ApiController.state.count,this.unsubscribe.push(i.ConnectorController.subscribeKey("connectors",e=>this.connectors=e),i.ApiController.subscribeKey("count",e=>this.count=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type),{allWallets:t}=i.OptionsController.state;if(!e||"HIDE"===t||"ONLY_MOBILE"===t&&!i.j1.isMobile())return null;let r=i.ApiController.state.featured.length,n=this.count+r,s=n<10?n:10*Math.floor(n/10),a=s<n?`${s}+`:`${s}`;return(0,o.dy)` 4073 <wui-list-wallet 4074 name="All Wallets" 4075 walletIcon="allWallets" 4076 showAllWallets 4077 @click=${this.onAllWallets.bind(this)} 4078 tagLabel=${a} 4079 tagVariant="shade" 4080 data-testid="all-wallets" 4081 ></wui-list-wallet> 4082 `}onAllWallets(){i.Xs.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),i.RouterController.push("AllWallets")}};iV([(0,s.SB)()],iZ.prototype,"connectors",void 0),iV([(0,s.SB)()],iZ.prototype,"count",void 0),iZ=iV([(0,n.customElement)("w3m-all-wallets-widget")],iZ);let iK=class extends o.oi{render(){let e=i.MO.getConnectedConnector(),t=i.ConnectorController.getAuthConnector();if(!t||"AUTH"!==e)return this.style.cssText="display: none",null;let r=t.provider.getEmail()??"",n=i.MO.getConnectedSocialProvider(),s=i.MO.getConnectedSocialUsername();return(0,o.dy)` 4083 <wui-list-item 4084 variant="icon" 4085 iconVariant="overlay" 4086 icon=${n??"mail"} 4087 iconSize=${n?"xxl":"sm"} 4088 data-testid="w3m-account-email-update" 4089 ?chevron=${!n}
4089 4090 @click=${()=>{this.onGoToUpdateEmail(r,n)}} 4091 > 4092 <wui-text variant="paragraph-500" color="fg-100">${s??r}</wui-text> 4093 </wui-list-item> 4094 `}onGoToUpdateEmail(e,t){t||i.RouterController.push("UpdateEmailWallet",{email:e})}};iK=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}([(0,n.customElement)("w3m-account-auth-button")],iK);let iG=!1;class iY{constructor(e){this.initPromise=void 0,this.setIsConnected=e=>{i.AccountController.setIsConnected(e)},this.getIsConnectedState=()=>i.AccountController.state.isConnected,this.setCaipAddress=e=>{i.AccountController.setCaipAddress(e)},this.setBalance=(e,t)=>{i.AccountController.setBalance(e,t)},this.setProfileName=e=>{i.AccountController.setProfileName(e)},this.setProfileImage=e=>{i.AccountController.setProfileImage(e)},this.resetAccount=()=>{i.AccountController.resetAccount()},this.setCaipNetwork=e=>{i.NetworkController.setCaipNetwork(e)},this.getCaipNetwork=()=>i.NetworkController.state.caipNetwork,this.setRequestedCaipNetworks=e=>{i.NetworkController.setRequestedCaipNetworks(e)},this.getApprovedCaipNetworksData=()=>i.NetworkController.getApprovedCaipNetworksData(),this.resetNetwork=()=>{i.NetworkController.resetNetwork()},this.setConnectors=e=>{i.ConnectorController.setConnectors(e)},this.addConnector=e=>{i.ConnectorController.addConnector(e)},this.getConnectors=()=>i.ConnectorController.getConnectors(),this.resetWcConnection=()=>{i.ConnectionController.resetWcConnection()},this.fetchIdentity=e=>i.Lr.fetchIdentity(e),this.setAddressExplorerUrl=e=>{i.AccountController.setAddressExplorerUrl(e)},this.setSmartAccountDeployed=e=>{i.AccountController.setSmartAccountDeployed(e)},this.setConnectedWalletInfo=e=>{i.AccountController.setConnectedWalletInfo(e)},this.setSmartAccountEnabledNetworks=e=>{i.NetworkController.setSmartAccountEnabledNetworks(e)},this.setPreferredAccountType=e=>{i.AccountController.setPreferredAccountType(e)},this.getWalletConnectName=e=>i.a.getNamesForAddress(e),this.resolveWalletConnectName=async e=>{let t=e.replace(G.bq.WC_NAME_SUFFIX,""),r=await i.a.resolveName(t),n=Object.values(r?.addresses)||[];return n[0]?.address||!1},this.initControllers(e),this.initOrContinue()}async open(e){await this.initOrContinue(),i.IN.open(e)}async close(){await this.initOrContinue(),i.IN.close()}setLoading(e){i.IN.setLoading(e)}getThemeMode(){return i.ThemeController.state.themeMode}getThemeVariables(){return i.ThemeController.state.themeVariables}setThemeMode(e){i.ThemeController.setThemeMode(e),(0,n.setColorTheme)(i.ThemeController.state.themeMode)}setThemeVariables(e){i.ThemeController.setThemeVariables(e),(0,n.setThemeVariables)(i.ThemeController.state.themeVariables)}subscribeTheme(e){return i.ThemeController.subscribe(e)}getWalletInfo(){return i.AccountController.state.connectedWalletInfo}subscribeWalletInfo(e){return i.AccountController.subscribeKey("connectedWalletInfo",e)}getState(){return i.Ie.state}subscribeState(e){return i.Ie.subscribe(e)}showErrorMessage(e){i.SnackController.showError(e)}showSuccessMessage(e){i.SnackController.showSuccess(e)}getEvent(){return{...i.Xs.state}}subscribeEvents(e){return i.Xs.subscribe(e)}replace(e){i.RouterController.replace(e)}redirect(e){i.RouterController.push(e)}popTransactionStack(e){i.RouterController.popTransactionStack(e)}isOpen(){return i.IN.state.open}isTransactionStackEmpty(){return 0===i.RouterController.state.transactionStack.length}isTransactionShouldReplaceView(){return i.RouterController.state.transactionStack[i.RouterController.state.transactionStack.length-1]?.replace}async initControllers(e){if(i.NetworkController.setClient(e.networkControllerClient),i.NetworkController.setDefaultCaipNetwork(e.defaultChain),i.OptionsController.setProjectId(e.projectId),i.OptionsController.setAllWallets(e.allWallets),i.OptionsController.setIncludeWalletIds(e.includeWalletIds),i.OptionsController.setExcludeWalletIds(e.excludeWalletIds),i.OptionsController.setFeaturedWalletIds(e.featuredWalletIds),i.OptionsController.setTokens(e.tokens),i.OptionsController.setTermsConditionsUrl(e.termsConditionsUrl),i.OptionsController.setPrivacyPolicyUrl(e.privacyPolicyUrl),i.OptionsController.setCustomWallets(e.customWallets),i.OptionsController.setEnableAnalytics(e.enableAnalytics),i.OptionsController.setSdkVersion(e._sdkVersion),e.metadata&&i.OptionsController.setMetadata(e.metadata),e.themeMode&&i.ThemeController.setThemeMode(e.themeMode),e.themeVariables&&i.ThemeController.setThemeVariables(e.themeVariables),e.enableO
4094nramp&&i.OptionsController.setOnrampEnabled(!!e.enableOnramp),e.enableWalletFeatures&&i.OptionsController.setWalletFeaturesEnabled(!!e.enableWalletFeatures),e.allowUnsupportedChain&&i.NetworkController.setAllowUnsupportedChain(e.allowUnsupportedChain),e.siweControllerClient){let{SIWEController:t}=await Promise.all([r.e(3138),r.e(1609)]).then(r.bind(r,41609));t.setSIWEClient(e.siweControllerClient)}i.ConnectionController.setClient(e.connectionControllerClient)}async initOrContinue(){return!this.initPromise&&!iG&&i.j1.isClient()&&(iG=!0,this.initPromise=new Promise(async e=>{await Promise.all([Promise.resolve().then(r.bind(r,98179)),Promise.resolve().then(r.bind(r,65132))]);let t=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",t),e()})),this.initPromise}}let iJ={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",COINBASE_CONNECTOR_ID:"coinbaseWallet",COINBASE_SDK_CONNECTOR_ID:"coinbaseWalletSDK",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",AUTH_CONNECTOR_ID:"w3mAuth",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",VERSION:"4.2.3"},iQ={ConnectorExplorerIds:{[iJ.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[iJ.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[iJ.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},EIP155NetworkImageIds:{1:"692ed6ba-e569-459a-556a-776476829e00",42161:"3bff954d-5cb0-47a0-9a23-d20192e74600",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00",7777777:"845c60df-d429-4991-e687-91ae45791600",42220:"ab781bbc-ccc6-418d-d32d-789b15da1f00",8453:"7289c336-3981-4081-c5f4-efc26ac64a00",1313161554:"3ff73439-a619-4894-9262-4470c773a100",2020:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",2021:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"a1b58899-f671-4276-6a5e-56ca5bd59700","4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"a1b58899-f671-4276-6a5e-56ca5bd59700",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:"a1b58899-f671-4276-6a5e-56ca5bd59700"},ConnectorImageIds:{[iJ.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[iJ.COINBASE_SDK_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[iJ.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[iJ.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[iJ.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[iJ.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[iJ.INJECTED_CONNECTOR_ID]:"Browser Wallet",[iJ.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[iJ.COINBASE_CONNECTOR_ID]:"Coinbase",[iJ.COINBASE_SDK_CONNECTOR_ID]:"Coinbase",[iJ.LEDGER_CONNECTOR_ID]:"Ledger",[iJ.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[iJ.INJECTED_CONNECTOR_ID]:"INJECTED",[iJ.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[iJ.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[iJ.AUTH_CONNECTOR_ID]:"AUTH"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},iX={getCaipTokens(e){if(!e)return;let t={};return Object.entries(e).forEach(([e,r])=>{t[`${iJ.EIP155}:${e}`]=r}),t}};var i0=r(55445),i1=r.n(i0),i2=r(49104),i3=r(50124),i5=r(27600),i4=r(80577);let i6="idb-keyval";var i8=(e={})=>{let t;let r=e.base&&e.base.length>0?`${e.base}:`:"",i=e=>r+e;return e.dbName&&e.storeName&&(t=(0,i5.MT)(e.dbName,e.storeName)),{name:i6,options:e,hasItem:async e=>!(typeof await (0,i5.U2)(i(e),t)>"u"),getItem:async e=>await (0,i5.U2)(i(e),t)??null,setItem:(e,r)=>(0,i5.t8)(i(e),r,t),removeItem:e=>(0,i5.IV)(i(e),t),getKeys:()=>(0,i5.XP)(t),clear:()=>(0,i5.ZH)(t)}};let i7="WALLET_CONNECT_V2_INDEXED_DB",i9="keyvaluestorage";class ne{constructor(){this.indexedDb=(0,i3.o6)({driver:i8({dbName:i7,storeName:i9})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,(0,i4.u)(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var nt="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},nr={exports:{}};function ni(e){var t;return[e[0],(0,i4.D)(null!=(t=e[1])?t:"")]}!function(){let e;function t(){}(e=t).prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof nt&&nt.localStorage?nr.exports=nt.localStorage:"u">typeof window&&window.localStorage?nr.exports=window.localStorage:nr.exports=new t}();
4094class nn{constructor(){this.localStorage=nr.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(ni)}async getItem(e){let t=this.localStorage.getItem(e);if(null!==t)return(0,i4.D)(t)}async setItem(e,t){this.localStorage.setItem(e,(0,i4.u)(t))}async removeItem(e){this.localStorage.removeItem(e)}}let no="wc_storage_version",ns=1,na=async(e,t,r)=>{let i=no,n=await t.getItem(i);if(n&&n>=ns){r(t);return}let o=await e.getKeys();if(!o.length){r(t);return}let s=[];for(;o.length;){let r=o.shift();if(!r)continue;let i=r.toLowerCase();if(i.includes("wc@")||i.includes("walletconnect")||i.includes("wc_")||i.includes("wallet_connect")){let i=await e.getItem(r);await t.setItem(r,i),s.push(r)}}await t.setItem(i,ns),r(t),nl(e,s)},nl=async(e,t)=>{t.length&&t.forEach(async t=>{await e.removeItem(t)})};class nc{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new nn;this.storage=e;try{let t=new ne;na(e,t,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let t=setInterval(()=>{this.initialized&&(clearInterval(t),e())},20)})}}var nu=r(96756),nd=r(15133),nh=r(93514);class nf extends nh.q{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class np extends nh.q{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class ng{constructor(e,t){this.logger=e,this.core=t}}class nm extends nh.q{constructor(e,t){super(),this.relayer=e,this.logger=t}}class nw extends nh.q{constructor(e){super()}}
4094class ny{constructor(e,t,r,i){this.core=e,this.logger=t,this.name=r}}class nb extends nh.q{constructor(e,t){super(),this.relayer=e,this.logger=t}}class nv extends nh.q{constructor(e,t){super(),this.core=e,this.logger=t}}class n_{constructor(e,t){this.projectId=e,this.logger=t}}class nx{constructor(e,t){this.projectId=e,this.logger=t}}class nE{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}class nC{constructor(e){this.client=e}}var nk=r(94921),nS=r(44804),nA=r(47783),nI=r(40537),nT=r(38979),nR=r(5276),nO=r(75646),nP=r(15586),nN=r.n(nP),nM=r(52423),nD=r.n(nM),nL=r(25566),nj=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var n=0;n<e.length;n++){var o=e.charAt(n),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=n}var a=e.length,l=e.charAt(0),c=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var i=0,n=0;e[t]===l;)i++,t++;for(var o=(e.length-t)*c+1>>>0,s=new Uint8Array(o);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=o-1;(0!==u||d<n)&&-1!==h;h--,d++)u+=a*s[h]>>>0,s[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");n=d,t++}if(" "!==e[t]){for(var f=o-n;f!==o&&0===s[f];)f++;for(var p=new Uint8Array(i+(o-f)),g=i;f!==o;)p[g++]=s[f++];return p}}}function h(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,i=0,n=0,o=t.length;n!==o&&0===t[n];)n++,r++;for(var s=(o-n)*u+1>>>0,c=new Uint8Array(s);n!==o;){for(var d=t[n],h=0,f=s-1;(0!==d||h<i)&&-1!==f;f--,h++)d+=256*c[f]>>>0,c[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error("Non-zero carry");i=h,n++}for(var p=s-i;p!==s&&0===c[p];)p++;for(var g=l.repeat(r);p<s;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:d,decode:h}};let nB=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},n$=e=>new TextEncoder().encode(e),nU=e=>new TextDecoder().decode(e);class nF{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class nz{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return nW(this,e)}}class nq{constructor(e){this.decoders=e}or(e){return nW(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let nW=(e,t)=>new nq({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});
4094class nH{constructor(e,t,r,i){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=i,this.encoder=new nF(e,t,r),this.decoder=new nz(e,t,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let nV=({name:e,prefix:t,encode:r,decode:i})=>new nH(e,t,r,i),nZ=({prefix:e,name:t,alphabet:r})=>{let{encode:i,decode:n}=nj(r,t);return nV({prefix:e,name:t,encode:i,decode:e=>nB(n(e))})},nK=(e,t,r,i)=>{let n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),a=0,l=0,c=0;for(let t=0;t<o;++t){let o=n[e[t]];if(void 0===o)throw SyntaxError(`Non-${i} character`);l=l<<r|o,(a+=r)>=8&&(a-=8,s[c++]=255&l>>a)}if(a>=r||255&l<<8-a)throw SyntaxError("Unexpected end of data");return s},nG=(e,t,r)=>{let i="="===t[t.length-1],n=(1<<r)-1,o="",s=0,a=0;for(let i=0;i<e.length;++i)for(a=a<<8|e[i],s+=8;s>r;)s-=r,o+=t[n&a>>s];if(s&&(o+=t[n&a<<r-s]),i)for(;o.length*r&7;)o+="=";return o},nY=({name:e,prefix:t,bitsPerChar:r,alphabet:i})=>nV({prefix:t,name:e,encode:e=>nG(e,i,r),decode:t=>nK(t,i,r,e)});var nJ=Object.freeze({__proto__:null,identity:nV({prefix:"\0",name:"identity",encode:e=>nU(e),decode:e=>n$(e)})}),nQ=Object.freeze({__proto__:null,base2:nY({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),nX=Object.freeze({__proto__:null,base8:nY({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),n0=Object.freeze({__proto__:null,base10:nZ({prefix:"9",name:"base10",alphabet:"0123456789"})}),n1=Object.freeze({__proto__:null,base16:nY({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:nY({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let n2=nY({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),n3=nY({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),n5=nY({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),n4=nY({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),n6=nY({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),n8=nY({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5});var n7=Object.freeze({__proto__:null,base32:n2,base32upper:n3,base32pad:n5,base32padupper:n4,base32hex:n6,base32hexupper:n8,base32hexpad:nY({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper:nY({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:nY({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),n9=Object.freeze({__proto__:null,base36:nZ({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:nZ({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),oe=Object.freeze({__proto__:null,base58btc:nZ({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:nZ({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let ot=nY({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6});var or=Object.freeze({__proto__:null,base64:ot,base64pad:nY({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url:nY({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:nY({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let oi=Array.from("\uD83D\uDE80\uD83E\uDE90â\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09â\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02â¤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09âº\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9Eââ¨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2Dâ£\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33â\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13ââ
\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6â\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90â¹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20â\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2Bâ½\uD83E\uDD19â\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81â¡\uD83C\uDF1E\uD83C\uDF88ââ\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2Câ\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74â¶â¡â\uD83D\uDC8E\uD83D\uDCB8â¬\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7Aâ \uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37â\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51â\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),on=oi.reduce((e,t,r)=>(e[r]=t,e),[]),oo=oi.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);var os=Object.freeze({__proto__:null,base256emoji:nV({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>
4094e+=on[t],"")},decode:function(e){let t=[];for(let r of e){let e=oo[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}})}),oa=128,ol=-128,oc=2147483648;function ou(e,t,r){t=t||[],r=r||0;for(var i=r;e>=oc;)t[r++]=255&e|oa,e/=128;for(;e&ol;)t[r++]=255&e|oa,e>>>=7;return t[r]=0|e,ou.bytes=r-i+1,t}var od=128,oh=127;function of(e,t){var r,i=0,t=t||0,n=0,o=t,s=e.length;do{if(o>=s)throw of.bytes=0,RangeError("Could not decode varint");r=e[o++],i+=n<28?(r&oh)<<n:(r&oh)*Math.pow(2,n),n+=7}while(r>=od);return of.bytes=o-t,i}var op=128,og=16384,om=2097152,ow=268435456,oy=34359738368,ob=4398046511104,ov=562949953421312,o_=72057594037927940,ox=0x7fffffffffffffff,oE=ou,oC=function(e){return e<op?1:e<og?2:e<om?3:e<ow?4:e<oy?5:e<ob?6:e<ov?7:e<o_?8:e<ox?9:10};let ok=(e,t,r=0)=>(oE(e,t,r),t),oS=e=>oC(e),oA=(e,t)=>{let r=t.byteLength,i=oS(e),n=i+oS(r),o=new Uint8Array(n+r);return ok(e,o,0),ok(r,o,i),o.set(t,n),new oI(e,r,t,o)};class oI{constructor(e,t,r,i){this.code=e,this.size=t,this.digest=r,this.bytes=i}}let oT=({name:e,code:t,encode:r})=>new oR(e,t,r);class oR{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?oA(this.code,t):t.then(e=>oA(this.code,e))}throw Error("Unknown type, must be binary type")}}let oO=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var oP=Object.freeze({__proto__:null,sha256:oT({name:"sha2-256",code:18,encode:oO("SHA-256")}),sha512:oT({name:"sha2-512",code:19,encode:oO("SHA-512")})});let oN=0,oM=nB,oD=e=>oA(oN,oM(e));var oL=Object.freeze({__proto__:null,identity:{code:oN,name:"identity",encode:oM,digest:oD}});new TextEncoder,new TextDecoder;let oj={...nJ,...nQ,...nX,...n0,...n1,...n7,...n9,...oe,...or,...os};function oB(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function o$(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}({...oP,...oL});let oU=o$("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),oF=o$("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=oB((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),oz={utf8:oU,"utf-8":oU,hex:oj.base16,latin1:oF,ascii:oF,binary:oF,...oj};function oq(e,t="utf8"){let r=oz[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}let oW="wc",oH=2,oV="core",oZ=`${oW}@2:${oV}:`,oK={logger:"error"},oG={database:":memory:"},oY="crypto",oJ="client_ed25519_seed",oQ=nI.ONE_DAY,oX="keychain",o0="0.3",o1="messages",o2="0.3",o3=nI.SIX_HOURS,o5="publisher",o4="irn",o6="error",o8="wss://relay.walletconnect.com",o7="wss://relay.walletconnect.org",o9="relayer",se={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",publish:"relayer_publish"},st="_subscription",sr={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},si=nI.ONE_SECOND,sn="2.13.0",so=1e4,ss="0.3",sa="WALLETCONNECT_CLIENT_ID",sl={created:"subscription_created",deleted:"subscription_deleted",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},sc="subscription",su="0.3",sd=1e3*nI.FIVE_SECONDS,sh="pairing",sf="0.3",sp={wc_pairingDelete:{req:{ttl:nI.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:nI.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:nI.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:nI.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:nI.ONE_DAY,prompt:!1,tag:0},res:{ttl:nI.ONE_DAY,prompt:!1,tag:0}}},sg={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},sm={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},sw="history",sy="0.3",sb="expirer",sv={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},s_="0.3",sx="verify-api",sE="https://verify.walletconnect.com",sC="https://verify.walletconnect.org",sk=[sE,sC],sS="echo",sA="https://echo.walletconnect.com";class sI{constructor(e,t){this.core=e,this.logger=t,this.keychain=new Map,this.name=oX,this.version=o0,this.initialized=!1,this.storagePrefix=oZ,this.init=async()=>
4094{if(!this.initialized){let e=await this.getKeyChain();"u">typeof e&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();let t=this.keychain.get(e);if(typeof t>"u"){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=(0,nd.Ep)(t,this.name)}get context(){return(0,nd.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,(0,nS.KCv)(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,nS.IPd)(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class sT{constructor(e,t,r){this.core=e,this.logger=t,this.name=oY,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{this.isInitialized();let e=await this.getClientSeed(),t=nk.generateKeyPair(e);return nk.encodeIss(t.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let e=(0,nS.Au2)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();let t=await this.getClientSeed(),r=nk.generateKeyPair(t),i=(0,nS.jdp)(),n=oQ;return await nk.signJWT(i,e,n,r)},this.generateSharedKey=(e,t,r)=>{this.isInitialized();let i=this.getPrivateKey(e),n=(0,nS.m$A)(i,t);return this.setSymKey(n,r)},this.setSymKey=async(e,t)=>{this.isInitialized();let r=t||(0,nS.YmJ)(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,r)=>{this.isInitialized();let i=(0,nS.ENt)(r),n=(0,i4.u)(t);if((0,nS.Q8x)(i)){let t=i.senderPublicKey,r=i.receiverPublicKey;e=await this.generateSharedKey(t,r)}let o=this.getSymKey(e),{type:s,senderPublicKey:a}=i;return(0,nS.HIp)({type:s,symKey:o,message:n,senderPublicKey:a})},this.decode=async(e,t,r)=>{this.isInitialized();let i=(0,nS.Llj)(t,r);if((0,nS.Q8x)(i)){let t=i.receiverPublicKey,r=i.senderPublicKey;e=await this.generateSharedKey(t,r)}try{let r=this.getSymKey(e),i=(0,nS.peR)({symKey:r,encoded:t});return(0,i4.D)(i)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(t)}},this.getPayloadType=e=>{let t=(0,nS.vBi)(e);return(0,nS.WGe)(t.type)},this.getPayloadSenderPublicKey=e=>{let t=(0,nS.vBi)(e);return t.senderPublicKey?(0,nA.BB)(t.senderPublicKey,nS.AWt):void 0},this.core=e,this.logger=(0,nd.Ep)(t,this.name),this.keychain=r||new sI(this.core,this.logger)}get context(){return(0,nd.Fd)(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(oJ)}catch{e=(0,nS.jdp)(),await this.keychain.set(oJ,e)}return oq(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class sR extends ng{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=o1,this.version=o2,this.initialized=!1,this.storagePrefix=oZ,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let e=await this.getRelayerMessages();"u">typeof e&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();let r=(0,nS.rjm)(t),i=this.messages.get(e);return typeof i>"u"&&(i={}),"u">typeof i[r]||(i[r]=t,this.messages.set(e,i),await this.persist()),r},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),"u">typeof this.get(e)[(0,nS.rjm)(t)]),this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=(0,nd.Ep)(e,this.name),this.core=t}
4094get context(){return(0,nd.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,(0,nS.KCv)(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,nS.IPd)(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class sO extends nm{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new i0.EventEmitter,this.name=o5,this.queue=new Map,this.publishTimeout=(0,nI.toMiliseconds)(nI.ONE_MINUTE),this.failedPublishTimeout=(0,nI.toMiliseconds)(nI.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,r)=>{var i;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:r}});let n=r?.ttl||o3,o=(0,nS._HE)(r),s=r?.prompt||!1,a=r?.tag||0,l=r?.id||(0,nR.getBigIntRpcId)().toString(),c={topic:e,message:t,opts:{ttl:n,relay:o,prompt:s,tag:a,id:l}},u=`Failed to publish payload, please try again. id:${l} tag:${a}`,d=Date.now(),h,f=1;try{for(;void 0===h;){if(Date.now()-d>this.publishTimeout)throw Error(u);this.logger.trace({id:l,attempts:f},`publisher.publish - attempt ${f}`),h=await await (0,nS.hFY)(this.rpcPublish(e,t,n,o,s,a,l).catch(e=>this.logger.warn(e)),this.publishTimeout,u),f++,h||await new Promise(e=>setTimeout(e,this.failedPublishTimeout))}this.relayer.events.emit(se.publish,c),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:l,topic:e,message:t,opts:r}})}catch(e){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(e),null!=(i=r?.internal)&&i.throwOnFailedPublish)throw e;this.queue.set(l,c)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=(0,nd.Ep)(t,this.name),this.registerEventListeners()}get context(){return(0,nd.Fd)(this.logger)}rpcPublish(e,t,r,i,n,o,s){var a,l,c,u;let d={method:(0,nS.cOS)(i.protocol).publish,params:{topic:e,message:t,ttl:r,prompt:n,tag:o},id:s};return(0,nS.o8e)(null==(a=d.params)?void 0:a.prompt)&&(null==(l=d.params)||delete l.prompt),(0,nS.o8e)(null==(c=d.params)?void 0:c.tag)&&(null==(u=d.params)||delete u.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:r,opts:i}=e;await this.publish(t,r,i)})}registerEventListeners(){this.relayer.core.heartbeat.on(nu.Lx.pulse,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(se.connection_stalled);return}this.checkQueue()}),this.relayer.on(se.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class sP{constructor(){this.map=new Map,this.set=(e,t)=>{let r=this.get(e);this.exists(e,t)||this.map.set(e,[...r,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let r=this.get(e);if(!this.exists(e,t))return;let i=r.filter(e=>e!==t);if(!i.length){this.map.delete(e);return}this.map.set(e,i)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var sN=Object.defineProperty,sM=Object.defineProperties,sD=Object.getOwnPropertyDescriptors,sL=Object.getOwnPropertySymbols,sj=Object.prototype.hasOwnProperty,sB=Object.prototype.propertyIsEnumerable,s$=(e,t,r)=>t in e?sN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sU=(e,t)=>{for(var r in t||(t={}))sj.call(t,r)&&s$(e,r,t[r]);if(sL)for(var r of sL(t))sB.call(t,r)&&s$(e,r,t[r]);return e},sF=(e,t)=>sM(e,sD(t));class sz extends nb{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new sP,this.events=new i0.EventEmitter,this.name=sc,this.version=su,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=oZ,this.subscribeTimeout=(0,nI.toMiliseconds)(nI.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{let r=(0,nS._HE)(t),i={topic:e,relay:r};this.pending.set(e,i);let n=await this.rpcSubscribe(e,r);return"string"==typeof n&&(this.onSubscribe(n,i),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),n}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),"u">typeof t?.id?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;let t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise((r,i)=>{let n=new nI.Watch;n.start(t);let o=setInterval(()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(o),n.stop(t),r(!0)),n.elapsed(t)>=sd&&(clearInterval(o),n.stop(t),i(Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1)},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>
4094{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=(0,nd.Ep)(t,this.name),this.clientId=""}get context(){return(0,nd.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let r=!1;try{r=this.getSubscription(e).topic===t}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let r=this.topicMap.get(e);await Promise.all(r.map(async r=>await this.unsubscribeById(e,r,t)))}async unsubscribeById(e,t,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}});try{let i=(0,nS._HE)(r);await this.rpcUnsubscribe(e,t,i);let n=(0,nS.D6H)("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}async rpcSubscribe(e,t){let r={method:(0,nS.cOS)(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await await (0,nS.hFY)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)?(0,nS.rjm)(e+this.clientId):null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(se.connection_stalled)}return null}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,r={method:(0,nS.cOS)(t.protocol).batchSubscribe,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await await (0,nS.hFY)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(se.connection_stalled)}}async rpcBatchFetchMessages(e){let t;if(!e.length)return;let r=e[0].relay,i={method:(0,nS.cOS)(r.protocol).batchFetchMessages,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i});try{t=await await (0,nS.hFY)(this.relayer.request(i).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(se.connection_stalled)}return t}rpcUnsubscribe(e,t,r){let i={method:(0,nS.cOS)(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}onSubscribe(e,t){this.setSubscription(e,sF(sU({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(e=>{this.setSubscription(e.id,sU({},e)),this.pending.delete(e.topic)})}async onUnsubscribe(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,sU({},t)),this.topicMap.set(t.topic,e),this.events.emit(sl.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let r=this.getSubscription(e);
4094this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(sl.deleted,sF(sU({},r),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(sl.sync)}async reset(){if(this.cached.length){let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t<e;t++){let e=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchFetchMessages(e),await this.batchSubscribe(e)}}this.events.emit(sl.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size){let{message:e}=(0,nS.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);(0,nS.qt8)(t)&&this.onBatchSubscribe(t.map((t,r)=>sF(sU({},e[r]),{id:t})))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(nu.Lx.pulse,async()=>{await this.checkPending()}),this.events.on(sl.created,async e=>{let t=sl.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(sl.deleted,async e=>{let t=sl.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}}var sq=Object.defineProperty,sW=Object.getOwnPropertySymbols,sH=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable,sZ=(e,t,r)=>t in e?sq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sK=(e,t)=>{for(var r in t||(t={}))sH.call(t,r)&&sZ(e,r,t[r]);if(sW)for(var r of sW(t))sV.call(t,r)&&sZ(e,r,t[r]);return e};class sG extends nw{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new i0.EventEmitter,this.name=o9,this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,nI.toMiliseconds)(nI.THIRTY_SECONDS+nI.ONE_SECOND),this.request=async e=>{var t,r;this.logger.debug("Publishing Request Payload");let i=e.id||(0,nR.getBigIntRpcId)().toString();await this.toEstablishConnection();try{let n=this.provider.request(e);this.requestsInFlight.set(i,{promise:n,request:e}),this.logger.trace({id:i,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - attempt to publish...");let o=await new Promise(async(e,t)=>{let r=()=>{t(Error(`relayer.request - publish interrupted, id: ${i}`))};this.provider.on(sr.disconnect,r);let o=await n;this.provider.off(sr.disconnect,r),e(o)});return this.logger.trace({id:i,method:e.method,topic:null==(r=e.params)?void 0:r.topic},"relayer.request - published"),o}catch(e){throw this.logger.debug(`Failed to Publish Request: ${i}`),e}finally{this.requestsInFlight.delete(i)}},this.resetPingTimeout=()=>{if((0,nS.UGU)())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var e,t,r;null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||r.terminate()},this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.startPingTimeout(),this.events.emit(se.connect)},this.onDisconnectHandler=()=>{this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(se.error,e),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(sr.payload,this.onPayloadHandler),this.provider.on(sr.connect,this.onConnectHandler),this.provider.on(sr.disconnect,this.onDisconnectHandler),this.provider.on(sr.error,this.onProviderErrorHandler)},this.core=e.core,this.logger="u">typeof e.logger&&"string"!=typeof e.logger?(0,nd.Ep)(e.logger,this.name):(0,nd.gw)((0,nd.jI)({level:e.logger||o6})),this.messages=new sR(this.logger,e.core),this.subscriber=new sz(this,this.logger),this.publisher=new sO(this,this.logger),this.relayUrl=e?.relayUrl||o8,this.projectId=e.projectId,this.bundleId=(0,nS.X_B)(),this.provider={}}
4094async init(){this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]);try{await this.transportOpen()}catch{this.logger.warn(`Connection via ${this.relayUrl} failed, attempting to connect via failover domain ${o7}...`),await this.restartTransport(o7)}this.initialized=!0,setTimeout(async()=>{0===this.subscriber.topics.length&&0===this.subscriber.pending.size&&(this.logger.info("No topics subscribed to after init, closing transport"),await this.transportClose(),this.transportExplicitlyClosed=!1)},so)}get context(){return(0,nd.Fd)(this.logger)}get connected(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===1}get connecting(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===0}async publish(e,t,r){this.isInitialized(),await this.publisher.publish(e,t,r),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){var r;this.isInitialized();let i=(null==(r=this.subscriber.topicMap.get(e))?void 0:r[0])||"",n,o=t=>{t.topic===e&&(this.subscriber.off(sl.created,o),n())};return await Promise.all([new Promise(e=>{n=e,this.subscriber.on(sl.created,o)}),new Promise(async r=>{i=await this.subscriber.subscribe(e,t)||i,r()})]),i}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(e=>e.promise))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await (0,nS.hFY)(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(e,t)=>{let r=()=>{this.provider.off(sr.disconnect,r),t(Error("Connection interrupted while trying to subscribe"))};this.provider.on(sr.disconnect,r),await (0,nS.hFY)(this.provider.connect(),(0,nI.toMiliseconds)(nI.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(e=>{t(e)}),await this.subscriber.start(),this.hasExperiencedNetworkDisruption=!1,e()})}catch(t){this.logger.error(t);let e=t;if(this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw t}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await (0,nS.Ggh)())throw Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace("Batch message events is empty. Ignoring...");return}let t=e.sort((e,t)=>e.publishedAt-t.publishedAt);for(let e of(this.logger.trace(`Batch of ${t.length} message events sorted`),t))try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e)}this.logger.trace(`Batch of ${t.length} message events processed`)}startPingTimeout(){var e,t,r,i,n;if((0,nS.UGU)())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(n=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)||n.once("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e)}}isConnectionStalled(e){return this.staleConnectionErrors.some(t=>e.includes(t))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new nT.r(new nO.Z((0,nS.$0m)({sdkVersion:sn,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){let{topic:t,message:r}=e;await this.messages.set(t,r)}async shouldIgnoreMessageEvent(e){let{topic:t,message:r}=e;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;let i=this.messages.has(t,r);return i&&this.logger.debug(`Ignoring duplicate message: ${r}`),i}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),(0,nR.isJsonRpcRequest)(e)){if(!e.method.endsWith(st))return;let t=e.params,{topic:r,message:i,publishedAt:n}=t.data,o={topic:r,message:i,publishedAt:n};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(sK({type:"event",event:t.id},o)),this.events.emit(t.id,o),await this.acknowledgePayload(e),await this.onMessageEvent(o)}else(0,nR.isJsonRpcResponse)(e)&&this.events.emit(se.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(se.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=(0,nR.formatJsonRpcResult)(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(sr.payload,this.onPayloadHandler),this.provider.off(sr.connect,this.onConnectHandler),this.provider.off(sr.disconnect,this.onDisconnectHandler),this.provider.off(sr.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await (0,nS.Ggh)();(0,nS.uwg)(async t=>{e!==t&&(e=t,t?await this.restartTransport().catch(e=>this.logger.error(e)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(se.disconnect),this.connectionAttemptInProgress=!1,this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e))},(0,nI.toMiliseconds)(si))}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),this.connected||(this.connectionAttemptInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.connected&&(clearInterval(t),e())},this.connectionStatusPollingInterval)}),await this.transportOpen())}}var sY=Object.defineProperty,sJ=Object.getOwnPropertySymbols,sQ=Object.prototype.hasOwnProperty,sX=Object.prototype.propertyIsEnumerable,s0=(e,t,r)=>t in e?sY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s1=(e,t)=>{for(var r in t||(t={}))sQ.call(t,r)&&s0(e,r,t[r]);if(sJ)for(var r of sJ(t))sX.call(t,r)&&s0(e,r,t[r]);return e};
4094class s2 extends ny{constructor(e,t,r,i=oZ,n){super(e,t,r,i),this.core=e,this.logger=t,this.name=r,this.map=new Map,this.version=ss,this.cached=[],this.initialized=!1,this.storagePrefix=oZ,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>{this.getKey&&null!==e&&!(0,nS.o8e)(e)?this.map.set(this.getKey(e),e):(0,nS.xWS)(e)?this.map.set(e.id,e):(0,nS.h1R)(e)&&this.map.set(e.topic,e)}),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter(t=>Object.keys(e).every(r=>nN()(t[r],e[r]))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});let r=s1(s1({},this.getData(e)),t);this.map.set(e,r),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=(0,nd.Ep)(t,this.name),this.storagePrefix=i,this.getKey=n}get context(){return(0,nd.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),Error(t)}let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:e}=(0,nS.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class s3{constructor(e,t){this.core=e,this.logger=t,this.name=sh,this.version=sf,this.events=new(i1()),this.initialized=!1,this.storagePrefix=oZ,this.ignoredPayloadTypes=[nS.rVF],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();let t=(0,nS.jdp)(),r=await this.core.crypto.setSymKey(t),i=(0,nS.gn4)(nI.FIVE_MINUTES),n={protocol:o4},o={topic:r,expiry:i,relay:n,active:!1},s=(0,nS.Bvr)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:t,relay:n,expiryTimestamp:i,methods:e?.methods});return this.core.expirer.set(r,i),await this.pairings.set(r,o),await this.core.relayer.subscribe(r),{topic:r,uri:s}},this.pair=async e=>{this.isInitialized(),this.isValidPair(e);let{topic:t,symKey:r,relay:i,expiryTimestamp:n,methods:o}
4094=(0,nS.heJ)(e.uri);if(this.pairings.keys.includes(t)&&this.pairings.get(t).active)throw Error(`Pairing already exists: ${t}. Please try again with a new connection URI.`);let s=n||(0,nS.gn4)(nI.FIVE_MINUTES),a={topic:t,relay:i,expiry:s,active:!1,methods:o};return this.core.expirer.set(t,s),await this.pairings.set(t,a),e.activatePairing&&await this.activate({topic:t}),this.events.emit(sg.create,a),this.core.crypto.keychain.has(t)||await this.core.crypto.setSymKey(r,t),await this.core.relayer.subscribe(t,{relay:i}),a},this.activate=async({topic:e})=>{this.isInitialized();let t=(0,nS.gn4)(nI.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);let{topic:t}=e;if(this.pairings.keys.includes(t)){let e=await this.sendRequest(t,"wc_pairingPing",{}),{done:r,resolve:i,reject:n}=(0,nS.H1S)();this.events.once((0,nS.E0T)("pairing_ping",e),({error:e})=>{e?n(e):i()}),await r()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",(0,nS.D6H)("USER_DISCONNECTED")),await this.deletePairing(t))},this.sendRequest=async(e,t,r)=>{let i=(0,nR.formatJsonRpcRequest)(t,r),n=await this.core.crypto.encode(e,i),o=sp[t].req;return this.core.history.set(e,i),this.core.relayer.publish(e,n,o),i.id},this.sendResult=async(e,t,r)=>{let i=(0,nR.formatJsonRpcResult)(e,r),n=await this.core.crypto.encode(t,i),o=sp[(await this.core.history.get(t,e)).request.method].res;await this.core.relayer.publish(t,n,o),await this.core.history.resolve(i)},this.sendError=async(e,t,r)=>{let i=(0,nR.formatJsonRpcError)(e,r),n=await this.core.crypto.encode(t,i),o=await this.core.history.get(t,e),s=sp[o.request.method]?sp[o.request.method].res:sp.unregistered_method.res;await this.core.relayer.publish(t,n,s),await this.core.history.resolve(i)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,(0,nS.D6H)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{let e=this.pairings.getAll().filter(e=>(0,nS.BwD)(e.expiry));await Promise.all(e.map(e=>this.deletePairing(e.topic)))},this.onRelayEventRequest=e=>{let{topic:t,payload:r}=e;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(t,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,r);default:return this.onUnknownRpcMethodRequest(t,r)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,i=(await this.core.history.get(t,r.id)).request.method;return"wc_pairingPing"===i?this.onPairingPingResponse(t,r):this.onUnknownRpcMethodResponse(i)},this.onPairingPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit(sg.ping,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onPairingPingResponse=(e,t)=>{let{id:r}=t;setTimeout(()=>{(0,nR.isJsonRpcResult)(t)?this.events.emit((0,nS.E0T)("pairing_ping",r),{}):(0,nR.isJsonRpcError)(t)&&this.events.emit((0,nS.E0T)("pairing_ping",r),{error:t.error})},500)},this.onPairingDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(sg.delete,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodRequest=async(e,t)=>{let{id:r,method:i}=t;try{if(this.registeredMethods.includes(i))return;let t=(0,nS.D6H)("WC_METHOD_UNSUPPORTED",i);await this.sendError(r,e,t),this.logger.error(t)}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error((0,nS.D6H)("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=e=>{var t;if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`pair() params: ${e}`);throw Error(t)}
4094if(!(0,nS.jvJ)(e.uri)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw Error(t)}let r=(0,nS.heJ)(e.uri);if(!(null!=(t=r?.relay)&&t.protocol)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw Error(e)}if(!(null!=r&&r.symKey)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID","pair() uri#symKey");throw Error(e)}if(null!=r&&r.expiryTimestamp&&(0,nI.toMiliseconds)(r?.expiryTimestamp)<Date.now()){let{message:e}=(0,nS.kCb)("EXPIRED","pair() URI has expired. Please try again with a new connection URI.");throw Error(e)}},this.isValidPing=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!(0,nS.M_r)(e,!1)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.pairings.keys.includes(e)){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,nS.BwD)(this.pairings.get(e).expiry)){await this.deletePairing(e);let{message:t}=(0,nS.kCb)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}},this.core=e,this.logger=(0,nd.Ep)(t,this.name),this.pairings=new s2(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,nd.Fd)(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}registerRelayerEvents(){this.core.relayer.on(se.message,async e=>{let{topic:t,message:r}=e;if(!this.pairings.keys.includes(t)||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;let i=await this.core.crypto.decode(t,r);try{(0,nR.isJsonRpcRequest)(i)?(this.core.history.set(t,i),this.onRelayEventRequest({topic:t,payload:i})):(0,nR.isJsonRpcResponse)(i)&&(await this.core.history.resolve(i),await this.onRelayEventResponse({topic:t,payload:i}),this.core.history.delete(t,i.id))}catch(e){this.logger.error(e)}})}registerExpirerEvents(){this.core.expirer.on(sv.expired,async e=>{let{topic:t}=(0,nS.iPz)(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(sg.expire,{topic:t}))})}}class s5 extends np{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new i0.EventEmitter,this.name=sw,this.version=sy,this.cached=[],this.initialized=!1,this.storagePrefix=oZ,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.records.set(e.id,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:r}),this.records.has(t.id))return;let i={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:r,expiry:(0,nS.gn4)(nI.THIRTY_DAYS)};this.records.set(i.id,i),this.persist(),this.events.emit(sm.created,i)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;let t=await this.getRecord(e.id);typeof t.response>"u"&&(t.response=(0,nR.isJsonRpcError)(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(sm.updated,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach(r=>{r.topic!==e||"u">typeof t&&r.id!==t||(this.records.delete(r.id),this.events.emit(sm.deleted,r))}),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,nd.Ep)(t,this.name)}get context(){return(0,nd.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];
4094return this.values.forEach(t=>{if("u">typeof t.response)return;let r={topic:t.topic,request:(0,nR.formatJsonRpcRequest)(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(sm.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:e}=(0,nS.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(sm.created,e=>{let t=sm.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(sm.updated,e=>{let t=sm.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(sm.deleted,e=>{let t=sm.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.core.heartbeat.on(nu.Lx.pulse,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,nI.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(sm.deleted,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class s4 extends nv{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new i0.EventEmitter,this.name=sb,this.version=s_,this.cached=[],this.initialized=!1,this.storagePrefix=oZ,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.expirations.set(e.target,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{let t=this.formatTarget(e);return"u">typeof this.getExpiration(t)}catch{return!1}},this.set=(e,t)=>{this.isInitialized();let r=this.formatTarget(e),i={target:r,expiry:t};this.expirations.set(r,i),this.checkExpiry(r,i),this.events.emit(sv.created,{target:r,expiration:i})},this.get=e=>{this.isInitialized();let t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){let t=this.formatTarget(e),r=this.getExpiration(t);this.expirations.delete(t),this.events.emit(sv.deleted,{target:t,expiration:r})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,nd.Ep)(t,this.name)}get context(){return(0,nd.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return(0,nS.Z42)(e);if("number"==typeof e)return(0,nS.GqV)(e);let{message:t}=(0,nS.kCb)("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(sv.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:e}=(0,nS.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(t),Error(t)}return t}checkExpiry(e,t){let{expiry:r}=t;(0,nI.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(sv.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(nu.Lx.pulse,()=>this.checkExpirations()),this.events.on(sv.created,e=>{let t=sv.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(sv.expired,e=>{let t=sv.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(sv.deleted,e=>{let t=sv.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class s6 extends n_{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.name=sx,this.initialized=!1,this.queue=[],this.verifyDisabled=!1,this.init=async e=>{if(this.verifyDisabled||(0,nS.b$m)()||!(0,nS.jUY)())return;let t=this.getVerifyUrl(e?.verifyUrl);this.verifyUrl!==t&&this.removeIframe(),this.verifyUrl=t;try{await this.createIframe()}catch(e){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(e)}if(!this.initialized){this.removeIframe(),this.verifyUrl=sC;try{await this.createIframe()}catch(e){this.logger.info(`Verify iframe failed to load: ${this.verifyUrl}`),this.logger.info(e),this.verifyDisabled=!0}}},this.register=async e=>{this.initialized?this.sendPost(e.attestationId):(this.addToQueue(e.attestationId),await this.init())},this.resolve=async e=>{let t;if(this.isDevEnv)return"";let r=this.getVerifyUrl(e?.verifyUrl);try{t=await this.fetchAttestation(e.attestationId,r)}catch(i){this.logger.info(`failed to resolve attestation: ${e.attestationId} from url: ${r}`),this.logger.info(i),t=await this.fetchAttestation(e.attestationId,sC)}return t},this.fetchAttestation=async(e,t)=>{this.logger.info(`resolving attestation: ${e} from url: ${t}`);let r=this.startAbortTimer(2*nI.ONE_SECOND),i=await fetch(`${t}/attestation/${e}`,{signal:this.abortController.signal});return clearTimeout(r),200===i.status?await i.json():void 0},this.addToQueue=e=>{this.queue.push(e)},this.processQueue=()=>
4094{0!==this.queue.length&&(this.queue.forEach(e=>this.sendPost(e)),this.queue=[])},this.sendPost=e=>{var t;try{if(!this.iframe)return;null==(t=this.iframe.contentWindow)||t.postMessage(e,"*"),this.logger.info(`postMessage sent: ${e} ${this.verifyUrl}`)}catch{}},this.createIframe=async()=>{let e;let t=r=>{"verify_ready"===r.data&&(this.onInit(),window.removeEventListener("message",t),e())};await Promise.race([new Promise(r=>{let i=document.getElementById(sx);if(i)return this.iframe=i,this.onInit(),r();window.addEventListener("message",t);let n=document.createElement("iframe");n.id=sx,n.src=`${this.verifyUrl}/${this.projectId}`,n.style.display="none",document.body.append(n),this.iframe=n,e=r}),new Promise((e,r)=>setTimeout(()=>{window.removeEventListener("message",t),r("verify iframe load timeout")},(0,nI.toMiliseconds)(nI.FIVE_SECONDS)))])},this.onInit=()=>{this.initialized=!0,this.processQueue()},this.removeIframe=()=>{this.iframe&&(this.iframe.remove(),this.iframe=void 0,this.initialized=!1)},this.getVerifyUrl=e=>{let t=e||sE;return sk.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${sE}`),t=sE),t},this.logger=(0,nd.Ep)(t,this.name),this.verifyUrl=sE,this.abortController=new AbortController,this.isDevEnv=(0,nS.UGU)()&&nL.env.IS_VITEST}get context(){return(0,nd.Fd)(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,nI.toMiliseconds)(e))}}class s8 extends nx{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context=sS,this.registerDeviceToken=async e=>{let{clientId:t,token:r,notificationType:i,enableEncrypted:n=!1}=e,o=`${sA}/${this.projectId}/clients`;await nD()(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:i,token:r,always_raw:n})})},this.logger=(0,nd.Ep)(t,this.context)}}var s7=Object.defineProperty,s9=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,ar=(e,t,r)=>t in e?s7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ai=(e,t)=>{for(var r in t||(t={}))ae.call(t,r)&&ar(e,r,t[r]);if(s9)for(var r of s9(t))at.call(t,r)&&ar(e,r,t[r]);return e};class an extends nf{constructor(e){var t;super(e),this.protocol=oW,this.version=oH,this.name=oV,this.events=new i0.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||o8,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";let r=(0,nd.jI)({level:"string"==typeof e?.logger&&e.logger?e.logger:oK.logger}),{logger:i,chunkLoggerController:n}=(0,nd.Rt)({opts:r,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=n,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=(0,nd.Ep)(i,this.name),this.heartbeat=new nu.C$,this.crypto=new sT(this,this.logger,e?.keychain),this.history=new s5(this,this.logger),this.expirer=new s4(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new nc(ai(ai({},oG),e?.storageOptions)),this.relayer=new sG({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new s3(this,this.logger),this.verify=new s6(this.projectId||"",this.logger),this.echoClient=new s8(this.projectId||"",this.logger)}static async init(e){let t=new an(e);await t.initialize();let r=await t.crypto.getClientId();return await t.storage.setItem(sa,r),t}get context(){return(0,nd.Fd)(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(
4094),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}let ao=an,as="wc",aa=2,al="client",ac=`${as}@${aa}:${al}:`,au={name:al,logger:"error"},ad="WALLETCONNECT_DEEPLINK_CHOICE",ah="proposal",af="Proposal expired",ap="session",ag=nI.SEVEN_DAYS,am="engine",aw={wc_sessionPropose:{req:{ttl:nI.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:nI.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:nI.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:nI.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:nI.ONE_DAY,prompt:!1,tag:1104},res:{ttl:nI.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:nI.ONE_DAY,prompt:!1,tag:1106},res:{ttl:nI.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:nI.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:nI.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:nI.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:nI.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:nI.ONE_DAY,prompt:!1,tag:1112},res:{ttl:nI.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:nI.ONE_DAY,prompt:!1,tag:1114},res:{ttl:nI.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:nI.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:nI.ONE_HOUR,prompt:!1,tag:1117}}},ay={min:nI.FIVE_MINUTES,max:nI.SEVEN_DAYS},ab={idle:"IDLE",active:"ACTIVE"},av="request",a_=["wc_sessionPropose","wc_sessionRequest","wc_authRequest"],ax="wc",aE="auth",aC="authKeys",ak="pairingTopics",aS="requests",aA=`${ax}@1.5:${aE}:`,aI=`${aA}:PUB_KEY`;var aT=Object.defineProperty,aR=Object.defineProperties,aO=Object.getOwnPropertyDescriptors,aP=Object.getOwnPropertySymbols,aN=Object.prototype.hasOwnProperty,aM=Object.prototype.propertyIsEnumerable,aD=(e,t,r)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aL=(e,t)=>{for(var r in t||(t={}))aN.call(t,r)&&aD(e,r,t[r]);if(aP)for(var r of aP(t))aM.call(t,r)&&aD(e,r,t[r]);return e},aj=(e,t)=>aR(e,aO(t));class aB extends nC{constructor(e){super(e),this.name=am,this.events=new(i1()),this.initialized=!1,this.requestQueue={state:ab.idle,queue:[]},this.sessionRequestQueue={state:ab.idle,queue:[]},this.requestQueueDelay=nI.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),this.client.core.pairing.register({methods:Object.keys(aw)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,nI.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{await this.isInitialized();let t=aj(aL({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);let{pairingTopic:r,requiredNamespaces:i,optionalNamespaces:n,sessionProperties:o,relays:s}=t,a=r,l,c=!1;try{a&&(c=this.client.core.pairing.pairings.get(a).active)}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${a}) failed`),e}if(!a||!c){let{topic:e,uri:t}=await this.client.core.pairing.create();a=e,l=t}if(!a){let{message:e}=(0,nS.kCb)("NO_MATCHING_KEY",`connect() pairing topic: ${a}`);throw Error(e)}let u=await this.client.core.crypto.generateKeyPair(),d=aw.wc_sessionPropose.req.ttl||nI.FIVE_MINUTES,h=(0,nS.gn4)(d),f=aL({requiredNamespaces:i,optionalNamespaces:n,relays:s??[{protocol:o4}],proposer:{publicKey:u,metadata:this.client.metadata},expiryTimestamp:h},o&&{sessionProperties:o}),{reject:p,resolve:g,done:m}=(0,nS.H1S)(d,af);this.events.once((0,nS.E0T)("session_connect"),async({error:e,session:t})=>{if(e)p(e);else if(t){t.self.publicKey=u;let e=aj(aL({},t),{requiredNamespaces:f.requiredNamespaces,optionalNamespaces:f.optionalNamespaces});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),a&&await this.client.core.pairing.updateMetadata({topic:a,metadata:t.peer.metadata}),g(e)}});let w=await this.sendRequest({topic:a,method:"wc_sessionPropose",params:f,throwOnFailedPublish:!0});return await this.setProposal(w,aL({id:w},f)),{uri:l,approval:m}},this.pair=async e=>{await this.isInitialized();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error("pair() failed"),e}},this.approve=async e=>{let t;await this.isInitialized();try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error("approve() -> isValidApprove() failed"),e}let{id:r,relayProtocol:i,namespaces:n,sessionProperties:o,sessionConfig:s}=e;try{t=this.client.proposal.get(r)}catch(e){throw this.client.logger.error(`approve() -> proposal.get(${r}) failed`),e}let{pairingTopic:a,proposer:l,requiredNamespaces:c,optionalNamespaces:u}=t;a=a||"";let d=await this.client.core.crypto.generateKeyPair(),h=l.publicKey,f=await this.client.core.crypto.generateSharedKey(d,h),p=aL(aL({relay:{protocol:i??"irn"},namespaces:n,pairingTopic:a,controller:{publicKey:d,metadata:this.client.metadata},expiry:(0,nS.gn4)(ag)},o&&{sessionProperties:o}),s&&{sessionConfig:s});await this.client.core.relayer.subscribe(f);let g=aj(aL({},p),{topic:f,requiredNamespaces:c,optionalNamespaces:u,pairingTopic:a,acknowledged:!1,self:p.c
4094ontroller,peer:{publicKey:l.publicKey,metadata:l.metadata},controller:d});await this.client.session.set(f,g);try{await this.sendResult({id:r,topic:a,result:{relay:{protocol:i??"irn"},responderPublicKey:d},throwOnFailedPublish:!0}),await this.sendRequest({topic:f,method:"wc_sessionSettle",params:p,throwOnFailedPublish:!0})}catch(e){throw this.client.logger.error(e),this.client.session.delete(f,(0,nS.D6H)("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(f),e}return await this.client.core.pairing.updateMetadata({topic:a,metadata:l.metadata}),await this.client.proposal.delete(r,(0,nS.D6H)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:a}),await this.setExpiry(f,(0,nS.gn4)(ag)),{topic:f,acknowledged:()=>new Promise(e=>setTimeout(()=>e(this.client.session.get(f)),500))}},this.reject=async e=>{let t;await this.isInitialized();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error("reject() -> isValidReject() failed"),e}let{id:r,reason:i}=e;try{t=this.client.proposal.get(r).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${r}) failed`),e}t&&(await this.sendError({id:r,topic:t,error:i}),await this.client.proposal.delete(r,(0,nS.D6H)("USER_DISCONNECTED")))},this.update=async e=>{await this.isInitialized();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error("update() -> isValidUpdate() failed"),e}let{topic:t,namespaces:r}=e,{done:i,resolve:n,reject:o}=(0,nS.H1S)(),s=(0,nR.payloadId)(),a=(0,nR.getBigIntRpcId)().toString(),l=this.client.session.get(t).namespaces;return this.events.once((0,nS.E0T)("session_update",s),({error:e})=>{e?o(e):n()}),await this.client.session.update(t,{namespaces:r}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:s,relayRpcId:a}).catch(e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:l}),o(e)}),{acknowledged:i}},this.extend=async e=>{await this.isInitialized();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error("extend() -> isValidExtend() failed"),e}let{topic:t}=e,r=(0,nR.payloadId)(),{done:i,resolve:n,reject:o}=(0,nS.H1S)();return this.events.once((0,nS.E0T)("session_extend",r),({error:e})=>{e?o(e):n()}),await this.setExpiry(t,(0,nS.gn4)(ag)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch(e=>{o(e)}),{acknowledged:i}},this.request=async e=>{await this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error("request() -> isValidRequest() failed"),e}let{chainId:t,request:r,topic:i,expiry:n=aw.wc_sessionRequest.req.ttl}=e,o=this.client.session.get(i),s=(0,nR.payloadId)(),a=(0,nR.getBigIntRpcId)().toString(),{done:l,resolve:c,reject:u}=(0,nS.H1S)(n,"Request expired. Please try again.");return this.events.once((0,nS.E0T)("session_request",s),({error:e,result:t})=>{e?u(e):c(t)}),await Promise.all([new Promise(async e=>{await this.sendRequest({clientRpcId:s,relayRpcId:a,topic:i,method:"wc_sessionRequest",params:{request:aj(aL({},r),{expiryTimestamp:(0,nS.gn4)(n)}),chainId:t},expiry:n,throwOnFailedPublish:!0}).catch(e=>u(e)),this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:t,id:s}),e()}),new Promise(async e=>{var t;if(!(null!=(t=o.sessionConfig)&&t.disableDeepLink)){let e=await (0,nS.bW6)(this.client.core.storage,ad);(0,nS.HhN)({id:s,topic:i,wcDeepLink:e})}e()}),l()]).then(e=>e[2])},this.respond=async e=>{await this.isInitialized(),await this.isValidRespond(e);let{topic:t,response:r}=e,{id:i}=r;(0,nR.isJsonRpcResult)(r)?await this.sendResult({id:i,topic:t,result:r.result,throwOnFailedPublish:!0}):(0,nR.isJsonRpcError)(r)&&await this.sendError({id:i,topic:t,error:r.error}),this.cleanupAfterResponse(e)},this.ping=async e=>{await this.isInitialized();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error("ping() -> isValidPing() failed"),e}let{topic:t}=e;if(this.client.session.keys.includes(t)){let e=(0,nR.payloadId)(),r=(0,nR.getBigIntRpcId)().toString(),{done:i,resolve:n,reject:o}=(0,nS.H1S)();this.events.once((0,nS.E0T)("session_ping",e),({error:e})=>{e?o(e):n()}),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),i()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{await this.isInitialized(),await this.isValidEmit(e);let{topic:t,event:r,chainId:i}=e,n=(0,nR.getBigIntRpcId)().toString();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:r,chainId:i},throwOnFailedPublish:!0,relayRpcId:n})},this.disconnect=async e=>{await this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:(0,nS.D6H)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{let{message:e}=(0,nS.kCb)("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw Error(e)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>(0,nS.Ih8)(t,e))),this.getPendingSessionRequests=()=>
4094this.client.pendingRequest.getAll(),this.authenticate=async e=>{this.isInitialized(),this.isValidAuthenticate(e);let{chains:t,statement:r="",uri:i,domain:n,nonce:o,type:s,exp:a,nbf:l,methods:c=[],expiry:u}=e,d=[...e.resources||[]],{topic:h,uri:f}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});this.client.logger.info({message:"Generated new pairing",pairing:{topic:h,uri:f}});let p=await this.client.core.crypto.generateKeyPair(),g=(0,nS.YmJ)(p);if(await Promise.all([this.client.auth.authKeys.set(aI,{responseTopic:g,publicKey:p}),this.client.auth.pairingTopics.set(g,{topic:g,pairingTopic:h})]),await this.client.core.relayer.subscribe(g),this.client.logger.info(`sending request to new pairing topic: ${h}`),c.length>0){let{namespace:e}=(0,nS.DQe)(t[0]),r=(0,nS.IkP)(e,"request",c);(0,nS.hA9)(d)&&(r=(0,nS.qJM)(r,d.pop())),d.push(r)}let m=u&&u>aw.wc_sessionAuthenticate.req.ttl?u:aw.wc_sessionAuthenticate.req.ttl,w={authPayload:{type:s??"caip122",chains:t,statement:r,aud:i,domain:n,version:"1",nonce:o,iat:new Date().toISOString(),exp:a,nbf:l,resources:d},requester:{publicKey:p,metadata:this.client.metadata},expiryTimestamp:(0,nS.gn4)(m)},y={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:t,methods:[...new Set(["personal_sign",...c])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],proposer:{publicKey:p,metadata:this.client.metadata},expiryTimestamp:(0,nS.gn4)(aw.wc_sessionPropose.req.ttl)},{done:b,resolve:v,reject:_}=(0,nS.H1S)(m,"Request expired"),x=async({error:e,session:t})=>{if(this.events.off((0,nS.E0T)("session_request",C),E),e)_(e);else if(t){t.self.publicKey=p,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),h&&await this.client.core.pairing.updateMetadata({topic:h,metadata:t.peer.metadata});let e=this.client.session.get(t.topic);await this.deleteProposal(k),v({session:e})}},E=async e=>{let t;if(await this.deletePendingAuthRequest(C,{message:"fulfilled",code:0}),e.error){let t=(0,nS.D6H)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off((0,nS.E0T)("session_connect"),x),_(e.error.message))}await this.deleteProposal(k),this.events.off((0,nS.E0T)("session_connect"),x);let{cacaos:r,responder:i}=e.result,n=[],o=[];for(let e of r){await (0,nS.c4l)({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,"Signature verification failed"),_((0,nS.D6H)("SESSION_SETTLEMENT_FAILED","Signature verification failed")));let{p:t}=e,r=(0,nS.hA9)(t.resources),i=[(0,nS.DJo)(t.iss)],s=(0,nS.NmC)(t.iss);if(r){let e=(0,nS.Y31)(r),t=(0,nS.ouN)(r);n.push(...e),i.push(...t)}for(let e of i)o.push(`${e}:${s}`)}let s=await this.client.core.crypto.generateSharedKey(p,i.publicKey);n.length>0&&(t={topic:s,acknowledged:!0,self:{publicKey:p,metadata:this.client.metadata},peer:i,controller:i.publicKey,expiry:(0,nS.gn4)(ag),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:h,namespaces:(0,nS.E12)([...new Set(n)],[...new Set(o)])},await this.client.core.relayer.subscribe(s),await this.client.session.set(s,t),t=this.client.session.get(s)),v({auths:r,session:t})},C=(0,nR.payloadId)(),k=(0,nR.payloadId)();this.events.once((0,nS.E0T)("session_connect"),x),this.events.once((0,nS.E0T)("session_request",C),E);try{await Promise.all([this.sendRequest({topic:h,method:"wc_sessionAuthenticate",params:w,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:C}),this.sendRequest({topic:h,method:"wc_sessionPropose",params:y,expiry:aw.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:k})])}catch(e){throw this.events.off((0,nS.E0T)("session_connect"),x),this.events.off((0,nS.E0T)("session_request",C),E),e}return await this.setProposal(k,aL({id:k},y)),await this.setAuthRequest(C,{request:aj(aL({},w),{verifyContext:{}}),pairingTopic:h}),{uri:f,response:b}},this.approveSessionAuthenticate=async e=>{let t;this.isInitialized();let{id:r,auths:i}=e,n=this.getPendingAuthRequest(r);if(!n)throw Error(`Could not find pending auth request with id ${r}`);let o=n.requester.publicKey,s=await this.client.core.crypto.generateKeyPair(),a=(0,nS.YmJ)(o),l={type:nS.rVF,receiverPublicKey:o,senderPublicKey:s},c=[],u=[];for(let e of i){if(!await (0,nS.c4l)({cacao:e,projectId:this.client.core.projectId})){let e=(0,nS.D6H)("SESSION_SETTLEMENT_FAILED","Signature verification failed");
4094throw await this.sendError({id:r,topic:a,error:e,encodeOpts:l}),Error(e.message)}let{p:t}=e,i=(0,nS.hA9)(t.resources),n=[(0,nS.DJo)(t.iss)],o=(0,nS.NmC)(t.iss);if(i){let e=(0,nS.Y31)(i),t=(0,nS.ouN)(i);c.push(...e),n.push(...t)}for(let e of n)u.push(`${e}:${o}`)}let d=await this.client.core.crypto.generateSharedKey(s,o);return c?.length>0&&(t={topic:d,acknowledged:!0,self:{publicKey:s,metadata:this.client.metadata},peer:{publicKey:o,metadata:n.requester.metadata},controller:o,expiry:(0,nS.gn4)(ag),authentication:i,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:"",namespaces:(0,nS.E12)([...new Set(c)],[...new Set(u)])},await this.client.core.relayer.subscribe(d),await this.client.session.set(d,t)),await this.sendResult({topic:a,id:r,result:{cacaos:i,responder:{publicKey:s,metadata:this.client.metadata}},encodeOpts:l,throwOnFailedPublish:!0}),await this.client.auth.requests.delete(r,{message:"fullfilled",code:0}),await this.client.core.pairing.activate({topic:n.pairingTopic}),{session:t}},this.rejectSessionAuthenticate=async e=>{await this.isInitialized();let{id:t,reason:r}=e,i=this.getPendingAuthRequest(t);if(!i)throw Error(`Could not find pending auth request with id ${t}`);let n=i.requester.publicKey,o=await this.client.core.crypto.generateKeyPair(),s=(0,nS.YmJ)(n),a={type:nS.rVF,receiverPublicKey:n,senderPublicKey:o};await this.sendError({id:t,topic:s,error:r,encodeOpts:a}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,(0,nS.D6H)("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();let{request:t,iss:r}=e;return(0,nS.wvx)(t,r)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{let t=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter(r=>{var i,n;return(null==(i=r.peerMetadata)?void 0:i.url)&&(null==(n=r.peerMetadata)?void 0:n.url)===e.peer.metadata.url&&r.topic&&r.topic!==t.topic});if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map(e=>this.client.core.pairing.disconnect({topic:e.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{let{topic:t,expirerHasDeleted:r=!1,emitEvent:i=!0,id:n=0}=e,{self:o}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await this.client.session.delete(t,(0,nS.D6H)("USER_DISCONNECTED")),this.addToRecentlyDeleted(t,"session"),this.client.core.crypto.keychain.has(o.publicKey)&&await this.client.core.crypto.deleteKeyPair(o.publicKey),this.client.core.crypto.keychain.has(t)&&await this.client.core.crypto.deleteSymKey(t),r||this.client.core.expirer.del(t),this.client.core.storage.removeItem(ad).catch(e=>this.client.logger.warn(e)),this.getPendingSessionRequests().forEach(e=>{e.topic===t&&this.deletePendingSessionRequest(e.id,(0,nS.D6H)("USER_DISCONNECTED"))}),i&&this.client.events.emit("session_delete",{id:n,topic:t})},this.deleteProposal=async(e,t)=>{await Promise.all([this.client.proposal.delete(e,(0,nS.D6H)("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(t=>t.id!==e),r&&(this.sessionRequestQueue.state=ab.idle,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,(0,nS.gn4)(aw.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{let{request:r,pairingTopic:i}=t;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:i,verifyContext:r.verifyContext})},this.setPendingSessionRequest=async e=>{let{id:t,topic:r,params:i,verifyContext:n}=e,o=i.request.expiryTimestamp||(0,nS.gn4)(aw.wc_sessionRequest.req.ttl);
4094this.client.core.expirer.set(t,o),await this.client.pendingRequest.set(t,{id:t,topic:r,params:i,verifyContext:n})},this.sendRequest=async e=>{let t;let{topic:r,method:i,params:n,expiry:o,relayRpcId:s,clientRpcId:a,throwOnFailedPublish:l}=e,c=(0,nR.formatJsonRpcRequest)(i,n,a);if((0,nS.jUY)()&&a_.includes(i)){let e=(0,nS.rjm)(JSON.stringify(c));this.client.core.verify.register({attestationId:e})}try{t=await this.client.core.crypto.encode(r,c)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${r} failed`),e}let u=aw[i].req;return o&&(u.ttl=o),s&&(u.id=s),this.client.core.history.set(r,c),l?(u.internal=aj(aL({},u.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(r,t,u)):this.client.core.relayer.publish(r,t,u).catch(e=>this.client.logger.error(e)),c.id},this.sendResult=async e=>{let t,r;let{id:i,topic:n,result:o,throwOnFailedPublish:s,encodeOpts:a}=e,l=(0,nR.formatJsonRpcResult)(i,o);try{t=await this.client.core.crypto.encode(n,l,a)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${n} failed`),e}try{r=await this.client.core.history.get(n,i)}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${n}, ${i}) failed`),e}let c=aw[r.request.method].res;s?(c.internal=aj(aL({},c.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(n,t,c)):this.client.core.relayer.publish(n,t,c).catch(e=>this.client.logger.error(e)),await this.client.core.history.resolve(l)},this.sendError=async e=>{let t,r;let{id:i,topic:n,error:o,encodeOpts:s}=e,a=(0,nR.formatJsonRpcError)(i,o);try{t=await this.client.core.crypto.encode(n,a,s)}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${n} failed`),e}try{r=await this.client.core.history.get(n,i)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${n}, ${i}) failed`),e}let l=aw[r.request.method].res;this.client.core.relayer.publish(n,t,l),await this.client.core.history.resolve(a)},this.cleanup=async()=>{let e=[],t=[];this.client.session.getAll().forEach(t=>{let r=!1;(0,nS.BwD)(t.expiry)&&(r=!0),this.client.core.crypto.keychain.has(t.topic)||(r=!0),r&&e.push(t.topic)}),this.client.proposal.getAll().forEach(e=>{(0,nS.BwD)(e.expiryTimestamp)&&t.push(e.id)}),await Promise.all([...e.map(e=>this.deleteSession({topic:e})),...t.map(e=>this.deleteProposal(e))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===ab.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=ab.active;let e=this.requestQueue.queue.shift();if(e)try{this.processRequest(e),await new Promise(e=>setTimeout(e,300))}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=ab.idle},this.processRequest=e=>{let{topic:t,payload:r}=e,i=r.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:i}))switch(i){case"wc_sessionPropose":return this.onSessionProposeRequest
4094(t,r);case"wc_sessionSettle":return this.onSessionSettleRequest(t,r);case"wc_sessionUpdate":return this.onSessionUpdateRequest(t,r);case"wc_sessionExtend":return this.onSessionExtendRequest(t,r);case"wc_sessionPing":return this.onSessionPingRequest(t,r);case"wc_sessionDelete":return this.onSessionDeleteRequest(t,r);case"wc_sessionRequest":return this.onSessionRequest(t,r);case"wc_sessionEvent":return this.onSessionEventRequest(t,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateRequest(t,r);default:return this.client.logger.info(`Unsupported request method ${i}`)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,i=(await this.client.core.history.get(t,r.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(t,r);case"wc_sessionSettle":return this.onSessionSettleResponse(t,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,r);case"wc_sessionExtend":return this.onSessionExtendResponse(t,r);case"wc_sessionPing":return this.onSessionPingResponse(t,r);case"wc_sessionRequest":return this.onSessionRequestResponse(t,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,r);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onRelayEventUnknownPayload=e=>{let{topic:t}=e,{message:r}=(0,nS.kCb)("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw Error(r)},this.shouldIgnorePairingRequest=e=>{let{topic:t,requestMethod:r}=e,i=this.expectedPairingMethodMap.get(t);return!(!i||i.includes(r))&&!!(i.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async(e,t)=>{let{params:r,id:i}=t;try{this.isValidConnect(aL({},t.params));let n=r.expiryTimestamp||(0,nS.gn4)(aw.wc_sessionPropose.req.ttl),o=aL({id:i,pairingTopic:e,expiryTimestamp:n},r);await this.setProposal(i,o);let s=(0,nS.rjm)(JSON.stringify(t)),a=await this.getVerifyContext(s,o.proposer.metadata);this.client.events.emit("session_proposal",{id:i,params:o,verifyContext:a})}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionProposeResponse=async(e,t)=>{let{id:r}=t;if((0,nR.isJsonRpcResult)(t)){let{result:i}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let n=this.client.proposal.get(r);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:n});let o=n.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let s=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:s});let a=await this.client.core.crypto.generateSharedKey(o,s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:a});let l=await this.client.core.relayer.subscribe(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:e})}else if((0,nR.isJsonRpcError)(t)){await this.client.proposal.delete(r,(0,nS.D6H)("USER_DISCONNECTED"));let e=(0,nS.E0T)("session_connect");if(0===this.events.listenerCount(e))throw Error(`emitting ${e} without any listeners, 954`);this.events.emit((0,nS.E0T)("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{let{id:r,params:i}=t;try{this.isValidSessionSettleRequest(i);let{relay:r,controller:n,expiry:o,namespaces:s,sessionProperties:a,pairingTopic:l,sessionConfig:c}=t.params,u=aL(aL({topic:e,relay:r,expiry:o,namespaces:s,acknowledged:!0,pairingTopic:l,requiredNamespaces:{},optionalNamespaces:{},controller:n.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:n.publicKey,metadata:n.metadata}},a&&{sessionProperties:a}),c&&{sessionConfig:c});await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0});let d=(0,nS.E0T)("session_connect");if(0===this.events.listenerCount(d))throw Error(`emitting ${d} without any listeners 997`);this.events.emit((0,nS.E0T)("session_connect"),{session:u}
4094),this.cleanupDuplicatePairings(u)}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionSettleResponse=async(e,t)=>{let{id:r}=t;(0,nR.isJsonRpcResult)(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit((0,nS.E0T)("session_approve",r),{})):(0,nR.isJsonRpcError)(t)&&(await this.client.session.delete(e,(0,nS.D6H)("USER_DISCONNECTED")),this.events.emit((0,nS.E0T)("session_approve",r),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{let{params:r,id:i}=t;try{let t=`${e}_session_update`,n=nS.O6B.get(t);if(n&&this.isRequestOutOfSync(n,i)){this.client.logger.info(`Discarding out of sync request - ${i}`),this.sendError({id:i,topic:e,error:(0,nS.D6H)("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(aL({topic:e},r));try{nS.O6B.set(t,i),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:i,topic:e,result:!0,throwOnFailedPublish:!0})}catch(e){throw nS.O6B.delete(t),e}this.client.events.emit("session_update",{id:i,topic:e,params:r})}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{let{id:r}=t,i=(0,nS.E0T)("session_update",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,nR.isJsonRpcResult)(t)?this.events.emit((0,nS.E0T)("session_update",r),{}):(0,nR.isJsonRpcError)(t)&&this.events.emit((0,nS.E0T)("session_update",r),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{let{id:r}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,(0,nS.gn4)(ag)),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionExtendResponse=(e,t)=>{let{id:r}=t,i=(0,nS.E0T)("session_extend",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,nR.isJsonRpcResult)(t)?this.events.emit((0,nS.E0T)("session_extend",r),{}):(0,nR.isJsonRpcError)(t)&&this.events.emit((0,nS.E0T)("session_extend",r),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionPingResponse=(e,t)=>{let{id:r}=t,i=(0,nS.E0T)("session_ping",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);setTimeout(()=>{(0,nR.isJsonRpcResult)(t)?this.events.emit((0,nS.E0T)("session_ping",r),{}):(0,nR.isJsonRpcError)(t)&&this.events.emit((0,nS.E0T)("session_ping",r),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),await Promise.all([new Promise(t=>{this.client.core.relayer.once(se.publish,async()=>{t(await this.deleteSession({topic:e,id:r}))})}),this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:(0,nS.D6H)("USER_DISCONNECTED")})])}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async(e,t)=>{var r;let{id:i,params:n}=t;try{await this.isValidRequest(aL({topic:e},n));let t=(0,nS.rjm)(JSON.stringify((0,nR.formatJsonRpcRequest)("wc_sessionRequest",n,i))),o=this.client.session.get(e),s=await this.getVerifyContext(t,o.peer.metadata),a={id:i,topic:e,params:n,verifyContext:s};await this.setPendingSessionRequest(a),null!=(r=this.client.signConfig)&&r.disableRequestQueue?this.emitSessionRequest(a):(this.addSessionRequestToSessionRequestQueue(a),this.processSessionRequestQueue())}catch(t){await this.sendError({id:i,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionRequestResponse=(e,t)=>{let{id:r}=t,i=(0,nS.E0T)("session_request",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);(0,nR.isJsonRpcResult)(t)?this.events.emit((0,nS.E0T)("session_request",r),{result:t.result}):(0,nR.isJsonRpcError)(t)&&this.events.emit((0,nS.E0T)("session_request",r),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{let{id:r,params:i}=t;try{let t=`${e}_session_event_${i.event.name}`,n=nS.O6B.get(t);if(n&&this.isRequestOutOfSync(n,r)){this.client.logger.info(`Discarding out of sync request - ${r}`);return}this.isValidEmit(aL({topic:e},i)),this.client.events.emit("session_event",{id:r,topic:e,params:i}),nS.O6B.set(t,r)}
4094catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionAuthenticateResponse=(e,t)=>{let{id:r}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),(0,nR.isJsonRpcResult)(t)?this.events.emit((0,nS.E0T)("session_request",r),{result:t.result}):(0,nR.isJsonRpcError)(t)&&this.events.emit((0,nS.E0T)("session_request",r),{error:t.error})},this.onSessionAuthenticateRequest=async(e,t)=>{let{requester:r,authPayload:i,expiryTimestamp:n}=t.params,o=(0,nS.rjm)(JSON.stringify(t)),s=await this.getVerifyContext(o,this.client.metadata),a={requester:r,pairingTopic:e,id:t.id,authPayload:i,verifyContext:s,expiryTimestamp:n};await this.setAuthRequest(t.id,{request:a,pairingTopic:e}),this.client.events.emit("session_authenticate",{topic:e,params:t.params,id:t.id})},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=ab.idle,this.processSessionRequestQueue()},(0,nI.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{let r=this.client.core.history.pending;r.length>0&&r.filter(t=>t.topic===e&&"wc_sessionRequest"===t.request.method).forEach(e=>{let r=e.request.id,i=(0,nS.E0T)("session_request",r);if(0===this.events.listenerCount(i))throw Error(`emitting ${i} without any listeners`);this.events.emit((0,nS.E0T)("session_request",e.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===ab.active){this.client.logger.info("session request queue is already active.");return}let e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=ab.active,this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;let t=this.client.proposal.getAll().find(t=>t.pairingTopic===e.topic);
4094t&&this.onSessionProposeRequest(e.topic,(0,nR.formatJsonRpcRequest)("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id))},this.isValidConnect=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw Error(t)}let{pairingTopic:t,requiredNamespaces:r,optionalNamespaces:i,sessionProperties:n,relays:o}=e;if((0,nS.o8e)(t)||await this.isValidPairingTopic(t),!(0,nS.PMr)(o,!0)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`connect() relays: ${o}`);throw Error(e)}(0,nS.o8e)(r)||0===(0,nS.L5o)(r)||this.validateNamespaces(r,"requiredNamespaces"),(0,nS.o8e)(i)||0===(0,nS.L5o)(i)||this.validateNamespaces(i,"optionalNamespaces"),(0,nS.o8e)(n)||this.validateSessionProps(n,"sessionProperties")},this.validateNamespaces=(e,t)=>{let r=(0,nS.naP)(e,"connect()",t);if(r)throw Error(r.message)},this.isValidApprove=async e=>{if(!(0,nS.EJd)(e))throw Error((0,nS.kCb)("MISSING_OR_INVALID",`approve() params: ${e}`).message);let{id:t,namespaces:r,relayProtocol:i,sessionProperties:n}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);let o=this.client.proposal.get(t),s=(0,nS.ing)(r,"approve()");if(s)throw Error(s.message);let a=(0,nS.rFo)(o.requiredNamespaces,r,"approve()");if(a)throw Error(a.message);if(!(0,nS.M_r)(i,!0)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw Error(e)}(0,nS.o8e)(n)||this.validateSessionProps(n,"sessionProperties")},this.isValidReject=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`reject() params: ${e}`);throw Error(t)}let{id:t,reason:r}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!(0,nS.H4H)(r)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidSessionSettleRequest=e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw Error(t)}
4094let{relay:t,controller:r,namespaces:i,expiry:n}=e;if(!(0,nS.Z26)(t)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(e)}let o=(0,nS.DdM)(r,"onSessionSettleRequest()");if(o)throw Error(o.message);let s=(0,nS.ing)(i,"onSessionSettleRequest()");if(s)throw Error(s.message);if((0,nS.BwD)(n)){let{message:e}=(0,nS.kCb)("EXPIRED","onSessionSettleRequest()");throw Error(e)}},this.isValidUpdate=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`update() params: ${e}`);throw Error(t)}let{topic:t,namespaces:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let i=this.client.session.get(t),n=(0,nS.ing)(r,"update()");if(n)throw Error(n.message);let o=(0,nS.rFo)(i.requiredNamespaces,r,"update()");if(o)throw Error(o.message)},this.isValidExtend=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`extend() params: ${e}`);throw Error(t)}let{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`request() params: ${e}`);throw Error(t)}let{topic:t,request:r,chainId:i,expiry:n}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let{namespaces:o}=this.client.session.get(t);if(!(0,nS.p8o)(o,i)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`request() chainId: ${i}`);throw Error(e)}if(!(0,nS.hHR)(r)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw Error(e)}if(!(0,nS.alS)(o,i,r.method)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`request() method: ${r.method}`);throw Error(e)}if(n&&!(0,nS.ONw)(n,ay)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`request() expiry: ${n}. Expiry must be a number (in seconds) between ${ay.min} and ${ay.max}`);throw Error(e)}},this.isValidRespond=async e=>{var t;if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`respond() params: ${e}`);throw Error(t)}let{topic:r,response:i}=e;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),r}if(!(0,nS.JTI)(i)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(i)}`);throw Error(e)}},this.isValidPing=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`emit() params: ${e}`);throw Error(t)}let{topic:t,event:r,chainId:i}=e;await this.isValidSessionTopic(t);let{namespaces:n}=this.client.session.get(t);if(!(0,nS.p8o)(n,i)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw Error(e)}if(!(0,nS.nfW)(r)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}if(!(0,nS.B95)(n,i,r.name)){let{message:e}=(0,nS.kCb)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidDisconnect=async e=>{if(!(0,nS.EJd)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{let{chains:t,uri:r,domain:i,nonce:n}=e;if(!Array.isArray(t)||0===t.length)throw Error("chains is required and must be a non-empty array");if(!(0,nS.M_r)(r,!1))throw Error("uri is required parameter");if(!(0,nS.M_r)(i,!1))throw Error("domain is required parameter");if(!(0,nS.M_r)(n,!1))throw Error("nonce is required parameter");if([...new Set(t.map(e=>(0,nS.DQe)(e).namespace))].length>1)throw Error("Multi-namespace requests are not supported. Please request single namespace only.");let{namespace:o}=(0,nS.DQe)(t[0]);if("eip155"!==o)throw Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async(e,t)=>{let r={verified:{verifyUrl:t.verifyUrl||sE,validation:"UNKNOWN",origin:t.url||""}};try{let i=await this.client.core.verify.resolve({attestationId:e,verifyUrl:t.verifyUrl});i&&(r.verified.origin=i.origin,r.verified.isScam=i.isScam,r.verified.validation=i.origin===new URL(t.url).origin?"VALID":"INVALID")}catch(e){this.client.logger.info(e)}return this.client.logger.info(`Verify context: ${JSON.stringify(r)}`),r},this.validateSessionProps=(e,t)=>
4094{Object.values(e).forEach(e=>{if(!(0,nS.M_r)(e,!1)){let{message:r}=(0,nS.kCb)("MISSING_OR_INVALID",`${t} must be in Record<string, string> format. Received: ${JSON.stringify(e)}`);throw Error(r)}})},this.getPendingAuthRequest=e=>{let t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0,t=this.recentlyDeletedLimit/2;for(let r of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{let t=this.recentlyDeletedMap.get(e);if(t){let{message:r}=(0,nS.kCb)("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw Error(r)}}}async isInitialized(){if(!this.initialized){let{message:e}=(0,nS.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(se.message,async e=>{let{topic:t,message:r}=e,{publicKey:i}=this.client.auth.authKeys.keys.includes(aI)?this.client.auth.authKeys.get(aI):{responseTopic:void 0,publicKey:void 0},n=await this.client.core.crypto.decode(t,r,{receiverPublicKey:i});try{(0,nR.isJsonRpcRequest)(n)?(this.client.core.history.set(t,n),this.onRelayEventRequest({topic:t,payload:n})):(0,nR.isJsonRpcResponse)(n)?(await this.client.core.history.resolve(n),await this.onRelayEventResponse({topic:t,payload:n}),this.client.core.history.delete(t,n.id)):this.onRelayEventUnknownPayload({topic:t,payload:n})}catch(e){this.client.logger.error(e)}})}registerExpirerEvents(){this.client.core.expirer.on(sv.expired,async e=>{let{topic:t,id:r}=(0,nS.iPz)(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,(0,nS.kCb)("EXPIRED"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,(0,nS.kCb)("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r})))})}registerPairingEvents(){this.client.core.pairing.events.on(sg.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(sg.delete,e=>{this.addToRecentlyDeleted(e.topic,"pairing")})}isValidPairingTopic(e){if(!(0,nS.M_r)(e,!1)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,nS.BwD)(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=(0,nS.kCb)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}}async isValidSessionTopic(e){if(!(0,nS.M_r)(e,!1)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw Error(t)}if((0,nS.BwD)(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:t}=(0,nS.kCb)("EXPIRED",`session topic: ${e}`);throw Error(t)}if(!this.client.core.crypto.keychain.has(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if((0,nS.M_r)(e,!1)){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw Error(t)}else{let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw Error(t)}}async isValidProposalId(e){if(!(0,nS.Q01)(e)){let{message:t}=(0,nS.kCb)("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=(0,nS.kCb)("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw Error(t)}if((0,nS.BwD)(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:t}=(0,nS.kCb)("EXPIRED",`proposal id: ${e}`);throw Error(t)}}}class a$ extends s2{constructor(e,t){super(e,t,ah,ac),this.core=e,this.logger=t}}class aU extends s2{constructor(e,t){super(e,t,ap,ac),this.core=e,this.logger=t}}class aF extends s2{constructor(e,t){super(e,t,av,ac,e=>e.id),this.core=e,this.logger=t}}class az extends s2{constructor(e,t){super(e,t,aC,aA,()=>aI),this.core=e,this.logger=t}}class aq extends s2{constructor(e,t){super(e,t,ak,aA),this.core=e,this.logger=t}}class aW extends s2{constructor(e,t){super(e,t,aS,aA,e=>e.id),this.core=e,this.logger=t}}class aH{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new az(this.core,this.logger),this.pairingTopics=new aq(this.core,this.logger),this.requests=new aW(this.core,this.logger)}
4094async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class aV extends nE{constructor(e){super(e),this.protocol=as,this.version=aa,this.name=au.name,this.events=new i0.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async e=>{try{return await this.engine.authenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||au.name,this.metadata=e?.metadata||(0,nS.DaH)(),this.signConfig=e?.signConfig;let t="u">typeof e?.logger&&"string"!=typeof e?.logger?e.logger:(0,nd.gw)((0,nd.jI)({level:e?.logger||au.logger}));this.core=e?.core||new ao(e),this.logger=(0,nd.Ep)(t,this.name),this.session=new aU(this.core,this.logger),this.proposal=new a$(this.core,this.logger),this.pendingRequest=new aF(this.core,this.logger),this.engine=new aB(this),this.auth=new aH(this.core,this.logger)}static async init(e){let t=new aV(e);return await t.initialize(),t}get context(){return(0,nd.Fd)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),await this.auth.init(),this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}}var aZ=r(5108),aK=r.n(aZ),aG=Object.defineProperty,aY=Object.defineProperties,aJ=Object.getOwnPropertyDescriptors,aQ=Object.getOwnPropertySymbols,aX=Object.prototype.hasOwnProperty,a0=Object.prototype.propertyIsEnumerable,a1=(e,t,r)=>t in e?aG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a2=(e,t)=>{for(var r in t||(t={}))aX.call(t,r)&&a1(e,r,t[r]);if(aQ)for(var r of aQ(t))a0.call(t,r)&&a1(e,r,t[r]);return e},a3=(e,t)=>aY(e,aJ(t));let a5={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},a4=10;class a6{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new i0.EventEmitter,this.isAvailable=!1,this.registering=!1,!(0,nR.isHttpUrl)(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}
4094get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=(0,i4.u)(e),r=await (await aK()(this.url,a3(a2({},a5),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!(0,nR.isHttpUrl)(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(Error("HTTP connection is missing or invalid"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=(0,i4.u)({id:1,jsonrpc:"2.0",method:"test",params:[]});await aK()(e,a3(a2({},a5),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,i4.D)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),i=r.message||r.toString(),n=(0,nR.formatJsonRpcError)(e,i);this.events.emit("payload",n)}parseError(e,t=this.url){return(0,nR.parseConnectionError)(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>a4&&this.events.setMaxListeners(a4)}}let a8="error",a7="wss://relay.walletconnect.com",a9="wc",le="universal_provider",lt=`${a9}@2:${le}:`,lr="https://rpc.walletconnect.com/v1/",li="default_chain_changed";var ln="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},lo={exports:{}};!function(e,t){(function(){var r,i="4.17.21",n=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,h=2,f=4,p=1,g=2,m=1,w=2,y=4,b=8,v=16,_=32,x=64,E=128,C=256,k=512,S=30,A="...",I=800,T=16,R=1,O=2,P=3,N=1/0,M=9007199254740991,D=17976931348623157e292,L=0/0,j=4294967295,B=4294967294,$=2147483647,U=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],F="[object Arguments]",z="[object Array]",q="[object AsyncFunction]",W="[object Boolean]",H="[object Date]",V="[object DOMException]",Z="[object Error]",K="[object Function]",G="[object GeneratorFunction]",Y="[object Map]",J="[object Number]",Q="[object Null]",X="[object Object]",ee="[object Promise]",et="[object Proxy]",er="[object RegExp]",ei="[object Set]",en="[object String]",eo="[object Symbol]",es="[object Undefined]",ea="[object WeakMap]",el="[object WeakSet]",ec="[object ArrayBuffer]",eu="[object DataView]",ed="[object Float32Array]",eh="[object Float64Array]",ef="[object Int8Array]",ep="[object Int16Array]",eg="[object Int32Array]",em="[object Uint8Array]",ew="[object Uint8ClampedArray]",ey="[object Uint16Array]",eb="[object Uint32Array]",ev=/\b__p \+= '';/g,e_=/\b(__p \+=) '' \+/g,ex=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eE=/&(?:amp|lt|gt|quot|#39);/g,eC=/[&<>"']/g,ek=RegExp(eE.source),eS=RegExp(eC.source),eA=/<%-([\s\S]+?)%>/g,eI=/<%([\s\S]+?)%>/g,eT=/<%=([\s\S]+?)%>/g,eR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eO=/^\w*$/,eP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eN=/[\\^$.*+?()[\]{}|]/g,eM=RegExp(eN.source),eD=/^\s+/,eL=/\s/,ej=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eB=/\{\n\/\* \[wrapped with (.+)\] \*/,e$=/,? & /,eU=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eF=/[()=,{}\[\]\/\s]/,ez=/\\(\\)?/g,eq=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eW=/\w*$/,eH=/^[-+]0x[0-9a-f]+$/i,eV=/^0b[01]+$/i,eZ=/^\[object .+?Constructor\]$/,eK=/^0o[0-7]+$/i,eG=/^(?:0|[1-9]\d*)$/,eY=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 5,276 bytes, line 4094
40947f]/g,eJ=/($^)/,eQ=/['\n\r\u2028\u2029\\]/g,eX="\ud800-\udfff",e0="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",e1="\\u2700-\\u27bf",e2="a-z\\xdf-\\xf6\\xf8-\\xff",e3="A-Z\\xc0-\\xd6\\xd8-\\xde",e5="\\ufe0e\\ufe0f",e4="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e6="['â]",e8="["+eX+"]",e7="["+e4+"]",e9="["+e0+"]",te="\\d+",tt="["+e1+"]",tr="["+e2+"]",ti="[^"+eX+e4+te+e1+e2+e3+"]",tn="\ud83c[\udffb-\udfff]",to="[^"+eX+"]",ts="(?:\ud83c[\udde6-\uddff]){2}",ta="[\ud800-\udbff][\udc00-\udfff]",tl="["+e3+"]",tc="\\u200d",tu="(?:"+tr+"|"+ti+")",td="(?:"+tl+"|"+ti+")",th="(?:"+e6+"(?:d|ll|m|re|s|t|ve))?",tf="(?:"+e6+"(?:D|LL|M|RE|S|T|VE))?",tp="(?:"+e9+"|"+tn+")?",tg="["+e5+"]?",tm="(?:"+tc+"(?:"+[to,ts,ta].join("|")+")"+tg+tp+")*",tw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ty="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tb=tg+tp+tm,tv="(?:"+[tt,ts,ta].join("|")+")"+tb,t_="(?:"+[to+e9+"?",e9,ts,ta,e8].join("|")+")",tx=RegExp(e6,"g"),tE=RegExp(e9,"g"),tC=RegExp(tn+"(?="+tn+")|"+t_+tb,"g"),tk=RegExp([tl+"?"+tr+"+"+th+"(?="+[e7,tl,"$"].join("|")+")",td+"+"+tf+"(?="+[e7,tl+tu,"$"].join("|")+")",tl+"?"+tu+"+"+th,tl+"+"+tf,ty,tw,te,tv].join("|"),"g"),tS=RegExp("["+tc+eX+e0+e5+"]"),tA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tT=-1,tR={};tR[ed]=tR[eh]=tR[ef]=tR[ep]=tR[eg]=tR[em]=tR[ew]=tR[ey]=tR[eb]=!0,tR[F]=tR[z]=tR[ec]=tR[W]=tR[eu]=tR[H]=tR[Z]=tR[K]=tR[Y]=tR[J]=tR[X]=tR[er]=tR[ei]=tR[en]=tR[ea]=!1;var tO={};tO[F]=tO[z]=tO[ec]=tO[eu]=tO[W]=tO[H]=tO[ed]=tO[eh]=tO[ef]=tO[ep]=tO[eg]=tO[Y]=tO[J]=tO[X]=tO[er]=tO[ei]=tO[en]=tO[eo]=tO[em]=tO[ew]=tO[ey]=tO[eb]=!0,tO[Z]=tO[K]=tO[ea]=!1;var tP={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},tN={"&":"&","<":"<",">":">",'"':""","'":"'"},tM={"&":"&","<":"<",">":">",""":'"',"'":"'"},tD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tL=parseFloat,tj=parseInt,tB="object"==typeof ln&&ln&&ln.Object===Object&&ln,t$="object"==typeof self&&self&&self.Object===Object&&self,tU=tB||t$||Function("return this")(),tF=t&&!t.nodeType&&t,tz=tF&&e&&!e.nodeType&&e,tq=tz&&tz.exports===tF,tW=tq&&tB.process,tH=function(){try{return tz&&tz.require&&tz.require("util").types||tW&&tW.binding&&tW.binding("util")}catch{}}(),tV=tH&&tH.isArrayBuffer,tZ=tH&&tH.isDate,tK=tH&&tH.isMap,tG=tH&&tH.isRegExp,tY=tH&&tH.isSet,tJ=tH&&tH.isTypedArray;function tQ(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function tX(e,t,r,i){for(var n=-1,o=null==e?0:e.length;++n<o;){var s=e[n];t(i,s,r(s),e)}return i}function t0(e,t){for(var r=-1,i=null==e?0:e.length;++r<i&&!1!==t(e[r],r,e););return e}function t1(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function t2(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(!t(e[r],r,e))return!1;return!0}function t3(e,t){for(var r=-1,i=null==e?0:e.length,n=0,o=[];++r<i;){var s=e[r];t(s,r,e)&&(o[n++]=s)}return o}function t5(e,t){return!!(null==e?0:e.length)&&rs(e,t,0)>-1}function t4(e,t,r){for(var i=-1,n=null==e?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}function t6(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}function t8(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function t7(e,t,r,i){var n=-1,o=null==e?0:e.length;for(i&&o&&(r=e[++n]);++n<o;)r=t(r,e[n],n,e);return r}
vendor: 12,793 bytes, line 4094
4094function t9(e,t,r,i){var n=null==e?0:e.length;for(i&&n&&(r=e[--n]);n--;)r=t(r,e[n],n,e);return r}function re(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}var rt=ru("length");function rr(e){return e.split("")}function ri(e){return e.match(eU)||[]}function rn(e,t,r){var i;return r(e,function(e,r,n){if(t(e,r,n))return i=r,!1}),i}function ro(e,t,r,i){for(var n=e.length,o=r+(i?1:-1);i?o--:++o<n;)if(t(e[o],o,e))return o;return -1}function rs(e,t,r){return t==t?rL(e,t,r):ro(e,rl,r)}function ra(e,t,r,i){for(var n=r-1,o=e.length;++n<o;)if(i(e[n],t))return n;return -1}function rl(e){return e!=e}function rc(e,t){var r=null==e?0:e.length;return r?rp(e,t)/r:L}function ru(e){return function(t){return null==t?r:t[e]}}function rd(e){return function(t){return null==e?r:e[t]}}function rh(e,t,r,i,n){return n(e,function(e,n,o){r=i?(i=!1,e):t(r,e,n,o)}),r}function rf(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}function rp(e,t){for(var i,n=-1,o=e.length;++n<o;){var s=t(e[n]);s!==r&&(i=i===r?s:i+s)}return i}function rg(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function rm(e,t){return t6(t,function(t){return[t,e[t]]})}function rw(e){return e&&e.slice(0,rU(e)+1).replace(eD,"")}function ry(e){return function(t){return e(t)}}function rb(e,t){return t6(t,function(t){return e[t]})}function rv(e,t){return e.has(t)}function r_(e,t){for(var r=-1,i=e.length;++r<i&&rs(t,e[r],0)>-1;);return r}function rx(e,t){for(var r=e.length;r--&&rs(t,e[r],0)>-1;);return r}function rE(e,t){for(var r=e.length,i=0;r--;)e[r]===t&&++i;return i}var rC=rd(tP),rk=rd(tN);function rS(e){return"\\"+tD[e]}function rA(e,t){return null==e?r:e[t]}function rI(e){return tS.test(e)}function rT(e){return tA.test(e)}function rR(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function rO(e){var t=-1,r=Array(e.size);return e.forEach(function(e,i){r[++t]=[i,e]}),r}function rP(e,t){return function(r){return e(t(r))}}function rN(e,t){for(var r=-1,i=e.length,n=0,o=[];++r<i;){var s=e[r];(s===t||s===u)&&(e[r]=u,o[n++]=r)}return o}function rM(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function rD(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function rL(e,t,r){for(var i=r-1,n=e.length;++i<n;)if(e[i]===t)return i;return -1}function rj(e,t,r){for(var i=r+1;i--&&e[i]!==t;);return i}function rB(e){return rI(e)?rz(e):rt(e)}function r$(e){return rI(e)?rq(e):rr(e)}function rU(e){for(var t=e.length;t--&&eL.test(e.charAt(t)););return t}var rF=rd(tM);function rz(e){for(var t=tC.lastIndex=0;tC.test(e);)++t;return t}function rq(e){return e.match(tC)||[]}function rW(e){return e.match(tk)||[]}var rH=function e(t){var eL=(t=null==t?tU:rH.defaults(tU.Object(),t,rH.pick(tU,tI))).Array,eU=t.Date,eX=t.Error,e0=t.Function,e1=t.Math,e2=t.Object,e3=t.RegExp,e5=t.String,e4=t.TypeError,e6=eL.prototype,e8=e0.prototype,e7=e2.prototype,e9=t["__core-js_shared__"],te=e8.toString,tt=e7.hasOwnProperty,tr=0,ti=function(){var e=/[^.]+$/.exec(e9&&e9.keys&&e9.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),tn=e7.toString,to=te.call(e2),ts=tU._,ta=e3("^"+te.call(tt).replace(eN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tl=tq?t.Buffer:r,tc=t.Symbol,tu=t.Uint8Array,td=tl?tl.allocUnsafe:r,th=rP(e2.getPrototypeOf,e2),tf=e2.create,tp=e7.propertyIsEnumerable,tg=e6.splice,tm=tc?tc.isConcatSpreadable:r,tw=tc?tc.iterator:r,ty=tc?tc.toStringTag:r,tb=function(){try{var e=oJ(e2,"defineProperty");return e({},"",{}),e}catch{}}(),tv=t.clearTimeout!==tU.clearTimeout&&t.clearTimeout,t_=eU&&eU.now!==tU.Date.now&&eU.now,tC=t.setTimeout!==tU.setTimeout&&t.setTimeout,tk=e1.ceil,tS=e1.floor,tA=e2.getOwnPropertySymbols,tP=tl?tl.isBuffer:r,tN=t.isFinite,tM=e6.join,tD=rP(e2.keys,e2),tB=e1.max,t$=e1.min,tF=eU.now,tz=t.parseInt,tW=e1.random,tH=e6.reverse,rt=oJ(t,"DataView"),rr=oJ(t,"Map"),rd=oJ(t,"Promise"),rL=oJ(t,"Set"),rz=oJ(t,"WeakMap"),rq=oJ(e2,"create"),rV=rz&&new rz,rZ={},rK=sS(rt),rG=sS(rr),rY=sS(rd),rJ=sS(rL),rQ=sS(rz),rX=tc?tc.prototype:r,r0=rX?rX.valueOf:r,r1=rX?rX.toString:r;function r2(e){if(lX(e)&&!lL(e)&&!(e instanceof r6)){if(e instanceof r4)return e;if(tt.call(e,"__wrapped__"))return sI(e)}return new r4(e)}var r3=function(){function e(){}return function(t){if(!lQ(t))return{};if(tf)return tf(t);e.prototype=t;var i=new e;return e.prototype=r,i}}();function r5(){}function r4(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function r6(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function r8(){var e=new r6(this.__wrapped__);return e.__actions__=ol(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ol(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ol(this.__views__),e}function r7(){if(this.__filtered__){var e=new r6(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function r9(){var e=this.__wrapped__.value(),t=this.__dir__,r=lL(e),i=t<0,n=r?e.length:0,o=o2(0,n,this.__views__),s=o.start,a=o.end,l=a-s,c=i?a:s-1,u=this.__iteratees__,d=u.length,h=0,f=t$(l,this.__takeCount__);if(!r||!i&&n==l&&f==l)return nX(e,this.__actions__);var p=[];e:for(;l--&&h<f;){c+=t;for(var g=-1,m=e[c];++g<d;){var w=u[g],y=w.iteratee,b=w.type,v=y(m);if(b==O)m=v;else if(!v){if(b==R)continue e;break e}}p[h++]=m}return p}function ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function it(){this.__data__=rq?rq(null):{},this.size=0}function ir(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function ii(e){var t=this.__data__;if(rq){var i=t[e];return i===l?r:i}return tt.call(t,e)?t[e]:r}function io(e){var t=this.__data__;return rq?t[e]!==r:tt.call(t,e)}function is(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=rq&&t===r?l:t,this}function ia(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function il(){this.__data__=[],this.size=0}function ic(e){var t=this.__data__,r=iD(t,e);return!(r<0)&&(r==t.length-1?t.pop():tg.call(t,r,1),--this.size,!0)}function iu(e){var t=this.__data__,i=iD(t,e);return i<0?r:t[i][1]}function id(e){return iD(this.__data__,e)>-1}function ih(e,t){var r=this.__data__,i=iD(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ip(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ig(){this.size=0,this.__data__={hash:new ie,map:new(rr||ia),string:new ie}}function im(e){var t=oG(this,e).delete(e);return this.size-=t?1:0,t}function iw(e){return oG(this,e).get(e)}function iy(e){return oG(this,e).has(e)}function ib(e,t){var r=oG(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function iv(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ip;++t<r;)this.add(e[t])}function i_(e){return this.__data__.set(e,l),this}function ix(e){return this.__data__.has(e)}function iE(e){var t=this.__data__=new ia(e);this.size=t.size}function iC(){this.__data__=new ia,this.size=0}function ik(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function iS(e){return this.__data__.get(e)}function iA(e){return this.__data__.has(e)}function iI(e,t){var r=this.__data__;if(r instanceof ia){var i=r.__data__;if(!rr||i.length<n-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new ip(i)}return r.set(e,t),this.size=r.size,this}function iT(e,t){var r=lL(e),i=!r&&lD(e),n=!r&&!i&&lF(e),o=!r&&!i&&!n&&cn(e),s=r||i||n||o,a=s?rg(e.length,e5):[],l=a.length;for(var c in e)(t||tt.call(e,c))&&!(s&&("length"==c||n&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||se(c,l)))&&a.push(c);return a}function iR(e){var t=e.length;return t?e[nP(0,t-1)]:r}function iO(e,t){return sE(ol(e),iF(t,0,e.length))}function iP(e){return sE(ol(e))}function iN(e,t,i){(i===r||lP(e[t],i))&&(i!==r||t in e)||i$(e,t,i)}function iM(e,t,i){var n=e[t];tt.call(e,t)&&lP(n,i)&&(i!==r||t in e)||i$(e,t,i)}function iD(e,t){for(var r=e.length;r--;)if(lP(e[r][0],t))return r;return -1}function iL(e,t,r,i){return iZ(e,function(e,n,o){t(i,e,r(e),o)}),i}function ij(e,t){return e&&oc(t,cU(t),e)}function iB(e,t){return e&&oc(t,cF(t),e)}function i$(e,t,r){"__proto__"==t&&tb?tb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function iU(e,t){for(var i=-1,n=t.length,o=eL(n),s=null==e;++i<n;)o[i]=s?r:cM(e,t[i]);return o}function iF(e,t,i){return e==e&&(i!==r&&(e=e<=i?e:i),t!==r&&(e=e>=t?e:t)),e}function iz(e,t,i,n,o,s){var a,l=t&d,c=t&h,u=t&f;if(i&&(a=o?i(e,n,o,s):i(e)),a!==r)return a;if(!lQ(e))return e;var p=lL(e);if(p){if(a=o4(e),!l)return ol(e,a)}else{var g=o1(e),m=g==K||g==G;if(lF(e))return n7(e,l);if(g==X||g==F||m&&!o){if(a=c||m?{}:o6(e),!l)return c?od(e,iB(a,e)):ou(e,ij(a,e))}else{if(!tO[g])return o?e:{};a=o8(e,g,l)}}s||(s=new iE);var w=s.get(e);if(w)return w;s.set(e,a),ct(e)?e.forEach(function(r){a.add(iz(r,t,i,r,e,s))}):l0(e)&&e.forEach(function(r,n){a.set(n,iz(r,t,i,n,e,s))});var y=u?c?oW:oq:c?cF:cU,b=p?r:y(e);return t0(b||e,function(r,n){b&&(r=e[n=r]),iM(a,n,iz(r,t,i,n,e,s))}),a}function iq(e){var t=cU(e);return function(r){return iW(r,e,t)}}function iW(e,t,i){var n=i.length;if(null==e)return!n;for(e=e2(e);n--;){var o=i[n],s=t[o],a=e[o];if(a===r&&!(o in e)||!s(a))return!1}return!0}function iH(e,t,i){if("function"!=typeof e)throw new e4(s);return sb(function(){e.apply(r,i)},t)}function iV(e,t,r,i){var o=-1,s=t5,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;r&&(t=t6(t,ry(r))),i?(s=t4,a=!1):t.length>=n&&(s=rv,a=!1,t=new iv(t));e:for(;++o<l;){var d=e[o],h=null==r?d:r(d);if(d=i||0!==d?d:0,a&&h==h){for(var f=u;f--;)if(t[f]===h)continue e;c.push(d)}else s(t,h,i)||c.push(d)}return c}r2.templateSettings={escape:eA,evaluate:eI,interpolate:eT,variable:"",imports:{_:r2}},r2.prototype=r5.prototype,r2.prototype.constructor=r2,r4.prototype=r3(r5.prototype),r4.prototype.constructor=r4,r6.prototype=r3(r5.prototype),r6.prototype.constructor=r6,ie.prototype.clear=it,ie.prototype.delete=ir,ie.prototype.get=ii,ie.prototype.has=io,ie.prototype.set=is,ia.prototype.clear=il,ia.prototype.delete=ic,ia.prototype.get=iu,ia.prototype.has=id,ia.prototype.set=ih,ip.prototype.clear=ig,ip.prototype.delete=im,ip.prototype.get=iw,ip.prototype.has=iy,ip.prototype.set=ib,iv.prototype.add=iv.prototype.push=i_,iv.prototype.has=ix,iE.prototype.clear=iC,iE.prototype.delete=ik,iE.prototype.get=iS,iE.prototype.has=iA,iE.prototype.set=iI;var iZ=op(i2),iK=op(i3,!0);function iG(e,t){var r=!0;return iZ(e,function(e,i,n){return r=!!t(e,i,n)}),r}function iY(e,t,i){for(var n=-1,o=e.length;++n<o;){var s=e[n],a=t(s);if(null!=a&&(l===r?a==a&&!ci(a):i(a,l)))var l=a,c=s}return c}function iJ(e,t,i,n){var o=e.length;for((i=ch(i))<0&&(i=-i>o?0:o+i),(n=n===r||n>o?o:ch(n))<0&&(n+=o),n=i>n?0:cf(n);i<n;)e[i++]=t;return e}function iQ(e,t){var r=[];return iZ(e,function(e,i,n){t(e,i,n)&&r.push(e)}),r}function iX(e,t,r,i,n){var o=-1,s=e.length;for(r||(r=o9),n||(n=[]);++o<s;){var a=e[o];t>0&&r(a)?t>1?iX(a,t-1,r,i,n):t8(n,a):i||(n[n.length]=a)}return n}var i0=og(),i1=og(!0);function i2(e,t){return e&&i0(e,t,cU)}function i3(e,t){return e&&i1(e,t,cU)}function i5(e,t){return t3(t,function(t){return lG(e[t])})}function i4(e,t){t=n5(t,e);for(var i=0,n=t.length;null!=e&&i<n;)e=e[sk(t[i++])];return i&&i==n?e:r}function i6(e,t,r){var i=t(e);return lL(e)?i:t8(i,r(e))}function i8(e){return null==e?e===r?es:Q:ty&&ty in e2(e)?oQ(e):sf(e)}function i7(e,t){return e>t}function i9(e,t){return null!=e&&tt.call(e,t)}function ne(e,t){return null!=e&&t in e2(e)}function nt(e,t,r){return e>=t$(t,r)&&e<tB(t,r)}function nr(e,t,i){for(var n=i?t4:t5,o=e[0].length,s=e.length,a=s,l=eL(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=t6(d,ry(t))),c=t$(d.length,c),l[a]=!i&&(t||o>=120&&d.length>=120)?new iv(a&&d):r}d=e[0];var h=-1,f=l[0];e:for(;++h<o&&u.length<c;){var p=d[h],g=t?t(p):p;if(p=i||0!==p?p:0,!(f?rv(f,g):n(u,g,i))){for(a=s;--a;){var m=l[a];if(!(m?rv(m,g):n(e[a],g,i)))continue e}f&&f.push(g),u.push(p)}}return u}function ni(e,t,r,i){return i2(e,function(e,n,o){t(i,r(e),n,o)}),i}function nn(e,t,i){t=n5(t,e);var n=null==(e=sg(e,t))?e:e[sk(sX(t))];return null==n?r:tQ(n,e,i)}function no(e){return lX(e)&&i8(e)==F}function ns(e){return lX(e)&&i8(e)==ec}function na(e){return lX(e)&&i8(e)==H}function nl(e,t,r,i,n){return e===t||(null!=e&&null!=t&&(lX(e)||lX(t))?nc(e,t,r,i,nl,n):e!=e&&t!=t)}function nc(e,t,r,i,n,o){var s=lL(e),a=lL(t),l=s?z:o1(e),c=a?z:o1(t);l=l==F?X:l,c=c==F?X:c;var u=l==X,d=c==X,h=l==c;if(h&&lF(e)){if(!lF(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new iE),s||cn(e)?o$(e,t,r,i,n,o):oU(e,t,l,r,i,n,o);if(!(r&p)){var f=u&&tt.call(e,"__wrapped__"),g=d&&tt.call(t,"__wrapped__");
vendor: 4,482 bytes, line 4094
4094if(f||g){var m=f?e.value():e,w=g?t.value():t;return o||(o=new iE),n(m,w,r,i,o)}}return!!h&&(o||(o=new iE),oF(e,t,r,i,n,o))}function nu(e){return lX(e)&&o1(e)==Y}function nd(e,t,i,n){var o=i.length,s=o,a=!n;if(null==e)return!s;for(e=e2(e);o--;){var l=i[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=i[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===r&&!(c in e))return!1}else{var h=new iE;if(n)var f=n(u,d,c,e,t,h);if(!(f===r?nl(d,u,p|g,n,h):f))return!1}}return!0}function nh(e){return!(!lQ(e)||so(e))&&(lG(e)?ta:eZ).test(sS(e))}function nf(e){return lX(e)&&i8(e)==er}function np(e){return lX(e)&&o1(e)==ei}function ng(e){return lX(e)&&lJ(e.length)&&!!tR[i8(e)]}function nm(e){return"function"==typeof e?e:null==e?uB:"object"==typeof e?lL(e)?nx(e[0],e[1]):n_(e):uJ(e)}function nw(e){if(!sa(e))return tD(e);var t=[];for(var r in e2(e))tt.call(e,r)&&"constructor"!=r&&t.push(r);return t}function ny(e){if(!lQ(e))return sh(e);var t=sa(e),r=[];for(var i in e)"constructor"==i&&(t||!tt.call(e,i))||r.push(i);return r}function nb(e,t){return e<t}function nv(e,t){var r=-1,i=lB(e)?eL(e.length):[];return iZ(e,function(e,n,o){i[++r]=t(e,n,o)}),i}function n_(e){var t=oY(e);return 1==t.length&&t[0][2]?sc(t[0][0],t[0][1]):function(r){return r===e||nd(r,e,t)}}function nx(e,t){return sr(e)&&sl(t)?sc(sk(e),t):function(i){var n=cM(i,e);return n===r&&n===t?cL(i,e):nl(t,n,p|g)}}function nE(e,t,i,n,o){e!==t&&i0(t,function(s,a){if(o||(o=new iE),lQ(s))nC(e,t,a,i,nE,n,o);else{var l=n?n(sw(e,a),s,a+"",e,t,o):r;l===r&&(l=s),iN(e,a,l)}},cF)}function nC(e,t,i,n,o,s,a){var l=sw(e,i),c=sw(t,i),u=a.get(c);if(u){iN(e,i,u);return}var d=s?s(l,c,i+"",e,t,a):r,h=d===r;if(h){var f=lL(c),p=!f&&lF(c),g=!f&&!p&&cn(c);d=c,f||p||g?lL(l)?d=l:l$(l)?d=ol(l):p?(h=!1,d=n7(c,!0)):g?(h=!1,d=oi(c,!0)):d=[]:l7(c)||lD(c)?(d=l,lD(l)?d=cg(l):(!lQ(l)||lG(l))&&(d=o6(c))):h=!1}h&&(a.set(c,d),o(d,c,n,s,a),a.delete(c)),iN(e,i,d)}function nk(e,t){var i=e.length;if(i)return se(t+=t<0?i:0,i)?e[t]:r}function nS(e,t,r){t=t.length?t6(t,function(e){return lL(e)?function(t){return i4(t,1===e.length?e[0]:e)}:e}):[uB];var i=-1;return t=t6(t,ry(oK())),rf(nv(e,function(e,r,n){return{criteria:t6(t,function(t){return t(e)}),index:++i,value:e}}),function(e,t){return oo(e,t,r)})}function nA(e,t){return nI(e,t,function(t,r){return cL(e,r)})}function nI(e,t,r){for(var i=-1,n=t.length,o={};++i<n;){var s=t[i],a=i4(e,s);r(a,s)&&nB(o,n5(s,e),a)}return o}function nT(e){return function(t){return i4(t,e)}}function nR(e,t,r,i){var n=i?ra:rs,o=-1,s=t.length,a=e;for(e===t&&(t=ol(t)),r&&(a=t6(e,ry(r)));++o<s;)for(var l=0,c=t[o],u=r?r(c):c;(l=n(a,u,l,i))>-1;)a!==e&&tg.call(a,l,1),tg.call(e,l,1);return e}function nO(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==o){var o=n;se(n)?tg.call(e,n,1):nY(e,n)}}return e}function nP(e,t){return e+tS(tW()*(t-e+1))}function nN(e,t,r,i){for(var n=-1,o=tB(tk((t-e)/(r||1)),0),s=eL(o);o--;)s[i?o:++n]=e,e+=r;return s}function nM(e,t){var r="";if(!e||t<1||t>M)return r;do t%2&&(r+=e),(t=tS(t/2))&&(e+=e);while(t);return r}function nD(e,t){return sv(sp(e,t,uB),e+"")}function nL(e){return iR(c4(e))}function nj(e,t){var r=c4(e);return sE(r,iF(t,0,r.length))}function nB(e,t,i,n){if(!lQ(e))return e;t=n5(t,e);for(var o=-1,s=t.length,a=s-1,l=e;null!=l&&++o<s;){var c=sk(t[o]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(o!=a){var d=l[c];(u=n?n(d,c,l):r)===r&&(u=lQ(d)?d:se(t[o+1])?[]:{})}iM(l,c,u),l=l[c]}return e}var n$=rV?function(e,t){return rV.set(e,t),e}:uB,nU=tb?function(e,t){return tb(e,"toString",{configurable:!0,enumerable:!1,value:uM(t),writable:!0})}:uB;function nF(e){return sE(c4(e))}function nz(e,t,r){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(r=r>n?n:r)<0&&(r+=n),n=t>r?0:r-t>>>0,t>>>=0;for(var o=eL(n);++i<n;)o[i]=e[i+t];return o}function nq(e,t){var r;return iZ(e,function(e,i,n){return!(r=t(e,i,n))}),!!r}function nW(e,t,r){var i=0,n=null==e?i:e.length;if("number"==typeof t&&t==t&&n<=$){for(;i<n;){var o=i+n>>>1,s=e[o];null!==s&&!ci(s)&&(r?s<=t:s<t)?i=o+1:n=o}return n}return nH(e,t,uB,r)}function nH(e,t,i,n){var o=0,s=null==e?0:e.length;if(0===s)return 0;t=i(t);for(var a=t!=t,l=null===t,c=ci(t),u=t===r;o<s;){var d=tS((o+s)/2),h=i(e[d]),f=h!==r,p=null===h,g=h==h,m=ci(h);if(a)var w=n||g;else w=u?g&&(n||f):l?g&&f&&(n||!p):c?g&&f&&!p&&(n||!m):!p&&!m&&(n?h<=t:h<t);w?o=d+1:s=d}return t$(s,B)}function nV(e,t){for(var r=-1,i=e.length,n=0,o=[];++r<i;){var s=e[r],a=t?t(s):s;if(!r||!lP(a,l)){var l=a;o[n++]=0===s?0:s}}return o}
vendor: 16,204 bytes, lines 4094-4096
4094function nZ(e){return"number"==typeof e?e:ci(e)?L:+e}function nK(e){if("string"==typeof e)return e;if(lL(e))return t6(e,nK)+"";if(ci(e))return r1?r1.call(e):"";var t=e+"";return"0"==t&&1/e==-N?"-0":t}function nG(e,t,r){var i=-1,o=t5,s=e.length,a=!0,l=[],c=l;if(r)a=!1,o=t4;else if(s>=n){var u=t?null:oN(e);if(u)return rM(u);a=!1,o=rv,c=new iv}else c=t?[]:l;e:for(;++i<s;){var d=e[i],h=t?t(d):d;if(d=r||0!==d?d:0,a&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue e;t&&c.push(h),l.push(d)}else o(c,h,r)||(c!==l&&c.push(h),l.push(d))}return l}function nY(e,t){return t=n5(t,e),null==(e=sg(e,t))||delete e[sk(sX(t))]}function nJ(e,t,r,i){return nB(e,t,r(i4(e,t)),i)}function nQ(e,t,r,i){for(var n=e.length,o=i?n:-1;(i?o--:++o<n)&&t(e[o],o,e););return r?nz(e,i?0:o,i?o+1:n):nz(e,i?o+1:0,i?n:o)}function nX(e,t){var r=e;return r instanceof r6&&(r=r.value()),t7(t,function(e,t){return t.func.apply(t.thisArg,t8([e],t.args))},r)}function n0(e,t,r){var i=e.length;if(i<2)return i?nG(e[0]):[];for(var n=-1,o=eL(i);++n<i;)for(var s=e[n],a=-1;++a<i;)a!=n&&(o[n]=iV(o[n]||s,e[a],t,r));return nG(iX(o,1),t,r)}function n1(e,t,i){for(var n=-1,o=e.length,s=t.length,a={};++n<o;){var l=n<s?t[n]:r;i(a,e[n],l)}return a}function n2(e){return l$(e)?e:[]}function n3(e){return"function"==typeof e?e:uB}function n5(e,t){return lL(e)?e:sr(e,t)?[e]:sC(cw(e))}var n4=nD;function n6(e,t,i){var n=e.length;return i=i===r?n:i,!t&&i>=n?e:nz(e,t,i)}var n8=tv||function(e){return tU.clearTimeout(e)};function n7(e,t){if(t)return e.slice();var r=e.length,i=td?td(r):new e.constructor(r);return e.copy(i),i}function n9(e){var t=new e.constructor(e.byteLength);return new tu(t).set(new tu(e)),t}function oe(e,t){var r=t?n9(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ot(e){var t=new e.constructor(e.source,eW.exec(e));return t.lastIndex=e.lastIndex,t}function or(e){return r0?e2(r0.call(e)):{}}function oi(e,t){var r=t?n9(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function on(e,t){if(e!==t){var i=e!==r,n=null===e,o=e==e,s=ci(e),a=t!==r,l=null===t,c=t==t,u=ci(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||n&&a&&c||!i&&c||!o)return 1;if(!n&&!s&&!u&&e<t||u&&i&&o&&!n&&!s||l&&i&&o||!a&&o||!c)return -1}return 0}function oo(e,t,r){for(var i=-1,n=e.criteria,o=t.criteria,s=n.length,a=r.length;++i<s;){var l=on(n[i],o[i]);if(l){if(i>=a)return l;return l*("desc"==r[i]?-1:1)}}return e.index-t.index}function os(e,t,r,i){for(var n=-1,o=e.length,s=r.length,a=-1,l=t.length,c=tB(o-s,0),u=eL(l+c),d=!i;++a<l;)u[a]=t[a];for(;++n<s;)(d||n<o)&&(u[r[n]]=e[n]);for(;c--;)u[a++]=e[n++];return u}function oa(e,t,r,i){for(var n=-1,o=e.length,s=-1,a=r.length,l=-1,c=t.length,u=tB(o-a,0),d=eL(u+c),h=!i;++n<u;)d[n]=e[n];for(var f=n;++l<c;)d[f+l]=t[l];for(;++s<a;)(h||n<o)&&(d[f+r[s]]=e[n++]);return d}function ol(e,t){var r=-1,i=e.length;for(t||(t=eL(i));++r<i;)t[r]=e[r];return t}function oc(e,t,i,n){var o=!i;i||(i={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=n?n(i[l],e[l],l,i,e):r;c===r&&(c=e[l]),o?i$(i,l,c):iM(i,l,c)}return i}function ou(e,t){return oc(e,oX(e),t)}function od(e,t){return oc(e,o0(e),t)}function oh(e,t){return function(r,i){var n=lL(r)?tX:iL,o=t?t():{};return n(r,e,oK(i,2),o)}}function of(e){return nD(function(t,i){var n=-1,o=i.length,s=o>1?i[o-1]:r,a=o>2?i[2]:r;for(s=e.length>3&&"function"==typeof s?(o--,s):r,a&&st(i[0],i[1],a)&&(s=o<3?r:s,o=1),t=e2(t);++n<o;){var l=i[n];l&&e(t,l,n,s)}return t})}function op(e,t){return function(r,i){if(null==r)return r;if(!lB(r))return e(r,i);for(var n=r.length,o=t?n:-1,s=e2(r);(t?o--:++o<n)&&!1!==i(s[o],o,s););return r}}function og(e){return function(t,r,i){for(var n=-1,o=e2(t),s=i(t),a=s.length;a--;){var l=s[e?a:++n];if(!1===r(o[l],l,o))break}return t}}function om(e,t,r){var i=t&m,n=ob(e);function o(){return(this&&this!==tU&&this instanceof o?n:e).apply(i?r:this,arguments)}return o}function ow(e){return function(t){var i=rI(t=cw(t))?r$(t):r,n=i?i[0]:t.charAt(0),o=i?n6(i,1).join(""):t.slice(1);return n[e]()+o}}function oy(e){return function(t){return t7(uT(ur(t).replace(tx,"")),e,"")}}function ob(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=r3(e.prototype),i=e.apply(r,t);return lQ(i)?i:r}}function ov(e,t,i){var n=ob(e);function o(){for(var s=arguments.length,a=eL(s),l=s,c=oZ(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:rN(a,c);return(s-=u.length)<i?oO(e,t,oE,o.placeholder,r,a,u,r,r,i-s):tQ(this&&this!==tU&&this instanceof o?n:e,this,a)}return o}function o_(e){return function(t,i,n){var o=e2(t);if(!lB(t)){var s=oK(i,3);t=cU(t),i=function(e){return s(o[e],e,o)}}var a=e(t,i,n);return a>-1?o[s?t[a]:a]:r}}function ox(e){return oz(function(t){var i=t.length,n=i,o=r4.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new e4(s);if(o&&!l&&"wrapper"==oV(a))var l=new r4([],!0)}for(n=l?n:i;++n<i;){var c=oV(a=t[n]),u="wrapper"==c?oH(a):r;l=u&&sn(u[0])&&u[1]==(E|b|_|C)&&!u[4].length&&1==u[9]?l[oV(u[0])].apply(l,u[3]):1==a.length&&sn(a)?l[c]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&lL(r))return l.plant(r).value();for(var n=0,o=i?t[n].apply(this,e):r;++n<i;)o=t[n].call(this,o);return o}})}function oE(e,t,i,n,o,s,a,l,c,u){var d=t&E,h=t&m,f=t&w,p=t&(b|v),g=t&k,y=f?r:ob(e);function _(){for(var r=arguments.length,m=eL(r),w=r;w--;)m[w]=arguments[w];if(p)var b=oZ(_),v=rE(m,b);if(n&&(m=os(m,n,o,p)),s&&(m=oa(m,s,a,p)),r-=v,p&&r<u){var x=rN(m,b);return oO(e,t,oE,_.placeholder,i,m,x,l,c,u-r)}var E=h?i:this,C=f?E[e]:e;return r=m.length,l?m=sm(m,l):g&&r>1&&m.reverse(),d&&c<r&&(m.length=c),this&&this!==tU&&this instanceof _&&(C=y||ob(C)),C.apply(E,m)}return _}function oC(e,t){return function(r,i){return ni(r,e,t(i),{})}}function ok(e,t){return function(i,n){var o;if(i===r&&n===r)return t;if(i!==r&&(o=i),n!==r){if(o===r)return n;"string"==typeof i||"string"==typeof n?(i=nK(i),n=nK(n)):(i=nZ(i),n=nZ(n)),o=e(i,n)}return o}}function oS(e){return oz(function(t){return t=t6(t,ry(oK())),nD(function(r){var i=this;return e(t,function(e){return tQ(e,i,r)})})})}function oA(e,t){var i=(t=t===r?" ":nK(t)).length;if(i<2)return i?nM(t,e):t;var n=nM(t,tk(e/rB(t)));return rI(t)?n6(r$(n),0,e).join(""):n.slice(0,e)}function oI(e,t,r,i){var n=t&m,o=ob(e);function s(){for(var t=-1,a=arguments.length,l=-1,c=i.length,u=eL(c+a),d=this&&this!==tU&&this instanceof s?o:e;++l<c;)u[l]=i[l];for(;a--;)u[l++]=arguments[++t];return tQ(d,n?r:this,u)}return s}function oT(e){return function(t,i,n){return n&&"number"!=typeof n&&st(t,i,n)&&(i=n=r),t=cd(t),i===r?(i=t,t=0):i=cd(i),n=n===r?t<i?1:-1:cd(n),nN(t,i,n,e)}}function oR(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=cp(t),r=cp(r)),e(t,r)}}function oO(e,t,i,n,o,s,a,l,c,u){var d=t&b,h=d?a:r,f=d?r:a,p=d?s:r,g=d?r:s;t|=d?_:x,(t&=~(d?x:_))&y||(t&=~(m|w));var v=[e,t,o,p,h,g,f,l,c,u],E=i.apply(r,v);return sn(e)&&sy(E,v),E.placeholder=n,s_(E,e,t)}function oP(e){var t=e1[e];return function(e,r){if(e=cp(e),(r=null==r?0:t$(ch(r),292))&&tN(e)){var i=(cw(e)+"e").split("e");return+((i=(cw(t(i[0]+"e"+(+i[1]+r)))+"e").split("e"))[0]+"e"+(+i[1]-r))}return t(e)}}var oN=rL&&1/rM(new rL([,-0]))[1]==N?function(e){return new rL(e)}:uV;function oM(e){return function(t){var r=o1(t);return r==Y?rO(t):r==ei?rD(t):rm(t,e(t))}}function oD(e,t,i,n,o,a,l,c){var u=t&w;if(!u&&"function"!=typeof e)throw new e4(s);var d=n?n.length:0;if(d||(t&=~(_|x),n=o=r),l=l===r?l:tB(ch(l),0),c=c===r?c:ch(c),d-=o?o.length:0,t&x){var h=n,f=o;n=o=r}var p=u?r:oH(e),g=[e,t,i,n,o,h,f,a,l,c];if(p&&sd(g,p),e=g[0],t=g[1],i=g[2],n=g[3],o=g[4],(c=g[9]=g[9]===r?u?0:e.length:tB(g[9]-d,0))||!(t&(b|v))||(t&=~(b|v)),t&&t!=m)y=t==b||t==v?ov(e,t,c):t!=_&&t!=(m|_)||o.length?oE.apply(r,g):oI(e,t,i,n);else var y=om(e,t,i);return s_((p?n$:sy)(y,g),e,t)}function oL(e,t,i,n){return e===r||lP(e,e7[i])&&!tt.call(n,i)?t:e}function oj(e,t,i,n,o,s){return lQ(e)&&lQ(t)&&(s.set(t,e),nE(e,t,r,oj,s),s.delete(t)),e}function oB(e){return l7(e)?r:e}function o$(e,t,i,n,o,s){var a=i&p,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,m=i&g?new iv:r;for(s.set(e,t),s.set(t,e);++h<l;){var w=e[h],y=t[h];if(n)var b=a?n(y,w,h,t,e,s):n(w,y,h,e,t,s);if(b!==r){if(b)continue;f=!1;break}if(m){if(!re(t,function(e,t){if(!rv(m,t)&&(w===e||o(w,e,i,n,s)))return m.push(t)})){f=!1;break}}else if(!(w===y||o(w,y,i,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function oU(e,t,r,i,n,o,s){switch(r){case eu:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case ec:return!(e.byteLength!=t.byteLength||!o(new tu(e),new tu(t)));case W:case H:case J:return lP(+e,+t);case Z:return e.name==t.name&&e.message==t.message;case er:case en:return e==t+"";case Y:var a=rO;case ei:var l=i&p;if(a||(a=rM),e.size!=t.size&&!l)break;var c=s.get(e);if(c)return c==t;i|=g,s.set(e,t);var u=o$(a(e),a(t),i,n,o,s);return s.delete(e),u;case eo:if(r0)return r0.call(e)==r0.call(t)}return!1}function oF(e,t,i,n,o,s){var a=i&p,l=oq(e),c=l.length;if(c!=oq(t).length&&!a)return!1;for(var u=c;u--;){var d=l[u];if(!(a?d in t:tt.call(t,d)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=a;++u<c;){var w=e[d=l[u]],y=t[d];if(n)var b=a?n(y,w,d,t,e,s):n(w,y,d,e,t,s);if(!(b===r?w===y||o(w,y,i,n,s):b)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var v=e.constructor,_=t.constructor;v!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return s.delete(e),s.delete(t),g}function oz(e){return sv(sp(e,r,sz),e+"")}function oq(e){return i6(e,cU,oX)}function oW(e){return i6(e,cF,o0)}var oH=rV?function(e){return rV.get(e)}:uV;function oV(e){for(var t=e.name+"",r=rZ[t],i=tt.call(rZ,t)?r.length:0;i--;){var n=r[i],o=n.func;if(null==o||o==e)return n.name}return t}function oZ(e){return(tt.call(r2,"placeholder")?r2:e).placeholder}function oK(){var e=r2.iteratee||u$;return e=e===u$?nm:e,arguments.length?e(arguments[0],arguments[1]):e}function oG(e,t){var r=e.__data__;return si(t)?r["string"==typeof t?"string":"hash"]:r.map}function oY(e){for(var t=cU(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,sl(n)]}return t}function oJ(e,t){var i=rA(e,t);return nh(i)?i:r}function oQ(e){var t=tt.call(e,ty),i=e[ty];try{e[ty]=r;var n=!0}catch{}var o=tn.call(e);return n&&(t?e[ty]=i:delete e[ty]),o}var oX=tA?function(e){return null==e?[]:t3(tA(e=e2(e)),function(t){return tp.call(e,t)})}:u1,o0=tA?function(e){for(var t=[];e;)t8(t,oX(e)),e=th(e);return t}:u1,o1=i8;function o2(e,t,r){for(var i=-1,n=r.length;++i<n;){var o=r[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=t$(t,e+s);break;case"takeRight":e=tB(e,t-s)}}return{start:e,end:t}}function o3(e){var t=e.match(eB);return t?t[1].split(e$):[]}function o5(e,t,r){t=n5(t,e);for(var i=-1,n=t.length,o=!1;++i<n;){var s=sk(t[i]);if(!(o=null!=e&&r(e,s)))break;e=e[s]}return o||++i!=n?o:!!(n=null==e?0:e.length)&&lJ(n)&&se(s,n)&&(lL(e)||lD(e))}function o4(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&tt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function o6(e){return"function"!=typeof e.constructor||sa(e)?{}:r3(th(e))}function o8(e,t,r){var i=e.constructor;switch(t){case ec:return n9(e);case W:case H:return new i(+e);case eu:return oe(e,r);case ed:case eh:case ef:case ep:case eg:case em:case ew:case ey:case eb:return oi(e,r);case Y:return new i;case J:case en:return new i(e);case er:return ot(e);case ei:return new i;case eo:return or(e)}}function o7(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(ej,`{ 4095/* [wrapped with `+t+`] */ 4096`)}function o9(e){return lL(e)||lD(e)||!!(tm&&e&&e[tm])}function se(e,t){var r=typeof e;return!!(t=t??M)&&("number"==r||"symbol"!=r&&eG.test(e))&&e>-1&&e%1==0&&e<t}function st(e,t,r){if(!lQ(r))return!1;var i=typeof t;return("number"==i?!!(lB(r)&&se(t,r.length)):"string"==i&&t in r)&&lP(r[t],e)}function sr(e,t){if(lL(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||ci(e))||eO.test(e)||!eR.test(e)||null!=t&&e in e2(t)}function si(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function sn(e){var t=oV(e),r=r2[t];if("function"!=typeof r||!(t in r6.prototype))return!1;if(e===r)return!0;var i=oH(r);return!!i&&e===i[0]}function so(e){return!!ti&&ti in e}(rt&&o1(new rt(new ArrayBuffer(1)))!=eu||rr&&o1(new rr)!=Y||rd&&o1(rd.resolve())!=ee||rL&&o1(new rL)!=ei||rz&&o1(new rz)!=ea)&&(o1=function(e){var t=i8(e),i=t==X?e.constructor:r,n=i?sS(i):"";if(n)switch(n){case rK:return eu;case rG:return Y;case rY:return ee;case rJ:return ei;case rQ:return ea}return t});var ss=e9?lG:u2;function sa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||e7)}function sl(e){return e==e&&!lQ(e)}function sc(e,t){return function(i){return null!=i&&i[e]===t&&(t!==r||e in e2(i))}}function su(e){var t=lp(e,function(e){return r.size===c&&r.clear(),e}),r=t.cache;return t}function sd(e,t){var r=e[1],i=t[1],n=r|i,o=n<(m|w|E),s=i==E&&r==b||i==E&&r==C&&e[7].length<=t[8]||i==(E|C)&&t[7].length<=t[8]&&r==b;if(!(o||s))return e;i&m&&(e[2]=t[2],n|=r&m?0:y);var a=t[3];if(a){var l=e[3];e[3]=l?os(l,a,t[4]):a,e[4]=l?rN(e[3],u):t[4]}return(a=t[5])&&(l=e[5],e[5]=l?oa(l,a,t[6]):a,e[6]=l?rN(e[5],u):t[6]),(a=t[7])&&(e[7]=a),i&E&&(e[8]=null==e[8]?t[8]:t$(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=n,e}function sh(e){var t=[];if(null!=e)for(var r in e2(e))t.push(r);return t}function sf(e){return tn.call(e)}function sp(e,t,i){return t=tB(t===r?e.length-1:t,0),function(){for(var r=arguments,n=-1,o=tB(r.length-t,0),s=eL(o);++n<o;)s[n]=r[t+n];n=-1;for(var a=eL(t+1);++n<t;)a[n]=r[n];return a[t]=i(s),tQ(e,this,a)}}function sg(e,t){return t.length<2?e:i4(e,nz(t,0,-1))}function sm(e,t){for(var i=e.length,n=t$(t.length,i),o=ol(e);n--;){var s=t[n];e[n]=se(s,i)?o[s]:r}return e}function sw(e,t){if(!("constructor"===t&&"function"==typeof e[t])&&"__proto__"!=t)return e[t]}var sy=sx(n$),sb=tC||function(e,t){return tU.setTimeout(e,t)},sv=sx(nU);function s_(e,t,r){var i=t+"";return sv(e,o7(i,sA(o3(i),r)))}function sx(e){var t=0,i=0;return function(){var n=tF(),o=T-(n-i);if(i=n,o>0){if(++t>=I)return arguments[0]}else t=0;return e.apply(r,arguments)}}function sE(e,t){var i=-1,n=e.length,o=n-1;for(t=t===r?n:t;++i<t;){var s=nP(i,o),a=e[s];e[s]=e[i],e[i]=a}return e.length=t,e}var sC=su(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(eP,function(e,r,i,n){t.push(i?n.replace(ez,"$1"):r||e)}),t});function sk(e){if("string"==typeof e||ci(e))return e;var t=e+"";return"0"==t&&1/e==-N?"-0":t}function sS(e){if(null!=e){try{return te.call(e)}catch{}try{return e+""}catch{}}return""}function sA(e,t){return t0(U,function(r){var i="_."+r[0];t&r[1]&&!t5(e,i)&&e.push(i)}),e.sort()}function sI(e){if(e instanceof r6)return e.clone();var t=new r4(e.__wrapped__,e.__chain__);return t.__actions__=ol(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function sT(e,t,i){t=(i?st(e,t,i):t===r)?1:tB(ch(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var o=0,s=0,a=eL(tk(n/t));o<n;)a[s++]=nz(e,o,o+=t);return a}function sR(e){for(var t=-1,r=null==e?0:e.length,i=0,n=[];++t<r;){var o=e[t];o&&(n[i++]=o)}return n}function sO(){var e=arguments.length;if(!e)return[];for(var t=eL(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return t8(lL(r)?ol(r):[r],iX(t,1))}var sP=nD(function(e,t){return l$(e)?iV(e,iX(t,1,l$,!0)):[]}),sN=nD(function(e,t){var i=sX(t);return l$(i)&&(i=r),l$(e)?iV(e,iX(t,1,l$,!0),oK(i,2)):[]}),sM=nD(function(e,t){var i=sX(t);return l$(i)&&(i=r),l$(e)?iV(e,iX(t,1,l$,!0),r,i):[]});function sD(e,t,i){var n=null==e?0:e.length;return n?nz(e,(t=i||t===r?1:ch(t))<0?0:t,n):[]}function sL(e,t,i){var n=null==e?0:e.length;return n?nz(e,0,(t=n-(t=i||t===r?1:ch(t)))<0?0:t):[]}
4096function sj(e,t){return e&&e.length?nQ(e,oK(t,3),!0,!0):[]}function sB(e,t){return e&&e.length?nQ(e,oK(t,3),!0):[]}function s$(e,t,r,i){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&st(e,t,r)&&(r=0,i=n),iJ(e,t,r,i)):[]}function sU(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var n=null==r?0:ch(r);return n<0&&(n=tB(i+n,0)),ro(e,oK(t,3),n)}function sF(e,t,i){var n=null==e?0:e.length;if(!n)return -1;var o=n-1;return i!==r&&(o=ch(i),o=i<0?tB(n+o,0):t$(o,n-1)),ro(e,oK(t,3),o,!0)}function sz(e){return(null==e?0:e.length)?iX(e,1):[]}function sq(e){return(null==e?0:e.length)?iX(e,N):[]}function sW(e,t){return(null==e?0:e.length)?iX(e,t=t===r?1:ch(t)):[]}function sH(e){for(var t=-1,r=null==e?0:e.length,i={};++t<r;){var n=e[t];i[n[0]]=n[1]}return i}function sV(e){return e&&e.length?e[0]:r}function sZ(e,t,r){var i=null==e?0:e.length;if(!i)return -1;var n=null==r?0:ch(r);return n<0&&(n=tB(i+n,0)),rs(e,t,n)}function sK(e){return(null==e?0:e.length)?nz(e,0,-1):[]}var sG=nD(function(e){var t=t6(e,n2);return t.length&&t[0]===e[0]?nr(t):[]}),sY=nD(function(e){var t=sX(e),i=t6(e,n2);return t===sX(i)?t=r:i.pop(),i.length&&i[0]===e[0]?nr(i,oK(t,2)):[]}),sJ=nD(function(e){var t=sX(e),i=t6(e,n2);return(t="function"==typeof t?t:r)&&i.pop(),i.length&&i[0]===e[0]?nr(i,r,t):[]});function sQ(e,t){return null==e?"":tM.call(e,t)}function sX(e){var t=null==e?0:e.length;return t?e[t-1]:r}function s0(e,t,i){var n=null==e?0:e.length;if(!n)return -1;var o=n;return i!==r&&(o=(o=ch(i))<0?tB(n+o,0):t$(o,n-1)),t==t?rj(e,t,o):ro(e,rl,o,!0)}function s1(e,t){return e&&e.length?nk(e,ch(t)):r}var s2=nD(s3);function s3(e,t){return e&&e.length&&t&&t.length?nR(e,t):e}function s5(e,t,r){return e&&e.length&&t&&t.length?nR(e,t,oK(r,2)):e}function s4(e,t,i){return e&&e.length&&t&&t.length?nR(e,t,r,i):e}var s6=oz(function(e,t){var r=null==e?0:e.length,i=iU(e,t);return nO(e,t6(t,function(e){return se(e,r)?+e:e}).sort(on)),i});function s8(e,t){var r=[];if(!(e&&e.length))return r;var i=-1,n=[],o=e.length;for(t=oK(t,3);++i<o;){var s=e[i];t(s,i,e)&&(r.push(s),n.push(i))}return nO(e,n),r}function s7(e){return null==e?e:tH.call(e)}function s9(e,t,i){var n=null==e?0:e.length;return n?(i&&"number"!=typeof i&&st(e,t,i)?(t=0,i=n):(t=null==t?0:ch(t),i=i===r?n:ch(i)),nz(e,t,i)):[]}function ae(e,t){return nW(e,t)}function at(e,t,r){return nH(e,t,oK(r,2))}function ar(e,t){var r=null==e?0:e.length;if(r){var i=nW(e,t);if(i<r&&lP(e[i],t))return i}return -1}function ai(e,t){return nW(e,t,!0)}function an(e,t,r){return nH(e,t,oK(r,2),!0)}function ao(e,t){if(null==e?0:e.length){var r=nW(e,t,!0)-1;if(lP(e[r],t))return r}return -1}function as(e){return e&&e.length?nV(e):[]}function aa(e,t){return e&&e.length?nV(e,oK(t,2)):[]}function al(e){var t=null==e?0:e.length;return t?nz(e,1,t):[]}function ac(e,t,i){return e&&e.length?nz(e,0,(t=i||t===r?1:ch(t))<0?0:t):[]}function au(e,t,i){var n=null==e?0:e.length;return n?nz(e,(t=n-(t=i||t===r?1:ch(t)))<0?0:t,n):[]}function ad(e,t){return e&&e.length?nQ(e,oK(t,3),!1,!0):[]}function ah(e,t){return e&&e.length?nQ(e,oK(t,3)):[]}var af=nD(function(e){return nG(iX(e,1,l$,!0))}),ap=nD(function(e){var t=sX(e);return l$(t)&&(t=r),nG(iX(e,1,l$,!0),oK(t,2))}),ag=nD(function(e){var t=sX(e);return t="function"==typeof t?t:r,nG(iX(e,1,l$,!0),r,t)});function am(e){return e&&e.length?nG(e):[]}function aw(e,t){return e&&e.length?nG(e,oK(t,2)):[]}function ay(e,t){return t="function"==typeof t?t:r,e&&e.length?nG(e,r,t):[]}function ab(e){if(!(e&&e.length))return[];var t=0;return e=t3(e,function(e){if(l$(e))return t=tB(e.length,t),!0}),rg(t,function(t){return t6(e,ru(t))})}function av(e,t){if(!(e&&e.length))return[];var i=ab(e);return null==t?i:t6(i,function(e){return tQ(t,r,e)})}var a_=nD(function(e,t){return l$(e)?iV(e,t):[]}),ax=nD(function(e){return n0(t3(e,l$))}),aE=nD(function(e){var t=sX(e);return l$(t)&&(t=r),n0(t3(e,l$),oK(t,2))}),aC=nD(function(e){var t=sX(e);return t="function"==typeof t?t:r,n0(t3(e,l$),r,t)}),ak=nD(ab);function aS(e,t){return n1(e||[],t||[],iM)}function aA(e,t){return n1(e||[],t||[],nB)}var aI=nD(function(e){var t=e.length,i=t>1?e[t-1]:r;return i="function"==typeof i?(e.pop(),i):r,av(e,i)});function aT(e){var t=r2(e);return t.__chain__=!0,t}function aR(e,t){return t(e),e}function aO(e,t){return t(e)}var aP=oz(function(e){var t=e.length,i=t?e[0]:0,n=this.__wrapped__,o=function(t){return iU(t,e)};return!(t>1)&&!this.__actions__.length&&n instanceof r6&&se(i)?((n=n.slice(i,+i+(t?1:0))).__actions__.push({func:aO,args:[o],thisArg:r}),new r4(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)});function aN(){return aT(this)}function aM(){return new r4(this.value(),this.__chain__)}function aD(){this.__values__===r&&(this.__values__=cu(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function aL(){return this}function aj(e){for(var t,i=this;i instanceof r5;){var n=sI(i);n.__index__=0,n.__values__=r,t?o.__wrapped__=n:t=n;var o=n;i=i.__wrapped__}return o.__wrapped__=e,t}function aB(){var e=this.__wrapped__;if(e instanceof r6){var t=e;return this.__actions__.length&&(t=new r6(this)),(t=t.reverse()).__actions__.push({func:aO,args:[s7],thisArg:r}),new r4(t,this.__chain__)}return this.thru(s7)}function a$(){return nX(this.__wrapped__,this.__actions__)}var aU=oh(function(e,t,r){tt.call(e,r)?++e[r]:i$(e,r,1)});function aF(e,t,i){var n=lL(e)?t2:iG;return i&&st(e,t,i)&&(t=r),n(e,oK(t,3))}function az(e,t){return(lL(e)?t3:iQ)(e,oK(t,3))}var aq=o_(sU),aW=o_(sF);function aH(e,t){return iX(a0(e,t),1)}function aV(e,t){return iX(a0(e,t),N)}function aZ(e,t,i){return i=i===r?1:ch(i),iX(a0(e,t),i)}function aK(e,t){return(lL(e)?t0:iZ)(e,oK(t,3))}function aG(e,t){return(lL(e)?t1:iK)(e,oK(t,3))}var aY=oh(function(e,t,r){tt.call(e,r)?e[r].push(t):i$(e,r,[t])});
vendor: 10,578 bytes, line 4096
4096function aJ(e,t,r,i){e=lB(e)?e:c4(e),r=r&&!i?ch(r):0;var n=e.length;return r<0&&(r=tB(n+r,0)),cr(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&rs(e,t,r)>-1}var aQ=nD(function(e,t,r){var i=-1,n="function"==typeof t,o=lB(e)?eL(e.length):[];return iZ(e,function(e){o[++i]=n?tQ(t,e,r):nn(e,t,r)}),o}),aX=oh(function(e,t,r){i$(e,r,t)});function a0(e,t){return(lL(e)?t6:nv)(e,oK(t,3))}function a1(e,t,i,n){return null==e?[]:(lL(t)||(t=null==t?[]:[t]),lL(i=n?r:i)||(i=null==i?[]:[i]),nS(e,t,i))}var a2=oh(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function a3(e,t,r){var i=lL(e)?t7:rh,n=arguments.length<3;return i(e,oK(t,4),r,n,iZ)}function a5(e,t,r){var i=lL(e)?t9:rh,n=arguments.length<3;return i(e,oK(t,4),r,n,iK)}function a4(e,t){return(lL(e)?t3:iQ)(e,lg(oK(t,3)))}function a6(e){return(lL(e)?iR:nL)(e)}function a8(e,t,i){return t=(i?st(e,t,i):t===r)?1:ch(t),(lL(e)?iO:nj)(e,t)}function a7(e){return(lL(e)?iP:nF)(e)}function a9(e){if(null==e)return 0;if(lB(e))return cr(e)?rB(e):e.length;var t=o1(e);return t==Y||t==ei?e.size:nw(e).length}function le(e,t,i){var n=lL(e)?re:nq;return i&&st(e,t,i)&&(t=r),n(e,oK(t,3))}var lt=nD(function(e,t){if(null==e)return[];var r=t.length;return r>1&&st(e,t[0],t[1])?t=[]:r>2&&st(t[0],t[1],t[2])&&(t=[t[0]]),nS(e,iX(t,1),[])}),lr=t_||function(){return tU.Date.now()};function li(e,t){if("function"!=typeof t)throw new e4(s);return e=ch(e),function(){if(--e<1)return t.apply(this,arguments)}}function ln(e,t,i){return t=i?r:t,t=e&&null==t?e.length:t,oD(e,E,r,r,r,r,t)}function lo(e,t){var i;if("function"!=typeof t)throw new e4(s);return e=ch(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var ls=nD(function(e,t,r){var i=m;if(r.length){var n=rN(r,oZ(ls));i|=_}return oD(e,i,t,r,n)}),la=nD(function(e,t,r){var i=m|w;if(r.length){var n=rN(r,oZ(la));i|=_}return oD(t,i,e,r,n)});function ll(e,t,i){t=i?r:t;var n=oD(e,b,r,r,r,r,r,t);return n.placeholder=ll.placeholder,n}function lc(e,t,i){t=i?r:t;var n=oD(e,v,r,r,r,r,r,t);return n.placeholder=lc.placeholder,n}function lu(e,t,i){var n,o,a,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new e4(s);function g(t){var i=n,s=o;return n=o=r,d=t,l=e.apply(s,i)}function m(e){return d=e,c=sb(b,t),h?g(e):l}function w(e){var r=e-u,i=e-d,n=t-r;return f?t$(n,a-i):n}function y(e){var i=e-u,n=e-d;return u===r||i>=t||i<0||f&&n>=a}function b(){var e=lr();if(y(e))return v(e);c=sb(b,w(e))}function v(e){return c=r,p&&n?g(e):(n=o=r,l)}function _(){c!==r&&n8(c),d=0,n=u=o=c=r}function x(){return c===r?l:v(lr())}function E(){var e=lr(),i=y(e);if(n=arguments,o=this,u=e,i){if(c===r)return m(u);if(f)return n8(c),c=sb(b,t),g(u)}return c===r&&(c=sb(b,t)),l}return t=cp(t)||0,lQ(i)&&(h=!!i.leading,a=(f="maxWait"in i)?tB(cp(i.maxWait)||0,t):a,p="trailing"in i?!!i.trailing:p),E.cancel=_,E.flush=x,E}var ld=nD(function(e,t){return iH(e,1,t)}),lh=nD(function(e,t,r){return iH(e,cp(t)||0,r)});function lf(e){return oD(e,k)}function lp(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e4(s);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var s=e.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(lp.Cache||ip),r}function lg(e){if("function"!=typeof e)throw new e4(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function lm(e){return lo(2,e)}lp.Cache=ip;var lw=n4(function(e,t){var r=(t=1==t.length&&lL(t[0])?t6(t[0],ry(oK())):t6(iX(t,1),ry(oK()))).length;return nD(function(i){for(var n=-1,o=t$(i.length,r);++n<o;)i[n]=t[n].call(this,i[n]);return tQ(e,this,i)})}),ly=nD(function(e,t){var i=rN(t,oZ(ly));return oD(e,_,r,t,i)}),lb=nD(function(e,t){var i=rN(t,oZ(lb));return oD(e,x,r,t,i)}),lv=oz(function(e,t){return oD(e,C,r,r,r,t)});function l_(e,t){if("function"!=typeof e)throw new e4(s);return nD(e,t=t===r?t:ch(t))}function lx(e,t){if("function"!=typeof e)throw new e4(s);return t=null==t?0:tB(ch(t),0),nD(function(r){var i=r[t],n=n6(r,0,t);return i&&t8(n,i),tQ(e,this,n)})}function lE(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new e4(s);return lQ(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),lu(e,t,{leading:i,maxWait:t,trailing:n})}function lC(e){return ln(e,1)}function lk(e,t){return ly(n3(t),e)}function lS(){if(!arguments.length)return[];var e=arguments[0];return lL(e)?e:[e]}function lA(e){return iz(e,f)}function lI(e,t){return iz(e,f,t="function"==typeof t?t:r)}function lT(e){return iz(e,d|f)}function lR(e,t){return iz(e,d|f,t="function"==typeof t?t:r)}function lO(e,t){return null==t||iW(e,t,cU(t))}function lP(e,t){return e===t||e!=e&&t!=t}var lN=oR(i7),lM=oR(function(e,t){return e>=t}),lD=no(function(){return arguments}())?no:function(e){return lX(e)&&tt.call(e,"callee")&&!tp.call(e,"callee")},lL=eL.isArray,lj=tV?ry(tV):ns;function lB(e){return null!=e&&lJ(e.length)&&!lG(e)}function l$(e){return lX(e)&&lB(e)}function lU(e){return!0===e||!1===e||lX(e)&&i8(e)==W}var lF=tP||u2,lz=tZ?ry(tZ):na;function lq(e){return lX(e)&&1===e.nodeType&&!l7(e)}function lW(e){if(null==e)return!0;if(lB(e)&&(lL(e)||"string"==typeof e||"function"==typeof e.splice||lF(e)||cn(e)||lD(e)))return!e.length;var t=o1(e);if(t==Y||t==ei)return!e.size;if(sa(e))return!nw(e).length;for(var r in e)if(tt.call(e,r))return!1;return!0}function lH(e,t){return nl(e,t)}function lV(e,t,i){var n=(i="function"==typeof i?i:r)?i(e,t):r;return n===r?nl(e,t,r,i):!!n}function lZ(e){if(!lX(e))return!1;var t=i8(e);return t==Z||t==V||"string"==typeof e.message&&"string"==typeof e.name&&!l7(e)}function lK(e){return"number"==typeof e&&tN(e)}function lG(e){if(!lQ(e))return!1;var t=i8(e);return t==K||t==G||t==q||t==et}function lY(e){return"number"==typeof e&&e==ch(e)}function lJ(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function lQ(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function lX(e){return null!=e&&"object"==typeof e}var l0=tK?ry(tK):nu;function l1(e,t){return e===t||nd(e,t,oY(t))}function l2(e,t,i){return i="function"==typeof i?i:r,nd(e,t,oY(t),i)}function l3(e){return l8(e)&&e!=+e}function l5(e){if(ss(e))throw new eX(o);return nh(e)}function l4(e){return null===e}function l6(e){return null==e}function l8(e){return"number"==typeof e||lX(e)&&i8(e)==J}function l7(e){if(!lX(e)||i8(e)!=X)return!1;var t=th(e);if(null===t)return!0;var r=tt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&te.call(r)==to}var l9=tG?ry(tG):nf;function ce(e){return lY(e)&&e>=-M&&e<=M}var ct=tY?ry(tY):np;function cr(e){return"string"==typeof e||!lL(e)&&lX(e)&&i8(e)==en}function ci(e){return"symbol"==typeof e||lX(e)&&i8(e)==eo}var cn=tJ?ry(tJ):ng;function co(e){return e===r}function cs(e){return lX(e)&&o1(e)==ea}function ca(e){return lX(e)&&i8(e)==el}var cl=oR(nb),cc=oR(function(e,t){return e<=t});function cu(e){if(!e)return[];if(lB(e))return cr(e)?r$(e):ol(e);if(tw&&e[tw])return rR(e[tw]());var t=o1(e);return(t==Y?rO:t==ei?rM:c4)(e)}function cd(e){return e?(e=cp(e))===N||e===-N?(e<0?-1:1)*D:e==e?e:0:0===e?e:0}function ch(e){var t=cd(e),r=t%1;return t==t?r?t-r:t:0}function cf(e){return e?iF(ch(e),0,j):0}function cp(e){if("number"==typeof e)return e;if(ci(e))return L;if(lQ(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=lQ(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=rw(e);var r=eV.test(e);return r||eK.test(e)?tj(e.slice(2),r?2:8):eH.test(e)?L:+e}function cg(e){return oc(e,cF(e))}function cm(e){return e?iF(ch(e),-M,M):0===e?e:0}function cw(e){return null==e?"":nK(e)}var cy=of(function(e,t){if(sa(t)||lB(t)){oc(t,cU(t),e);return}for(var r in t)tt.call(t,r)&&iM(e,r,t[r])}),cb=of(function(e,t){oc(t,cF(t),e)}),cv=of(function(e,t,r,i){oc(t,cF(t),e,i)}),c_=of(function(e,t,r,i){oc(t,cU(t),e,i)}),cx=oz(iU);function cE(e,t){var r=r3(e);return null==t?r:ij(r,t)}var cC=nD(function(e,t){e=e2(e);var i=-1,n=t.length,o=n>2?t[2]:r;for(o&&st(t[0],t[1],o)&&(n=1);++i<n;)for(var s=t[i],a=cF(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===r||lP(d,e7[u])&&!tt.call(e,u))&&(e[u]=s[u])}return e}),ck=nD(function(e){return e.push(r,oj),tQ(cH,r,e)});function cS(e,t){return rn(e,oK(t,3),i2)}function cA(e,t){return rn(e,oK(t,3),i3)}function cI(e,t){return null==e?e:i0(e,oK(t,3),cF)}function cT(e,t){return null==e?e:i1(e,oK(t,3),cF)}function cR(e,t){return e&&i2(e,oK(t,3))}function cO(e,t){return e&&i3(e,oK(t,3))}function cP(e){return null==e?[]:i5(e,cU(e))}function cN(e){return null==e?[]:i5(e,cF(e))}function cM(e,t,i){var n=null==e?r:i4(e,t);return n===r?i:n}function cD(e,t){return null!=e&&o5(e,t,i9)}function cL(e,t){return null!=e&&o5(e,t,ne)}var cj=oC(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=tn.call(t)),e[t]=r},uM(uB)),cB=oC(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=tn.call(t)),tt.call(e,t)?e[t].push(r):e[t]=[r]},oK),c$=nD(nn);function cU(e){return lB(e)?iT(e):nw(e)}function cF(e){return lB(e)?iT(e,!0):ny(e)}function cz(e,t){var r={};return t=oK(t,3),i2(e,function(e,i,n){i$(r,t(e,i,n),e)}),r}function cq(e,t){var r={};return t=oK(t,3),i2(e,function(e,i,n){i$(r,i,t(e,i,n))}),r}var cW=of(function(e,t,r){nE(e,t,r)}),cH=of(function(e,t,r,i){nE(e,t,r,i)}),cV=oz(function(e,t){var r={};if(null==e)return r;var i=!1;t=t6(t,function(t){return t=n5(t,e),i||(i=t.length>1),t}),oc(e,oW(e),r),i&&(r=iz(r,d|h|f,oB));for(var n=t.length;n--;)nY(r,t[n]);return r});function cZ(e,t){return cG(e,lg(oK(t)))}var cK=oz(function(e,t){return null==e?{}:nA(e,t)});function cG(e,t){if(null==e)return{};var r=t6(oW(e),function(e){return[e]});return t=oK(t),nI(e,r,function(e,r){return t(e,r[0])})}function cY(e,t,i){t=n5(t,e);var n=-1,o=t.length;for(o||(o=1,e=r);++n<o;){var s=null==e?r:e[sk(t[n])];s===r&&(n=o,s=i),e=lG(s)?s.call(e):s}return e}function cJ(e,t,r){return null==e?e:nB(e,t,r)}function cQ(e,t,i,n){return n="function"==typeof n?n:r,null==e?e:nB(e,t,i,n)}var cX=oM(cU),c0=oM(cF);function c1(e,t,r){var i=lL(e),n=i||lF(e)||cn(e);if(t=oK(t,4),null==r){var o=e&&e.constructor;r=n?i?new o:[]:lQ(e)&&lG(o)?r3(th(e)):{}}return(n?t0:i2)(e,function(e,i,n){return t(r,e,i,n)}),r}function c2(e,t){return null==e||nY(e,t)}function c3(e,t,r){return null==e?e:nJ(e,t,n3(r))}function c5(e,t,i,n){return n="function"==typeof n?n:r,null==e?e:nJ(e,t,n3(i),n)}function c4(e){return null==e?[]:rb(e,cU(e))}function c6(e){return null==e?[]:rb(e,cF(e))}function c8(e,t,i){return i===r&&(i=t,t=r),i!==r&&(i=(i=cp(i))==i?i:0),t!==r&&(t=(t=cp(t))==t?t:0),iF(cp(e),t,i)}function c7(e,t,i){return t=cd(t),i===r?(i=t,t=0):i=cd(i),nt(e=c
vendor: 3,746 bytes, lines 4096-4113
4096p(e),t,i)}function c9(e,t,i){if(i&&"boolean"!=typeof i&&st(e,t,i)&&(t=i=r),i===r&&("boolean"==typeof t?(i=t,t=r):"boolean"==typeof e&&(i=e,e=r)),e===r&&t===r?(e=0,t=1):(e=cd(e),t===r?(t=e,e=0):t=cd(t)),e>t){var n=e;e=t,t=n}if(i||e%1||t%1){var o=tW();return t$(e+o*(t-e+tL("1e-"+((o+"").length-1))),t)}return nP(e,t)}var ue=oy(function(e,t,r){return t=t.toLowerCase(),e+(r?ut(t):t)});function ut(e){return uI(cw(e).toLowerCase())}function ur(e){return(e=cw(e))&&e.replace(eY,rC).replace(tE,"")}function ui(e,t,i){e=cw(e),t=nK(t);var n=e.length,o=i=i===r?n:iF(ch(i),0,n);return(i-=t.length)>=0&&e.slice(i,o)==t}function un(e){return(e=cw(e))&&eS.test(e)?e.replace(eC,rk):e}function uo(e){return(e=cw(e))&&eM.test(e)?e.replace(eN,"\\$&"):e}var us=oy(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ua=oy(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),ul=ow("toLowerCase");function uc(e,t,r){e=cw(e);var i=(t=ch(t))?rB(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return oA(tS(n),r)+e+oA(tk(n),r)}function uu(e,t,r){e=cw(e);var i=(t=ch(t))?rB(e):0;return t&&i<t?e+oA(t-i,r):e}function ud(e,t,r){e=cw(e);var i=(t=ch(t))?rB(e):0;return t&&i<t?oA(t-i,r)+e:e}function uh(e,t,r){return r||null==t?t=0:t&&(t=+t),tz(cw(e).replace(eD,""),t||0)}function uf(e,t,i){return t=(i?st(e,t,i):t===r)?1:ch(t),nM(cw(e),t)}function up(){var e=arguments,t=cw(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ug=oy(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function um(e,t,i){return i&&"number"!=typeof i&&st(e,t,i)&&(t=i=r),(i=i===r?j:i>>>0)?(e=cw(e))&&("string"==typeof t||null!=t&&!l9(t))&&!(t=nK(t))&&rI(e)?n6(r$(e),0,i):e.split(t,i):[]}var uw=oy(function(e,t,r){return e+(r?" ":"")+uI(t)});function uy(e,t,r){return e=cw(e),r=null==r?0:iF(ch(r),0,e.length),t=nK(t),e.slice(r,r+t.length)==t}function ub(e,t,i){var n=r2.templateSettings;i&&st(e,t,i)&&(t=r),e=cw(e),t=cv({},t,n,oL);var o,s,l=cv({},t.imports,n.imports,oL),c=cU(l),u=rb(l,c),d=0,h=t.interpolate||eJ,f="__p += '",p=e3((t.escape||eJ).source+"|"+h.source+"|"+(h===eT?eq:eJ).source+"|"+(t.evaluate||eJ).source+"|$","g"),g="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tT+"]")+` 4097`;e.replace(p,function(t,r,i,n,a,l){return i||(i=n),f+=e.slice(d,l).replace(eQ,rS),r&&(o=!0,f+=`' + 4098__e(`+r+`) + 4099'`),a&&(s=!0,f+=`'; 4100`+a+`; 4101__p += '`),i&&(f+=`' + 4102((__t = (`+i+`)) == null ? '' : __t) + 4103'`),d=l+t.length,t}),f+=`'; 4104`;var m=tt.call(t,"variable")&&t.variable;if(m){if(eF.test(m))throw new eX(a)}else f=`with (obj) { 4105`+f+` 4106} 4107`;f=(s?f.replace(ev,""):f).replace(e_,"$1").replace(ex,"$1;"),f="function("+(m||"obj")+`) { 4108`+(m?"":`obj || (obj = {}); 4109`)+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?`, __j = Array.prototype.join; 4110function print() { __p += __j.call(arguments, '') } 4111`:`; 4112`)+f+`return __p 4113}`;var w=uR(function(){return e0(c,g+"return "+f).apply(r,u)});if(w.source=f,lZ(w))throw w;return w}function uv(e){return cw(e).toLowerCase()}function u_(e){return cw(e).toUpperCase()}function ux(e,t,i){if((e=cw(e))&&(i||t===r))return rw(e);if(!e||!(t=nK(t)))return e;var n=r$(e),o=r$(t),s=r_(n,o),a=rx(n,o)+1;return n6(n,s,a).join("")}function uE(e,t,i){if((e=cw(e))&&(i||t===r))return e.slice(0,rU(e)+1);if(!e||!(t=nK(t)))return e;var n=r$(e),o=rx(n,r$(t))+1;return n6(n,0,o).join("")}function uC(e,t,i){if((e=cw(e))&&(i||t===r))return e.replace(eD,"");if(!e||!(t=nK(t)))return e;var n=r$(e),o=r_(n,r$(t));return n6(n,o).join("")}function uk(e,t){var i=S,n=A;if(lQ(t)){var o="separator"in t?t.separator:o;i="length"in t?ch(t.length):i,n="omission"in t?nK(t.omission):n}var s=(e=cw(e)).length;if(rI(e)){var a=r$(e);s=a.length}if(i>=s)return e;var l=i-rB(n);if(l<1)return n;var c=a?n6(a,0,l).join(""):e.slice(0,l);if(o===r)return c+n;
4113if(a&&(l+=c.length-l),l9(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=e3(o.source,cw(eW.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===r?l:h)}}else if(e.indexOf(nK(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+n}function uS(e){return(e=cw(e))&&ek.test(e)?e.replace(eE,rF):e}var uA=oy(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),uI=ow("toUpperCase");function uT(e,t,i){return e=cw(e),(t=i?r:t)===r?rT(e)?rW(e):ri(e):e.match(t)||[]}var uR=nD(function(e,t){try{return tQ(e,r,t)}catch(e){return lZ(e)?e:new eX(e)}}),uO=oz(function(e,t){return t0(t,function(t){i$(e,t=sk(t),ls(e[t],e))}),e});function uP(e){var t=null==e?0:e.length,r=oK();return e=t?t6(e,function(e){if("function"!=typeof e[1])throw new e4(s);return[r(e[0]),e[1]]}):[],nD(function(r){for(var i=-1;++i<t;){var n=e[i];if(tQ(n[0],this,r))return tQ(n[1],this,r)}})}function uN(e){return iq(iz(e,d))}function uM(e){return function(){return e}}function uD(e,t){return null==e||e!=e?t:e}var uL=ox(),uj=ox(!0);function uB(e){return e}function u$(e){return nm("function"==typeof e?e:iz(e,d))}function uU(e){return n_(iz(e,d))}function uF(e,t){return nx(e,iz(t,d))}var uz=nD(function(e,t){return function(r){return nn(r,e,t)}}),uq=nD(function(e,t){return function(r){return nn(e,r,t)}});function uW(e,t,r){var i=cU(t),n=i5(t,i);null!=r||lQ(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=i5(t,cU(t)));var o=!(lQ(r)&&"chain"in r)||!!r.chain,s=lG(e);return t0(n,function(r){var i=t[r];e[r]=i,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=ol(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,t8([this.value()],arguments))})}),e}function uH(){return tU._===this&&(tU._=ts),this}function uV(){}function uZ(e){return e=ch(e),nD(function(t){return nk(t,e)})}var uK=oS(t6),uG=oS(t2),uY=oS(re);function uJ(e){return sr(e)?ru(sk(e)):nT(e)}function uQ(e){return function(t){return null==e?r:i4(e,t)}}var uX=oT(),u0=oT(!0);function u1(){return[]}function u2(){return!1}function u3(){return{}}function u5(){return""}function u4(){return!0}function u6(e,t){if((e=ch(e))<1||e>M)return[];var r=j,i=t$(e,j);t=oK(t),e-=j;for(var n=rg(i,t);++r<e;)t(r);return n}function u8(e){return lL(e)?t6(e,sk):ci(e)?[e]:ol(sC(cw(e)))}function u7(e){var t=++tr;return cw(e)+t}var u9=ok(function(e,t){return e+t},0),de=oP("ceil"),dt=ok(function(e,t){return e/t},1),dr=oP("floor");function di(e){return e&&e.length?iY(e,uB,i7):r}function dn(e,t){return e&&e.length?iY(e,oK(t,2),i7):r}function ds(e){return rc(e,uB)}function da(e,t){return rc(e,oK(t,2))}function dl(e){return e&&e.length?iY(e,uB,nb):r}function dc(e,t){return e&&e.length?iY(e,oK(t,2),nb):r}var du=ok(function(e,t){return e*t},1),dd=oP("round"),dh=ok(function(e,t){return e-t},0);function df(e){return e&&e.length?rp(e,uB):0}function dp(e,t){return e&&e.length?rp(e,oK(t,2)):0}return r2.after=li,r2.ary=ln,r2.assign=cy,r2.assignIn=cb,r2.assignInWith=cv,r2.assignWith=c_,r2.at=cx,r2.before=lo,r2.bind=ls,r2.bindAll=uO,r2.bindKey=la,r2.castArray=lS,r2.chain=aT,r2.chunk=sT,r2.compact=sR,r2.concat=sO,r2.cond=uP,r2.conforms=uN,r2.constant=uM,r2.countBy=aU,r2.create=cE,r2.curry=ll,r2.curryRight=lc,r2.debounce=lu,r2.defaults=cC,r2.defaultsDeep=ck,r2.defer=ld,r2.delay=lh,r2.difference=sP,r2.differenceBy=sN,r2.differenceWith=sM,r2.drop=sD,r2.dropRight=sL,r2.dropRightWhile=sj,r2.dropWhile=sB,r2.fill=s$,r2.filter=az,r2.flatMap=aH,r2.flatMapDeep=aV,r2.flatMapDepth=aZ,r2.flatten=sz,r2.flattenDeep=sq,r2.flattenDepth=sW,r2.flip=lf,r2.flow=uL,r2.flowRight=uj,r2.fromPairs=sH,r2.functions=cP,r2.functionsIn=cN,r2.groupBy=aY,r2.initial=sK,r2.intersection=sG,r2.intersectionBy=sY,r2.intersectionWith=sJ,r2.invert=cj,r2.invertBy=cB,r2.invokeMap=aQ,r2.iteratee=u$,r2.keyBy=aX,r2.keys=cU,r2.keysIn=cF,r2.map=a0,r2.mapKeys=cz,r2.mapValues=cq,r2.matches=uU,r2.matchesProperty=uF,r2.memoize=lp,r2.merge=cW,r2.mergeWith=cH,r2.method=uz,r2.methodOf=uq,r2.mixin=uW,r2.negate=lg,r2.nthArg=uZ,r2.omit=cV,r2.omitBy=cZ,r2.once=lm,r2.orderBy=a1,r2.over=uK,r2.overArgs=lw,r2.overEvery=uG,r2.overS
vendor: 4,085 bytes, line 4113
4113ome=uY,r2.partial=ly,r2.partialRight=lb,r2.partition=a2,r2.pick=cK,r2.pickBy=cG,r2.property=uJ,r2.propertyOf=uQ,r2.pull=s2,r2.pullAll=s3,r2.pullAllBy=s5,r2.pullAllWith=s4,r2.pullAt=s6,r2.range=uX,r2.rangeRight=u0,r2.rearg=lv,r2.reject=a4,r2.remove=s8,r2.rest=l_,r2.reverse=s7,r2.sampleSize=a8,r2.set=cJ,r2.setWith=cQ,r2.shuffle=a7,r2.slice=s9,r2.sortBy=lt,r2.sortedUniq=as,r2.sortedUniqBy=aa,r2.split=um,r2.spread=lx,r2.tail=al,r2.take=ac,r2.takeRight=au,r2.takeRightWhile=ad,r2.takeWhile=ah,r2.tap=aR,r2.throttle=lE,r2.thru=aO,r2.toArray=cu,r2.toPairs=cX,r2.toPairsIn=c0,r2.toPath=u8,r2.toPlainObject=cg,r2.transform=c1,r2.unary=lC,r2.union=af,r2.unionBy=ap,r2.unionWith=ag,r2.uniq=am,r2.uniqBy=aw,r2.uniqWith=ay,r2.unset=c2,r2.unzip=ab,r2.unzipWith=av,r2.update=c3,r2.updateWith=c5,r2.values=c4,r2.valuesIn=c6,r2.without=a_,r2.words=uT,r2.wrap=lk,r2.xor=ax,r2.xorBy=aE,r2.xorWith=aC,r2.zip=ak,r2.zipObject=aS,r2.zipObjectDeep=aA,r2.zipWith=aI,r2.entries=cX,r2.entriesIn=c0,r2.extend=cb,r2.extendWith=cv,uW(r2,r2),r2.add=u9,r2.attempt=uR,r2.camelCase=ue,r2.capitalize=ut,r2.ceil=de,r2.clamp=c8,r2.clone=lA,r2.cloneDeep=lT,r2.cloneDeepWith=lR,r2.cloneWith=lI,r2.conformsTo=lO,r2.deburr=ur,r2.defaultTo=uD,r2.divide=dt,r2.endsWith=ui,r2.eq=lP,r2.escape=un,r2.escapeRegExp=uo,r2.every=aF,r2.find=aq,r2.findIndex=sU,r2.findKey=cS,r2.findLast=aW,r2.findLastIndex=sF,r2.findLastKey=cA,r2.floor=dr,r2.forEach=aK,r2.forEachRight=aG,r2.forIn=cI,r2.forInRight=cT,r2.forOwn=cR,r2.forOwnRight=cO,r2.get=cM,r2.gt=lN,r2.gte=lM,r2.has=cD,r2.hasIn=cL,r2.head=sV,r2.identity=uB,r2.includes=aJ,r2.indexOf=sZ,r2.inRange=c7,r2.invoke=c$,r2.isArguments=lD,r2.isArray=lL,r2.isArrayBuffer=lj,r2.isArrayLike=lB,r2.isArrayLikeObject=l$,r2.isBoolean=lU,r2.isBuffer=lF,r2.isDate=lz,r2.isElement=lq,r2.isEmpty=lW,r2.isEqual=lH,r2.isEqualWith=lV,r2.isError=lZ,r2.isFinite=lK,r2.isFunction=lG,r2.isInteger=lY,r2.isLength=lJ,r2.isMap=l0,r2.isMatch=l1,r2.isMatchWith=l2,r2.isNaN=l3,r2.isNative=l5,r2.isNil=l6,r2.isNull=l4,r2.isNumber=l8,r2.isObject=lQ,r2.isObjectLike=lX,r2.isPlainObject=l7,r2.isRegExp=l9,r2.isSafeInteger=ce,r2.isSet=ct,r2.isString=cr,r2.isSymbol=ci,r2.isTypedArray=cn,r2.isUndefined=co,r2.isWeakMap=cs,r2.isWeakSet=ca,r2.join=sQ,r2.kebabCase=us,r2.last=sX,r2.lastIndexOf=s0,r2.lowerCase=ua,r2.lowerFirst=ul,r2.lt=cl,r2.lte=cc,r2.max=di,r2.maxBy=dn,r2.mean=ds,r2.meanBy=da,r2.min=dl,r2.minBy=dc,r2.stubArray=u1,r2.stubFalse=u2,r2.stubObject=u3,r2.stubString=u5,r2.stubTrue=u4,r2.multiply=du,r2.nth=s1,r2.noConflict=uH,r2.noop=uV,r2.now=lr,r2.pad=uc,r2.padEnd=uu,r2.padStart=ud,r2.parseInt=uh,r2.random=c9,r2.reduce=a3,r2.reduceRight=a5,r2.repeat=uf,r2.replace=up,r2.result=cY,r2.round=dd,r2.runInContext=e,r2.sample=a6,r2.size=a9,r2.snakeCase=ug,r2.some=le,r2.sortedIndex=ae,r2.sortedIndexBy=at,r2.sortedIndexOf=ar,r2.sortedLastIndex=ai,r2.sortedLastIndexBy=an,r2.sortedLastIndexOf=ao,r2.startCase=uw,r2.startsWith=uy,r2.subtract=dh,r2.sum=df,r2.sumBy=dp,r2.template=ub,r2.times=u6,r2.toFinite=cd,r2.toInteger=ch,r2.toLength=cf,r2.toLower=uv,r2.toNumber=cp,r2.toSafeInteger=cm,r2.toString=cw,r2.toUpper=u_,r2.trim=ux,r2.trimEnd=uE,r2.trimStart=uC,r2.truncate=uk,r2.unescape=uS,r2.uniqueId=u7,r2.upperCase=uA,r2.upperFirst=uI,r2.each=aK,r2.eachRight=aG,r2.first=sV,uW(r2,function(){var e={};return i2(r2,function(t,r){tt.call(r2.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),r2.VERSION=i,t0(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){r2[e].placeholder=r2}),t0(["drop","take"],function(e,t){r6.prototype[e]=function(i){i=i===r?1:tB(ch(i),0);var n=this.__filtered__&&!t?new r6(this):this.clone();return n.__filtered__?n.__takeCount__=t$(i,n.__takeCount__):n.__views__.push({size:t$(i,j),type:e+(n.__dir__<0?"Right":"")}),n},r6.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),t0(["filter","map","takeWhile"],function(e,t){var r=t+1,i=r==R||r==P;r6.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oK(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}}),t0(["head","last"],function(e,t){var r="take"+(t?"Right":"");
4113r6.prototype[e]=function(){return this[r](1).value()[0]}}),t0(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");r6.prototype[e]=function(){return this.__filtered__?new r6(this):this[r](1)}}),r6.prototype.compact=function(){return this.filter(uB)},r6.prototype.find=function(e){return this.filter(e).head()},r6.prototype.findLast=function(e){return this.reverse().find(e)},r6.prototype.invokeMap=nD(function(e,t){return"function"==typeof e?new r6(this):this.map(function(r){return nn(r,e,t)})}),r6.prototype.reject=function(e){return this.filter(lg(oK(e)))},r6.prototype.slice=function(e,t){e=ch(e);var i=this;return i.__filtered__&&(e>0||t<0)?new r6(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==r&&(i=(t=ch(t))<0?i.dropRight(-t):i.take(t-e)),i)},r6.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},r6.prototype.toArray=function(){return this.take(j)},i2(r6.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=r2[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);o&&(r2.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,l=t instanceof r6,c=a[0],u=l||lL(t),d=function(e){var t=o.apply(r2,t8([e],a));return n&&h?t[0]:t};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=s&&!h,g=l&&!f;if(!s&&u){t=g?t:new r6(this);var m=e.apply(t,a);return m.__actions__.push({func:aO,args:[d],thisArg:r}),new r4(m,h)}return p&&g?e.apply(this,a):(m=this.thru(d),p?n?m.value()[0]:m.value():m)})}),t0(["pop","push","shift","sort","splice","unshift"],function(e){var t=e6[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);r2.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(lL(n)?n:[],e)}return this[r](function(r){return t.apply(lL(r)?r:[],e)})}}),i2(r6.prototype,function(e,t){var r=r2[t];if(r){var i=r.name+"";tt.call(rZ,i)||(rZ[i]=[]),rZ[i].push({name:t,func:r})}}),rZ[oE(r,w).name]=[{name:"wrapper",func:r}],r6.prototype.clone=r8,r6.prototype.reverse=r7,r6.prototype.value=r9,r2.prototype.at=aP,r2.prototype.chain=aN,r2.prototype.commit=aM,r2.prototype.next=aD,r2.prototype.plant=aj,r2.prototype.reverse=aB,r2.prototype.toJSON=r2.prototype.valueOf=r2.prototype.value=a$,r2.prototype.first=r2.prototype.head,tw&&(r2.prototype[tw]=aL),r2}();tz?((tz.exports=rH)._=rH,tF._=rH):tU._=rH}).call(ln)}(lo,lo.exports);var ls=Object.defineProperty,la=Object.defineProperties,ll=Object.getOwnPropertyDescriptors,lc=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,ld=Object.prototype.propertyIsEnumerable,lh=(e,t,r)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lf=(e,t)=>{for(var r in t||(t={}))lu.call(t,r)&&lh(e,r,t[r]);if(lc)for(var r of lc(t))ld.call(t,r)&&lh(e,r,t[r]);return e},lp=(e,t)=>la(e,ll(t));function lg(e,t,r){var i;let n=(0,nS.DQe)(e);return(null==(i=t.rpcMap)?void 0:i[n.reference])||`${lr}?chainId=${n.namespace}:${n.reference}&projectId=${r}`}function lm(e){return e.includes(":")?e.split(":")[1]:e}function lw(e){return e.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}function ly(e,t){let r=Object.keys(t.namespaces).filter(t=>t.includes(e));if(!r.length)return[];let i=[];return r.forEach(e=>{let r=t.namespaces[e].accounts;i.push(...r)}),i}function lb(e={},t={}){let r=lv(e),i=lv(t);return lo.exports.merge(r,i)}function lv(e){var t,r,i,n;let o={};if(!(0,nS.L5o)(e))return o;for(let[s,a]of Object.entries(e)){let e=(0,nS.gpE)(s)?[s]:a.chains,l=a.methods||[],c=a.events||[],u=a.rpcMap||{},d=(0,nS.Maj)(s);o[d]=lp(lf(lf({},o[d]),a),{chains:(0,nS.eGA)(e,null==(t=o[d])?void 0:t.chains),methods:(0,nS.eGA)(l,null==(r=o[d])?void 0:r.methods),events:(0,nS.eGA)(c,null==(i=o[d])?void 0:i.events),rpcMap:lf(lf({},u),null==(n=o[d])?void 0:n.rpcMap)})}return o}function l_(e){return e.includes(":")?e.split(":")[2]:e}function lx(e){let t={};for(let[r,i]of Object.entries(e)){let e=i.methods||[],n=i.events||[],o=i.accounts||[],s=(0,nS.gpE)(r)?[r]:i.chains?i.chains:lw(i.accounts);t[r]={chains:s,methods:e,events:n,accounts:o}}return t}function lE(e){return"number"==typeof e?e:e.includes("0x")?parseInt(e,16):isNaN(Number(e=e.includes(":")?e.split(":")[1]:e))?e:Number(e)}let lC={},lk=e=>lC[e],lS=(e,t)=>{lC[e]=t};class lA{constructor(e){this.name="polkadot",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(li,`${this.name}:${e}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let i=lm(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||lg(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new nT.r(new a6(r,lk("disableProviderPing")))}}class lI{constructor(e){this.name="eip155",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t),this.chainId=parseInt(e),this.events.emit(li,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let r=t||lg(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new nT.r(new a6(r,lk("disableProviderPing")))}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let i=parseInt(lm(t));e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}async handleSwitchChain(e){var t,r;let i=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:"0x0",n=parseInt(i=i.startsWith("0x")?i:`0x${i}`,16);if(this.isChainApproved(n))this.setDefaultChain(`${n}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:i}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${n}`);else throw Error(`Failed to switch to chain 'eip155:${n}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}}class lT{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(li,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let i=lm(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||lg(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new nT.r(new a6(r,lk("disableProviderPing")))}}class lR{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(li,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let i=lm(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||lg(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new nT.r(new a6(r,lk("disableProviderPing")))}}class lO{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(li,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let r=this.getCardanoRPCUrl(t),i=lm(t);e[i]=this.createHttpProvider(i,r)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||this.getCardanoRPCUrl(e);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new nT.r(new a6(r,lk("disableProviderPing")))}}class lP{constructor(e){this.name="elrond",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(li,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let i=lm(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||lg(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new nT.r(new a6(r,lk("disableProviderPing")))}}class lN{constructor(e){this.name="multiversx",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(li,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let i=lm(t);e[i]=this.createHttpProvider(i,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||lg(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new nT.r(new a6(r,lk("disableProviderPing")))}}class lM{constructor(e){this.name="near",this.namespace=e.namespace,this.events=lk("events"),this.client=lk("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return th
4113is.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let r=t||lg(`${this.name}:${e}`,this.namespace);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(li,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||lg(e,this.namespace);return typeof r>"u"?void 0:new nT.r(new a6(r,lk("disableProviderPing")))}}var lD=Object.defineProperty,lL=Object.defineProperties,lj=Object.getOwnPropertyDescriptors,lB=Object.getOwnPropertySymbols,l$=Object.prototype.hasOwnProperty,lU=Object.prototype.propertyIsEnumerable,lF=(e,t,r)=>t in e?lD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lz=(e,t)=>{for(var r in t||(t={}))l$.call(t,r)&&lF(e,r,t[r]);if(lB)for(var r of lB(t))lU.call(t,r)&&lF(e,r,t[r]);return e},lq=(e,t)=>lL(e,lj(t));class lW{constructor(e){this.events=new(i1()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger="u">typeof e?.logger&&"string"!=typeof e?.logger?e.logger:(0,nd.gw)((0,nd.jI)({level:e?.logger||a8})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){let t=new lW(e);return await t.initialize(),t}async request(e,t,r){let[i,n]=this.validateChain(t);if(!this.session)throw Error("Please call connect() before request()");return await this.getProvider(i).request({request:lz({},e),chainId:`${i}:${n}`,topic:this.session.topic,expiry:r})}sendAsync(e,t,r,i){let n=new Date().getTime();this.request(e,r,i).then(e=>t(null,(0,nR.formatJsonRpcResult)(n,e))).catch(e=>t(e,void 0))}async enable(){if(!this.client)throw Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:(0,nS.D6H)("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e){if(!this.client)throw Error("Sign Client not initialized");this.setNamespaces(e),await this.cleanupPendingPairings();let{uri:t,response:r}=await this.client.authenticate(e);t&&(this.uri=t,this.events.emit("display_uri",t));let i=await r();if(this.session=i.session,this.session){let e=lx(this.session.namespaces);this.namespaces=lb(this.namespaces,e),this.persist("namespaces",this.namespaces),this.onConnect()}return i}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw Error("Max auto pairing attempts reached");let{uri:r,approval:i}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await i().then(e=>{this.session=e;let t=lx(e.namespaces);this.namespaces=lb(this.namespaces,t),this.persist("namespaces",this.namespaces)}).catch(e=>{if(e.message!==af)throw e;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{if(!this.session)return;let[r,i]=this.validateChain(e);this.getProvider(r).setDefaultChain(i,t)}catch(e){if(!/Please call connect/.test(e.message))throw e}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if((0,nS.qt8)(t)){for(let r of t)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await aV.init({logger:this.providerOpts.logger||a8,relayUrl:this.providerOpts.relayUrl||a7,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw Error("Sign Client not initialized");if(!this.session)throw Error("Session not initialized. Please call connect() before enable()");let e=[...new Set(Object.keys(this.session.namespaces).map(e=>(0,nS.Maj)(e)))];lS("client",this.client),lS("events",this.events),lS("disableProviderPing",this.disableProviderPing),e.forEach(e
4113=>{if(!this.session)return;let t=ly(e,this.session),r=lw(t),i=lq(lz({},lb(this.namespaces,this.optionalNamespaces)[e]),{accounts:t,chains:r});switch(e){case"eip155":this.rpcProviders[e]=new lI({namespace:i});break;case"solana":this.rpcProviders[e]=new lT({namespace:i});break;case"cosmos":this.rpcProviders[e]=new lR({namespace:i});break;case"polkadot":this.rpcProviders[e]=new lA({namespace:i});break;case"cip34":this.rpcProviders[e]=new lO({namespace:i});break;case"elrond":this.rpcProviders[e]=new lP({namespace:i});break;case"multiversx":this.rpcProviders[e]=new lN({namespace:i});break;case"near":this.rpcProviders[e]=new lM({namespace:i})}})}registerEventListeners(){if(typeof this.client>"u")throw Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:r}=t;if("accountsChanged"===r.name){let e=r.data;e&&(0,nS.qt8)(e)&&this.events.emit("accountsChanged",e.map(l_))}else if("chainChanged"===r.name){let e=t.chainId,r=t.event.data,i=(0,nS.Maj)(e),n=lE(e)!==lE(r)?`${i}:${lE(r)}`:e;this.onChainChanged(n)}else this.events.emit(r.name,r.data);this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var r;let{namespaces:i}=t,n=null==(r=this.client)?void 0:r.session.get(e);this.session=lq(lz({},n),{namespaces:i}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",lq(lz({},(0,nS.D6H)("USER_DISCONNECTED")),{data:e.topic}))}),this.on(li,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace(null==(t=this.session)?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:r,sessionProperties:i}=e;t&&Object.keys(t).length&&(this.namespaces=t),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=i,this.persist("namespaces",t),this.persist("optionalNamespaces",r)}validateChain(e){let[t,r]=e?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,r];if(t&&!Object.keys(this.namespaces||{}).map(e=>(0,nS.Maj)(e)).includes(t))throw Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&r)return[t,r];let i=(0,nS.Maj)(Object.keys(this.namespaces)[0]),n=this.rpcProviders[i].getDefaultChain();return[i,n]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){if(!this.namespaces)return;let[r,i]=this.validateChain(e);i&&(t||this.getProvider(r).setDefaultChain(i),this.namespaces[r]?this.namespaces[r].defaultChain=i:this.namespaces[`${r}:${i}`]?this.namespaces[`${r}:${i}`].defaultChain=i:this.namespaces[`${r}:${i}`]={defaultChain:i},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",i))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${lt}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${lt}/${e}`)}}let lH=lW,lV="wc",lZ="ethereum_provider",lK=`${lV}@2:${lZ}:`,lG="https://rpc.walletconnect.com/v1/",lY=["eth_sendTransaction","personal_sign"],lJ=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"],lQ=["chainChanged","accountsChanged"],lX=["chainChanged","accountsChanged","message","disconnect","connect"];var l0=Object.defineProperty,l1=Object.defineProperties,l2=Object.getOwnPropertyDescriptors,l3=Object.getOwnPropertySymbols,l5=Object.prototype.hasOwnProperty,l4=Object.prototype.propertyIsEnumerable,l6=(e,t,r)=>t in e?l0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,l8=(e,t)=>
4113{for(var r in t||(t={}))l5.call(t,r)&&l6(e,r,t[r]);if(l3)for(var r of l3(t))l4.call(t,r)&&l6(e,r,t[r]);return e},l7=(e,t)=>l1(e,l2(t));function l9(e){return Number(e[0].split(":")[1])}function ce(e){return`0x${e.toString(16)}`}function ct(e){let{chains:t,optionalChains:r,methods:i,optionalMethods:n,events:o,optionalEvents:s,rpcMap:a}=e;if(!(0,i2.qt8)(t))throw Error("Invalid chains");let l={chains:t,methods:i||lY,events:o||lQ,rpcMap:l8({},t.length?{[l9(t)]:a[l9(t)]}:{})},c=o?.filter(e=>!lQ.includes(e)),u=i?.filter(e=>!lY.includes(e));if(!r&&!s&&!n&&!(null!=c&&c.length)&&!(null!=u&&u.length))return{required:t.length?l:void 0};let d={chains:[...new Set(c?.length&&u?.length||!r?l.chains.concat(r||[]):r)],methods:[...new Set(l.methods.concat(null!=n&&n.length?n:lJ))],events:[...new Set(l.events.concat(null!=s&&s.length?s:lX))],rpcMap:a};return{required:t.length?l:void 0,optional:r.length?d:void 0}}class cr{constructor(){this.events=new i0.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=lK,this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new cr;return await t.initialize(e),t}async request(e,t){return await this.signer.request(e,this.formatChainId(this.chainId),t)}sendAsync(e,t,r){this.signer.sendAsync(e,t,this.formatChainId(this.chainId),r)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:r}=ct(this.rpc);try{let i=await new Promise(async(i,n)=>{var o;this.rpc.showQrModal&&(null==(o=this.modal)||o.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),n(Error("Connection request reset. Please try again.")))})),await this.signer.connect(l7(l8({namespaces:l8({},t&&{[this.namespace]:t})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:e?.pairingTopic})).then(e=>{i(e)}).catch(e=>{n(Error(e.message))})});if(!i)return;let n=(0,i2.guN)(i.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:n),this.setAccounts(n),this.events.emit("connect",{chainId:ce(this.chainId)})}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async authenticate(e){if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:e?.chains});try{let t=await new Promise(async(t,r)=>{var i;this.rpc.showQrModal&&(null==(i=this.modal)||i.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),r(Error("Connection request reset. Please try again.")))})),await this.signer.authenticate(l7(l8({},e),{chains:this.rpc.chains})).then(e=>{t(e)}).catch(e=>{r(Error(e.message))})}),r=t.session;if(r){let e=(0,i2.guN)(r.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:e),this.setAccounts(e),this.events.emit("connect",{chainId:ce(this.chainId)})}return t}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",e=>{let{params:t}=e,{event:r}=t;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",ce(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",l7(l8({},(0,i2.D6H)("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,r;this.rpc.showQrModal&&(null==(t=this.modal)||t.closeModal(),null==(r=this.modal)||r.openModal({uri:e})),this.events.emit("display_uri",e)})}switchEthereumChain(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return"string"==typeof e&&e.startsWith(`${this.namespace}:`)}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(e=>this.isCompatibleChainId(e)).map(e=>this.parseChainId(e));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",ce(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.switchEthereumChain(t)}}parseAccountId(e){let[t,r,i]=e.split(":");return{chainId:`${t}:${r}`,address:i}}setAccounts(e){this.accounts=e.filter(e=>this.parseChainId(this.parseAccountId(e).chainId)===this.chainId).map(e=>this.parseAccountId(e).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,r;let i=null!=(t=e?.chains)?t:[],n=null!=(r=e?.optionalChains)?r:[],o=i.concat(n);if(!o.length)throw Error("No chains specified in either `chains` or `optionalChains`");let s=i.length?e?.methods||lY:[],a=i.length?e?.events||lQ:[],l=e?.optionalMethods||[],c=e?.optionalEvents||[],u=e?.rpcMap||this.buildRpcMap(o,e.projectId),d=e?.qrModalOptions||void 0;return{chains:i?.map(e=>this.formatChainId(e)),optionalChains:n.map(e=>this.formatChainId(e)),methods:s,events:a,optionalMethods:l,optionalEvents:c,rpcMap:u,showQrModal:!!(null!=e&&e.showQrModal),qrModalOptions:d,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let r={};
4113return e.forEach(e=>{r[e]=this.getRpcUrl(e,t)}),r}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?l9(this.rpc.chains):l9(this.rpc.optionalChains),this.signer=await lH.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storageOptions:e.storageOptions}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{let{WalletConnectModal:t}=await r.e(4978).then(r.bind(r,44978));e=t}catch{throw Error("To use QR modal, please install @walletconnect/modal package")}if(e)try{this.modal=new e(l8({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(e){throw this.signer.logger.error(e),Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:r,rpcMap:i}=e;t&&(0,i2.qt8)(t)&&(this.rpc.chains=t.map(e=>this.formatChainId(e)),t.forEach(e=>{this.rpc.rpcMap[e]=i?.[e]||this.getRpcUrl(e)})),r&&(0,i2.qt8)(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map(e=>this.formatChainId(e)),r.forEach(e=>{this.rpc.rpcMap[e]=i?.[e]||this.getRpcUrl(e)}))}getRpcUrl(e,t){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[e])||`${lG}?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),t=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:t?.accounts),this.setAccounts(t?.accounts)}catch(e){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(e),await this.disconnect().catch(e=>this.signer.logger.warn(e))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return"string"==typeof e||e instanceof String?[this.parseAccount(e)]:e.map(e=>this.parseAccount(e))}}var ci=r(8810),cn=r(61728),co=r(97327),cs=r(41607),ca=r(89210);let cl=new co.Yd(cs.i),cc={},cu=ca.O$.from(0),cd=ca.O$.from(-1);function ch(e,t,r,i){let n={fault:t,operation:r};return void 0!==i&&(n.value=i),cl.throwError(e,co.Yd.errors.NUMERIC_FAULT,n)}let cf="0";for(;cf.length<256;)cf+=cf;function cp(e){if("number"!=typeof e)try{e=ca.O$.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+cf.substring(0,e):cl.throwArgumentError("invalid decimal size","decimals",e)}function cg(e,t){null==t&&(t=0);let r=cp(t),i=(e=ca.O$.from(e)).lt(cu);i&&(e=e.mul(cd));let n=e.mod(r).toString();for(;n.length<r.length-1;)n="0"+n;n=n.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=e.div(r).toString();return e=1===r.length?o:o+"."+n,i&&(e="-"+e),e}function cm(e,t){null==t&&(t=0);let r=cp(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||cl.throwArgumentError("invalid decimal value","value",e);let i="-"===e.substring(0,1);i&&(e=e.substring(1)),"."===e&&cl.throwArgumentError("missing value","value",e);let n=e.split(".");n.length>2&&cl.throwArgumentError("too many decimal points","value",e);let o=n[0],s=n[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&ch("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.length<r.length-1;)s+="0";let a=ca.O$.from(o),l=ca.O$.from(s),c=a.mul(r).add(l);return i&&(c=c.mul(cd)),c}
vendor: 1,075 bytes, line 4113
4113class cw{constructor(e,t,r,i){e!==cc&&cl.throwError("cannot use FixedFormat constructor; use FixedFormat.from",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=i,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(i),this._multiplier=cp(i),Object.freeze(this)}static from(e){if(e instanceof cw)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,i=18;if("string"==typeof e){if("fixed"===e);else if("ufixed"===e)t=!1;else{let n=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);n||cl.throwArgumentError("invalid fixed format","format",e),t="u"!==n[1],r=parseInt(n[2]),i=parseInt(n[3])}}else if(e){let n=(t,r,i)=>null==e[t]?i:(typeof e[t]!==r&&cl.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=n("signed","boolean",t),r=n("width","number",r),i=n("decimals","number",i)}return r%8&&cl.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&cl.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new cw(cc,t,r,i)}}
4113class cy{constructor(e,t,r,i){e!==cc&&cl.throwError("cannot use FixedNumber constructor; use FixedNumber.from",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&cl.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=cm(this._value,this.format.decimals),r=cm(e._value,e.format.decimals);return cy.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=cm(this._value,this.format.decimals),r=cm(e._value,e.format.decimals);return cy.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=cm(this._value,this.format.decimals),r=cm(e._value,e.format.decimals);return cy.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=cm(this._value,this.format.decimals),r=cm(e._value,e.format.decimals);return cy.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=cy.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(cb.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=cy.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(cb.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&cl.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=cy.from("1"+cf.substring(0,e),this.format),i=cv.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&cl.throwArgumentError("invalid byte width","width",e);let t=ca.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,ci.$m)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return cy.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,ca.Zm)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),cy.fromString(cg(e,t),cw.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=cw.from(t),i=cm(e,r.decimals);!r.signed&&i.lt(cu)&&ch("unsigned value cannot be negative","overflow","value",e);let n=null;return r.signed?n=i.toTwos(r.width).toHexString():(n=i.toHexString(),n=(0,ci.$m)(n,r.width/8)),new cy(cc,n,cg(i,r.decimals),r)}static fromBytes(e,t){null==t&&(t="fixed");let r=cw.from(t);if((0,ci.lE)(e).length>r.width/8)throw Error("overflow");let i=ca.O$.from(e);return r.signed&&(i=i.fromTwos(r.width)),new cy(cc,i.toTwos((r.signed?0:1)+r.width).toHexString(),cg(i,r.decimals),r)}static from(e,t){if("string"==typeof e)return cy.fromString(e,t);if((0,ci._t)(e))return cy.fromBytes(e,t);try{return cy.fromValue(e,0,t)}catch(e){if(e.code!==co.Yd.errors.INVALID_ARGUMENT)throw e}return cl.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let cb=cy.from(1),cv=cy.from("0.5"),c_="units/5.7.0",cx=new co.Yd(c_),cE=["wei","kwei","mwei","gwei","szabo","finney","ether"];function cC(e,t){if("string"==typeof t){let e=cE.indexOf(t);-1!==e&&(t=3*e)}return cg(e,null!=t?t:18)}function ck(e,t){if("string"!=typeof e&&cx.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=cE.indexOf(t);-1!==e&&(t=3*e)}return cm(e,null!=t?t:18)}function cS(e){return cC(e,18)}var cA=r(91894),cI=r(42246),cT=r(31240),cR=r(63533),cO=r(86691);let cP=null;try{if(cP=WebSocket,null==cP)throw Error("inject please")}catch(t){let e=new co.Yd(cO.i);cP=function(){e.throwError("WebSockets not supported in this environment",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var cN=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let cM=new co.Yd(cO.i),cD=1;class cL extends cR.r{constructor(e,t){"any"===t&&cM.throwError("WebSocketProvider does not support 'any' network yet",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof e?super(e,t):super("_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,cT.zG)(this,"_websocket",new cP(this.connection.url)):(0,cT.zG)(this,"_websocket",e),(0,cT.zG)(this,"_requests",{}),(0,cT.zG)(this,"_subs",{}),(0,cT.zG)(this,"_subIds",{}),(0,cT.zG)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>
4113{this._wsReady=!0,Object.keys(this._requests).forEach(e=>{this.websocket.send(this._requests[e].payload)})},this.websocket.onmessage=e=>{let t=e.data,r=JSON.parse(t);if(null!=r.id){let e=String(r.id),i=this._requests[e];if(delete this._requests[e],void 0!==r.result)i.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(i.payload),response:r.result,provider:this});else{let e=null;r.error?(e=Error(r.error.message||"unknown error"),(0,cT.zG)(e,"code",r.error.code||null),(0,cT.zG)(e,"response",t)):e=Error("unknown error"),i.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(i.payload),provider:this})}}else if("eth_subscription"===r.method){let e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};let r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){cM.throwError("cannot reset events block on WebSocketProvider",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){cM.throwError("cannot set polling interval on WebSocketProvider",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return cN(this,void 0,void 0,function*(){return null})}set polling(e){e&&cM.throwError("cannot set polling on WebSocketProvider",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){let r=cD++;return new Promise((i,n)=>{function o(e,t){return e?n(e):i(t)}let s=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(s),provider:this}),this._requests[String(r)]={callback:o,payload:s},this._wsReady&&this.websocket.send(s)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return cN(this,void 0,void 0,function*(){let i=this._subIds[e];null==i&&(i=Promise.all(t).then(e=>this.send("eth_subscribe",e)),this._subIds[e]=i);let n=yield i;this._subs[n]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{let t=ca.O$.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],e=>{this.emit("pending",e)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))});break;case"tx":{let t=e=>{let t=e.hash;this.getTransactionReceipt(t).then(e=>{e&&this.emit(t,e)})};t(e),this._subscribe("tx",["newHeads"],e=>{this._events.filter(e=>"tx"===e.type).forEach(t)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter(e=>"tx"===e.type).length)return;t="tx"}else if(this.listenerCount(e.event))return;let r=this._subIds[t];r&&(delete this._subIds[t],r.then(e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))}))}destroy(){return cN(this,void 0,void 0,function*(){this.websocket.readyState===cP.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}var cj=r(63449),cB=function(e,t,r,i){function n(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):n(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())})};let c$=new co.Yd(cO.i);class cU extends cR.r{detectNetwork(){let e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return cB(this,void 0,void 0,function*(){let t=this.network;return null==t&&((t=yield e.detectNetwork.call(this))||c$.throwError("no network detected",co.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,cT.zG)(this,"_network",t),this.emit("network",t,null))),t})}}class cF extends cU{constructor(e,t){c$.checkAbstract(new.target,cF),e=(0,cT.tu)(new.target,"getNetwork")(e),super((0,cT.tu)(new.target,"getUrl")(e,t=(0,cT.tu)(new.target,"getApiKey")(t)),e),"string"==typeof t?(0,cT.zG)(this,"apiKey",t):null!=t&&Object.keys(t).forEach(e
4113=>{(0,cT.zG)(this,e,t[e])})}_startPending(){c$.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return c$.throwError("API provider does not support signing",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return c$.throwError("not implemented; sub-classes must override getUrl",co.Yd.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}let cz=new co.Yd(cO.i),cq="84842078b09946638c03157f83405213";class cW extends cL{constructor(e,t){let r=new cH(e,t),i=r.connection;i.password&&cz.throwError("INFURA WebSocket project secrets unsupported",co.Yd.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"}),super(i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,cT.zG)(this,"apiKey",r.projectId),(0,cT.zG)(this,"projectId",r.projectId),(0,cT.zG)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===cq}}class cH extends cF{static getWebSocketProvider(e,t){return new cW(e,t)}static getApiKey(e){let t={apiKey:cq,projectId:cq,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(cz.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),cz.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:cz.throwError("unsupported network",co.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let i={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===cq&&(0,cj.vh)(),Promise.resolve(!0))};return null!=t.projectSecret&&(i.user="",i.password=t.projectSecret),i}isCommunityResource(){return this.projectId===cq}}let cV={WALLET_ID:"@w3m/wallet_id",ERROR_CODE_UNRECOGNIZED_CHAIN_ID:4902,ERROR_CODE_DEFAULT:5e3},cZ={getCaipDefaultChain(e){if(e)return{id:`${iJ.EIP155}:${e.chainId}`,name:e.name,imageId:iQ.EIP155NetworkImageIds[e.chainId]}},hexStringToNumber:e=>parseInt(e.startsWith("0x")?e.slice(2):e,16),numberToHexString:e=>`0x${e.toString(16)}`,async getUserInfo(e){let[t,r]=await Promise.all([cZ.getAddress(e),cZ.getChainId(e)]);return{chainId:r,address:t}},getChainId:async e=>Number(await e.request({method:"eth_chainId"})),async getAddress(e){let[t]=await e.request({method:"eth_accounts"});return t},async addEthereumChain(e,t){await e.request({method:"wallet_addEthereumChain",params:[{chainId:cZ.numberToHexString(t.chainId),rpcUrls:[t.rpcUrl],chainName:t.name,nativeCurrency:{name:t.currency,decimals:18,symbol:t.currency},blockExplorerUrls:[t.explorerUrl],iconUrls:[iQ.EIP155NetworkImageIds[t.chainId]]}]})}};var cK=r(55543),cG=r(33085);let cY=(0,cG.sj)({provider:void 0,providerType:void 0,address:void 0,chainId:void 0,isConnected:!1}),cJ={state:cY,subscribeKey:(e,t)=>(0,cK.VW)(cY,e,t),subscribe:e=>(0,cG.Ld)(cY,()=>e(cY)),setProvider(e){e&&(cY.provider=(0,cG.iH)(e))},setProviderType(e){cY.providerType=e},setAddress(e){cY.address=e},setPreferredAccountType(e){cY.preferredAccountType=e},setChainId(e){cY.chainId=e},setIsConnected(e){cY.isConnected=e},setError(e){cY.error=e},reset(){cY.provider=void 0,cY.address=void 0,cY.chainId=void 0,cY.providerType=void 0,cY.isConnected=!1,cY.error=void 0,cY.preferredAccountType=void 0}};class cQ extends iY{constructor(e){let{ethersConfig:t,siweConfig:i,chains:n,defaultChain:o,tokens:s,chainImages:a,_sdkVersion:l,...c}=e;if(!t)throw Error("web3modal:constructor - ethersConfig is undefined");if(!c.projectId)throw Error("web3modal:constructor - projectId is undefined");super({networkControllerClient:{switchCaipNetwork:async e=>{let t=G.p1.caipNetworkIdToNumber(e?.id);if(t)try{cJ.setError(void 0),await this.switchNetwork(t)}catch(e){throw cJ.setError(e),Error("networkControllerClient:switchCaipNetwork - unable to switch chain")}},getApprovedCaipNetworksData:async()=>new Promise(async e=>{let t=localStorage.getItem(cV.WALLET_ID);if(t?.includes(iJ.WALLET_CONNECT_CONNECTOR_ID)){let t=await this.getWalletConnectProvider();if(!t)throw Error("networkControllerClient:getApprovedCaipNetworks - provider is undefined");let r=t.signer?.session?.namespaces,i=r?.[iJ.EIP155]?.methods,n=r?.[iJ.EIP155]?.chains;e({supportsAllNetworks:i?.includes(iJ.ADD_CHAIN_METHOD)??!1,approvedCaipNetworkIds:n})}else e({approvedCaipNetworkIds:void 0,supportsAllNetworks:!0})})},connectionControllerClient:{connectWalletConnect:async e=>{let t=await this.getWalletConnectProvider();if(!t)throw Error("connectionControllerClient:getWalletConnectUri - provider is undefined");if(t.on("display_uri",t=>{e(t)}),i?.options?.enabled){let{SIWEController:e,getDidChainId:n,getDidAddress:o}=await Promise.all([r.e(3138),r.e(1609)]).then(r.bind(r,41609)),s=await t.authenticate({nonce:await i.getNonce(),methods:lJ,...await i.getMessageParams()}),a=s?.auths?.[0];if(a){let{p:r,s:i}=a,s=n(r.iss),l=o(r.iss);l&&s&&e.setSession({address:l,chainId:parseInt(s,10)});try{let n=t.signer.client.formatAuthMessage({request:r,iss:r.iss});
4113await e.verifyMessage({message:n,signature:i.s,cacao:a})}catch(r){throw console.error("Error verifying message",r),await t.disconnect().catch(console.error),await e.signOut().catch(console.error),r}}}else await t.connect();await this.setWalletConnectProvider()},connectExternal:async({id:e,info:r,provider:i})=>{if(e===iJ.INJECTED_CONNECTOR_ID){let e=t.injected;if(!e)throw Error("connectionControllerClient:connectInjected - provider is undefined");try{cJ.setError(void 0),await e.request({method:"eth_requestAccounts"}),this.setInjectedProvider(t)}catch(e){cJ.setError(e)}}else if(e===iJ.EIP6963_CONNECTOR_ID&&r&&i){try{cJ.setError(void 0),await i.request({method:"eth_requestAccounts"})}catch(e){cJ.setError(e)}this.setEIP6963Provider(i,r.name)}else if(e===iJ.COINBASE_CONNECTOR_ID){let e=t.coinbase;if(!e)throw Error("connectionControllerClient:connectCoinbase - connector is undefined");try{cJ.setError(void 0),this.setCoinbaseProvider(t),await e.request({method:"eth_requestAccounts"})}catch(e){cJ.setError(e)}}},checkInstalled:e=>e?(!t.injected||!!window?.ethereum)&&e.some(e=>!!window.ethereum?.[String(e)]):!!window.ethereum,disconnect:async()=>{let e=cJ.state.provider,t=cJ.state.providerType;if(localStorage.removeItem(cV.WALLET_ID),cJ.reset(),i?.options?.signOutOnDisconnect){let{SIWEController:e}=await Promise.all([r.e(3138),r.e(1609)]).then(r.bind(r,41609));await e.signOut()}if(t===iJ.WALLET_CONNECT_CONNECTOR_ID){let t=e;await t.disconnect()}else e&&e.emit("disconnect")},signMessage:async e=>{let t=cJ.state.provider;if(!t)throw Error("connectionControllerClient:signMessage - provider is undefined");let r=ci.A7(e)?e:ci.Dv(cn.Y0(e));return await t.request({method:"personal_sign",params:[r,this.getAddress()]})},parseUnits:(e,t)=>ck(e,t).toBigInt(),formatUnits:(e,t)=>cC(e,t),sendTransaction:async e=>{let t=cJ.state.provider,r=cJ.state.address;if(!t)throw Error("connectionControllerClient:sendTransaction - provider is undefined");if(!r)throw Error("connectionControllerClient:sendTransaction - address is undefined");let i={to:e.to,value:e.value,gasLimit:e.gas,gasPrice:e.gasPrice,data:e.data,type:0},n=new cA.Q(t).getSigner(),o=await n.sendTransaction(i),s=await o.wait();return s?.blockHash||null}},siweControllerClient:i,defaultChain:cZ.getCaipDefaultChain(o),tokens:iX.getCaipTokens(s),_sdkVersion:l??`html-ethers5-${iJ.VERSION}`,...c}),this.hasSyncedConnectedAccount=!1,this.EIP6963Providers=[],this.options=void 0,this.options=e,this.metadata=t.metadata,this.projectId=c.projectId,this.chains=n,this.createProvider(),cJ.subscribeKey("address",()=>{this.syncAccount()}),cJ.subscribeKey("chainId",()=>{this.syncNetwork(a)}),this.syncRequestedNetworks(n,a),this.syncConnectors(t),t.injected&&this.checkActiveInjectedProvider(t),t.EIP6963&&"undefined"!=typeof window&&(this.listenConnectors(t.EIP6963),this.checkActive6963Provider()),t.coinbase&&this.checkActiveCoinbaseProvider(t)}getState(){let e=super.getState();return{...e,selectedNetworkId:G.p1.caipNetworkIdToNumber(e.selectedNetworkId)}}subscribeState(e){return super.subscribeState(t=>e({...t,selectedNetworkId:G.p1.caipNetworkIdToNumber(t.selectedNetworkId)}))}setAddress(e){let t=e?cI.Kn(e):void 0;cJ.setAddress(t)}getAddress(){let{address:e}=cJ.state;return e?cI.Kn(e):e}getError(){return cJ.state.error}getChainId(){return cJ.state.chainId}getIsConnected(){return cJ.state.isConnected}getWalletProvider(){return cJ.state.provider}getWalletProviderType(){return cJ.state.providerType}subscribeProvider(e){return cJ.subscribe(e)}async disconnect(){let{provider:e,providerType:t}=cJ.state;localStorage.removeItem(cV.WALLET_ID),cJ.reset(),"injected"===t||"eip6963"===t?e?.emit("disconnect"):await e.disconnect()}createProvider(){return this.walletConnectProviderInitPromise||"undefined"==typeof window||(this.walletConnectProviderInitPromise=this.initWalletConnectProvider()),this.walletConnectProviderInitPromise}async initWalletConnectProvider(){let e={projectId:this.projectId,showQrModal:!1,rpcMap:this.chains?this.chains.reduce((e,t)=>(e[t.chainId]=t.rpcUrl,e),{}):{},optionalChains:[...this.chains.map(e=>e.chainId)],metadata:{name:this.metadata?this.metadata.name:"",description:this.metadata?this.metadata.description:"",url:this.metadata?this.metadata.url:"",icons:this.metadata?this.metadata.icons:[""]}};this.walletConnectProvider=await cr.init(e),await this.checkActiveWalletConnectProvider()}
4113async getWalletConnectProvider(){if(!this.walletConnectProvider)try{cJ.setError(void 0),await this.createProvider()}catch(e){cJ.setError(e)}return this.walletConnectProvider}syncRequestedNetworks(e,t){let r=e?.map(e=>({id:`${iJ.EIP155}:${e.chainId}`,name:e.name,imageId:iQ.EIP155NetworkImageIds[e.chainId],imageUrl:t?.[e.chainId]}));this.setRequestedCaipNetworks(r??[])}async checkActiveWalletConnectProvider(){let e=await this.getWalletConnectProvider(),t=localStorage.getItem(cV.WALLET_ID);e&&t===iJ.WALLET_CONNECT_CONNECTOR_ID&&await this.setWalletConnectProvider()}checkActiveInjectedProvider(e){let t=e.injected,r=localStorage.getItem(cV.WALLET_ID);t&&r===iJ.INJECTED_CONNECTOR_ID&&(this.setInjectedProvider(e),this.watchInjected(e))}checkActiveCoinbaseProvider(e){let t=e.coinbase,r=localStorage.getItem(cV.WALLET_ID);t&&r===iJ.COINBASE_CONNECTOR_ID&&(t._addresses&&t._addresses?.length>0?(this.setCoinbaseProvider(e),this.watchCoinbase(e)):(localStorage.removeItem(cV.WALLET_ID),cJ.reset()))}checkActive6963Provider(){let e=window?.localStorage.getItem(cV.WALLET_ID);if(e){let t=this.EIP6963Providers.find(t=>t.info.name===e);t&&this.setEIP6963Provider(t.provider,t.info.name)}}async setWalletConnectProvider(){window?.localStorage.setItem(cV.WALLET_ID,iJ.WALLET_CONNECT_CONNECTOR_ID);let e=await this.getWalletConnectProvider();e&&(cJ.setChainId(e.chainId),cJ.setProviderType("walletConnect"),cJ.setProvider(e),cJ.setIsConnected(!0),this.setAddress(e.accounts?.[0]),this.watchWalletConnect())}async setEIP6963Provider(e,t){if(window?.localStorage.setItem(cV.WALLET_ID,t),e){let{address:t,chainId:r}=await cZ.getUserInfo(e);t&&r&&(cJ.setChainId(r),cJ.setProviderType("eip6963"),cJ.setProvider(e),cJ.setIsConnected(!0),this.setAddress(t),this.watchEIP6963(e))}}async setInjectedProvider(e){window?.localStorage.setItem(cV.WALLET_ID,iJ.INJECTED_CONNECTOR_ID);let t=e.injected;if(t){let{address:r,chainId:i}=await cZ.getUserInfo(t);r&&i&&(cJ.setChainId(i),cJ.setProviderType("injected"),cJ.setProvider(e.injected),cJ.setIsConnected(!0),this.setAddress(r),this.watchCoinbase(e))}}async setCoinbaseProvider(e){window?.localStorage.setItem(cV.WALLET_ID,iJ.COINBASE_CONNECTOR_ID);let t=e.coinbase;if(t){let{address:r,chainId:i}=await cZ.getUserInfo(t);r&&i&&(cJ.setChainId(i),cJ.setProviderType("coinbaseWallet"),cJ.setProvider(e.coinbase),cJ.setIsConnected(!0),this.setAddress(r),this.watchCoinbase(e))}}async watchWalletConnect(){let e=await this.getWalletConnectProvider();function t(){localStorage.removeItem(cV.WALLET_ID),cJ.reset(),e?.removeListener("disconnect",t),e?.removeListener("accountsChanged",i),e?.removeListener("chainChanged",r)}function r(e){if(e){let t=cZ.hexStringToNumber(e);cJ.setChainId(t)}}let i=async e=>{e.length>0&&await this.setWalletConnectProvider()};e&&(e.on("disconnect",t),e.on("accountsChanged",i),e.on("chainChanged",r))}watchInjected(e){let t=e.injected;function r(){localStorage.removeItem(cV.WALLET_ID),cJ.reset(),t?.removeListener("disconnect",r),t?.removeListener("accountsChanged",i),t?.removeListener("chainChanged",n)}function i(e){let t=e?.[0];t?cJ.setAddress(cI.Kn(t)):(localStorage.removeItem(cV.WALLET_ID),cJ.reset())}function n(e){if(e){let t="string"==typeof e?cZ.hexStringToNumber(e):Number(e);cJ.setChainId(t)}}t&&(t.on("disconnect",r),t.on("accountsChanged",i),t.on("chainChanged",n))}watchEIP6963(e){function t(){localStorage.removeItem(cV.WALLET_ID),cJ.reset(),e.removeListener("disconnect",t),e.removeListener("accountsChanged",r),e.removeListener("chainChanged",i)}function r(e){let t=e?.[0];t?cJ.setAddress(cI.Kn(t)):(localStorage.removeItem(cV.WALLET_ID),cJ.reset())}function i(e){if(e){let t="string"==typeof e?cZ.hexStringToNumber(e):Number(e);cJ.setChainId(t)}}e.on("disconnect",t),e.on("accountsChanged",r),e.on("chainChanged",i)}watchCoinbase(e){let t=e.coinbase,r=localStorage.getItem(cV.WALLET_ID);function i(){localStorage.removeItem(cV.WALLET_ID),cJ.reset(),t?.removeListener("disconnect",i),t?.removeListener("accountsChanged",n),t?.removeListener("chainChanged",o)}function n(e){0===e.length?(localStorage.removeItem(cV.WALLET_ID),cJ.reset()):cJ.setAddress(e[0])}function o(e){if(e&&r===iJ.COINBASE_CONNECTOR_ID){let t=Number(e);cJ.setChainId(t)}}t&&(t.on("disconnect",i),t.on("accountsChanged",n),t.on("chainChanged",o))}async syncAccount(){let e=cJ.state.address,t=cJ.state.chainId,r=cJ.state.isConnected;if(this.resetAccount(),r&&e&&t){let i=`${iJ.EIP155}:${t}:${e}`;this.setIsConnected(r),this.setCaipAddress(i),this.syncConnectedWalletInfo(),await Promise.all([this.syncProfile(e),this.syncBalance(e),this.getApprovedCaipNetworksData()]),this.hasSyncedConnectedAccount=!0}else!r&&this.hasSyncedConnectedAccount&&(this.resetWcConnection(),this.resetNetwork())}async syncNetwork(e){let t=cJ.state.address,r=cJ.state.chainId,i=cJ.state.isConnected;if(this.chains){let n=this.chains.find(e=>e.chainId===r);if(n){let o=`${iJ.EIP155}:${n.chainId}`;if(this.setCaipNetwork({id:o,name:n.name,imageId:iQ.EIP155NetworkImageIds[n.chainId],imageUrl:e?.[n.chainId]}),i&&t){let e=`${iJ.EIP155}:${r}:${t}`;if(this.setCaipAddress(e),n.explorerUrl){let e=`${n.explorerUrl}/address/${t}`;this.setAddressExplorerUrl(e)}else this.setAddressExplorerUrl(void 0);this.hasSyncedConnectedAccount&&await this.syncBalance(t)}}else i&&this.setCaipNetwork({id:`${iJ.EIP155}:${r}`})}}async syncProfile(e){let t=cJ.state.chainId;try{let{name:t,avatar:r}=await this.fetchIdentity({address:e});this.setProfileName(t),this.setProfileImage(r)}catch{if(1===t){let t=new cH("mainnet"),r=await t.lookupAddress(e),i=await t.getAvatar(e);r&&this.setProfileName(r),i&&this.setProfileImage(i)}else this.setProfileName(null),this.setProfileImage(null)}}async syncBalance(e){let t=cJ.state.chainId;if(t&&this.chains){let r=this.chains.find(e=>e.chainId===t);if(r){let i=new cR.r(r.rpcUrl,{chainId:t,name:r.name});if(i){let t=cS(await i.getBalance(e));this.setBalance(t,r.currency)}}}}syncConnectedWalletInfo(){let e=window?.localStorage.getItem(cV.WALLET_ID),t=cJ.state.providerType;if(t===iJ.EIP6963_CONNECTOR_ID){if(e){let t=this.EIP6963Providers.find(t=>t.info.name===e);t&&this.setConnectedWalletInfo({...t.info})}}else if(t===iJ.WALLET_CONNECT_CONNECTOR_ID){let e=cJ.state.provider;e.session&&this.setConnectedWalletInfo({...e.session.peer.metadata,name:e.session.peer.metadata.name,icon:e.session.peer.metadata.icons?.[0]})}else e&&this.setConnectedWalletInfo({name:e})}async switchNetwork(e){let t=cJ.state.provider,r=cJ.state.providerType;if(this.chains){let i=this.chains.find(t=>t.chainId===e);if(r===iJ.WALLET_CONNECT_CONNECTOR_ID&&i){let r=t;if(r)try{await r.request({method:"wallet_switchEthereumChain",params:[{chainId:cZ.numberToHexString(i.chainId)}]}),cJ.setChainId(e)}catch(e){if(e.code===cV.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||e.code===cV.ERROR_CODE_DEFAULT||e?.data?.originalError?.code===cV.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)await cZ.addEthereumChain(r,i);else throw Error("Chain is not supported")}}else if(r===iJ.EIP6963_CONNECTOR_ID&&i){let e=t;if(e)try{await e.request({method:"wallet_switchEthereumChain",params:[{chainId:cZ.numberToHexString(i.chainId)}]}),cJ.setChainId(i.chainId)}catch(t){if(t.code===cV.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||t.code===cV.ERROR_CODE_DEFAULT||t?.data?.originalError?.code===cV.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)await cZ.addEthereumChain(e,i);else throw Error("Chain is not supported")}}else if(r===iJ.COINBASE_CONNECTOR_ID&&i){let e=t;if(e)try{await e.request({method:"wallet_switchEthereumChain",params:[{chainId:cZ.numberToHexString(i.chainId)}]}),cJ.setChainId(i.chainId)}catch(t){(t.code===cV.ERROR_CODE_UNRECOGNIZED_CHAIN_ID||t.code===cV.ERROR_CODE_DEFAULT||t?.data?.originalError?.code===cV.ERROR_CODE_UNRECOGNIZED_CHAIN_ID)&&await cZ.addEthereumChain(e,i)}}}}syncConnectors(e){let t=[],r=iQ.ConnectorTypesMap[iJ.WALLET_CONNECT_CONNECTOR_ID];if(r&&t.push({id:iJ.WALLET_CONNECT_CONNECTOR_ID,explorerId:iQ.ConnectorExplorerIds[iJ.WALLET_CONNECT_CONNECTOR_ID],imageId:iQ.ConnectorImageIds[iJ.WALLET_CONNECT_CONNECTOR_ID],imageUrl:this.options?.connectorImages?.[iJ.WALLET_CONNECT_CONNECTOR_ID],name:iQ.ConnectorNamesMap[iJ.WALLET_CONNECT_CONNECTOR_ID],type:r}),e.injected){let e=iQ.ConnectorTypesMap[iJ.INJECTED_CONNECTOR_ID];e&&t.push({id:iJ.INJECTED_CONNECTOR_ID,explorerId:iQ.ConnectorExplorerIds[iJ.INJECTED_CONNECTOR_ID],imageId:iQ.ConnectorImageIds[iJ.INJECTED_CONNECTOR_ID],imageUrl:this.options?.connectorImages?.[iJ.INJECTED_CONNECTOR_ID],name:iQ.ConnectorNamesMap[iJ.INJECTED_CONNECTOR_ID],type:e})}e.coinbase&&t.push({id:iJ.COINBASE_CONNECTOR_ID,explorerId:iQ.ConnectorExplorerIds[iJ.COINBASE_CONNECTOR_ID],imageId:iQ.ConnectorImageIds[iJ.COINBASE_CONNECTOR_ID],imageUrl:this.options?.connectorImages?.[iJ.COINBASE_CONNECTOR_ID],name:iQ.ConnectorNamesMap[iJ.COINBASE_CONNECTOR_ID],type:"EXTERNAL"}),this.setConnectors(t)}eip6963EventHandler(e){if(e.detail){let{info:t,provider:r}=e.detail;if(!this.getConnectors().find(e=>e.name===t.name)){let e=iQ.ConnectorTypesMap[iJ.EIP6963_CONNECTOR_ID];if(e){this.addConnector({id:iJ.EIP6963_CONNECTOR_ID,type:e,imageUrl:t.icon??this.options?.connectorImages?.[iJ.EIP6963_CONNECTOR_ID],name:t.name,provider:r,info:t});let i={info:t,provider:r};this.EIP6963Providers.push(i)}}}}listenConnectors(e){if("undefined"!=typeof window&&e){let e=this.eip6963EventHandler.bind(this);window.addEventListener(iJ.EIP6963_ANNOUNCE_EVENT,e),window.dispatchEvent(new Event(iJ.EIP6963_REQUEST_EVENT))}}}r(64285);var cX=r(73863);function c0(e){let t,r;let{enableEIP6963:i=!0,enableInjected:n=!0,enableCoinbase:o=!0,metadata:s,rpcUrl:a,defaultChainId:l}=e,c={metadata:s};function u(){return t||("undefined"!=typeof window&&window.ethereum?t=window.ethereum:void 0)}function d(){return r||("undefined"!=typeof window?r=new cX.jp({appName:s.name,appLogoUrl:s.icons[0],appChainIds:e.chains?.map(e=>e.chainId)||[1,84532]}).makeWeb3Provider({options:e.coinbasePreference||"all"}):void 0)}return o&&a&&l&&(c.coinbase=d()),n&&(c.injected=u()),i&&(c.EIP6963=!0),c}function c1(e){return new cQ({...e,_sdkVersion:`html-ethers5-${iJ.VERSION}`})}},64285:function(e,t,r){"use strict";var i=r(82957);"undefined"==typeof window||(window.Buffer||(window.Buffer=i.Buffer),window.global||(window.global=window),window.process||(window.process={}),window.process?.env||(window.process={env:{}}))},65132:function(e,t,r){"use strict";r.r(t),r.d(t,{W3mModal:function(){return u}});var i=r(56374),n=r(98179),o=r(25266),s=r(67970),a=(0,o.iv)` 4114 :host { 4115 z-index: var(--w3m-z-index); 4116 display: block; 4117 backface-visibility: hidden; 4118 will-change: opacity; 4119 position: fixed; 4120 top: 0; 4121 left: 0; 4122 right: 0; 4123 bottom: 0; 4124 pointer-events: none; 4125 opacity: 0; 4126 background-color: var(--wui-cover); 4127 transition: opacity 0.2s var(--wui-ease-out-power-2); 4128 will-change: opacity; 4129 } 4130 4131 :host(.open) { 4132 opacity: 1; 4133 } 4134 4135 @keyframes zoom-in { 4136 0% { 4137 transform: scale(0.95) translateY(0); 4138 } 4139 100% { 4140 transform: scale(1) translateY(0); 4141 } 4142 } 4143 4144 @keyframes slide-in { 4145 0% { 4146 transform: scale(1) translateY(50px); 4147 } 4148 100% { 4149 transform: scale(1) translateY(0); 4150 } 4151 } 4152 4153 wui-card { 4154 max-width: var(--w3m-modal-width); 4155 width: 100%; 4156 position: relative; 4157 animation-duration: 0.2s; 4158 animation-name: zoom-in; 4159 animation-fill-mode: backwards; 4160 animation-timing-function: var(--wui-ease-out-power-2); 4161 outline: none; 4162 } 4163 4164 wui-flex { 4165 overflow-x: hidden; 4166 overflow-y: auto; 4167 display: flex; 4168 align-items: center; 4169 justify-content: center; 4170 width: 100%; 4171 height: 100%; 4172 } 4173 4174 @media (max-height: 700px) and (min-width: 431px) { 4175 wui-flex { 4176 align-items: flex-start; 4177 } 4178 4179 wui-card { 4180 margin: var(--wui-spacing-xxl) 0px; 4181 } 4182 } 4183 4184 @media (max-width: 430px) { 4185 wui-flex { 4186 align-items: flex-end; 4187 } 4188 4189 wui-card { 4190 max-width: 100%; 4191 border-bottom-left-radius: 0; 4192 border-bottom-right-radius: 0; 4193 border-bottom: none; 4194 animation-name: slide-in; 4195 } 4196 } 4197`,l=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
4197);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let c="scroll-lock",u=class extends o.oi{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.open=i.IN.state.open,this.caipAddress=i.AccountController.state.caipAddress,this.isSiweEnabled=i.OptionsController.state.isSiweEnabled,this.connected=i.AccountController.state.isConnected,this.loading=i.IN.state.loading,this.initializeTheming(),i.ApiController.prefetch(),this.unsubscribe.push(i.IN.subscribeKey("open",e=>e?this.onOpen():this.onClose()),i.IN.subscribeKey("loading",e=>{this.loading=e,this.onNewAddress(i.AccountController.state.caipAddress)}),i.AccountController.subscribeKey("isConnected",e=>this.connected=e),i.AccountController.subscribeKey("caipAddress",e=>this.onNewAddress(e)),i.OptionsController.subscribeKey("isSiweEnabled",e=>this.isSiweEnabled=e)),i.Xs.sendEvent({type:"track",event:"MODAL_LOADED"})}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return this.open?(0,o.dy)` 4198 <wui-flex @click=${this.onOverlayClick.bind(this)}> 4199 <wui-card role="alertdialog" aria-modal="true" tabindex="0"> 4200 <w3m-header></w3m-header> 4201 <w3m-router></w3m-router> 4202 <w3m-snackbar></w3m-snackbar> 4203 </wui-card> 4204 </wui-flex> 4205 <w3m-tooltip></w3m-tooltip> 4206 `:null}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){if(this.isSiweEnabled){let{SIWEController:e}=await Promise.all([r.e(3138),r.e(1609)]).then(r.bind(r,41609));"success"!==e.state.status&&await i.ConnectionController.disconnect()}i.IN.close()}initializeTheming(){let{themeVariables:e,themeMode:t}=i.ThemeController.state,r=n.UiHelperUtil.getColorTheme(t);(0,n.initializeTheming)(e,r)}onClose(){this.open=!1,this.classList.remove("open"),this.onScrollUnlock(),i.SnackController.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add("open"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){let e=document.createElement("style");e.dataset.w3m=c,e.textContent=` 4207 html, body { 4208 touch-action: none; 4209 overflow: hidden; 4210 overscroll-behavior: contain; 4211 } 4212 w3m-modal { 4213 pointer-events: auto; 4214 } 4215 `,document.head.appendChild(e)}onScrollUnlock(){let e=document.head.querySelector(`style[data-w3m="${c}"]`);e&&e.remove()}onAddKeyboardListener(){this.abortController=new AbortController;let e=this.shadowRoot?.querySelector("wui-card");e?.focus(),window.addEventListener("keydown",t=>{if("Escape"===t.key)this.handleClose();else if("Tab"===t.key){let{tagName:r}=t.target;!r||r.includes("W3M-")||r.includes("WUI-")||e?.focus()}},this.abortController)}onRemoveKeyboardListener(){this.abortController?.abort(),this.abortController=void 0}async onNewAddress(e){if(!this.connected||this.loading)return;let t=i.j1.getPlainAddress(this.caipAddress),n=i.j1.getPlainAddress(e),o=i.j1.getNetworkId(this.caipAddress),s=i.j1.getNetworkId(e);if(this.caipAddress=e,this.isSiweEnabled){let{SIWEController:e}=await Promise.all([r.e(3138),r.e(1609)]).then(r.bind(r,41609)),i=await e.getSession();if(i&&t&&n&&t!==n){e.state._client?.options.signOutOnAccountChange&&(await e.signOut(),this.onSiweNavigation());return}if(i&&o&&s&&o!==s){e.state._client?.options.signOutOnNetworkChange&&(await e.signOut(),this.onSiweNavigation());return}this.onSiweNavigation()}}onSiweNavigation(){this.open?i.RouterController.push("ConnectingSiwe"):i.IN.open({view:"ConnectingSiwe"})}};u.styles=a,l([(0,s.SB)()],u.prototype,"open",void 0),l([(0,s.SB)()],u.prototype,"caipAddress",void 0),l([(0,s.SB)()],u.prototype,"isSiweEnabled",void 0),l([(0,s.SB)()],u.prototype,"connected",void 0),l([(0,s.SB)()],u.prototype,"loading",void 0),u=l([(0,n.customElement)("w3m-modal")],u)},6907:function(e,t,r){"use strict";r.d(t,{C:function(){return s}});var i=r(99470);let n={attribute:!0,type:String,converter:i.Ts,reflect:!1,hasChanged:i.Qu},o=(e=n,t,r)=>{let{kind:i,metadata:o}=r,s=globalThis.litPropertyMetadata.get(o);if(void 0===s&&globalThis.litPropertyMetadata.set(o,s=new Map),s.set(r.name,e),"accessor"===i){let{name:i}=r;return{set(r){let n=t.get.call(this);t.set.call(this,r),this.requestUpdate(i,n,e)},init(t){return void 0!==t&&this.P(i,void 0,e),t}}}if("setter"===i){let{name:i}=r;return function(r){let n=this[i];t.call(this,r),this.requestUpdate(i,n,e)}}throw Error("Unsupported decorator location: "+i)};function s(e){return(t,r)=>"object"==typeof r?o(e,t,r):((e,t,r)=>{let i=t.hasOwnProperty(r);return t.constructor.createProperty(r,i?{...e,wrapped:!0}:e),i?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}},63779:function(e,t,r){"use strict";r.d(t,{S:function(){return n}});var i=r(6907);function n(e){return(0,i.C)({...e,state:!0,attribute:!1})}},99470:function(e,t,r){"use strict";r.d(t,{fl:function(){return S},iv:function(){return c},Ts:function(){return E},Qu:function(){return C}});let i=globalThis,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),s=new WeakMap;class a{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(n&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=s.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&s.set(t,e))}return e}toString(){return this.cssText}}let l=e=>new a("string"==typeof e?e:e+"",void 0,o),c=(e,...t)=>new a(1===e.length?e[0]:t.reduce((t,r,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[i+1],e[0]),e,o),u=(e,t)=>
4215{if(n)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),n=i.litNonce;void 0!==n&&t.setAttribute("nonce",n),t.textContent=r.cssText,e.appendChild(t)}},d=n?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return l(t)})(e):e,{is:h,defineProperty:f,getOwnPropertyDescriptor:p,getOwnPropertyNames:g,getOwnPropertySymbols:m,getPrototypeOf:w}=Object,y=globalThis,b=y.trustedTypes,v=b?b.emptyScript:"",_=y.reactiveElementPolyfillSupport,x=(e,t)=>e,E={toAttribute(e,t){switch(t){case Boolean:e=e?v:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},C=(e,t)=>!h(e,t),k={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:C};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(e,r,t);void 0!==i&&f(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){let{get:i,set:n}=p(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return i?.call(this)},set(t){let o=i?.call(this);n.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;let e=w(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){let e=this.properties;for(let t of[...g(e),...m(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,r]of t)this.elementProperties.set(e,r)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(d(r));else void 0!==e&&t.push(d(e));return t}static _$Eu(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){let r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(void 0!==i&&!0===r.reflect){let n=(void 0!==r.converter?.toAttribute?r.converter:E).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let r=this.constructor,i=r._$Eh.get(e);if(void 0!==i&&this._$Em!==i){let e=r.getPropertyOptions(i),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:E;this._$Em=i,this[i]=n.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(!((r??=this.constructor.getPropertyOptions(e)).hasChanged??C)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e
vendor: 4,443 bytes, lines 4215-4216
4215=>e.hostUpdate?.()),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(e){}firstUpdated(e){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[x("elementProperties")]=new Map,S[x("finalized")]=new Map,_?.({ReactiveElement:S}),(y.reactiveElementVersions??=[]).push("2.0.4")},20484:function(e,t,r){"use strict";r.d(t,{Jb:function(){return k},Ld:function(){return S},_$LH:function(){return U},dy:function(){return C},sY:function(){return z}});let i=globalThis,n=i.trustedTypes,o=n?n.createPolicy("lit-html",{createHTML:e=>e}):void 0,s="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,l="?"+a,c=`<${l}>`,u=document,d=()=>u.createComment(""),h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,p=e=>f(e)||"function"==typeof e?.[Symbol.iterator],g="[ \n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,y=/>/g,b=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ 4216\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,_=/"/g,x=/^(?:script|style|textarea|title)$/i,E=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),C=E(1),k=(E(2),Symbol.for("lit-noChange")),S=Symbol.for("lit-nothing"),A=new WeakMap,I=u.createTreeWalker(u,129);function T(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(t):t}let R=(e,t)=>{let r=e.length-1,i=[],n,o=2===t?"<svg>":"",l=m;for(let t=0;t<r;t++){let r=e[t],u,d,h=-1,f=0;for(;f<r.length&&(l.lastIndex=f,null!==(d=l.exec(r)));)f=l.lastIndex,l===m?"!--"===d[1]?l=w:void 0!==d[1]?l=y:void 0!==d[2]?(x.test(d[2])&&(n=RegExp("</"+d[2],"g")),l=b):void 0!==d[3]&&(l=b):l===b?">"===d[0]?(l=n??m,h=-1):void 0===d[1]?h=-2:(h=l.lastIndex-d[2].length,u=d[1],l=void 0===d[3]?b:'"'===d[3]?_:v):l===_||l===v?l=b:l===w||l===y?l=m:(l=b,n=void 0);let p=l===b&&e[t+1].startsWith("/>")?" ":"";o+=l===m?r+c:h>=0?(i.push(u),r.slice(0,h)+s+r.slice(h)+a+p):r+a+(-2===h?t:p)}return[T(e,o+(e[r]||"<?>")+(2===t?"</svg>":"")),i]};class O{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let o=0,c=0,u=e.length-1,h=this.parts,[f,p]=R(e,t);if(this.el=O.createElement(f,r),I.currentNode=this.el.content,2===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=I.nextNode())&&h.length<u;){if(1===i.nodeType){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(s)){let t=p[c++],r=i.getAttribute(e).split(a),n=/([.?@])?(.*)/.exec(t);h.push({type:1,index:o,name:n[2],strings:r,ctor:"."===n[1]?L:"?"===n[1]?j:"@"===n[1]?B:D}),i.removeAttribute(e)}else e.startsWith(a)&&(h.push({type:6,index:o}),i.removeAttribute(e));if(x.test(i.tagName)){let e=i.textContent.split(a),t=e.length-1;if(t>0){i.textContent=n?n.emptyScript:"";for(let r=0;r<t;r++)i.append(e[r],d()),I.nextNode(),h.push({type:2,index:++o});i.append(e[t],d())}}}else if(8===i.nodeType){if(i.data===l)h.push({type:2,index:o});else{let e=-1;for(;-1!==(e=i.data.indexOf(a,e+1));)h.push({type:7,index:o}),e+=a.length-1}}o++}}static createElement(e,t){let r=u.createElement("template");return r.innerHTML=e,r}}function P(e,t,r=e,i){if(t===k)return t;let n=void 0!==i?r._$Co?.[i]:r._$Cl,o=h(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e))._$AT(e,r,i),void 0!==i?(r._$Co??=[])[i]=n:r._$Cl=n),void 0!==n&&(t=P(e,n._$AS(e,t.values),n,i)),t}class N{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,i=(e?.creationScope??u).importNode(t,!0);I.currentNode=i;let n=I.nextNode(),o=0,s=0,a=r[0];for(;void 0!==a;){if(o===a.index){let t;2===a.type?t=new M(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new $(n,this,e)),this._$AV.push(t),a=r[++s]}o!==a?.index&&(n=I.nextNode(),o++)}return I.currentNode=u,i}p(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}
4216constructor(e,t,r,i){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){h(e=P(this,e,t))?e===S||null==e||""===e?(this._$AH!==S&&this._$AR(),this._$AH=S):e!==this._$AH&&e!==k&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):p(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==S&&h(this._$AH)?this._$AA.nextSibling.data=e:this.T(u.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=O.createElement(T(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(t);else{let e=new N(i,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=A.get(e.strings);return void 0===t&&A.set(e.strings,t=new O(e)),t}k(e){f(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,i=0;for(let n of e)i===t.length?t.push(r=new M(this.S(d()),this.S(d()),this,this.options)):r=t[i],r._$AI(n),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,n){this.type=1,this._$AH=S,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=S}_$AI(e,t=this,r,i){let n=this.strings,o=!1;if(void 0===n)(o=!h(e=P(this,e,t,0))||e!==this._$AH&&e!==k)&&(this._$AH=e);else{let i,s;let a=e;for(e=n[0],i=0;i<n.length-1;i++)(s=P(this,a[r+i],t,i))===k&&(s=this._$AH[i]),o||=!h(s)||s!==this._$AH[i],s===S?e=S:e!==S&&(e+=(s??"")+n[i+1]),this._$AH[i]=s}o&&!i&&this.j(e)}j(e){e===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class L extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===S?void 0:e}}class j extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==S)}}class B extends D{constructor(e,t,r,i,n){super(e,t,r,i,n),this.type=5}
4216_$AI(e,t=this){if((e=P(this,e,t,0)??S)===k)return;let r=this._$AH,i=e===S&&r!==S||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==S&&(r===S||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ${constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){P(this,e)}}let U={P:s,A:a,C:l,M:1,L:R,R:N,D:p,V:P,I:M,H:D,N:j,U:B,B:L,F:$},F=i.litHtmlPolyfillSupport;F?.(O,M),(i.litHtmlVersions??=[]).push("3.1.4");let z=(e,t,r)=>{let i=r?.renderBefore??t,n=i._$litPart$;if(void 0===n){let e=r?.renderBefore??null;i._$litPart$=n=new M(t.insertBefore(d(),e),e,void 0,r??{})}return n._$AI(e),n}},67970:function(e,t,r){"use strict";r.d(t,{Cb:function(){return i.C},SB:function(){return n.S}});var i=r(6907),n=r(63779)},25266:function(e,t,r){"use strict";r.d(t,{oi:function(){return o},iv:function(){return i.iv},dy:function(){return n.dy}});var i=r(99470),n=r(20484);class o extends i.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,n.sY)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.Jb}}o._$litElement$=!0,o.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:o});let s=globalThis.litElementPolyfillSupport;s?.({LitElement:o}),(globalThis.litElementVersions??=[]).push("4.0.6")},98179:function(e,t,r){"use strict";let i,n,o;r.r(t),r.d(t,{MathUtil:function(){return o2},TransactionUtil:function(){return o6},UiHelperUtil:function(){return rI},WuiAccountButton:function(){return rU},WuiAllWalletsImage:function(){return rZ},WuiAvatar:function(){return rM},WuiBalance:function(){return op},WuiBanner:function(){return oS},WuiButton:function(){return rX},WuiCard:function(){return eD},WuiCardSelect:function(){return it},WuiCardSelectLoader:function(){return r3},WuiChip:function(){return io},WuiChipButton:function(){return ov},WuiCompatibleNetwork:function(){return oE},WuiConnectButton:function(){return il},WuiCtaButton:function(){return id},WuiDetailsGroup:function(){return ig},WuiDetailsGroupItem:function(){return iy},WuiEmailInput:function(){return ij},WuiEnsInput:function(){return iU},WuiFlex:function(){return rO},WuiGrid:function(){return oQ},WuiIcon:function(){return tV},WuiIconBox:function(){return rj},WuiIconButton:function(){return oq},WuiIconLink:function(){return iq},WuiImage:function(){return tG},WuiInputAmount:function(){return oj},WuiInputElement:function(){return iV},WuiInputNumeric:function(){return iG},WuiInputText:function(){return iM},WuiLink:function(){return iQ},WuiListAccordion:function(){return n2},WuiListButton:function(){return oV},WuiListContent:function(){return n4},WuiListDescription:function(){return oP},WuiListItem:function(){return i1},WuiListNetwork:function(){return n7},WuiListSocial:function(){return oG},WuiListToken:function(){return oT},WuiListWallet:function(){return ns},WuiListWalletTransaction:function(){return ot},WuiLoadingHexagon:function(){return tQ},WuiLoadingSpinner:function(){return t1},WuiLoadingThumbnail:function(){return t5},WuiLogo:function(){return nc},WuiLogoSelect:function(){return nh},WuiNetworkButton:function(){return ng},WuiNetworkImage:function(){return r7},WuiNoticeCard:function(){return nQ},WuiOnRampActivityItem:function(){return oo},WuiOnRampProviderItem:function(){return ol},WuiOtp:function(){return ny},WuiPreviewItem:function(){return oU},WuiProfileButton:function(){return ow},WuiPromo:function(){return od},WuiQrCode:function(){return nI},WuiSearchBar:function(){return nO},WuiSeparator:function(){return o1},WuiShimmer:function(){return t8},WuiSnackbar:function(){return nM},WuiTabs:function(){return nj},WuiTag:function(){return ni},WuiText:function(){return ro},WuiTokenButton:function(){return nU},WuiTokenListItem:function(){return nV},WuiTooltip:function(){return nq},WuiTransactionListItem:function(){return i8},WuiTransactionListItemLoader:function(){return ne},WuiTransactionVisual:function(){return i5},WuiVisual:function(){return rS},WuiVisualThumbnail:function(){return nG},WuiWalletImage:function(){return rq},customElement:function(){return eP},initializeTheming:function(){return eE},setColorTheme:function(){return eC},setThemeVariables:function(){return ek},swapInputMaskBottomSvg:function(){return eb},swapInputMaskTopSvg:function(){return ev}});let s=globalThis,a=s.ShadowRoot&&(void 0===s.ShadyCSS||s.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),c=new WeakMap;class u{constructor(e,t,r){if(this._$cssResult$=!0,r!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(a&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=c.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&c.set(t,e))}return e}toString(){return this.cssText}}let d=e=>new u("string"==typeof e?e:e+"",void 0,l),h=(e,...t)=>new u(1===e.length?e[0]:t.reduce((t,r,i)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[i+1],e[0]),e,l),f=(e,t)=>{if(a)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),i=s.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=r.cssText,e.appendChild(t)}},p=a?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return d(t)})(e):e,{is:g,defineProperty:m,getOwnPropertyDescriptor:w,getOwnPropertyNames:y,getOwnPropertySymbols:b,getPrototypeOf:v}=Object,_=globalThis,x=_.trustedTypes,E=x?x.emptyScript:"",C=_.reactiveElementPolyfillSupport,k=(e,t)=>e,S={toAttribute(e,t){switch(t){case Boolean:e=e?E:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},A=(e,t)=>
4216!g(e,t),I={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:A};Symbol.metadata??=Symbol("metadata"),_.litPropertyMetadata??=new WeakMap;class T extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=I){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(e,r,t);void 0!==i&&m(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){let{get:i,set:n}=w(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return i?.call(this)},set(t){let o=i?.call(this);n.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??I}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let e=v(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties;for(let t of[...y(e),...b(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,r]of t)this.elementProperties.set(e,r)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(p(r));else void 0!==e&&t.push(p(e));return t}static _$Eu(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return f(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){let r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(void 0!==i&&!0===r.reflect){let n=(void 0!==r.converter?.toAttribute?r.converter:S).toAttribute(t,r.type);this._$Em=e,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(e,t){let r=this.constructor,i=r._$Eh.get(e);if(void 0!==i&&this._$Em!==i){let e=r.getPropertyOptions(i),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:S;this._$Em=i,this[i]=n.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){if(!((r??=this.constructor.getPropertyOptions(e)).hasChanged??A)(this[e],t))return;this.P(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.P(t,this[t],r)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e
vendor: 4,302 bytes, lines 4216-4217
4216=>e.hostUpdate?.()),this.update(t)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(e){}firstUpdated(e){}}T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[k("elementProperties")]=new Map,T[k("finalized")]=new Map,C?.({ReactiveElement:T}),(_.reactiveElementVersions??=[]).push("2.0.4");let R=globalThis,O=R.trustedTypes,P=O?O.createPolicy("lit-html",{createHTML:e=>e}):void 0,N="$lit$",M=`lit$${Math.random().toFixed(9).slice(2)}$`,D="?"+M,L=`<${D}>`,j=document,B=()=>j.createComment(""),$=e=>null===e||"object"!=typeof e&&"function"!=typeof e,U=Array.isArray,F=e=>U(e)||"function"==typeof e?.[Symbol.iterator],z="[ \n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,V=RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^ 4217\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,K=/"/g,G=/^(?:script|style|textarea|title)$/i,Y=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),J=Y(1),Q=Y(2),X=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),et=new WeakMap,er=j.createTreeWalker(j,129);function ei(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(t):t}let en=(e,t)=>{let r=e.length-1,i=[],n,o=2===t?"<svg>":"",s=q;for(let t=0;t<r;t++){let r=e[t],a,l,c=-1,u=0;for(;u<r.length&&(s.lastIndex=u,null!==(l=s.exec(r)));)u=s.lastIndex,s===q?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(G.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=V):void 0!==l[3]&&(s=V):s===V?">"===l[0]?(s=n??q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?V:'"'===l[3]?K:Z):s===K||s===Z?s=V:s===W||s===H?s=q:(s=V,n=void 0);let d=s===V&&e[t+1].startsWith("/>")?" ":"";o+=s===q?r+L:c>=0?(i.push(a),r.slice(0,c)+N+r.slice(c)+M+d):r+M+(-2===c?t:d)}return[ei(e,o+(e[r]||"<?>")+(2===t?"</svg>":"")),i]};class eo{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let n=0,o=0,s=e.length-1,a=this.parts,[l,c]=en(e,t);if(this.el=eo.createElement(l,r),er.currentNode=this.el.content,2===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=er.nextNode())&&a.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(N)){let t=c[o++],r=i.getAttribute(e).split(M),s=/([.?@])?(.*)/.exec(t);a.push({type:1,index:n,name:s[2],strings:r,ctor:"."===s[1]?eu:"?"===s[1]?ed:"@"===s[1]?eh:ec}),i.removeAttribute(e)}else e.startsWith(M)&&(a.push({type:6,index:n}),i.removeAttribute(e));if(G.test(i.tagName)){let e=i.textContent.split(M),t=e.length-1;if(t>0){i.textContent=O?O.emptyScript:"";for(let r=0;r<t;r++)i.append(e[r],B()),er.nextNode(),a.push({type:2,index:++n});i.append(e[t],B())}}}else if(8===i.nodeType){if(i.data===D)a.push({type:2,index:n});else{let e=-1;for(;-1!==(e=i.data.indexOf(M,e+1));)a.push({type:7,index:n}),e+=M.length-1}}n++}}static createElement(e,t){let r=j.createElement("template");return r.innerHTML=e,r}}function es(e,t,r=e,i){if(t===X)return t;let n=void 0!==i?r._$Co?.[i]:r._$Cl,o=$(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e))._$AT(e,r,i),void 0!==i?(r._$Co??=[])[i]=n:r._$Cl=n),void 0!==n&&(t=es(e,n._$AS(e,t.values),n,i)),t}class ea{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,i=(e?.creationScope??j).importNode(t,!0);er.currentNode=i;let n=er.nextNode(),o=0,s=0,a=r[0];for(;void 0!==a;){if(o===a.index){let t;2===a.type?t=new el(n,n.nextSibling,this,e):1===a.type?t=new a.ctor(n,a.name,a.strings,this,e):6===a.type&&(t=new ef(n,this,e)),this._$AV.push(t),a=r[++s]}o!==a?.index&&(n=er.nextNode(),o++)}return er.currentNode=j,i}p(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class el{get _$AU(){return this._$AM?._$AU??this._$Cv}
4217constructor(e,t,r,i){this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){$(e=es(this,e,t))?e===ee||null==e||""===e?(this._$AH!==ee&&this._$AR(),this._$AH=ee):e!==this._$AH&&e!==X&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):F(e)?this.k(e):this._(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}_(e){this._$AH!==ee&&$(this._$AH)?this._$AA.nextSibling.data=e:this.T(j.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=eo.createElement(ei(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(t);else{let e=new ea(i,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=et.get(e.strings);return void 0===t&&et.set(e.strings,t=new eo(e)),t}k(e){U(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,i=0;for(let n of e)i===t.length?t.push(r=new el(this.S(B()),this.S(B()),this,this.options)):r=t[i],r._$AI(n),i++;i<t.length&&(this._$AR(r&&r._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class ec{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,n){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ee}_$AI(e,t=this,r,i){let n=this.strings,o=!1;if(void 0===n)(o=!$(e=es(this,e,t,0))||e!==this._$AH&&e!==X)&&(this._$AH=e);else{let i,s;let a=e;for(e=n[0],i=0;i<n.length-1;i++)(s=es(this,a[r+i],t,i))===X&&(s=this._$AH[i]),o||=!$(s)||s!==this._$AH[i],s===ee?e=ee:e!==ee&&(e+=(s??"")+n[i+1]),this._$AH[i]=s}o&&!i&&this.j(e)}j(e){e===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class eu extends ec{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ee?void 0:e}}class ed extends ec{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ee)}}class eh extends ec{constructor(e,t,r,i,n){super(e,t,r,i,n),this.type=5}
vendor: 6,212 bytes, lines 4217-4237
4217_$AI(e,t=this){if((e=es(this,e,t,0)??ee)===X)return;let r=this._$AH,i=e===ee&&r!==ee||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==ee&&(r===ee||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ef{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){es(this,e)}}let ep={P:N,A:M,C:D,M:1,L:en,R:ea,D:F,V:es,I:el,H:ec,N:ed,U:eh,B:eu,F:ef},eg=R.litHtmlPolyfillSupport;eg?.(eo,el),(R.litHtmlVersions??=[]).push("3.1.4");let em=(e,t,r)=>{let i=r?.renderBefore??t,n=i._$litPart$;if(void 0===n){let e=r?.renderBefore??null;i._$litPart$=n=new el(t.insertBefore(B(),e),e,void 0,r??{})}return n._$AI(e),n};class ew extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=em(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return X}}ew._$litElement$=!0,ew.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ew});let ey=globalThis.litElementPolyfillSupport;ey?.({LitElement:ew}),(globalThis.litElementVersions??=[]).push("4.0.6");let eb=Q`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none"> 4218 <mask id="path-1-inside-1_18299_4189"> 4219 <path 4220 class="input_mask__border" 4221 fill-rule="evenodd" 4222 clip-rule="evenodd" 4223 d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z" 4224 /> 4225 </mask> 4226 <path 4227 class="input_mask__background" 4228 fill-rule="evenodd" 4229 clip-rule="evenodd" 4230 d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z" 4231 /> 4232 <path 4233 class="input_mask__border" 4234 d="M138.008 0L139.008 -0.00694413L139.001 -1H138.008V0ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM189.992 0V-1H188.999L188.992 -0.00694413L189.992 0ZM188.914 10.1564L189.854 10.4984V10.4984L188.914 10.1564ZM178.156 20.9145L177.814 19.9748V19.9748L178.156 20.9145ZM149.844 20.9145L150.186 19.9748V19.9748L149.844 20.9145ZM139.086 10.1564L138.146 10.4984V10.4984L139.086 10.1564ZM40 1H138.008V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM288 99H40V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM189.992 1H288V-1H189.992V1ZM188.992 -0.00694413C188.958 4.90792 188.778 7.60788 187.975 9.81434L189.854 10.4984C190.793 7.9177 190.958 4.87452 190.992 0.00694413L188.992 -0.00694413ZM187.975 9.81434C186.256 14.5364 182.536 18.2561 177.814 19.9748L178.498 21.8542C183.776 19.9333 187.933 15.7759 189.854 10.4984L187.975 9.81434ZM177.814 19.9748C175.039 20.9848 171.536 21 164 21V23C171.362 23 175.308 23.0152 178.498 21.8542L177.814 19.9748ZM164 21C156.464 21 152.961 20.9848 150.186 19.9748L149.502 21.8542C152.692 23.0152 156.638 23 164 23V21ZM150.186 19.9748C145.464 18.2561 141.744 14.5364 140.025 9.81434L138.146 10.4984C140.067 15.7759 144.224 19.9333 149.502 21.8542L150.186 19.9748ZM140.025 9.81434C139.222 7.60788 139.042 4.90792 139.008 -0.00694413L137.008 0.00694413C137.042 4.87452 137.207 7.9177 138.146 10.4984L140.025 9.81434Z" 4235 mask="url(#path-1-inside-1_18299_4189)" 4236 /> 4237</svg>
4237`,ev=Q`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none"> 4238 <mask id="path-1-inside-1_18299_4168"> 4239 <path 4240 class="input_mask__border" 4241 fill-rule="evenodd" 4242 clip-rule="evenodd" 4243 d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z" 4244 /> 4245 </mask> 4246 <path 4247 class="input_mask__background" 4248 fill-rule="evenodd" 4249 clip-rule="evenodd" 4250 d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z" 4251 /> 4252 <path 4253 class="input_mask__border" 4254 d="M138.008 100V101H139.001L139.008 100.007L138.008 100ZM139.086 89.8436L138.146 89.5016L139.086 89.8436ZM149.844 79.0855L150.186 80.0252L149.844 79.0855ZM178.156 79.0855L177.814 80.0252L178.156 79.0855ZM188.914 89.8436L189.854 89.5016L188.914 89.8436ZM189.992 100L188.992 100.007L188.999 101H189.992V100ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM138.008 99H40V101H138.008V99ZM139.008 100.007C139.042 95.0921 139.222 92.3921 140.025 90.1857L138.146 89.5016C137.207 92.0823 137.042 95.1255 137.008 99.9931L139.008 100.007ZM140.025 90.1857C141.744 85.4636 145.464 81.7439 150.186 80.0252L149.502 78.1458C144.224 80.0667 140.067 84.2241 138.146 89.5016L140.025 90.1857ZM150.186 80.0252C152.961 79.0152 156.464 79 164 79V77C156.638 77 152.692 76.9848 149.502 78.1458L150.186 80.0252ZM164 79C171.536 79 175.039 79.0152 177.814 80.0252L178.498 78.1458C175.308 76.9848 171.362 77 164 77V79ZM177.814 80.0252C182.536 81.7439 186.256 85.4636 187.975 90.1857L189.854 89.5016C187.933 84.2241 183.776 80.0667 178.498 78.1458L177.814 80.0252ZM187.975 90.1857C188.778 92.3921 188.958 95.0921 188.992 100.007L190.992 99.9931C190.958 95.1255 190.793 92.0823 189.854 89.5016L187.975 90.1857ZM288 99H189.992V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM40 1H288V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.
425400212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497Z" 4255 mask="url(#path-1-inside-1_18299_4168)" 4256 /> 4257</svg>`;var e_,ex=r(21134);function eE(e,t){i=document.createElement("style"),n=document.createElement("style"),o=document.createElement("style"),i.textContent=eS(e).core.cssText,n.textContent=eS(e).dark.cssText,o.textContent=eS(e).light.cssText,document.head.appendChild(i),document.head.appendChild(n),document.head.appendChild(o),eC(t)}function eC(e){n&&o&&("light"===e?(n.removeAttribute("media"),o.media="enabled"):(o.removeAttribute("media"),n.media="enabled"))}function ek(e){i&&n&&o&&(i.textContent=eS(e).core.cssText,n.textContent=eS(e).dark.cssText,o.textContent=eS(e).light.cssText)}function eS(e){return{core:h` 4258 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); 4259 :root { 4260 --w3m-modal-width: 360px; 4261 --w3m-color-mix-strength: ${d(e?.["--w3m-color-mix-strength"]?`${e["--w3m-color-mix-strength"]}%`:"0%")}; 4262 --w3m-font-family: ${d(e?.["--w3m-font-family"]||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")}; 4263 --w3m-font-size-master: ${d(e?.["--w3m-font-size-master"]||"10px")}; 4264 --w3m-border-radius-master: ${d(e?.["--w3m-border-radius-master"]||"4px")}; 4265 --w3m-z-index: ${d(e?.["--w3m-z-index"]||999)}; 4266 4267 --wui-font-family: var(--w3m-font-family); 4268 4269 --wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8); 4270 --wui-font-size-micro: var(--w3m-font-size-master); 4271 --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2); 4272 --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4); 4273 --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6); 4274 --wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8); 4275 --wui-font-size-large: calc(var(--w3m-font-size-master) * 2); 4276 --wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4); 4277 --wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4); 4278 4279 --wui-border-radius-5xs: var(--w3m-border-radius-master); 4280 --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5); 4281 --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2); 4282 --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3); 4283 --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4); 4284 --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5); 4285 --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7); 4286 --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9); 4287 --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20); 4288 4289 --wui-font-weight-light: 400; 4290 --wui-font-weight-regular: 500; 4291 --wui-font-weight-medium: 600; 4292 --wui-font-weight-bold: 700; 4293 4294 --wui-letter-spacing-2xl: -1.6px; 4295 --wui-letter-spacing-medium-title: -0.96px; 4296 --wui-letter-spacing-large: -0.8px; 4297 --wui-letter-spacing-medium: -0.72px; 4298 --wui-letter-spacing-paragraph: -0.64px; 4299 --wui-letter-spacing-small: -0.56px; 4300 --wui-letter-spacing-tiny: -0.48px; 4301 --wui-letter-spacing-micro: -0.2px; 4302 --wui-letter-spacing-mini: -0.16px; 4303 4304 --wui-spacing-0: 0px; 4305 --wui-spacing-4xs: 2px; 4306 --wui-spacing-3xs: 4px; 4307 --wui-spacing-xxs: 6px; 4308 --wui-spacing-2xs: 7px; 4309 --wui-spacing-xs: 8px; 4310 --wui-spacing-1xs: 10px; 4311 --wui-spacing-s: 12px; 4312 --wui-spacing-m: 14px; 4313 --wui-spacing-l: 16px; 4314 --wui-spacing-2l: 18px; 4315 --wui-spacing-xl: 20px; 4316 --wui-spacing-xxl: 24px; 4317 --wui-spacing-2xl: 32px; 4318 --wui-spacing-3xl: 40px; 4319 --wui-spacing-4xl: 90px; 4320 --wui-spacing-5xl: 95px; 4321 4322 --wui-icon-box-size-xxs: 14px; 4323 --wui-icon-box-size-xs: 20px; 4324 --wui-icon-box-size-sm: 24px; 4325 --wui-icon-box-size-md: 32px; 4326 --wui-icon-box-size-lg: 40px; 4327 --wui-icon-box-size-xl: 64px; 4328 4329 --wui-icon-size-inherit: inherit; 4330 --wui-icon-size-xxs: 10px; 4331 --wui-icon-size-xs: 12px; 4332 --wui-icon-size-sm: 14px; 4333 --wui-icon-size-md: 16px; 4334 --wui-icon-size-mdl: 18px; 4335 --wui-icon-size-lg: 20px; 4336 --wui-icon-size-xl: 24px; 4337 --wui-icon-size-xxl: 28px; 4338 4339 --wui-wallet-image-size-inherit: inherit; 4340 --wui-wallet-image-size-sm: 40px; 4341 --wui-wallet-image-size-md: 56px; 4342 --wui-wallet-image-size-lg: 80px; 4343 4344 --wui-visual-size-size-inherit: inherit; 4345 --wui-visual-size-sm: 40px; 4346 --wui-visual-size-md: 55px; 4347 --wui-visual-size-lg: 80px; 4348 4349 --wui-box-size-md: 100px; 4350 --wui-box-size-lg: 120px; 4351 4352 --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1); 4353 --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1); 4354 4355 --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1); 4356 --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1); 4357 --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1); 4358 4359 --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1); 4360 4361 --wui-duration-lg: 200ms; 4362 --wui-duration-md: 125ms; 4363 --wui-duration-sm: 75ms; 4364 4365 --wui-path-network-sm: path( 4366 'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.
436661 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z' 4367 ); 4368 4369 --wui-path-network-md: path( 4370 'M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z' 4371 ); 4372 4373 --wui-path-network-lg: path( 4374 'M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z' 4375 ); 4376 4377 --wui-width-network-sm: 36px; 4378 --wui-width-network-md: 48px; 4379 --wui-width-network-lg: 86px; 4380 4381 --wui-height-network-sm: 40px; 4382 --wui-height-network-md: 54px; 4383 --wui-height-network-lg: 96px; 4384 4385 --wui-icon-size-network-xs: 12px; 4386 --wui-icon-size-network-sm: 16px; 4387 --wui-icon-size-network-md: 24px; 4388 --wui-icon-size-network-lg: 42px; 4389 4390 --wui-color-inherit: inherit; 4391 4392 --wui-color-inverse-100: #fff; 4393 --wui-color-inverse-000: #000; 4394 4395 --wui-cover: rgba(20, 20, 20, 0.8); 4396 4397 --wui-color-modal-bg: var(--wui-color-modal-bg-base); 4398 4399 --wui-color-accent-100: var(--wui-color-accent-base-100); 4400 --wui-color-accent-090: var(--wui-color-accent-base-090); 4401 --wui-color-accent-080: var(--wui-color-accent-base-080); 4402 4403 --wui-color-success-100: var(--wui-color-success-base-100); 4404 4405 --wui-color-error-100: var(--wui-color-error-base-100); 4406 4407 --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100); 4408 --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100); 4409 --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100); 4410 --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100); 4411 4412 --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100); 4413 4414 --wui-avatar-border: var(--wui-avatar-border-base); 4415 4416 --wui-thumbnail-border: var(--wui-thumbnail-border-base); 4417 4418 --wui-box-shadow-blue: var(--wui-color-accent-glass-020); 4419 } 4420 4421 @supports (background: color-mix(in srgb, white 50%, black)) { 4422 :root { 4423 --wui-color-modal-bg: color-mix( 4424 in srgb, 4425 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4426 var(--wui-color-modal-bg-base) 4427 ); 4428 4429 --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent); 4430 4431 --wui-color-accent-100: color-mix( 4432 in srgb, 4433 var(--wui-color-accent-base-100) 100%, 4434 transparent 4435 ); 4436 --wui-color-accent-090: color-mix( 4437 in srgb, 4438 var(--wui-color-accent-base-100) 90%, 4439 transparent 4440 ); 4441 --wui-color-accent-080: color-mix( 4442 in srgb, 4443 var(--wui-color-accent-base-100) 80%, 4444 transparent 4445 ); 4446 --wui-color-accent-glass-090: color-mix( 4447 in srgb, 4448 var(--wui-color-accent-base-100) 90%, 4449 transparent 4450 ); 4451 --wui-color-accent-glass-080: color-mix( 4452 in srgb, 4453 var(--wui-color-accent-base-100) 80%, 4454 transparent 4455 ); 4456 --wui-color-accent-glass-020: color-mix( 4457 in srgb, 4458 var(--wui-color-accent-base-100) 20%, 4459 transparent 4460 ); 4461 --wui-color-accent-glass-015: color-mix( 4462 in srgb, 4463 var(--wui-color-accent-base-100) 15%, 4464 transparent 4465 ); 4466 --wui-color-accent-glass-010: color-mix( 4467 in srgb, 4468 var(--wui-color-accent-base-100) 10%, 4469 transparent 4470 ); 4471 --wui-color-accent-glass-005: color-mix( 4472 in srgb, 4473 var(--wui-color-accent-base-100) 5%, 4474 transparent 4475 ); 4476 --wui-color-accent-002: color-mix( 4477 in srgb, 4478 var(--wui-color-accent-base-100) 2%, 4479 transparent 4480 ); 4481 4482 --wui-color-fg-100: color-mix( 4483 in srgb, 4484 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4485 var(--wui-color-fg-100) 4486 ); 4487 --wui-color-fg-125: color-mix( 4488 in srgb, 4489 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4490 var(--wui-color-fg-125) 4491 ); 4492 --wui-color-fg-150: color-mix( 4493 in srgb, 4494 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4495 var(--wui-color-fg-150) 4496 ); 4497 --wui-color-fg-175: color-mix( 4498 in srgb, 4499 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4500 var(--wui-color-fg-175) 4501 ); 4502 --wui-color-fg-200: color-mix( 4503 in srgb, 4504 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4505 var(--wui-color-fg-200) 4506 ); 4507 --wui-color-fg-225: color-mix( 4508 in srgb, 4509 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4510 var(--wui-color-fg-225) 4511 ); 4512 --wui-color-fg-250: color-mix( 4513 in srgb, 4514 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4515 var(--wui-color-fg-250) 4516 ); 4517 --wui-color-fg-275: color-mix( 4518 in srgb, 4519 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4520 var(--wui-color-fg-275) 4521 ); 4522 --wui-color-fg-300: color-mix( 4523 in srgb, 4524 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4525 var(--wui-color-fg-300) 4526 ); 4527 4528 --wui-color-bg-100: color-mix( 4529 in srgb, 4530 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4531 var(--wui-color-bg-100) 4532 ); 4533 --wui-color-bg-125: color-mix( 4534 in srgb, 4535 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4536 var(--wui-color-bg-125) 4537 ); 4538 --wui-color-bg-150: color-mix( 4539 in srgb, 4540 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4541 var(--wui-color-bg-150) 4542 ); 4543 --wui-color-bg-175: color-mix( 4544 in srgb, 4545 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4546 var(--wui-color-bg-175) 4547 ); 4548 --wui-color-bg-200: color-mix( 4549 in srgb, 4550 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4551 var(--wui-color-bg-200) 4552 ); 4553 --wui-color-bg-225: color-mix( 4554 in srgb, 4555 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4556 var(--wui-color-bg-225) 4557 ); 4558 --wui-color-bg-250: color-mix( 4559 in srgb, 4560 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4561 var(--wui-color-bg-250) 4562 ); 4563 --wui-color-bg-275: color-mix( 4564 in srgb, 4565 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4566 var(--wui-color-bg-275) 4567 ); 4568 --wui-color-bg-300: color-mix( 4569 in srgb, 4570 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4571 var(--wui-color-bg-300) 4572 ); 4573 4574 --wui-color-success-100: color-mix( 4575 in srgb, 4576 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4577 var(--wui-color-success-base-100) 4578 ); 4579 --wui-color-error-100: color-mix( 4580 in srgb, 4581 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4582 var(--wui-color-error-base-100) 4583 ); 4584 4585 --wui-icon-box-bg-error-100: color-mix( 4586 in srgb, 4587 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4588 var(--wui-icon-box-bg-error-base-100) 4589 ); 4590 --wui-icon-box-bg-accent-100: color-mix( 4591 in srgb, 4592 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4593 var(--wui-icon-box-bg-blue-base-100) 4594 ); 4595 --wui-icon-box-bg-success-100: color-mix( 4596 in srgb, 4597 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4598 var(--wui-icon-box-bg-success-base-100) 4599 ); 4600 --wui-icon-box-bg-inverse-100: color-mix( 4601 in srgb, 4602 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4603 var(--wui-icon-box-bg-inverse-base-100) 4604 ); 4605 4606 --wui-all-wallets-bg-100: color-mix( 4607 in srgb, 4608 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4609 var(--wui-all-wallets-bg-100) 4610 ); 4611 4612 --wui-avatar-border: color-mix( 4613 in srgb, 4614 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4615 var(--wui-avatar-border-base) 4616 ); 4617
4618 --wui-thumbnail-border: color-mix( 4619 in srgb, 4620 var(--w3m-color-mix) var(--w3m-color-mix-strength), 4621 var(--wui-thumbnail-border-base) 4622 ); 4623 } 4624 } 4625 `,light:h` 4626 :root { 4627 --w3m-color-mix: ${d(e?.["--w3m-color-mix"]||"#fff")}; 4628 --w3m-accent: ${d((0,ex.tU)(e,"dark")["--w3m-accent"])}; 4629 --w3m-default: #fff; 4630 4631 --wui-color-modal-bg-base: ${d((0,ex.tU)(e,"dark")["--w3m-background"])}; 4632 --wui-color-accent-base-100: var(--w3m-accent); 4633 4634 --wui-color-blueberry-100: hsla(230, 100%, 67%, 1); 4635 --wui-color-blueberry-090: hsla(231, 76%, 61%, 1); 4636 --wui-color-blueberry-080: hsla(230, 59%, 55%, 1); 4637 4638 --wui-color-fg-100: #e4e7e7; 4639 --wui-color-fg-125: #d0d5d5; 4640 --wui-color-fg-150: #a8b1b1; 4641 --wui-color-fg-175: #a8b0b0; 4642 --wui-color-fg-200: #949e9e; 4643 --wui-color-fg-225: #868f8f; 4644 --wui-color-fg-250: #788080; 4645 --wui-color-fg-275: #788181; 4646 --wui-color-fg-300: #6e7777; 4647 4648 --wui-color-bg-100: #141414; 4649 --wui-color-bg-125: #191a1a; 4650 --wui-color-bg-150: #1e1f1f; 4651 --wui-color-bg-175: #222525; 4652 --wui-color-bg-200: #272a2a; 4653 --wui-color-bg-225: #2c3030; 4654 --wui-color-bg-250: #313535; 4655 --wui-color-bg-275: #363b3b; 4656 --wui-color-bg-300: #3b4040; 4657 4658 --wui-color-success-base-100: #26d962; 4659 --wui-color-error-base-100: #f25a67; 4660 4661 --wui-color-success-glass-001: rgba(38, 217, 98, 0.01); 4662 --wui-color-success-glass-002: rgba(38, 217, 98, 0.02); 4663 --wui-color-success-glass-005: rgba(38, 217, 98, 0.05); 4664 --wui-color-success-glass-010: rgba(38, 217, 98, 0.1); 4665 --wui-color-success-glass-015: rgba(38, 217, 98, 0.15); 4666 --wui-color-success-glass-020: rgba(38, 217, 98, 0.2); 4667 --wui-color-success-glass-025: rgba(38, 217, 98, 0.25); 4668 --wui-color-success-glass-030: rgba(38, 217, 98, 0.3); 4669 --wui-color-success-glass-060: rgba(38, 217, 98, 0.6); 4670 --wui-color-success-glass-080: rgba(38, 217, 98, 0.8); 4671 4672 --wui-color-error-glass-001: rgba(242, 90, 103, 0.01); 4673 --wui-color-error-glass-002: rgba(242, 90, 103, 0.02); 4674 --wui-color-error-glass-005: rgba(242, 90, 103, 0.05); 4675 --wui-color-error-glass-010: rgba(242, 90, 103, 0.1); 4676 --wui-color-error-glass-015: rgba(242, 90, 103, 0.15); 4677 --wui-color-error-glass-020: rgba(242, 90, 103, 0.2); 4678 --wui-color-error-glass-025: rgba(242, 90, 103, 0.25); 4679 --wui-color-error-glass-030: rgba(242, 90, 103, 0.3); 4680 --wui-color-error-glass-060: rgba(242, 90, 103, 0.6); 4681 --wui-color-error-glass-080: rgba(242, 90, 103, 0.8); 4682 4683 --wui-color-gray-glass-001: rgba(255, 255, 255, 0.01); 4684 --wui-color-gray-glass-002: rgba(255, 255, 255, 0.02); 4685 --wui-color-gray-glass-005: rgba(255, 255, 255, 0.05); 4686 --wui-color-gray-glass-010: rgba(255, 255, 255, 0.1); 4687 --wui-color-gray-glass-015: rgba(255, 255, 255, 0.15); 4688 --wui-color-gray-glass-020: rgba(255, 255, 255, 0.2); 4689 --wui-color-gray-glass-025: rgba(255, 255, 255, 0.25); 4690 --wui-color-gray-glass-030: rgba(255, 255, 255, 0.3); 4691 --wui-color-gray-glass-060: rgba(255, 255, 255, 0.6); 4692 --wui-color-gray-glass-080: rgba(255, 255, 255, 0.8); 4693 --wui-color-gray-glass-090: rgba(255, 255, 255, 0.9); 4694 4695 --wui-icon-box-bg-error-base-100: #3c2426; 4696 --wui-icon-box-bg-blue-base-100: #20303f; 4697 --wui-icon-box-bg-success-base-100: #1f3a28; 4698 --wui-icon-box-bg-inverse-base-100: #243240; 4699 4700 --wui-all-wallets-bg-100: #222b35; 4701 4702 --wui-avatar-border-base: #252525; 4703 4704 --wui-thumbnail-border-base: #252525; 4705 } 4706 `,dark:h` 4707 :root { 4708 --w3m-color-mix: ${d(e?.["--w3m-color-mix"]||"#000")}; 4709 --w3m-accent: ${d((0,ex.tU)(e,"light")["--w3m-accent"])}; 4710 --w3m-default: #000; 4711 4712 --wui-color-modal-bg-base: ${d((0,ex.tU)(e,"light")["--w3m-background"])}; 4713 --wui-color-accent-base-100: var(--w3m-accent); 4714 4715 --wui-color-blueberry-100: hsla(231, 100%, 70%, 1); 4716 --wui-color-blueberry-090: hsla(231, 97%, 72%, 1); 4717 --wui-color-blueberry-080: hsla(231, 92%, 74%, 1); 4718 4719 --wui-color-fg-100: #141414; 4720 --wui-color-fg-125: #2d3131; 4721 --wui-color-fg-150: #474d4d; 4722 --wui-color-fg-175: #636d6d; 4723 --wui-color-fg-200: #798686; 4724 --wui-color-fg-225: #828f8f; 4725 --wui-color-fg-250: #8b9797; 4726 --wui-color-fg-275: #95a0a0; 4727 --wui-color-fg-300: #9ea9a9; 4728 4729 --wui-color-bg-100: #ffffff; 4730 --wui-color-bg-125: #f5fafa; 4731 --wui-color-bg-150: #f3f8f8; 4732 --wui-color-bg-175: #eef4f4; 4733 --wui-color-bg-200: #eaf1f1; 4734 --wui-color-bg-225: #e5eded; 4735 --wui-color-bg-250: #e1e9e9; 4736 --wui-color-bg-275: #dce7e7; 4737 --wui-color-bg-300: #d8e3e3; 4738 4739 --wui-color-success-base-100: #26b562; 4740 --wui-color-error-base-100: #f05142; 4741 4742 --wui-color-success-glass-001: rgba(38, 181, 98, 0.01); 4743 --wui-color-success-glass-002: rgba(38, 181, 98, 0.02); 4744 --wui-color-success-glass-005: rgba(38, 181, 98, 0.05); 4745 --wui-color-success-glass-010: rgba(38, 181, 98, 0.1); 4746 --wui-color-success-glass-015: rgba(38, 181, 98, 0.15); 4747 --wui-color-success-glass-020: rgba(38, 181, 98, 0.2); 4748 --wui-color-success-glass-025: rgba(38, 181, 98, 0.25); 4749 --wui-color-success-glass-030: rgba(38, 181, 98, 0.3); 4750 --wui-color-success-glass-060: rgba(38, 181, 98, 0.6); 4751 --wui-color-success-glass-080: rgba(38, 181, 98, 0.8); 4752 4753 --wui-color-error-glass-001: rgba(240, 81, 66, 0.01); 4754 --wui-color-error-glass-002: rgba(240, 81, 66, 0.02); 4755 --wui-color-error-glass-005: rgba(240, 81, 66, 0.05); 4756 --wui-color-error-glass-010: rgba(240, 81, 66, 0.1); 4757 --wui-color-error-glass-015: rgba(240, 81, 66, 0.15); 4758 --wui-color-error-glass-020: rgba(240, 81, 66, 0.2); 4759 --wui-color-error-glass-025: rgba(240, 81, 66, 0.25); 4760 --wui-color-error-glass-030: rgba(240, 81, 66, 0.3); 4761 --wui-color-error-glass-060: rgba(240, 81, 66, 0.6); 4762 --wui-color-error-glass-080: rgba(240, 81, 66, 0.8); 4763 4764 --wui-icon-box-bg-error-base-100: #f4dfdd; 4765 --wui-icon-box-bg-blue-base-100: #d9ecfb; 4766 --wui-icon-box-bg-success-base-100: #daf0e4; 4767 --wui-icon-box-bg-inverse-base-100: #dcecfc; 4768 4769 --wui-all-wallets-bg-100: #e8f1fa; 4770 4771 --wui-avatar-border-base: #f3f4f4; 4772
4773 --wui-thumbnail-border-base: #eaefef; 4774 4775 --wui-color-gray-glass-001: rgba(0, 0, 0, 0.01); 4776 --wui-color-gray-glass-002: rgba(0, 0, 0, 0.02); 4777 --wui-color-gray-glass-005: rgba(0, 0, 0, 0.05); 4778 --wui-color-gray-glass-010: rgba(0, 0, 0, 0.1); 4779 --wui-color-gray-glass-015: rgba(0, 0, 0, 0.15); 4780 --wui-color-gray-glass-020: rgba(0, 0, 0, 0.2); 4781 --wui-color-gray-glass-025: rgba(0, 0, 0, 0.25); 4782 --wui-color-gray-glass-030: rgba(0, 0, 0, 0.3); 4783 --wui-color-gray-glass-060: rgba(0, 0, 0, 0.6); 4784 --wui-color-gray-glass-080: rgba(0, 0, 0, 0.8); 4785 --wui-color-gray-glass-090: rgba(0, 0, 0, 0.9); 4786 } 4787 `}}let eA=h` 4788 *, 4789 *::after, 4790 *::before, 4791 :host { 4792 margin: 0; 4793 padding: 0; 4794 box-sizing: border-box; 4795 font-style: normal; 4796 text-rendering: optimizeSpeed; 4797 -webkit-font-smoothing: antialiased; 4798 -moz-osx-font-smoothing: grayscale; 4799 -webkit-tap-highlight-color: transparent; 4800 font-family: var(--wui-font-family); 4801 backface-visibility: hidden; 4802 } 4803`,eI=h` 4804 button, 4805 a { 4806 cursor: pointer; 4807 display: flex; 4808 justify-content: center; 4809 align-items: center; 4810 position: relative; 4811 transition: 4812 background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 4813 color var(--wui-ease-inout-power-1) var(--wui-duration-md), 4814 box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); 4815 will-change: background-color, color; 4816 outline: none; 4817 border: none; 4818 column-gap: var(--wui-spacing-3xs); 4819 background-color: transparent; 4820 text-decoration: none; 4821 } 4822 4823 button:disabled > wui-wallet-image, 4824 button:disabled > wui-all-wallets-image, 4825 button:disabled > wui-network-image, 4826 button:disabled > wui-image, 4827 button:disabled > wui-icon-box, 4828 button:disabled > wui-transaction-visual, 4829 button:disabled > wui-logo { 4830 filter: grayscale(1); 4831 } 4832 4833 input { 4834 border: none; 4835 outline: none; 4836 appearance: none; 4837 } 4838`,eT=h` 4839 .wui-color-inherit { 4840 color: var(--wui-color-inherit); 4841 } 4842 4843 .wui-color-accent-100 { 4844 color: var(--wui-color-accent-100); 4845 } 4846 4847 .wui-color-error-100 { 4848 color: var(--wui-color-error-100); 4849 } 4850 4851 .wui-color-success-100 { 4852 color: var(--wui-color-success-100); 4853 } 4854 4855 .wui-color-inverse-100 { 4856 color: var(--wui-color-inverse-100); 4857 } 4858 4859 .wui-color-inverse-000 { 4860 color: var(--wui-color-inverse-000); 4861 } 4862 4863 .wui-color-fg-100 { 4864 color: var(--wui-color-fg-100); 4865 } 4866 4867 .wui-color-fg-200 { 4868 color: var(--wui-color-fg-200); 4869 } 4870 4871 .wui-color-fg-300 { 4872 color: var(--wui-color-fg-300); 4873 } 4874 4875 .wui-bg-color-inherit { 4876 background-color: var(--wui-color-inherit); 4877 } 4878 4879 .wui-bg-color-blue-100 { 4880 background-color: var(--wui-color-accent-100); 4881 } 4882 4883 .wui-bg-color-error-100 { 4884 background-color: var(--wui-color-error-100); 4885 } 4886 4887 .wui-bg-color-success-100 { 4888 background-color: var(--wui-color-success-100); 4889 } 4890 4891 .wui-bg-color-inverse-100 { 4892 background-color: var(--wui-color-inverse-100); 4893 } 4894 4895 .wui-bg-color-inverse-000 { 4896 background-color: var(--wui-color-inverse-000); 4897 } 4898 4899 .wui-bg-color-fg-100 { 4900 background-color: var(--wui-color-fg-100); 4901 } 4902 4903 .wui-bg-color-fg-200 { 4904 background-color: var(--wui-color-fg-200); 4905 } 4906 4907 .wui-bg-color-fg-300 { 4908 background-color: var(--wui-color-fg-300); 4909 } 4910`;function eR(e,t){let{kind:r,elements:i}=t;return{kind:r,elements:i,finisher(t){customElements.get(e)||customElements.define(e,t)}}}function eO(e,t){return customElements.get(e)||customElements.define(e,t),t}function eP(e){return function(t){return"function"==typeof t?eO(e,t):eR(e,t)}}var eN=h` 4911 :host { 4912 display: block; 4913 border-radius: clamp(0px, var(--wui-border-radius-l), 44px); 4914 box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005); 4915 background-color: var(--wui-color-modal-bg); 4916 overflow: hidden; 4917 } 4918`,eM=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let eD=class extends ew{render(){return J`<slot></slot>`}};eD.styles=[eA,eN],eD=eM([eP("wui-card")],eD);let eL={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:A},ej=(e=eL,t,r)=>{let{kind:i,metadata:n}=r,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),o.set(r.name,e),"accessor"===i){let{name:i}=r;return{set(r){let n=t.get.call(this);t.set.call(this,r),this.requestUpdate(i,n,e)},init(t){return void 0!==t&&this.P(i,void 0,e),t}}}if("setter"===i){let{name:i}=r;return function(r){let n=this[i];t.call(this,r),this.requestUpdate(i,n,e)}}throw Error("Unsupported decorator location: "+i)};function eB(e){return(t,r)=>"object"==typeof r?ej(e,t,r):((e,t,r)=>{let i=t.hasOwnProperty(r);return t.constructor.createProperty(r,i?{...e,wrapped:!0}:e),i?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}function e$(e){return eB({...e,state:!0,attribute:!1})}var eU=h` 4919 :host { 4920 display: flex; 4921 aspect-ratio: 1 / 1; 4922 color: var(--local-color); 4923 width: var(--local-width); 4924 } 4925 4926 svg { 4927 width: inherit; 4928 height: inherit; 4929 object-fit: contain; 4930 object-position: center; 4931 } 4932`;let eF=Q`<svg 4933 width="14" 4934 height="14" 4935 viewBox="0 0 14 14" 4936 fill="none" 4937 xmlns="http://www.w3.org/2000/svg" 4938> 4939 <path 4940 fill="currentColor" 4941 fill-rule="evenodd" 4942 clip-rule="evenodd" 4943 d="M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z" 4944 fill="#667dff" 4945 /></svg 4946>`,ez=Q`<svg fill="none" viewBox="0 0 24 24"> 4947 <path 4948 style="fill: var(--wui-color-accent-100);" 4949 d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6
4949a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z" 4950 /> 4951</svg>`,eq=Q`<svg 4952 fill="none" 4953 viewBox="0 0 21 20" 4954> 4955 <path 4956 fill="currentColor" 4957 fill-rule="evenodd" 4958 d="M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z" 4959 clip-rule="evenodd" 4960 /></svg 4961>`,eW=Q` 4962<svg width="36" height="36"> 4963 <path 4964 d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z" 4965 fill="url(#a)" 4966 /> 4967 <path 4968 d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z" 4969 fill="#fff" 4970 /> 4971 <defs> 4972 <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse"> 4973 <stop stop-color="#18BFFB" /> 4974 <stop offset="1" stop-color="#2072F3" /> 4975 </linearGradient> 4976 </defs> 4977</svg>`,eH=Q`<svg fill="none" viewBox="0 0 40 40"> 4978 <g clip-path="url(#a)"> 4979 <g clip-path="url(#b)"> 4980 <circle cx="20" cy="19.89" r="20" fill="#000" /> 4981 <g clip-path="url(#c)"> 4982 <path 4983 fill="#fff" 4984 d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z" 4985 /> 4986 </g> 4987 </g> 4988 </g> 4989 <defs> 4990 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 4991 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 4992 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 4993 </defs> 4994</svg>`,eV=Q`<svg fill="none" viewBox="0 0 14 15"> 4995 <path 4996 fill="currentColor" 4997 fill-rule="evenodd" 4998 d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z" 4999 clip-rule="evenodd" 5000 /> 5001</svg>`,eZ=Q`<svg fill="none" viewBox="0 0 14 15"> 5002 <path 5003 fill="currentColor" 5004 fill-rule="evenodd" 5005 d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z" 5006 clip-rule="evenodd" 5007 /> 5008</svg>`,eK=Q`<svg fill="none" viewBox="0 0 14 15"> 5009 <path 5010 fill="currentColor" 5011 fill-rule="evenodd" 5012 d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z" 5013 clip-rule="evenodd" 5014 /> 5015</svg>`,eG=Q`<svg fill="none" viewBox="0 0 14 15"> 5016 <path 5017 fill="currentColor" 5018 fill-rule="evenodd" 5019 d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z" 5020 clip-rule="evenodd" 5021 /> 5022</svg>`,eY=Q`<svg 5023 xmlns="http://www.w3.org/2000/svg" 5024 width="12" 5025 height="13" 5026 viewBox="0 0 12 13" 5027 fill="none" 5028> 5029 <path 5030 fill-rule="evenodd" 5031 clip-rule="evenodd" 5032 d="M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z" 5033 fill="currentColor" 5034 /></svg 5035>`,eJ=Q`<svg fill="none" viewBox="0 0 20 20"> 5036 <path 5037 fill="currentColor" 5038 fill-rule="evenodd" 5039 d="M4 6.4a1 1 0 0 1-.46.89 6.98 6.98 0 0 0 .38 6.18A7 7 0 0 0 16.46 7.3a1 1 0 0 1-.47-.92 7 7 0 0 0-12 .03Zm-2.02-.5a9 9 0 1 1 16.03 8.2A9 9 0 0 1 1.98 5.9Z" 5040 clip-rule="evenodd" 5041 /> 5042 <path 5043 fill="currentColor" 5044 fill-rule="evenodd" 5045 d="M6.03 8.63c-1.46-.3-2.72-.75-3.6-1.35l-.02-.01-.14-.11a1 1 0 0 1 1.2-1.6l.1.08c.6.4 1.52.74 2.69 1 .16-.99.39-1.88.67-2.65.3-.79.68-1.5 1.15-2.02A2.58 2.58 0 0 1 9.99 1c.8 0 1.45.44 1.92.97.47.52.84 1.23 1.14 2.02.29.77.52 1.66.68 2.64a8 8 0 0 0 2.7-1l.26-.18h.48a1 1 0 0 1 .12 2c-.86.51-2.01.91-3.34 1.18a22.24 22.24 0 0 1-.03 3.19c1.45.29 2.7.73 3.58 1.31a1 1 0 0 1-1.1 1.68c-.6-.4-1.56-.76-2.75-1-.15.8-.36 1.55-.6 2.2-.3.79-.67 1.5-1.14 2.02-.47.53-1.12.97-1.92.97-.8 0-1.45-.44-1.91-.97a6.51 6.51 0 0 1-1.15-2.02c-.24-.65-.44-1.4-.6-2.2-1.18.24-2.13.6-2.73.99a1 1 0 1 1-1.1-1.67c.88-.58 2.12-1.03 3.57-1.31a22.03 22.03 0 0 1-.04-3.2Zm2.2-1.7c.15-.86.34-1.61.58-2.24.24-.65.51-1.12.76-1.4.25-.28.4-.29.42-.29.03 0 .17.01.42.3.25.27.52.74.77 1.4.23.62.43 1.37.57 2.22a19.96 19.96 0 0 1-3.52 0Zm-.18 4.6a20.1 20.1 0 0 1-.03-2.62 21.95 21.95 0 0 0 3.94 0 20.4 20.4 0 0 1-.03 2.63 21.97 21.97 0 0 0-3.88 0Zm.27 2c.13.66.3 1.26.49 1.78.24.65.51 1.12.76 1.4.25.28.4.29.42.29.03 0 .17-.01.42-.3.25-.27.52-.74.77-1.4.19-.5.36-1.1.49-1.78a20.03 20.03 0 0 0-3.35 0Z" 5046 clip-rule="evenodd" 5047 /> 5048</svg>`,eQ=Q`<svg 5049 xmlns="http://www.w3.org/2000/svg" 5050 width="12" 5051 height="13" 5052 viewBox="0 0 12 13" 5053 fill="none" 5054> 5055 <path 5056 fill-rule="evenodd" 5057 clip-rule="evenodd" 5058 d="M4.16072 2C4.17367 2 4.18665 2 4.19968 2L7.83857 2C8.36772 1.99998 8.82398 1.99996 9.19518 2.04018C9.5895 2.0829 9.97577 2.17811 10.3221 2.42971C10.5131 2.56849 10.6811 2.73647 10.8198 2.92749C11.0714 3.27379 11.1666 3.66007 11.2094 4.0544C11.2496 4.42561 11.2496 4.88188 11.2495 5.41105V7.58896C11.2496 8.11812 11.2496 8.57439 11.2094 8.94561C11.1666 9.33994 11.0714 9.72621 10.8198 10.0725C10.6811 10.2635 10.5131 10.4315 10.3221 10.5703C9.97577 10.8219 9.5895 10.9171 9.19518 10.9598C8.82398 11 8.36772 11 7.83856 11H4.16073C3.63157 11 3.17531 11 2.80411 10.9598C2.40979 10.9171 2.02352 10.8219 1.67722 10.5703C1.48621 10.4315 1.31824 10.2635 1.17946 10.0725C0.927858 9.72621 0.832652 9.33994 0.78993 8.94561C0.749713 8.5744 0.749733 8.11813 0.749757 7.58896L0.749758 5.45C0.749758 5.43697 0.749758 5.42399 0.749757 5.41104C0.749733 4.88188 0.749713 4.42561 0.78993 4.0544C0.832652 3.66007 0.927858 3.27379 1.17946 2.92749C1.31824 2.73647 1.48621 2.56849 1.67722 2.42971C2.02352 2.17811 2.40979 2.0829 2.80411 2.04018C3.17531 1.99996 3.63157 1.99998 4.16072 2ZM2.96567 3.53145C2.69897 3.56034 2.60687 3.60837 2.55888 3.64324C2.49521 3.6895 2.43922 3.74549 2.39296 3.8
50580916C2.35809 3.85715 2.31007 3.94926 2.28117 4.21597C2.26629 4.35335 2.25844 4.51311 2.25431 4.70832H9.74498C9.74085 4.51311 9.733 4.35335 9.71812 4.21597C9.68922 3.94926 9.6412 3.85715 9.60633 3.80916C9.56007 3.74549 9.50408 3.6895 9.44041 3.64324C9.39242 3.60837 9.30031 3.56034 9.03362 3.53145C8.75288 3.50103 8.37876 3.5 7.79961 3.5H4.19968C3.62053 3.5 3.24641 3.50103 2.96567 3.53145ZM9.74956 6.20832H2.24973V7.55C2.24973 8.12917 2.25076 8.5033 2.28117 8.78404C2.31007 9.05074 2.35809 9.14285 2.39296 9.19084C2.43922 9.25451 2.49521 9.31051 2.55888 9.35677C2.60687 9.39163 2.69897 9.43966 2.96567 9.46856C3.24641 9.49897 3.62053 9.5 4.19968 9.5H7.79961C8.37876 9.5 8.75288 9.49897 9.03362 9.46856C9.30032 9.43966 9.39242 9.39163 9.44041 9.35677C9.50408 9.31051 9.56007 9.25451 9.60633 9.19084C9.6412 9.14285 9.68922 9.05075 9.71812 8.78404C9.74854 8.5033 9.74956 8.12917 9.74956 7.55V6.20832ZM6.74963 8C6.74963 7.58579 7.08541 7.25 7.49961 7.25H8.2496C8.6638 7.25 8.99958 7.58579 8.99958 8C8.99958 8.41422 8.6638 8.75 8.2496 8.75H7.49961C7.08541 8.75 6.74963 8.41422 6.74963 8Z" 5059 fill="currentColor" 5060 /></svg 5061>`,eX=Q`<svg fill="none" viewBox="0 0 14 14"> 5062 <path 5063 fill="currentColor" 5064 fill-rule="evenodd" 5065 d="M12.9576 2.23383C13.3807 2.58873 13.4361 3.21947 13.0812 3.64263L6.37159 11.6426C6.19161 11.8572 5.92989 11.9865 5.65009 11.999C5.3703 12.0115 5.09808 11.9062 4.89965 11.7085L0.979321 7.80331C0.588042 7.41354 0.586817 6.78038 0.976585 6.3891C1.36635 5.99782 1.99952 5.99659 2.3908 6.38636L5.53928 9.52268L11.5488 2.35742C11.9037 1.93426 12.5344 1.87893 12.9576 2.23383Z" 5066 clip-rule="evenodd" 5067 /> 5068</svg>`,e0=Q`<svg 5069 width="28" 5070 height="28" 5071 viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"> 5072 <path 5073 fill-rule="evenodd" 5074 clip-rule="evenodd" 5075 d="M25.5297 4.92733C26.1221 5.4242 26.1996 6.30724 25.7027 6.89966L12.2836 22.8997C12.0316 23.2001 11.6652 23.3811 11.2735 23.3986C10.8817 23.4161 10.5006 23.2686 10.2228 22.9919L2.38218 15.1815C1.83439 14.6358 1.83268 13.7494 2.37835 13.2016C2.92403 12.6538 3.81046 12.6521 4.35825 13.1978L11.1183 19.9317L23.5573 5.10036C24.0542 4.50794 24.9372 4.43047 25.5297 4.92733Z" 5076 fill="#26D962"/> 5077</svg> 5078`,e1=Q`<svg fill="none" viewBox="0 0 16 16"> 5079 <path 5080 fill="currentColor" 5081 fill-rule="evenodd" 5082 d="M1.46 4.96a1 1 0 0 1 1.41 0L8 10.09l5.13-5.13a1 1 0 1 1 1.41 1.41l-5.83 5.84a1 1 0 0 1-1.42 0L1.46 6.37a1 1 0 0 1 0-1.41Z" 5083 clip-rule="evenodd" 5084 /> 5085</svg>`,e2=Q`<svg fill="none" viewBox="0 0 16 16"> 5086 <path 5087 fill="currentColor" 5088 fill-rule="evenodd" 5089 d="M11.04 1.46a1 1 0 0 1 0 1.41L5.91 8l5.13 5.13a1 1 0 1 1-1.41 1.41L3.79 8.71a1 1 0 0 1 0-1.42l5.84-5.83a1 1 0 0 1 1.41 0Z" 5090 clip-rule="evenodd" 5091 /> 5092</svg>`,e3=Q`<svg fill="none" viewBox="0 0 16 16"> 5093 <path 5094 fill="currentColor" 5095 fill-rule="evenodd" 5096 d="M4.96 14.54a1 1 0 0 1 0-1.41L10.09 8 4.96 2.87a1 1 0 0 1 1.41-1.41l5.84 5.83a1 1 0 0 1 0 1.42l-5.84 5.83a1 1 0 0 1-1.41 0Z" 5097 clip-rule="evenodd" 5098 /> 5099</svg>`,e5=Q`<svg fill="none" viewBox="0 0 16 16"> 5100 <path 5101 fill="currentColor" 5102 fill-rule="evenodd" 5103 d="M14.54 11.04a1 1 0 0 1-1.41 0L8 5.92l-5.13 5.12a1 1 0 1 1-1.41-1.41l5.83-5.84a1 1 0 0 1 1.42 0l5.83 5.84a1 1 0 0 1 0 1.41Z" 5104 clip-rule="evenodd" 5105 /> 5106</svg>`,e4=Q`<svg width="36" height="36" fill="none"> 5107 <path 5108 fill="#fff" 5109 fill-opacity=".05" 5110 d="M0 14.94c0-5.55 0-8.326 1.182-10.4a9 9 0 0 1 3.359-3.358C6.614 0 9.389 0 14.94 0h6.12c5.55 0 8.326 0 10.4 1.182a9 9 0 0 1 3.358 3.359C36 6.614 36 9.389 36 14.94v6.12c0 5.55 0 8.326-1.182 10.4a9 9 0 0 1-3.359 3.358C29.386 36 26.611 36 21.06 36h-6.12c-5.55 0-8.326 0-10.4-1.182a9 9 0 0 1-3.358-3.359C0 29.386 0 26.611 0 21.06v-6.12Z" 5111 /> 5112 <path 5113 stroke="#fff" 5114 stroke-opacity=".05" 5115 d="M14.94.5h6.12c2.785 0 4.84 0 6.46.146 1.612.144 2.743.43 3.691.97a8.5 8.5 0 0 1 3.172 3.173c.541.948.826 2.08.971 3.692.145 1.62.146 3.675.146 6.459v6.12c0 2.785 0 4.84-.146 6.46-.145 1.612-.43 2.743-.97 3.691a8.5 8.5 0 0 1-3.173 3.172c-.948.541-2.08.826-3.692.971-1.62.145-3.674.146-6.459.146h-6.12c-2.784 0-4.84 0-6.46-.146-1.612-.145-2.743-.43-3.691-.97a8.5 8.5 0 0 1-3.172-3.173c-.541-.948-.827-2.08-.971-3.692C.5 25.9.5 23.845.5 21.06v-6.12c0-2.784 0-4.84.146-6.46.144-1.612.43-2.743.97-3.691A8.5 8.5 0 0 1 4.79 1.617C5.737 1.076 6.869.79 8.48.646 10.1.5 12.156.5 14.94.5Z" 5116 /> 5117 <path 5118 fill="url(#a)" 5119 d="M17.998 10.8h12.469a14.397 14.397 0 0 0-24.938.001l6.234 10.798.006-.001a7.19 7.19 0 0 1 6.23-10.799Z" 5120 /> 5121 <path 5122 fill="url(#b)" 5123 d="m24.237 21.598-6.234 10.798A14.397 14.397 0 0 0 30.47 10.798H18.002l-.002.006a7.191 7.191 0 0 1 6.237 10.794Z" 5124 /> 5125 <path 5126 fill="url(#c)" 5127 d="M11.765 21.601 5.531 10.803A14.396 14.396 0 0 0 18.001 32.4l6.235-10.798-.004-.004a7.19 7.19 0 0 1-12.466.004Z" 5128 /> 5129 <path fill="#fff" d="M18 25.2a7.2 7.2 0 1 0 0-14.4 7.2 7.2 0 0 0 0 14.4Z" /> 5130 <path fill="#1A73E8" d="M18 23.7a5.7 5.7 0 1 0 0-11.4 5.7 5.7 0 0 0 0 11.4Z" /> 5131 <defs> 5132 <linearGradient 5133 id="a" 5134 x1="6.294" 5135 x2="41.1" 5136 y1="5.995" 5137 y2="5.995" 5138 gradientUnits="userSpaceOnUse" 5139 > 5140 <stop stop-color="#D93025" /> 5141 <stop offset="1" stop-color="#EA4335" /> 5142 </linearGradient> 5143 <linearGradient 5144 id="b" 5145 x1="20.953" 5146 x2="37.194" 5147 y1="32.143" 5148 y2="2.701" 5149 gradientUnits="userSpaceOnUse" 5150 > 5151 <stop stop-color="#FCC934" /> 5152 <stop offset="1" stop-color="#FBBC04" /> 5153 </linearGradient> 5154 <linearGradient 5155 id="c" 5156 x1="25.873" 5157 x2="9.632" 5158 y1="31.2"
5159 y2="1.759" 5160 gradientUnits="userSpaceOnUse" 5161 > 5162 <stop stop-color="#1E8E3E" /> 5163 <stop offset="1" stop-color="#34A853" /> 5164 </linearGradient> 5165 </defs> 5166</svg>`,e6=Q`<svg fill="none" viewBox="0 0 16 16"> 5167 <path 5168 fill="currentColor" 5169 fill-rule="evenodd" 5170 d="M7 2.99a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-7 5a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-4a1 1 0 0 1 1 1v2.58l1.85 1.85a1 1 0 0 1-1.41 1.42L6.29 8.69A1 1 0 0 1 6 8v-3a1 1 0 0 1 1-1Z" 5171 clip-rule="evenodd" 5172 /> 5173</svg>`,e8=Q`<svg fill="none" viewBox="0 0 16 16"> 5174 <path 5175 fill="currentColor" 5176 fill-rule="evenodd" 5177 d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z" 5178 clip-rule="evenodd" 5179 /> 5180</svg>`,e7=Q`<svg fill="none" viewBox="0 0 20 20"> 5181 <path 5182 fill="currentColor" 5183 fill-rule="evenodd" 5184 d="M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z" 5185 clip-rule="evenodd" 5186 /> 5187</svg>`,e9=Q`<svg fill="none" viewBox="0 0 16 16"> 5188 <path 5189 fill="currentColor" 5190 fill-rule="evenodd" 5191 d="M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm10.66-2.65a1 1 0 0 1 .23 1.06L9.83 9.24a1 1 0 0 1-.59.58l-2.83 1.06A1 1 0 0 1 5.13 9.6l1.06-2.82a1 1 0 0 1 .58-.59L9.6 5.12a1 1 0 0 1 1.06.23ZM7.9 7.89l-.13.35.35-.13.12-.35-.34.13Z" 5192 clip-rule="evenodd" 5193 /> 5194</svg>`,te=Q`<svg 5195 xmlns="http://www.w3.org/2000/svg" 5196 width="16" 5197 height="16" 5198 viewBox="0 0 16 16" 5199 fill="none" 5200> 5201 <path 5202 fill="currentColor" 5203 fill-rule="evenodd" 5204 clip-rule="evenodd" 5205 d="M9.21498 1.28565H10.5944C11.1458 1.28562 11.6246 1.2856 12.0182 1.32093C12.4353 1.35836 12.853 1.44155 13.2486 1.66724C13.7005 1.92498 14.0749 2.29935 14.3326 2.75122C14.5583 3.14689 14.6415 3.56456 14.6789 3.9817C14.7143 4.37531 14.7142 4.85403 14.7142 5.40545V6.78489C14.7142 7.33631 14.7143 7.81503 14.6789 8.20865C14.6415 8.62578 14.5583 9.04345 14.3326 9.43912C14.0749 9.89099 13.7005 10.2654 13.2486 10.5231C12.853 10.7488 12.4353 10.832 12.0182 10.8694C11.7003 10.8979 11.3269 10.9034 10.9045 10.9045C10.9034 11.3269 10.8979 11.7003 10.8694 12.0182C10.832 12.4353 10.7488 12.853 10.5231 13.2486C10.2654 13.7005 9.89099 14.0749 9.43912 14.3326C9.04345 14.5583 8.62578 14.6415 8.20865 14.6789C7.81503 14.7143 7.33631 14.7142 6.78489 14.7142H5.40545C4.85403 14.7142 4.37531 14.7143 3.9817 14.6789C3.56456 14.6415 3.14689 14.5583 2.75122 14.3326C2.29935 14.0749 1.92498 13.7005 1.66724 13.2486C1.44155 12.853 1.35836 12.4353 1.32093 12.0182C1.2856 11.6246 1.28562 11.1458 1.28565 10.5944V9.21498C1.28562 8.66356 1.2856 8.18484 1.32093 7.79122C1.35836 7.37409 1.44155 6.95642 1.66724 6.56074C1.92498 6.10887 2.29935 5.73451 2.75122 5.47677C3.14689 5.25108 3.56456 5.16789 3.9817 5.13045C4.2996 5.10192 4.67301 5.09645 5.09541 5.09541C5.09645 4.67302 5.10192 4.2996 5.13045 3.9817C5.16789 3.56456 5.25108 3.14689 5.47676 2.75122C5.73451 2.29935 6.10887 1.92498 6.56074 1.66724C6.95642 1.44155 7.37409 1.35836 7.79122 1.32093C8.18484 1.2856 8.66356 1.28562 9.21498 1.28565ZM5.09541 7.09552C4.68397 7.09667 4.39263 7.10161 4.16046 7.12245C3.88053 7.14757 3.78516 7.18949 3.74214 7.21403C3.60139 7.29431 3.48478 7.41091 3.4045 7.55166C3.37997 7.59468 3.33804 7.69005 3.31292 7.96999C3.28659 8.26345 3.28565 8.65147 3.28565 9.25708V10.5523C3.28565 11.1579 3.28659 11.5459 3.31292 11.8394C3.33804 12.1193 3.37997 12.2147 3.4045 12.2577C3.48478 12.3985 3.60139 12.5151 3.74214 12.5954C3.78516 12.6199 3.88053 12.6618 4.16046 12.6869C4.45393 12.7133 4.84195 12.7142 5.44755 12.7142H6.74279C7.3484 12.7142 7.73641 12.7133 8.02988 12.6869C8.30981 12.6618 8.40518 12.6199 8.44821 12.5954C8.58895 12.5151 8.70556 12.3985 8.78584 12.2577C8.81038 12.2147 8.8523 12.1193 8.87742 11.8394C8.89825 11.6072 8.90319 11.3159 8.90435 10.9045C8.48219 10.9034 8.10898 10.8979 7.79122 10.8694C7.37409 10.832 6.95641 10.7488 6.56074 10.5231C6.10887 10.2654 5.73451 9.89099 5.47676 9.43912C5.25108 9.04345 5.16789 8.62578 5.13045 8.20865C5.10194 7.89089 5.09645 7.51767 5.09541 7.09552ZM7.96999 3.31292C7.69005 3.33804 7.59468 3.37997 7.55166 3.4045C7.41091 3.48478 7.29431 3.60139 7.21403 3.74214C7.18949 3.78516 7.14757 3.88053 7.12245 4.16046C7.09611 4.45393 7.09517 4.84195 7.09517 5.44755V6.74279C7.09517 7.3484 7.09611 7.73641 7.12245 8.02988
5205C7.14757 8.30981 7.18949 8.40518 7.21403 8.4482C7.29431 8.58895 7.41091 8.70556 7.55166 8.78584C7.59468 8.81038 7.69005 8.8523 7.96999 8.87742C8.26345 8.90376 8.65147 8.9047 9.25708 8.9047H10.5523C11.1579 8.9047 11.5459 8.90376 11.8394 8.87742C12.1193 8.8523 12.2147 8.81038 12.2577 8.78584C12.3985 8.70556 12.5151 8.58895 12.5954 8.4482C12.6199 8.40518 12.6618 8.30981 12.6869 8.02988C12.7133 7.73641 12.7142 7.3484 12.7142 6.74279V5.44755C12.7142 4.84195 12.7133 4.45393 12.6869 4.16046C12.6618 3.88053 12.6199 3.78516 12.5954 3.74214C12.5151 3.60139 12.3985 3.48478 12.2577 3.4045C12.2147 3.37997 12.1193 3.33804 11.8394 3.31292C11.5459 3.28659 11.1579 3.28565 10.5523 3.28565H9.25708C8.65147 3.28565 8.26345 3.28659 7.96999 3.31292Z" 5206 fill="#788181" 5207 /></svg 5208>`,tt=Q` <svg fill="none" viewBox="0 0 13 4"> 5209 <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" /> 5210</svg>`,tr=Q`<svg fill="none" viewBox="0 0 14 6"> 5211 <path style="fill: var(--wui-color-bg-150);" d="M0 1h14L9.21 5.12a3.31 3.31 0 0 1-4.49 0L0 1Z" /> 5212 <path 5213 style="stroke: var(--wui-color-inverse-100);" 5214 stroke-opacity=".05" 5215 d="M1.33 1.5h11.32L8.88 4.75l-.01.01a2.81 2.81 0 0 1-3.8 0l-.02-.01L1.33 1.5Z" 5216 /> 5217 <path 5218 style="fill: var(--wui-color-bg-150);" 5219 d="M1.25.71h11.5L9.21 3.88a3.31 3.31 0 0 1-4.49 0L1.25.71Z" 5220 /> 5221</svg> `,ti=Q`<svg fill="none" viewBox="0 0 20 20"> 5222 <path 5223 fill="currentColor" 5224 fill-rule="evenodd" 5225 d="M13.66 2H6.34c-1.07 0-1.96 0-2.68.08-.74.08-1.42.25-2.01.68a4 4 0 0 0-.89.89c-.43.6-.6 1.27-.68 2.01C0 6.38 0 7.26 0 8.34v.89c0 1.07 0 1.96.08 2.68.08.74.25 1.42.68 2.01a4 4 0 0 0 .89.89c.6.43 1.27.6 2.01.68a27 27 0 0 0 2.68.08h7.32a27 27 0 0 0 2.68-.08 4.03 4.03 0 0 0 2.01-.68 4 4 0 0 0 .89-.89c.43-.6.6-1.27.68-2.01.08-.72.08-1.6.08-2.68v-.89c0-1.07 0-1.96-.08-2.68a4.04 4.04 0 0 0-.68-2.01 4 4 0 0 0-.89-.89c-.6-.43-1.27-.6-2.01-.68C15.62 2 14.74 2 13.66 2ZM2.82 4.38c.2-.14.48-.25 1.06-.31C4.48 4 5.25 4 6.4 4h7.2c1.15 0 1.93 0 2.52.07.58.06.86.17 1.06.31a2 2 0 0 1 .44.44c.14.2.25.48.31 1.06.07.6.07 1.37.07 2.52v.77c0 1.15 0 1.93-.07 2.52-.06.58-.17.86-.31 1.06a2 2 0 0 1-.44.44c-.2.14-.48.25-1.06.32-.6.06-1.37.06-2.52.06H6.4c-1.15 0-1.93 0-2.52-.06-.58-.07-.86-.18-1.06-.32a2 2 0 0 1-.44-.44c-.14-.2-.25-.48-.31-1.06C2 11.1 2 10.32 2 9.17V8.4c0-1.15 0-1.93.07-2.52.06-.58.17-.86.31-1.06a2 2 0 0 1 .44-.44Z" 5226 clip-rule="evenodd" 5227 /> 5228 <path fill="currentColor" d="M6.14 17.57a1 1 0 1 0 0 2h7.72a1 1 0 1 0 0-2H6.14Z" /> 5229</svg>`,tn=Q`<svg fill="none" viewBox="0 0 16 16"> 5230 <path 5231 fill="currentColor" 5232 fill-rule="evenodd" 5233 d="M6.07 1h.57a1 1 0 0 1 0 2h-.52c-.98 0-1.64 0-2.14.06-.48.05-.7.14-.84.24-.13.1-.25.22-.34.35-.1.14-.2.35-.25.83-.05.5-.05 1.16-.05 2.15v2.74c0 .99 0 1.65.05 2.15.05.48.14.7.25.83.1.14.2.25.34.35.14.1.36.2.84.25.5.05 1.16.05 2.14.05h.52a1 1 0 0 1 0 2h-.57c-.92 0-1.69 0-2.3-.07a3.6 3.6 0 0 1-1.8-.61c-.3-.22-.57-.49-.8-.8a3.6 3.6 0 0 1-.6-1.79C.5 11.11.5 10.35.5 9.43V6.58c0-.92 0-1.7.06-2.31a3.6 3.6 0 0 1 .62-1.8c.22-.3.48-.57.79-.79a3.6 3.6 0 0 1 1.8-.61C4.37 1 5.14 1 6.06 1ZM9.5 3a1 1 0 0 1 1.42 0l4.28 4.3a1 1 0 0 1 0 1.4L10.93 13a1 1 0 0 1-1.42-1.42L12.1 9H6.8a1 1 0 1 1 0-2h5.3L9.51 4.42a1 1 0 0 1 0-1.41Z" 5234 clip-rule="evenodd" 5235 /> 5236</svg>`,to=Q`<svg fill="none" viewBox="0 0 40 40"> 5237 <g clip-path="url(#a)"> 5238 <g clip-path="url(#b)"> 5239 <circle cx="20" cy="19.89" r="20" fill="#5865F2" /> 5240 <path 5241 fill="#fff" 5242 fill-rule="evenodd" 5243 d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z" 5244 clip-rule="evenodd" 5245 /> 5246 </g> 5247 </g>
5248 <defs> 5249 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 5250 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 5251 </defs> 5252</svg>`,ts=Q`<svg fill="none" viewBox="0 0 16 16"> 5253 <path 5254 fill="currentColor" 5255 d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z" 5256 /> 5257</svg>`,ta=Q`<svg fill="none" viewBox="0 0 14 15"> 5258 <path 5259 fill="currentColor" 5260 fill-rule="evenodd" 5261 d="M6.71 2.99a.57.57 0 0 0-.57.57 1 1 0 0 1-1 1c-.58 0-.96 0-1.24.03-.27.03-.37.07-.42.1a.97.97 0 0 0-.36.35c-.04.08-.09.21-.11.67a2.57 2.57 0 0 1 0 5.13c.02.45.07.6.11.66.09.15.21.28.36.36.07.04.21.1.67.12a2.57 2.57 0 0 1 5.12 0c.46-.03.6-.08.67-.12a.97.97 0 0 0 .36-.36c.03-.04.07-.14.1-.41.02-.29.03-.66.03-1.24a1 1 0 0 1 1-1 .57.57 0 0 0 0-1.15 1 1 0 0 1-1-1c0-.58 0-.95-.03-1.24a1.04 1.04 0 0 0-.1-.42.97.97 0 0 0-.36-.36 1.04 1.04 0 0 0-.42-.1c-.28-.02-.65-.02-1.24-.02a1 1 0 0 1-1-1 .57.57 0 0 0-.57-.57ZM5.15 13.98a1 1 0 0 0 .99-1v-.78a.57.57 0 0 1 1.14 0v.78a1 1 0 0 0 .99 1H8.36a66.26 66.26 0 0 0 .73 0 3.78 3.78 0 0 0 1.84-.38c.46-.26.85-.64 1.1-1.1.23-.4.32-.8.36-1.22.02-.2.03-.4.03-.63a2.57 2.57 0 0 0 0-4.75c0-.23-.01-.44-.03-.63a2.96 2.96 0 0 0-.35-1.22 2.97 2.97 0 0 0-1.1-1.1c-.4-.22-.8-.31-1.22-.35a8.7 8.7 0 0 0-.64-.04 2.57 2.57 0 0 0-4.74 0c-.23 0-.44.02-.63.04-.42.04-.83.13-1.22.35-.46.26-.84.64-1.1 1.1-.33.57-.37 1.2-.39 1.84a21.39 21.39 0 0 0 0 .72v.1a1 1 0 0 0 1 .99h.78a.57.57 0 0 1 0 1.15h-.77a1 1 0 0 0-1 .98v.1a63.87 63.87 0 0 0 0 .73c0 .64.05 1.27.38 1.83.26.47.64.85 1.1 1.11.56.32 1.2.37 1.84.38a20.93 20.93 0 0 0 .72 0h.1Z" 5262 clip-rule="evenodd" 5263 /> 5264</svg>`,tl=Q`<svg fill="none" viewBox="0 0 14 15"> 5265 <path 5266 fill="currentColor" 5267 fill-rule="evenodd" 5268 d="M3.74 3.99a1 1 0 0 1 1-1H11a1 1 0 0 1 1 1v6.26a1 1 0 0 1-2 0V6.4l-6.3 6.3a1 1 0 0 1-1.4-1.42l6.29-6.3H4.74a1 1 0 0 1-1-1Z" 5269 clip-rule="evenodd" 5270 /> 5271</svg>`,tc=Q`<svg fill="none" viewBox="0 0 40 40"> 5272 <g clip-path="url(#a)"> 5273 <g clip-path="url(#b)"> 5274 <circle cx="20" cy="19.89" r="20" fill="#1877F2" /> 5275 <g clip-path="url(#c)"> 5276 <path 5277 fill="#fff" 5278 d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H2
52781.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z" 5279 /> 5280 </g> 5281 </g> 5282 <path 5283 fill="#1877F2" 5284 d="M40 20a20 20 0 1 0-23.13 19.76V25.78H11.8V20h5.07v-4.4c0-5.02 3-7.79 7.56-7.79 2.19 0 4.48.4 4.48.4v4.91h-2.53c-2.48 0-3.25 1.55-3.25 3.13V20h5.54l-.88 5.78h-4.66v13.98A20 20 0 0 0 40 20Z" 5285 /> 5286 <path 5287 fill="#fff" 5288 d="m27.79 25.78.88-5.78h-5.55v-3.75c0-1.58.78-3.13 3.26-3.13h2.53V8.2s-2.3-.39-4.48-.39c-4.57 0-7.55 2.77-7.55 7.78V20H11.8v5.78h5.07v13.98a20.15 20.15 0 0 0 6.25 0V25.78h4.67Z" 5289 /> 5290 </g> 5291 <defs> 5292 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 5293 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 5294 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 5295 </defs> 5296</svg>`,tu=Q`<svg fill="none" viewBox="0 0 16 16"> 5297 <path 5298 fill="currentColor" 5299 fill-rule="evenodd" 5300 d="M0 3a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1Zm2.63 5.25a1 1 0 0 1 1-1h8.75a1 1 0 1 1 0 2H3.63a1 1 0 0 1-1-1Zm2.62 5.25a1 1 0 0 1 1-1h3.5a1 1 0 0 1 0 2h-3.5a1 1 0 0 1-1-1Z" 5301 clip-rule="evenodd" 5302 /> 5303</svg>`,td=Q`<svg fill="none" viewBox="0 0 40 40"> 5304 <g clip-path="url(#a)"> 5305 <g clip-path="url(#b)"> 5306 <circle cx="20" cy="19.89" r="20" fill="#1B1F23" /> 5307 <g clip-path="url(#c)"> 5308 <path 5309 fill="#fff" 5310 d="M8 19.89a12 12 0 1 1 15.8 11.38c-.6.12-.8-.26-.8-.57v-3.3c0-1.12-.4-1.85-.82-2.22 2.67-.3 5.48-1.31 5.48-5.92 0-1.31-.47-2.38-1.24-3.22.13-.3.54-1.52-.12-3.18 0 0-1-.32-3.3 1.23a11.54 11.54 0 0 0-6 0c-2.3-1.55-3.3-1.23-3.3-1.23a4.32 4.32 0 0 0-.12 3.18 4.64 4.64 0 0 0-1.24 3.22c0 4.6 2.8 5.63 5.47 5.93-.34.3-.65.83-.76 1.6-.69.31-2.42.84-3.5-1 0 0-.63-1.15-1.83-1.23 0 0-1.18-.02-.09.73 0 0 .8.37 1.34 1.76 0 0 .7 2.14 4.03 1.41v2.24c0 .31-.2.68-.8.57A12 12 0 0 1 8 19.9Z" 5311 /> 5312 </g> 5313 </g> 5314 </g> 5315 <defs> 5316 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 5317 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 5318 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 5319 </defs> 5320</svg>`,th=Q`<svg fill="none" viewBox="0 0 40 40"> 5321 <path 5322 fill="#4285F4" 5323 d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z" 5324 /> 5325 <path 5326 fill="#34A853" 5327 d="M20.26 33a12.4 12.4 0 0 0 8.6-3.14l-4.22-3.28a7.74 7.74 0 0 1-4.38 1.26 7.76 7.76 0 0 1-7.28-5.36H8.65v3.36A12.99 12.99 0 0 0 20.26 33Z" 5328 /> 5329 <path 5330 fill="#FBBC05" 5331 d="M12.98 22.47a7.79 7.79 0 0 1 0-4.94v-3.36H8.65a12.84 12.84 0 0 0 0 11.66l3.37-2.63.96-.73Z" 5332 /> 5333 <path 5334 fill="#EA4335" 5335 d="M20.26 12.18a7.1 7.1 0 0 1 4.98 1.93l3.72-3.72A12.47 12.47 0 0 0 20.26 7c-5.08 0-9.47 2.92-11.6 7.17l4.32 3.36a7.76 7.76 0 0 1 7.28-5.35Z" 5336 /> 5337</svg>`,tf=Q`<svg fill="none" viewBox="0 0 16 16"> 5338 <path 5339 fill="currentColor" 5340 d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z" 5341 /> 5342 <path 5343 fill="currentColor" 5344 fill-rule="evenodd" 5345 d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z" 5346 clip-rule="evenodd" 5347 /> 5348</svg>`,tp=Q`<svg fill="none" viewBox="0 0 14 15"> 5349 <path 5350 fill="currentColor" 5351 d="M6 10.49a1 1 0 1 0 2 0v-2a1 1 0 0 0-2 0v2ZM7 4.49a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z" 5352 /> 5353 <path 5354 fill="currentColor" 5355 fill-rule="evenodd" 5356 d="M7 14.99a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm5-7a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" 5357 clip-rule="evenodd" 5358 /> 5359</svg>`,tg=Q`<svg fill="none" viewBox="0 0 16 16"> 5360 <path 5361 fill="currentColor" 5362 fill-rule="evenodd" 5363 d="M4.83 1.34h6.34c.68 0 1.26 0 1.73.04.5.05.97.15 1.42.4.52.3.95.72 1.24 1.24.26.45.35.92.4 1.42.04.47.04 1.05.04 1.73v3.71c0 .69 0 1.26-.04 1.74-.05.5-.14.97-.4 1.41-.3.52-.72.95-1.24 1.25-.45.25-.92.35-1.42.4-.47.03-1.05.03-1.73.03H4.83c-.68 0-1.26 0-1.73-.04-.5-.04-.97-.14-1.42-.4-.52-.29-.95-.72-1.24-1.24a3.39 3.39 0 0 1-.4-1.41A20.9 20.9 0 0 1 0 9.88v-3.7c0-.7 0-1.27.04-1.74.05-.5.14-.97.4-1.42.3-.52.72-.95 1.24-1.24.45-.25.92-.35 1.42-.4.47-.04 1.05-.04 1.73-.04ZM3.28 3.38c-.36.03-.51.08-.6.14-.21.11-.39.29-.5.5a.8.8 0 0 0-.08.19l5.16 3.44c.45.3 1.03.3 1.48 0L13.9 4.2a.79.79 0 0 0-.08-.2c-.11-.2-.29-.38-.5-.5-.09-.05-.24-.1-.6-.13-.37-.04-.86-.04-1.6-.04H4.88c-.73 0-1.22 0-1.6.04ZM14 6.54 9.85 9.31a3.33 3.33 0 0 1-3.7 0L2 6.54v3.3c0 .74 0 1.22.03 1.6.04.36.1.5.15.6.11.2.29.38.5.5.09.05.24.1.6.14.37.03.86.03 1.6.03h6.25c.73 0 1.22 0 1.6-.03.35-.03.5-.09.6-.14.2-.12.38-.3.5-.5.05-.1.1-.24.14-.6.03-.38.03-.86.03-1.6v-3.3Z" 5364 clip-rule="evenodd" 5365 /> 5366</svg>`,tm=Q`<svg fill="none" viewBox="0 0 20 20">
5367 <path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" /> 5368 <path 5369 fill="currentColor" 5370 fill-rule="evenodd" 5371 d="M3 4.75A4.75 4.75 0 0 1 7.75 0h4.5A4.75 4.75 0 0 1 17 4.75v10.5A4.75 4.75 0 0 1 12.25 20h-4.5A4.75 4.75 0 0 1 3 15.25V4.75ZM7.75 2A2.75 2.75 0 0 0 5 4.75v10.5A2.75 2.75 0 0 0 7.75 18h4.5A2.75 2.75 0 0 0 15 15.25V4.75A2.75 2.75 0 0 0 12.25 2h-4.5Z" 5372 clip-rule="evenodd" 5373 /> 5374</svg>`,tw=Q`<svg fill="none" viewBox="0 0 41 40"> 5375 <path 5376 style="fill: var(--wui-color-fg-100);" 5377 fill-opacity=".05" 5378 d="M.6 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" 5379 /> 5380 <path 5381 fill="#949E9E" 5382 d="M15.6 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM23.1 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM28.1 22.81a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" 5383 /> 5384</svg>`,ty=Q`<svg fill="none" viewBox="0 0 22 20"> 5385 <path 5386 fill="currentColor" 5387 fill-rule="evenodd" 5388 d="M16.32 13.62a3.14 3.14 0 1 1-.99 1.72l-1.6-.93a3.83 3.83 0 0 1-3.71 1 3.66 3.66 0 0 1-1.74-1l-1.6.94a3.14 3.14 0 1 1-1-1.73l1.6-.94a3.7 3.7 0 0 1 0-2 3.81 3.81 0 0 1 1.8-2.33c.29-.17.6-.3.92-.38V6.1a3.14 3.14 0 1 1 2 0l-.01.02v1.85H12a3.82 3.82 0 0 1 2.33 1.8 3.7 3.7 0 0 1 .39 2.91l1.6.93ZM2.6 16.54a1.14 1.14 0 0 0 1.98-1.14 1.14 1.14 0 0 0-1.98 1.14ZM11 2.01a1.14 1.14 0 1 0 0 2.28 1.14 1.14 0 0 0 0-2.28Zm1.68 10.45c.08-.19.14-.38.16-.58v-.05l.02-.13v-.13a1.92 1.92 0 0 0-.24-.8l-.11-.15a1.89 1.89 0 0 0-.74-.6 1.86 1.86 0 0 0-.77-.17h-.19a1.97 1.97 0 0 0-.89.34 1.98 1.98 0 0 0-.61.74 1.99 1.99 0 0 0-.16.9v.05a1.87 1.87 0 0 0 .24.74l.1.15c.12.16.26.3.42.42l.16.1.13.07.04.02a1.84 1.84 0 0 0 .76.17h.17a2 2 0 0 0 .91-.35 1.78 1.78 0 0 0 .52-.58l.03-.05a.84.84 0 0 0 .05-.11Zm5.15 4.5a1.14 1.14 0 0 0 1.14-1.97 1.13 1.13 0 0 0-1.55.41c-.32.55-.13 1.25.41 1.56Z" 5389 clip-rule="evenodd" 5390 /> 5391 <path 5392 fill="currentColor" 5393 fill-rule="evenodd" 5394 d="M4.63 9.43a1.5 1.5 0 1 0 1.5-2.6 1.5 1.5 0 0 0-1.5 2.6Zm.32-1.55a.5.5 0 0 1 .68-.19.5.5 0 0 1 .18.68.5.5 0 0 1-.68.19.5.5 0 0 1-.18-.68ZM17.94 8.88a1.5 1.5 0 1 1-2.6-1.5 1.5 1.5 0 1 1 2.6 1.5ZM16.9 7.69a.5.5 0 0 0-.68.19.5.5 0 0 0 .18.68.5.5 0 0 0 .68-.19.5.5 0 0 0-.18-.68ZM9.75 17.75a1.5 1.5 0 1 1 2.6 1.5 1.5 1.5 0 1 1-2.6-1.5Zm1.05 1.18a.5.5 0 0 0 .68-.18.5.5 0 0 0-.18-.68.5.5 0 0 0-.68.18.5.5 0 0 0 .18.68Z" 5395 clip-rule="evenodd" 5396 /> 5397</svg>`,tb=Q`<svg fill="none" viewBox="0 0 20 20"> 5398 <path 5399 fill="currentColor" 5400 fill-rule="evenodd" 5401 d="M9.13 1h1.71c1.46 0 2.63 0 3.56.1.97.1 1.8.33 2.53.85a5 5 0 0 1 1.1 1.11c.53.73.75 1.56.86 2.53.1.93.1 2.1.1 3.55v1.72c0 1.45 0 2.62-.1 3.55-.1.97-.33 1.8-.86 2.53a5 5 0 0 1-1.1 1.1c-.73.53-1.56.75-2.53.86-.93.1-2.1.1-3.55.1H9.13c-1.45 0-2.62 0-3.56-.1-.96-.1-1.8-.33-2.52-.85a5 5 0 0 1-1.1-1.11 5.05 5.05 0 0 1-.86-2.53c-.1-.93-.1-2.1-.1-3.55V9.14c0-1.45 0-2.62.1-3.55.1-.97.33-1.8.85-2.53a5 5 0 0 1 1.1-1.1 5.05 5.05 0 0 1 2.53-.86C6.51 1 7.67 1 9.13 1ZM5.79 3.09a3.1 3.1 0 0 0-1.57.48 3 3 0 0 0-.66.67c-.24.32-.4.77-.48 1.56-.1.82-.1 1.88-.1 3.4v1.6c0 1.15 0 2.04.05 2.76l.41-.42c.5-.5.93-.92 1.32-1.24.41-.33.86-.6 1.43-.7a3 3 0 0 1 .94 0c.35.06.66.2.95.37a17.11 17.11 0 0 0 .8.45c.1-.08.2-.2.41-.4l.04-.03a27 27 0 0 1 1.95-1.84 4.03 4.03 0 0 1 1.91-.94 4 4 0 0 1 1.25 0c.73.11 1.33.46 1.91.94l.64.55V9.2c0-1.52 0-2.58-.1-3.4a3.1 3.1 0 0 0-.48-1.56 3 3 0 0 0-.66-.67 3.1 3.1 0 0 0-1.56-.48C13.37 3 12.3 3 10.79 3h-1.6c-1.52 0-2.59 0-3.4.09Zm11.18 10-.04-.05a26.24 26.24 0 0 0-1.83-1.74c-.45-.36-.73-.48-.97-.52a2 2 0 0 0-.63 0c-.24.04-.51.16-.97.52-.46.38-1.01.93-1.83 1.74l-.02.02c-.17.18-.34.34-.49.47a2.04 2.04 0 0 1-1.08.5 1.97 1.97 0 0 1-1.25-.27l-.79-.46-.02-.02a.65.65 0 0 0-.24-.1 1 1 0 0 0-.31 0c-.08.02-.21.06-.49.28-.3.24-.65.59-1.2 1.14l-.56.56-.65.66a3 3 0 0 0 .62.6c.33.24.77.4 1.57.49.81.09 1.88.09 3.4.09h1.6c1.52 0 2.58 0 3.4-.09a3.1 3.1 0 0 0 1.56-.48 3 3 0 0 0 .66-.67c.24-.32.4-.77.49-1.56l.07-1.12Zm-8.02-1.03ZM4.99 7a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z" 5402 clip-rule="evenodd" 5403 /> 5404</svg>`,tv=Q`<svg fill="none" viewBox="0 0 16 16"> 5405 <path 5406 fill="currentColor" 5407 fill-rule="evenodd" 5408 d="M8 0a1 1 0 0 1 1 1v5.38a1 1 0 0 1-2 0V1a1 1 0 0 1 1-1ZM5.26 2.6a1 1 0 0 1-.28 1.39 5.46 5.46 0 1 0 6.04 0 1 1 0 1 1 1.1-1.67 7.46 7.46 0 1 1-8.25 0 1 1 0 0 1 1.4.28Z" 5409 clip-rule="evenodd" 5410 /> 5411</svg>`,t_=Q` <svg 5412 width="36" 5413 height="36" 5414 fill="none" 5415> 5416 <path 5417 d="M0 8a8 8 0 0 1 8-8h20a8 8 0 0 1 8 8v20a8 8 0 0 1-8 8H8a8 8 0 0 1-8-8V8Z" 5418 fill="#fff" 5419 fill-opacity=".05" 5420 /> 5421 <path 5422 d="m18.262 17.513-8.944 9.49v.01a2.417 2.417 0 0 0 3.56 1.452l.026-.017 10.061-5.803-4.703-5.132Z" 5423 fill="#EA4335" 5424 /> 5425 <path 5426 d="m27.307 15.9-.008-.008-4.342-2.52-4.896 4.36 4.913 4.912 4.325-2.494a2.42 2.42 0 0 0 .008-4.25Z" 5427 fill="#FBBC04" 5428 /> 5429 <path 5430 d="M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z" 5431 fill="#4285F4" 5432 /> 5433 <path 5434 d="m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z" 5435 fill="#34A853" 5436 /> 5437 <path 5438 d="M8 .5h20A7.5 7.5 0 0 1 35.5 8v20a7.5 7.5 0 0 1-7.5 7.5H8A7.5 7.5 0 0 1 .5 28V8A7.5 7.5 0 0 1 8 .5Z" 5439 stroke="#fff" 5440 stroke-opacity=".05" 5441 /> 5442</svg>`,tx=Q`<svg 5443 width="13" 5444 height="12" 5445 viewBox="0 0 13 12" 5446 fill="none" 5447> 5448 <path 5449 fill="currentColor" 5450 fill-rule="evenodd" 5451 clip-rule="evenodd" 5452 d="M0.794373 5.99982C0.794373 5.52643 1.17812 5.14268 1.6515 5.14268H5.643V1.15109C5.643 0.677701 6.02675 0.293946 6.50012 0.293945C6.9735 0.293946 7.35725 0.677701 7.35725 1.15109V5.14268H11.3488C11.8221 5.14268 12.2059 5.52643 12.2059 5.99982C12.2059 6.47321 11.8221 6.85696 11.3488 6.85696H7.35725V10.8486C7.35725 11.3219 6.9735 11.7057 6.50012 11.7057C6.02675 11.7057 5.643 11.3219 5.643 10.8486V6.85696H1.6515C1.17812 6.85696 0.794373 6.47321 0.794373 5.99982Z" 5453 /></svg 5454>`,tE=Q`<svg fill="none" viewBox="0 0 20 20"> 5455 <path 5456 fill="currentColor" 5457 d="M3 6a3 3 0 0 1 3-3h1a1 1 0 1 0 0-2H6a5 5 0 0 0-5 5v1a1 1 0 0 0 2 0V6ZM13 1a1 1 0 1 0 0 2h1a3 3 0 0 1 3 3v1a1 1 0 1 0 2 0V6a5 5 0 0 0-5-5h-1ZM3 13a1 1 0 1 0-2 0v1a5 5 0 0 0 5 5h1a1 1 0 1 0 0-2H6a3 3 0 0 1-3-3v-1ZM19 13a1 1 0 1 0-2 0v1a3 3 0 0 1-3 3h-1a1 1 0 1 0 0 2h1.01a5 5 0 0 0 5-5v-1ZM5.3 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05A1.5 1.5 0 0 0 9.2 8.14c.06-.2.06-.43.06-.89s0-.7-.06-.89A1.5 1.5 0 0 0 8.14 5.3c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM10.8 6.36c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06ZM5.26 12.75c0-.46 0-.7.05-.89a1.5 1.5 0 0 1 1.06-1.06c.19-.05.42-.05.89-.05.46 0 .7 0 .88.05.52.14.93.54 1.06 1.06.06.2.06.43.06.89s0 .7-.06.89a1.5 1.5 0 0 1-1.06 1.06c-.19.05-.42.05-.88.05-.47 0-.7 0-.9-.05a1.5 1.5 0 0 1-1.05-1.06c-.05-.2-.05-.43-.05-.89ZM10.8 11.86c-.04.2-.04.43-.04.89s0 .7.05.89c.14.52.54.92 1.06 1.06.19.05.42.05.89.05.46 0 .7 0 .88-.05a1.5 1.5 0 0 0 1.06-1.06c.06-.2.06-.43.06-.89s0-.7-.06-.89a1.5 1.5 0 0 0-1.06-1.06c-.19-.05-.42-.05-.88-.05-.47 0-.7 0-.9.05a1.5 1.5 0 0 0-1.05 1.06Z" 5458 /> 5459</svg>`,tC=Q`<svg 5460 fill="none" 5461 viewBox="0 0 21 20" 5462> 5463 <path 5464 fill="currentColor"
5465 d="M8.8071 0.292893C9.19763 0.683417 9.19763 1.31658 8.8071 1.70711L6.91421 3.6H11.8404C14.3368 3.6 16.5533 5.1975 17.3427 7.56588L17.4487 7.88377C17.6233 8.40772 17.3402 8.97404 16.8162 9.14868C16.2923 9.32333 15.726 9.04017 15.5513 8.51623L15.4453 8.19834C14.9281 6.64664 13.476 5.6 11.8404 5.6H6.91421L8.8071 7.49289C9.19763 7.88342 9.19763 8.51658 8.8071 8.90711C8.41658 9.29763 7.78341 9.29763 7.39289 8.90711L3.79289 5.30711C3.40236 4.91658 3.40236 4.28342 3.79289 3.89289L7.39289 0.292893C7.78341 -0.0976311 8.41658 -0.0976311 8.8071 0.292893ZM4.18377 10.8513C4.70771 10.6767 5.27403 10.9598 5.44868 11.4838L5.55464 11.8017C6.07188 13.3534 7.52401 14.4 9.15964 14.4L14.0858 14.4L12.1929 12.5071C11.8024 12.1166 11.8024 11.4834 12.1929 11.0929C12.5834 10.7024 13.2166 10.7024 13.6071 11.0929L17.2071 14.6929C17.5976 15.0834 17.5976 15.7166 17.2071 16.1071L13.6071 19.7071C13.2166 20.0976 12.5834 20.0976 12.1929 19.7071C11.8024 19.3166 11.8024 18.6834 12.1929 18.2929L14.0858 16.4L9.15964 16.4C6.66314 16.4 4.44674 14.8025 3.65728 12.4341L3.55131 12.1162C3.37667 11.5923 3.65983 11.026 4.18377 10.8513Z" 5466 /></svg 5467>`,tk=Q`<svg fill="none" viewBox="0 0 14 16"> 5468 <path 5469 fill="currentColor" 5470 fill-rule="evenodd" 5471 d="M3.94 1.04a1 1 0 0 1 .7 1.23l-.48 1.68a5.85 5.85 0 0 1 8.53 4.32 5.86 5.86 0 0 1-11.4 2.56 1 1 0 0 1 1.9-.57 3.86 3.86 0 1 0 1.83-4.5l1.87.53a1 1 0 0 1-.55 1.92l-4.1-1.15a1 1 0 0 1-.69-1.23l1.16-4.1a1 1 0 0 1 1.23-.7Z" 5472 clip-rule="evenodd" 5473 /> 5474</svg>`,tS=Q`<svg fill="none" viewBox="0 0 20 20"> 5475 <path 5476 fill="currentColor" 5477 fill-rule="evenodd" 5478 d="M9.36 4.21a5.14 5.14 0 1 0 0 10.29 5.14 5.14 0 0 0 0-10.29ZM1.64 9.36a7.71 7.71 0 1 1 14 4.47l2.52 2.5a1.29 1.29 0 1 1-1.82 1.83l-2.51-2.51A7.71 7.71 0 0 1 1.65 9.36Z" 5479 clip-rule="evenodd" 5480 /> 5481</svg>`,tA=Q`<svg fill="none" viewBox="0 0 21 20"> 5482 <path 5483 fill="currentColor" 5484 fill-rule="evenodd" 5485 d="M14.3808 4.34812C13.72 4.47798 12.8501 4.7587 11.5748 5.17296L9.00869 6.00646C6.90631 6.68935 5.40679 7.17779 4.38121 7.63178C3.87166 7.85734 3.5351 8.05091 3.32022 8.22035C3.11183 8.38466 3.07011 8.48486 3.05969 8.51817C2.98058 8.77103 2.98009 9.04195 3.05831 9.29509C3.06861 9.32844 3.10998 9.42878 3.31777 9.59384C3.53205 9.76404 3.86792 9.95881 4.37667 10.1862C5.29287 10.5957 6.58844 11.0341 8.35529 11.6164L10.8876 8.59854C11.2426 8.17547 11.8733 8.12028 12.2964 8.47528C12.7195 8.83029 12.7746 9.46104 12.4196 9.88412L9.88738 12.9019C10.7676 14.5408 11.4244 15.7406 11.9867 16.5718C12.299 17.0333 12.5491 17.3303 12.7539 17.5117C12.9526 17.6877 13.0586 17.711 13.0932 17.7154C13.3561 17.7484 13.6228 17.7009 13.8581 17.5791C13.8891 17.563 13.9805 17.5046 14.1061 17.2708C14.2357 17.0298 14.3679 16.6647 14.5015 16.1237C14.7705 15.0349 14.9912 13.4733 15.2986 11.2843L15.6738 8.61249C15.8603 7.28456 15.9857 6.37917 15.9989 5.7059C16.012 5.03702 15.9047 4.8056 15.8145 4.69183C15.7044 4.55297 15.5673 4.43792 15.4114 4.35365C15.2837 4.28459 15.0372 4.2191 14.3808 4.34812ZM7.99373 13.603C6.11919 12.9864 4.6304 12.4902 3.5606 12.0121C2.98683 11.7557 2.4778 11.4808 2.07383 11.1599C1.66337 10.8339 1.31312 10.4217 1.14744 9.88551C0.949667 9.24541 0.950886 8.56035 1.15094 7.92096C1.31852 7.38534 1.67024 6.97442 2.08185 6.64985C2.48697 6.33041 2.99697 6.05734 3.57166 5.80295C4.70309 5.3021 6.30179 4.78283 8.32903 4.12437L11.0196 3.25042C12.2166 2.86159 13.2017 2.54158 13.9951 2.38566C14.8065 2.22618 15.6202 2.19289 16.3627 2.59437C16.7568 2.80747 17.1035 3.09839 17.3818 3.4495C17.9062 4.111 18.0147 4.91815 17.9985 5.74496C17.9827 6.55332 17.8386 7.57903 17.6636 8.82534L17.2701 11.6268C16.9737 13.7376 16.7399 15.4022 16.4432 16.6034C16.2924 17.2135 16.1121 17.7632 15.8678 18.2176C15.6197 18.6794 15.2761 19.0971 14.7777 19.3551C14.1827 19.6632 13.5083 19.7833 12.8436 19.6997C12.2867 19.6297 11.82 19.3563 11.4277 19.0087C11.0415 18.6666 10.6824 18.213 10.3302 17.6925C9.67361 16.722 8.92648 15.342 7.99373 13.603Z" 5486 clip-rule="evenodd" 5487 /> 5488 <svg 5489 xmlns="http://www.w3.org/2000/svg" 5490 width="21" 5491 height="20" 5492 viewBox="0 0 21 20" 5493 fill="none" 5494 ></svg></svg 5495>`,tI=Q`<svg fill="none" viewBox="0 0 20 20"> 5496 <path 5497 fill="currentColor" 5498 fill-rule="evenodd" 5499 d="M6.76.3a1 1 0 0 1 0 1.4L4.07 4.4h9a1 1 0 1 1 0 2h-9l2.69 2.68a1 1 0 1 1-1.42 1.42L.95 6.09a1 1 0 0 1 0-1.4l4.4-4.4a1 1 0 0 1 1.4 0Zm6.49 9.21a1 1 0 0 1 1.41 0l4.39 4.4a1 1 0 0 1 0 1.4l-4.39 4.4a1 1 0 0 1-1.41-1.42l2.68-2.68h-9a1 1 0 0 1 0-2h9l-2.68-2.68a1 1 0 0 1 0-1.42Z" 5500 clip-rule="evenodd" 5501 /> 5502</svg>
5502`,tT=Q`<svg width="10" height="10" viewBox="0 0 10 10"> 5503 <path 5504 fill="currentColor" 5505 fill-rule="evenodd" 5506 d="M3.77986 0.566631C4.0589 0.845577 4.0589 1.29784 3.77986 1.57678L3.08261 2.2738H6.34184C6.73647 2.2738 7.05637 2.5936 7.05637 2.98808C7.05637 3.38257 6.73647 3.70237 6.34184 3.70237H3.08261L3.77986 4.39938C4.0589 4.67833 4.0589 5.13059 3.77986 5.40954C3.50082 5.68848 3.04841 5.68848 2.76937 5.40954L0.852346 3.49316C0.573306 3.21421 0.573306 2.76195 0.852346 2.48301L2.76937 0.566631C3.04841 0.287685 3.50082 0.287685 3.77986 0.566631ZM6.22 4.59102C6.49904 4.31208 6.95145 4.31208 7.23049 4.59102L9.14751 6.5074C9.42655 6.78634 9.42655 7.23861 9.14751 7.51755L7.23049 9.43393C6.95145 9.71287 6.49904 9.71287 6.22 9.43393C5.94096 9.15498 5.94096 8.70272 6.22 8.42377L6.91725 7.72676L3.65802 7.72676C3.26339 7.72676 2.94349 7.40696 2.94349 7.01247C2.94349 6.61798 3.26339 6.29819 3.65802 6.29819L6.91725 6.29819L6.22 5.60117C5.94096 5.32223 5.94096 4.86997 6.22 4.59102Z" 5507 clip-rule="evenodd" 5508 /> 5509</svg>`,tR=Q`<svg 5510 width="14" 5511 height="14" 5512 viewBox="0 0 14 14" 5513 fill="none" 5514 xmlns="http://www.w3.org/2000/svg" 5515> 5516 <path 5517 fill-rule="evenodd" 5518 clip-rule="evenodd" 5519 d="M13.7306 3.24213C14.0725 3.58384 14.0725 4.13786 13.7306 4.47957L10.7418 7.46737C10.4 7.80908 9.84581 7.80908 9.50399 7.46737C9.16216 7.12567 9.16216 6.57165 9.50399 6.22994L10.9986 4.73585H5.34082C4.85741 4.73585 4.46553 4.3441 4.46553 3.86085C4.46553 3.3776 4.85741 2.98585 5.34082 2.98585L10.9986 2.98585L9.50399 1.49177C9.16216 1.15006 9.16216 0.596037 9.50399 0.254328C9.84581 -0.0873803 10.4 -0.0873803 10.7418 0.254328L13.7306 3.24213ZM9.52515 10.1352C9.52515 10.6185 9.13327 11.0102 8.64986 11.0102L2.9921 11.0102L4.48669 12.5043C4.82852 12.846 4.82852 13.4001 4.48669 13.7418C4.14487 14.0835 3.59066 14.0835 3.24884 13.7418L0.26003 10.754C0.0958806 10.5899 0.0036621 10.3673 0.00366211 10.1352C0.00366212 9.90318 0.0958806 9.68062 0.26003 9.51652L3.24884 6.52872C3.59066 6.18701 4.14487 6.18701 4.48669 6.52872C4.82851 6.87043 4.82851 7.42445 4.48669 7.76616L2.9921 9.26024L8.64986 9.26024C9.13327 9.26024 9.52515 9.65199 9.52515 10.1352Z" 5520 fill="currentColor" 5521 /> 5522</svg> 5523 5524`,tO=Q`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"> 5525 <path 5526 fill="currentColor" 5527 fill-rule="evenodd" 5528 clip-rule="evenodd" 5529 d="M8.3071 0.292893C8.69763 0.683417 8.69763 1.31658 8.3071 1.70711L6.41421 3.6H11.3404C13.8368 3.6 16.0533 5.1975 16.8427 7.56588L16.9487 7.88377C17.1233 8.40772 16.8402 8.97404 16.3162 9.14868C15.7923 9.32333 15.226 9.04017 15.0513 8.51623L14.9453 8.19834C14.4281 6.64664 12.976 5.6 11.3404 5.6H6.41421L8.3071 7.49289C8.69763 7.88342 8.69763 8.51658 8.3071 8.90711C7.91658 9.29763 7.28341 9.29763 6.89289 8.90711L3.29289 5.30711C2.90236 4.91658 2.90236 4.28342 3.29289 3.89289L6.89289 0.292893C7.28341 -0.0976311 7.91658 -0.0976311 8.3071 0.292893ZM3.68377 10.8513C4.20771 10.6767 4.77403 10.9598 4.94868 11.4838L5.05464 11.8017C5.57188 13.3534 7.024 14.4 8.65964 14.4L13.5858 14.4L11.6929 12.5071C11.3024 12.1166 11.3024 11.4834 11.6929 11.0929C12.0834 10.7024 12.7166 10.7024 13.1071 11.0929L16.7071 14.6929C17.0976 15.0834 17.0976 15.7166 16.7071 16.1071L13.1071 19.7071C12.7166 20.0976 12.0834 20.0976 11.6929 19.7071C11.3024 19.3166 11.3024 18.6834 11.6929 18.2929L13.5858 16.4L8.65964 16.4C6.16314 16.4 3.94674 14.8025 3.15728 12.4341L3.05131 12.1162C2.87667 11.5923 3.15983 11.026 3.68377 10.8513Z" 5530 /> 5531</svg>`,tP=Q`<svg fill="none" viewBox="0 0 14 14"> 5532 <path 5533 fill="currentColor" 5534 fill-rule="evenodd" 5535 d="M3.48 2.18a1 1 0 0 1 1.41 0l2.68 2.68a1 1 0 1 1-1.41 1.42l-.98-.98v4.56a1 1 0 0 1-2 0V5.3l-.97.98A1 1 0 0 1 .79 4.86l2.69-2.68Zm6.34 2.93a1 1 0 0 1 1 1v4.56l.97-.98a1 1 0 1 1 1.42 1.42l-2.69 2.68a1 1 0 0 1-1.41 0l-2.68-2.68a1 1 0 0 1 1.41-1.42l.98.98V6.1a1 1 0 0 1 1-1Z" 5536 clip-rule="evenodd" 5537 /> 5538</svg>`,tN=Q`<svg fill="none" viewBox="0 0 40 40"> 5539 <g clip-path="url(#a)"> 5540 <g clip-path="url(#b)"> 5541 <circle cx="20" cy="19.89" r="20" fill="#5865F2" /> 5542 <path 5543 fill="#fff" 5544 fill-rule="evenodd" 5545 d="M25.71 28.15C30.25 28 32 25.02 32 25.02c0-6.61-2.96-11.98-2.96-11.98-2.96-2.22-5.77-2.15-5.77-2.15l-.29.32c3.5 1.07 5.12 2.61 5.12 2.61a16.75 16.75 0 0 0-10.34-1.93l-.35.04a15.43 15.43 0 0 0-5.88 1.9s1.71-1.63 5.4-2.7l-.2-.24s-2.81-.07-5.77 2.15c0 0-2.96 5.37-2.96 11.98 0 0 1.73 2.98 6.27 3.13l1.37-1.7c-2.6-.79-3.6-2.43-3.6-2.43l.58.35.09.06.08.04.02.01.08.05a17.25 17.25 0 0 0 4.52 1.58 14.4 14.4 0 0 0 8.3-.86c.72-.27 1.52-.66 2.37-1.21 0 0-1.03 1.68-3.72 2.44.61.78 1.35 1.67 1.35 1.67Zm-9.55-9.6c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28.01-1.25-.93-2.28-2.1-2.28Zm7.5 0c-1.17 0-2.1 1.03-2.1 2.28 0 1.25.95 2.28 2.1 2.28 1.17 0 2.1-1.03 2.1-2.28 0-1.25-.93-2.28-2.1-2.28Z" 5546 clip-rule="evenodd" 5547 /> 5548 </g> 5549 </g>
5550 <defs> 5551 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 5552 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 5553 </defs> 5554</svg> `,tM=Q`<svg fill="none" viewBox="0 0 40 40"> 5555 <g clip-path="url(#a)"> 5556 <g clip-path="url(#b)"> 5557 <circle cx="20" cy="19.89" r="20" fill="#5A3E85" /> 5558 <g clip-path="url(#c)"> 5559 <path 5560 fill="#fff" 5561 d="M18.22 25.7 20 23.91h3.34l2.1-2.1v-6.68H15.4v8.78h2.82v1.77Zm3.87-8.16h1.25v3.66H22.1v-3.66Zm-3.34 0H20v3.66h-1.25v-3.66ZM20 7.9a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm6.69 14.56-3.66 3.66h-2.72l-1.77 1.78h-1.88V26.1H13.3v-9.82l.94-2.4H26.7v8.56Z" 5562 /> 5563 </g> 5564 </g> 5565 </g> 5566 <defs> 5567 <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath> 5568 <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 5569 <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath> 5570 </defs> 5571</svg>`,tD=Q`<svg fill="none" viewBox="0 0 16 16"> 5572 <path 5573 fill="currentColor" 5574 d="m14.36 4.74.01.42c0 4.34-3.3 9.34-9.34 9.34A9.3 9.3 0 0 1 0 13.03a6.6 6.6 0 0 0 4.86-1.36 3.29 3.29 0 0 1-3.07-2.28c.5.1 1 .07 1.48-.06A3.28 3.28 0 0 1 .64 6.11v-.04c.46.26.97.4 1.49.41A3.29 3.29 0 0 1 1.11 2.1a9.32 9.32 0 0 0 6.77 3.43 3.28 3.28 0 0 1 5.6-3 6.59 6.59 0 0 0 2.08-.8 3.3 3.3 0 0 1-1.45 1.82A6.53 6.53 0 0 0 16 3.04c-.44.66-1 1.23-1.64 1.7Z" 5575 /> 5576</svg>`,tL=Q`<svg fill="none" viewBox="0 0 28 28"> 5577 <path 5578 fill="currentColor" 5579 fill-rule="evenodd" 5580 d="M18.1 4.76c-.42-.73-1.33-1.01-2.09-.66l-1.42.66c-.37.18-.8.18-1.18 0l-1.4-.65a1.63 1.63 0 0 0-2.1.66l-.84 1.45c-.2.34-.53.59-.92.67l-1.7.35c-.83.17-1.39.94-1.3 1.78l.19 1.56c.04.39-.08.78-.33 1.07l-1.12 1.3c-.52.6-.52 1.5 0 2.11L5 16.38c.25.3.37.68.33 1.06l-.18 1.57c-.1.83.46 1.6 1.28 1.78l1.7.35c.4.08.73.32.93.66l.84 1.43a1.63 1.63 0 0 0 2.09.66l1.41-.66c.37-.17.8-.17 1.18 0l1.43.67c.76.35 1.66.07 2.08-.65l.86-1.45c.2-.34.54-.58.92-.66l1.68-.35A1.63 1.63 0 0 0 22.84 19l-.18-1.57a1.4 1.4 0 0 1 .33-1.06l1.12-1.32c.52-.6.52-1.5 0-2.11l-1.12-1.3a1.4 1.4 0 0 1-.33-1.07l.18-1.57c.1-.83-.46-1.6-1.28-1.77l-1.68-.35a1.4 1.4 0 0 1-.92-.66l-.86-1.47Zm-3.27-3.2a4.43 4.43 0 0 1 5.69 1.78l.54.93 1.07.22a4.43 4.43 0 0 1 3.5 4.84l-.11.96.7.83a4.43 4.43 0 0 1 .02 5.76l-.72.85.1.96a4.43 4.43 0 0 1-3.5 4.84l-1.06.22-.54.92a4.43 4.43 0 0 1-5.68 1.77l-.84-.4-.82.39a4.43 4.43 0 0 1-5.7-1.79l-.51-.89-1.09-.22a4.43 4.43 0 0 1-3.5-4.84l.1-.96-.72-.85a4.43 4.43 0 0 1 .01-5.76l.71-.83-.1-.95a4.43 4.43 0 0 1 3.5-4.84l1.08-.23.53-.9a4.43 4.43 0 0 1 5.7-1.8l.81.38.83-.39ZM18.2 9.4c.65.42.84 1.28.42 1.93l-4.4 6.87a1.4 1.4 0 0 1-2.26.14L9.5 15.39a1.4 1.4 0 0 1 2.15-1.8l1.23 1.48 3.38-5.26a1.4 1.4 0 0 1 1.93-.42Z" 5581 clip-rule="evenodd" 5582 /> 5583</svg>`,tj=Q`<svg fill="none" viewBox="0 0 14 14"> 5584 <path 5585 fill="currentColor" 5586 fill-rule="evenodd" 5587 d="m4.1 12.43-.45-.78-.93-.2a1.65 1.65 0 0 1-1.31-1.8l.1-.86-.61-.71a1.65 1.65 0 0 1 0-2.16l.6-.7-.09-.85c-.1-.86.47-1.64 1.3-1.81l.94-.2.45-.78A1.65 1.65 0 0 1 6.23.9l.77.36.78-.36c.77-.36 1.69-.07 2.12.66l.47.8.91.2c.84.17 1.4.95 1.31 1.8l-.1.86.6.7c.54.62.54 1.54.01 2.16l-.6.71.09.86c.1.85-.47 1.63-1.3 1.8l-.92.2-.47.79a1.65 1.65 0 0 1-2.12.66L7 12.74l-.77.36c-.78.35-1.7.07-2.13-.67Zm5.74-6.9a1 1 0 1 0-1.68-1.07L6.32 7.3l-.55-.66a1 1 0 0 0-1.54 1.28l1.43 1.71a1 1 0 0 0 1.61-.1l2.57-4Z" 5588 clip-rule="evenodd" 5589 /> 5590</svg>`,tB=Q` 5591 <svg fill="none" viewBox="0 0 48 44"> 5592 <path 5593 style="fill: var(--wui-color-bg-300);" 5594 d="M4.56 8.64c-1.23 1.68-1.23 4.08-1.23 8.88v8.96c0 4.8 0 7.2 1.23 8.88.39.55.87 1.02 1.41 1.42C7.65 38 10.
559405 38 14.85 38h14.3c4.8 0 7.2 0 8.88-1.22a6.4 6.4 0 0 0 1.41-1.42c.83-1.14 1.1-2.6 1.19-4.92a6.4 6.4 0 0 0 5.16-4.65c.21-.81.21-1.8.21-3.79 0-1.98 0-2.98-.22-3.79a6.4 6.4 0 0 0-5.15-4.65c-.1-2.32-.36-3.78-1.19-4.92a6.4 6.4 0 0 0-1.41-1.42C36.35 6 33.95 6 29.15 6h-14.3c-4.8 0-7.2 0-8.88 1.22a6.4 6.4 0 0 0-1.41 1.42Z" 5595 /> 5596 <path 5597 style="fill: var(--wui-color-fg-200);" 5598 fill-rule="evenodd" 5599 d="M2.27 11.33a6.4 6.4 0 0 1 6.4-6.4h26.66a6.4 6.4 0 0 1 6.4 6.4v1.7a6.4 6.4 0 0 1 5.34 6.3v5.34a6.4 6.4 0 0 1-5.34 6.3v1.7a6.4 6.4 0 0 1-6.4 6.4H8.67a6.4 6.4 0 0 1-6.4-6.4V11.33ZM39.6 31.07h-6.93a9.07 9.07 0 1 1 0-18.14h6.93v-1.6a4.27 4.27 0 0 0-4.27-4.26H8.67a4.27 4.27 0 0 0-4.27 4.26v21.34a4.27 4.27 0 0 0 4.27 4.26h26.66a4.27 4.27 0 0 0 4.27-4.26v-1.6Zm-6.93-16a6.93 6.93 0 0 0 0 13.86h8a4.27 4.27 0 0 0 4.26-4.26v-5.34a4.27 4.27 0 0 0-4.26-4.26h-8Z" 5600 clip-rule="evenodd" 5601 /> 5602 </svg> 5603`,t$=Q`<svg fill="none" viewBox="0 0 20 20"> 5604 <path 5605 fill="currentColor" 5606 fill-rule="evenodd" 5607 d="M0 5.5c0-1.8 1.46-3.25 3.25-3.25H14.5c1.8 0 3.25 1.46 3.25 3.25v.28A3.25 3.25 0 0 1 20 8.88v2.24c0 1.45-.94 2.68-2.25 3.1v.28c0 1.8-1.46 3.25-3.25 3.25H3.25A3.25 3.25 0 0 1 0 14.5v-9Zm15.75 8.88h-2.38a4.38 4.38 0 0 1 0-8.76h2.38V5.5c0-.69-.56-1.25-1.25-1.25H3.25C2.56 4.25 2 4.81 2 5.5v9c0 .69.56 1.25 1.25 1.25H14.5c.69 0 1.25-.56 1.25-1.25v-.13Zm-2.38-6.76a2.37 2.37 0 1 0 0 4.75h3.38c.69 0 1.25-.55 1.25-1.24V8.87c0-.69-.56-1.24-1.25-1.24h-3.38Z" 5608 clip-rule="evenodd" 5609 /> 5610</svg>`,tU=Q`<svg fill="none" viewBox="0 0 96 67"> 5611 <path 5612 fill="currentColor" 5613 d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z" 5614 /> 5615 <path 5616 stroke="#000" 5617 stroke-opacity=".1" 5618 d="M25.67 19.15a32.06 32.06 0 0 1 44.66 0l1.5 1.48c.43.42.43 1.09 0 1.5l-5.15 5.05a.31.31 0 0 1-.44 0l-2.07-2.03a23.21 23.21 0 0 0-32.34 0l-2.22 2.18a.31.31 0 0 1-.44 0l-5.15-5.05a1.05 1.05 0 0 1 0-1.5l1.65-1.63ZM81 29.6l4.6 4.5c.42.41.42 1.09 0 1.5l-20.7 20.26c-.43.43-1.14.43-1.57 0L48.63 41.47a.9.9 0 0 0-1.26 0L32.68 55.85c-.43.43-1.14.43-1.57 0L10.42 35.6a1.05 1.05 0 0 1 0-1.5l4.59-4.5a1.13 1.13 0 0 1 1.57 0l14.68 14.38a.9.9 0 0 0 1.27 0l-.35-.35.35.35L47.22 29.6a1.13 1.13 0 0 1 1.56 0l14.7 14.38a.9.9 0 0 0 1.26 0L79.42 29.6a1.13 1.13 0 0 1 1.57 0Z" 5619 /> 5620</svg>`,tF=Q`<svg fill="none" viewBox="0 0 20 20"> 5621 <path 5622 fill="currentColor" 5623 d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" 5624 /> 5625 <path 5626 fill="currentColor" 5627 fill-rule="evenodd" 5628 d="M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-7 9a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z" 5629 clip-rule="evenodd" 5630 /> 5631</svg>`,tz=Q`<svg 5632 xmlns="http://www.w3.org/2000/svg" 5633 width="28" 5634 height="28" 5635 viewBox="0 0 28 28" 5636 fill="none"> 5637 <path 5638 fill="#949E9E" 5639 fill-rule="evenodd" 5640 d="M7.974 2.975h12.052c1.248 0 2.296 0 3.143.092.89.096 1.723.307 2.461.844a4.9 4.9 0 0 1 1.084 1.084c.537.738.748 1.57.844 2.461.092.847.092 1.895.092 3.143v6.802c0 1.248 0 2.296-.092 3.143-.096.89-.307 1.723-.844 2.461a4.9 4.9 0 0 1-1.084 1.084c-.738.537-1.57.748-2.461.844-.847.092-1.895.092-3.143.092H7.974c-1.247 0-2.296 0-3.143-.092-.89-.096-1.723-.307-2.461-.844a4.901 4.901 0 0 1-1.084-1.084c-.537-.738-.748-1.571-.844-2.461C.35 19.697.35 18.649.35 17.4v-6.802c0-1.248 0-2.296.092-3.143.096-.89.307-1.723.844-2.461A4.9 4.9 0 0 1 2.37 3.91c.738-.537 1.571-.748 2.461-.844.847-.092 1.895-.092 3.143-.092ZM5.133 5.85c-.652.071-.936.194-1.117.326a2.1 2.1 0 0 0-.465.465c-.132.181-.255.465-.325 1.117-.074.678-.076 1.573-.076 2.917v6.65c0 1.344.002 2.239.076 2.917.07.652.193.936.325 1.117a2.1 2.1 0 0 0 .465.465c.181.132.465.255 1.117.326.678.073 1.574.075 2.917.075h11.9c1.344 0 2.239-.002 2.917-.075.652-.071.936-.194 1.117-.326.179-.13.335-.286.465-.465.132-.181.255-.465.326-1.117.073-.678.075-1.573.075-2.917v-6.65c0-1.344-.002-2.239-.075-2.917-.071-.652-.194-.936-.326-1.117a2.1 2.1 0 0 0-.465-.465c-.181-.132-.465-.255-1.117-.326-.678-.073-1.573-.075-2.917-.075H8.05c-1.343 0-2.239.002-2.917.075Zm.467 7.275a3.15 3.15 0 1 1 6.3 0 3.15 3.15 0 0 1-6.3 0Zm8.75-1.75a1.4 1.4 0 0 1 1.4-1.4h3.5a1.4 1.4 0 0 1 0 2.8h-3.5a1.4 1.4 0 0 1-1.4-1.4Zm0 5.25a1.4 1.4 0 0 1 1.4-1.4H21a1.4 1.4 0 1 1 0 2.8h-5.25a1.4 1.4 0 0 1-1.4-1.4Z" 5641 clip-rule="evenodd"/> 5642</svg>`,tq=Q`<svg fill="none" viewBox="0 0 41 40"> 5643 <g clip-path="url(#a)"> 5644 <path fill="#000" d="M.8 0h40v40H.8z" /> 5645 <path 5646 fill="#fff" 5647 d="m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z" 5648 /> 5649 </g>
5650 <defs> 5651 <clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath> 5652 </defs> 5653</svg>`;var tW=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tH={add:eF,allWallets:ez,arrowBottomCircle:eq,appStore:eW,apple:eH,arrowBottom:eV,arrowLeft:eZ,arrowRight:eK,arrowTop:eG,bank:eY,browser:eJ,card:eQ,checkmark:e0,checkmarkBold:eX,chevronBottom:e1,chevronLeft:e2,chevronRight:e3,chevronTop:e5,chromeStore:e4,clock:e6,close:e8,compass:e9,coinPlaceholder:e7,copy:te,cursor:tt,cursorTransparent:tr,desktop:ti,disconnect:tn,discord:to,etherscan:ts,extension:ta,externalLink:tl,facebook:tc,filters:tu,github:td,google:th,helpCircle:tf,id:tz,infoCircle:tp,mail:tg,mobile:tm,more:tw,networkPlaceholder:ty,nftPlaceholder:tb,off:tv,playStore:t_,plus:tx,qrCode:tE,recycleHorizontal:tC,refresh:tk,search:tS,send:tA,swapHorizontal:tI,swapHorizontalMedium:tR,swapHorizontalBold:tT,swapHorizontalRoundedBold:tO,swapVertical:tP,telegram:tN,twitch:tM,twitter:tq,twitterIcon:tD,verify:tL,verifyFilled:tj,wallet:t$,walletConnect:tU,walletPlaceholder:tB,warningCircle:tF,x:tq},tV=class extends ew{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=` 5654 --local-color: var(--wui-color-${this.color}); 5655 --local-width: var(--wui-icon-size-${this.size}); 5656 `,J`${tH[this.name]}`}};tV.styles=[eA,eT,eU],tW([eB()],tV.prototype,"size",void 0),tW([eB()],tV.prototype,"name",void 0),tW([eB()],tV.prototype,"color",void 0),tV=tW([eP("wui-icon")],tV);var tZ=h` 5657 :host { 5658 display: block; 5659 width: var(--local-width); 5660 height: var(--local-height); 5661 } 5662 5663 img { 5664 display: block; 5665 width: 100%; 5666 height: 100%; 5667 object-fit: cover; 5668 object-position: center center; 5669 border-radius: inherit; 5670 } 5671`,tK=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tG=class extends ew{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0}render(){return this.style.cssText=` 5672 --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"}; 5673 --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"}; 5674 `,J`<img src=${this.src} alt=${this.alt} />`}};tG.styles=[eA,eT,tZ],tK([eB()],tG.prototype,"src",void 0),tK([eB()],tG.prototype,"alt",void 0),tK([eB()],tG.prototype,"size",void 0),tG=tK([eP("wui-image")],tG);var tY=h` 5675 :host { 5676 display: block; 5677 width: var(--wui-box-size-lg); 5678 height: var(--wui-box-size-lg); 5679 } 5680 5681 svg { 5682 width: var(--wui-box-size-lg); 5683 height: var(--wui-box-size-lg); 5684 fill: none; 5685 stroke: transparent; 5686 stroke-linecap: round; 5687 } 5688 5689 use { 5690 stroke: var(--wui-color-accent-100); 5691 stroke-width: 2px; 5692 stroke-dasharray: 54, 118; 5693 stroke-dashoffset: 172; 5694 animation: dash 1s linear infinite; 5695 } 5696 5697 @keyframes dash { 5698 to { 5699 stroke-dashoffset: 0px; 5700 } 5701 } 5702`,tJ=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let tQ=class extends ew{render(){return J` 5703 <svg viewBox="0 0 54 59"> 5704 <path 5705 id="wui-loader-path" 5706 d="M17.22 5.295c3.877-2.277 5.737-3.363 7.72-3.726a11.44 11.44 0 0 1 4.12 0c1.983.363 3.844 1.45 7.72 3.726l6.065 3.562c3.876 2.276 5.731 3.372 7.032 4.938a11.896 11.896 0 0 1 2.06 3.63c.683 1.928.688 4.11.688 8.663v7.124c0 4.553-.005 6.735-.688 8.664a11.896 11.896 0 0 1-2.06 3.63c-1.3 1.565-3.156 2.66-7.032 4.937l-6.065 3.563c-3.877 2.276-5.737 3.362-7.72 3.725a11.46 11.46 0 0 1-4.12 0c-1.983-.363-3.844-1.449-7.72-3.726l-6.065-3.562c-3.876-2.276-5.731-3.372-7.032-4.938a11.885 11.885 0 0 1-2.06-3.63c-.682-1.928-.688-4.11-.688-8.663v-7.124c0-4.553.006-6.735.688-8.664a11.885 11.885 0 0 1 2.06-3.63c1.3-1.565 3.156-2.66 7.032-4.937l6.065-3.562Z" 5707 /> 5708 <use xlink:href="#wui-loader-path"></use> 5709 </svg> 5710 `}};tQ.styles=[eA,tY],tQ=tJ([eP("wui-loading-hexagon")],tQ);var tX=h` 5711 :host { 5712 display: flex; 5713 } 5714 5715 :host([data-size='sm']) > svg { 5716 width: 12px; 5717 height: 12px; 5718 } 5719 5720 :host([data-size='md']) > svg { 5721 width: 16px; 5722 height: 16px; 5723 } 5724 5725 :host([data-size='lg']) > svg { 5726 width: 24px; 5727 height: 24px; 5728 } 5729 5730 :host([data-size='xl']) > svg { 5731 width: 32px; 5732 height: 32px; 5733 } 5734 5735 svg { 5736 animation: rotate 2s linear infinite; 5737 } 5738 5739 circle { 5740 fill: none; 5741 stroke: var(--local-color); 5742 stroke-width: 4px; 5743 stroke-dasharray: 1, 124; 5744 stroke-dashoffset: 0; 5745 stroke-linecap: round; 5746 animation: dash 1.5s ease-in-out infinite; 5747 } 5748 5749 :host([data-size='md']) > svg > circle { 5750 stroke-width: 6px; 5751 } 5752 5753 :host([data-size='sm']) > svg > circle { 5754 stroke-width: 8px; 5755 } 5756 5757 @keyframes rotate { 5758 100% { 5759 transform: rotate(360deg); 5760 } 5761 } 5762 5763 @keyframes dash { 5764 0% { 5765 stroke-dasharray: 1, 124; 5766 stroke-dashoffset: 0; 5767 } 5768 5769 50% { 5770 stroke-dasharray: 90, 124; 5771 stroke-dashoffset: -35; 5772 } 5773 5774 100% { 5775 stroke-dashoffset: -125; 5776 } 5777 } 5778`,t0=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
5778);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t1=class extends ew{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: ${"inherit"===this.color?"inherit":`var(--wui-color-${this.color})`}`,this.dataset.size=this.size,J`<svg viewBox="25 25 50 50"> 5779 <circle r="20" cy="50" cx="50"></circle> 5780 </svg>`}};t1.styles=[eA,tX],t0([eB()],t1.prototype,"color",void 0),t0([eB()],t1.prototype,"size",void 0),t1=t0([eP("wui-loading-spinner")],t1);var t2=h` 5781 :host { 5782 display: block; 5783 width: var(--wui-box-size-md); 5784 height: var(--wui-box-size-md); 5785 } 5786 5787 svg { 5788 width: var(--wui-box-size-md); 5789 height: var(--wui-box-size-md); 5790 } 5791 5792 rect { 5793 fill: none; 5794 stroke: var(--wui-color-accent-100); 5795 stroke-width: 4px; 5796 stroke-linecap: round; 5797 animation: dash 1s linear infinite; 5798 } 5799 5800 @keyframes dash { 5801 to { 5802 stroke-dashoffset: 0px; 5803 } 5804 } 5805`,t3=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t5=class extends ew{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){let e=this.radius>50?50:this.radius,t=36-e,r=116+t,i=245+t,n=360+1.75*t;return J` 5806 <svg viewBox="0 0 110 110" width="110" height="110"> 5807 <rect 5808 x="2" 5809 y="2" 5810 width="106" 5811 height="106" 5812 rx=${e} 5813 stroke-dasharray="${r} ${i}" 5814 stroke-dashoffset=${n} 5815 /> 5816 </svg> 5817 `}};t5.styles=[eA,t2],t3([eB({type:Number})],t5.prototype,"radius",void 0),t5=t3([eP("wui-loading-thumbnail")],t5);var t4=h` 5818 :host { 5819 display: block; 5820 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 5821 background: linear-gradient( 5822 120deg, 5823 var(--wui-color-bg-200) 5%, 5824 var(--wui-color-bg-200) 48%, 5825 var(--wui-color-bg-300) 55%, 5826 var(--wui-color-bg-300) 60%, 5827 var(--wui-color-bg-300) calc(60% + 10px), 5828 var(--wui-color-bg-200) calc(60% + 12px), 5829 var(--wui-color-bg-200) 100% 5830 ); 5831 background-size: 250%; 5832 animation: shimmer 3s linear infinite reverse; 5833 } 5834 5835 :host([variant='light']) { 5836 background: linear-gradient( 5837 120deg, 5838 var(--wui-color-bg-150) 5%, 5839 var(--wui-color-bg-150) 48%, 5840 var(--wui-color-bg-200) 55%, 5841 var(--wui-color-bg-200) 60%, 5842 var(--wui-color-bg-200) calc(60% + 10px), 5843 var(--wui-color-bg-150) calc(60% + 12px), 5844 var(--wui-color-bg-150) 100% 5845 ); 5846 background-size: 250%; 5847 } 5848 5849 @keyframes shimmer { 5850 from { 5851 background-position: -250% 0; 5852 } 5853 to { 5854 background-position: 250% 0; 5855 } 5856 } 5857`,t6=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let t8=class extends ew{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=` 5858 width: ${this.width}; 5859 height: ${this.height}; 5860 border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px); 5861 `,J`<slot></slot>`}};t8.styles=[t4],t6([eB()],t8.prototype,"width",void 0),t6([eB()],t8.prototype,"height",void 0),t6([eB()],t8.prototype,"borderRadius",void 0),t6([eB()],t8.prototype,"variant",void 0),t8=t6([eP("wui-shimmer")],t8);let t7=1,t9=2,re=e=>(...t)=>({_$litDirective$:e,values:t});class rt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let rr=re(class extends rt{constructor(e){if(super(e),e.type!==t7||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}
5861update(e,[t]){if(void 0===this.st){for(let r in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(t)}let r=e.element.classList;for(let e of this.st)e in t||(r.remove(e),this.st.delete(e));for(let e in t){let i=!!t[e];i===this.st.has(e)||this.nt?.has(e)||(i?(r.add(e),this.st.add(e)):(r.remove(e),this.st.delete(e)))}return X}});var ri=h` 5862 :host { 5863 display: inline-flex !important; 5864 } 5865 5866 slot { 5867 width: 100%; 5868 display: inline-block; 5869 font-style: normal; 5870 font-family: var(--wui-font-family); 5871 font-feature-settings: 5872 'tnum' on, 5873 'lnum' on, 5874 'case' on; 5875 line-height: 130%; 5876 font-weight: var(--wui-font-weight-regular); 5877 overflow: inherit; 5878 text-overflow: inherit; 5879 text-align: var(--local-align); 5880 color: var(--local-color); 5881 } 5882 5883 .wui-font-medium-400 { 5884 font-size: var(--wui-font-size-medium); 5885 font-weight: var(--wui-font-weight-light); 5886 letter-spacing: var(--wui-letter-spacing-medium); 5887 } 5888 5889 .wui-font-medium-600 { 5890 font-size: var(--wui-font-size-medium); 5891 letter-spacing: var(--wui-letter-spacing-medium); 5892 } 5893 5894 .wui-font-medium-title-600 { 5895 font-size: var(--wui-font-size-medium-title); 5896 letter-spacing: var(--wui-letter-spacing-medium-title); 5897 } 5898 5899 .wui-font-mini-700 { 5900 font-size: var(--wui-font-size-mini); 5901 letter-spacing: var(--wui-letter-spacing-mini); 5902 text-transform: uppercase; 5903 } 5904 5905 .wui-font-large-500, 5906 .wui-font-large-600, 5907 .wui-font-large-700 { 5908 font-size: var(--wui-font-size-large); 5909 letter-spacing: var(--wui-letter-spacing-large); 5910 } 5911 5912 .wui-font-2xl-500, 5913 .wui-font-2xl-600, 5914 .wui-font-2xl-700 { 5915 font-size: var(--wui-font-size-2xl); 5916 letter-spacing: var(--wui-letter-spacing-2xl); 5917 } 5918 5919 .wui-font-paragraph-400, 5920 .wui-font-paragraph-500, 5921 .wui-font-paragraph-600, 5922 .wui-font-paragraph-700 { 5923 font-size: var(--wui-font-size-paragraph); 5924 letter-spacing: var(--wui-letter-spacing-paragraph); 5925 } 5926 5927 .wui-font-small-400, 5928 .wui-font-small-500, 5929 .wui-font-small-600 { 5930 font-size: var(--wui-font-size-small); 5931 letter-spacing: var(--wui-letter-spacing-small); 5932 } 5933 5934 .wui-font-tiny-400, 5935 .wui-font-tiny-500, 5936 .wui-font-tiny-600 { 5937 font-size: var(--wui-font-size-tiny); 5938 letter-spacing: var(--wui-letter-spacing-tiny); 5939 } 5940 5941 .wui-font-micro-700, 5942 .wui-font-micro-600 { 5943 font-size: var(--wui-font-size-micro); 5944 letter-spacing: var(--wui-letter-spacing-micro); 5945 text-transform: uppercase; 5946 } 5947 5948 .wui-font-tiny-400, 5949 .wui-font-small-400, 5950 .wui-font-paragraph-400 { 5951 font-weight: var(--wui-font-weight-light); 5952 } 5953 5954 .wui-font-large-700, 5955 .wui-font-paragraph-700, 5956 .wui-font-micro-700, 5957 .wui-font-mini-700 { 5958 font-weight: var(--wui-font-weight-bold); 5959 } 5960 5961 .wui-font-medium-600, 5962 .wui-font-medium-title-600, 5963 .wui-font-large-600, 5964 .wui-font-paragraph-600, 5965 .wui-font-small-600, 5966 .wui-font-tiny-600, 5967 .wui-font-micro-600 { 5968 font-weight: var(--wui-font-weight-medium); 5969 } 5970`,rn=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ro=class extends ew{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left"}render(){let e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0};return this.style.cssText=` 5971 --local-align: ${this.align}; 5972 --local-color: var(--wui-color-${this.color}); 5973 `,J`<slot class=${rr(e)}></slot>`}};ro.styles=[eA,ri],rn([eB()],ro.prototype,"variant",void 0),rn([eB()],ro.prototype,"color",void 0),rn([eB()],ro.prototype,"align",void 0),ro=rn([eP("wui-text")],ro);let rs=Q`<svg fill="none" viewBox="0 0 60 60"> 5974 <rect width="60" height="60" fill="#1DC956" rx="30" /> 5975 <circle cx="30" cy="30" r="3" fill="#fff" /> 5976 <path 5977 fill="#2BEE6C" 5978 stroke="#fff" 5979 stroke-width="2" 5980 d="m45.32 17.9-.88-.42.88.42.02-.05c.1-.2.21-.44.26-.7l-.82-.15.82.16a2 2 0 0 0-.24-1.4c-.13-.23-.32-.42-.47-.57a8.42 8.42 0 0 1-.04-.04l-.04-.04a2.9 2.9 0 0 0-.56-.47l-.51.86.5-.86a2 2 0 0 0-1.4-.24c-.26.05-.5.16-.69.26l-.05.02-15.05 7.25-.1.05c-1.14.55-1.85.89-2.46 1.37a7 7 0 0 0-1.13 1.14c-.5.6-.83 1.32-1.38 2.45l-.05.11-7.25 15.05-.02.05c-.1.2-.21.43-.26.69a2 2 0 0 0 .24 1.4l.85-.5-.85.5c.13.23.32.42.47.57l.04.04.04.04c.15.15.34.34.56.47a2 2 0 0 0 1.41.24l-.2-.98.2.98c.25-.05.5-.17.69-.26l.05-.02-.42-.87.42.87 15.05-7.25.1-.05c1.14-.55 1.85-.89 2.46-1.38a7 7 0 0 0 1.13-1.13 12.87 12.87 0 0 0 1.43-2.56l7.25-15.05Z" 5981 /> 5982 <path 5983 fill="#1DC956" 5984 d="M33.38 32.72 30.7 29.3 15.86 44.14l.2.2a1 1 0 0 0 1.14.2l15.1-7.27a3 3 0 0 0 1.08-4.55Z" 5985 /> 5986 <path 5987 fill="#86F999" 5988 d="m26.62 27.28 2.67 3.43 14.85-14.85-.2-.2a1 1 0 0 0-1.14-.2l-15.1 7.27a3 3 0 0 0-1.08 4.55Z" 5989 /> 5990 <circle cx="30" cy="30" r="3" fill="#fff" transform="rotate(45 30 30)" /> 5991 <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> 5992</svg> `,ra=Q`<svg viewBox="0 0 60 60" fill="none"> 5993 <g clip-path="url(#clip0_7734_50402)"> 5994 <path 5995 d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.
59956985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" 5996 fill="#EB8B47" 5997 /> 5998 <path 5999 d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" 6000 stroke="#062B2B" 6001 stroke-opacity="0.1" 6002 /> 6003 <path 6004 d="M19 52C24.5228 52 29 47.5228 29 42C29 36.4772 24.5228 32 19 32C13.4772 32 9 36.4772 9 42C9 47.5228 13.4772 52 19 52Z" 6005 fill="#FF974C" 6006 stroke="white" 6007 stroke-width="2" 6008 /> 6009 <path 6010 fill-rule="evenodd" 6011 clip-rule="evenodd" 6012 d="M42.8437 8.3264C42.4507 7.70891 41.5493 7.70891 41.1564 8.32641L28.978 27.4638C28.5544 28.1295 29.0326 29.0007 29.8217 29.0007H54.1783C54.9674 29.0007 55.4456 28.1295 55.022 27.4638L42.8437 8.3264Z" 6013 fill="white" 6014 /> 6015 <path 6016 fill-rule="evenodd" 6017 clip-rule="evenodd" 6018 d="M42.3348 11.6456C42.659 11.7608 42.9061 12.1492 43.4005 12.926L50.7332 24.4488C51.2952 25.332 51.5763 25.7737 51.5254 26.1382C51.4915 26.3808 51.3698 26.6026 51.1833 26.7614C50.9031 27 50.3796 27 49.3327 27H34.6673C33.6204 27 33.0969 27 32.8167 26.7614C32.6302 26.6026 32.5085 26.3808 32.4746 26.1382C32.4237 25.7737 32.7048 25.332 33.2669 24.4488L40.5995 12.926C41.0939 12.1492 41.341 11.7608 41.6652 11.6456C41.8818 11.5687 42.1182 11.5687 42.3348 11.6456ZM35.0001 26.999C38.8661 26.999 42.0001 23.865 42.0001 19.999C42.0001 23.865 45.1341 26.999 49.0001 26.999H35.0001Z" 6019 fill="#FF974C" 6020 /> 6021 <path 6022 d="M10.1061 9.35712C9.9973 9.67775 9.99867 10.0388 9.99978 10.3323C9.99989 10.3611 10 10.3893 10 10.4167V25.5833C10 25.6107 9.99989 25.6389 9.99978 25.6677C9.99867 25.9612 9.9973 26.3222 10.1061 26.6429C10.306 27.2317 10.7683 27.694 11.3571 27.8939C11.6777 28.0027 12.0388 28.0013 12.3323 28.0002C12.3611 28.0001 12.3893 28 12.4167 28H19C24.5228 28 29 23.5228 29 18C29 12.4772 24.5228 8 19 8H12.4167C12.3893 8 12.3611 7.99989 12.3323 7.99978C12.0388 7.99867 11.6778 7.9973 11.3571 8.10614C10.7683 8.306 10.306 8.76834 10.1061 9.35712Z" 6023 fill="#FF974C" 6024 stroke="white" 6025 stroke-width="2" 6026 /> 6027 <circle cx="19" cy="18" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> 6028 <circle cx="19" cy="42" r="4" fill="#EB8B47" stroke="white" stroke-width="2" /> 6029 </g> 6030 <defs> 6031 <clipPath id="clip0_7734_50402"> 6032 <rect width="60" height="60" fill="white" /> 6033 </clipPath> 6034 </defs> 6035</svg> `,rl=Q`<svg fill="none" viewBox="0 0 60 60"> 6036 <g clip-path="url(#a)"> 6037 <path 6038 fill="#1DC956" 6039 d="M0 25.01c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02.11 15.65.11 24.9.11h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.13 60 15.76 60 25v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-3.45 1.97-8.08 1.97-17.33 1.97H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 49.1 0 44.46 0 35.21v-10.2Z" 6040 /> 6041 <path 6042 fill="#2BEE6C" 6043 d="M16.1 60c-3.82-.18-6.4-.64-8.53-1.86a15 15 0 0 1-5.6-5.6C.55 50.06.16 46.97.04 41.98L4.2 40.6a4 4 0 0 0 2.48-2.39l4.65-12.4a2 2 0 0 1 2.5-1.2l2.53.84a2 2 0 0 0 2.43-1l2.96-5.94a2 2 0 0 1 3.7.32l3.78 12.58a2 2 0 0 0 3.03 1.09l3.34-2.23a2 2 0 0 0 .65-.7l5.3-9.72a2 2 0 0 1 1.42-1.01l4.14-.69a2 2 0 0 1 1.6.44l3.9 3.24a2 2 0 0 0 2.7-.12l4.62-4.63c.08 2.2.08 4.8.08 7.93v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6c-2.13 1.22-4.7 1.68-8.54 1.86H16.11Z" 6044 /> 6045 <path 6046 fill="#fff" 6047 d="m.07 43.03-.05-2.1 3.85-1.28a3 3 0 0 0 1.86-1.79l4.66-12.4a3 3 0 0 1 3.75-1.8l2.53.84a1 1 0 0 0 1.21-.5l2.97-5.94a3 3 0 0 1 5.56.48l3.77 12.58a1 1 0 0 0 1.51.55l3.34-2.23a1 1 0 0 0 .33-.35l5.3-9.71a3 3 0 0 1 2.14-1.53l4.13-.69a3 3 0 0 1 2.41.66l3.9 3.24a1 1 0 0 0 1.34-.06l5.28-5.28c.05.85.08 1.75.1 2.73L56 22.41a3 3 0 0 1-4.04.19l-3.9-3.25a1 1 0 0 0-.8-.21l-4.13.69a1 1 0 0 0-.72.5l-5.3 9.72a3 3 0 0 1-.97 1.05l-3.34 2.23a3 3 0 0 1-4.53-1.63l-3.78-12.58a1 1 0 0 0-1.85-.16l-2.97 5.94a3 3 0 0 1-3.63 1.5l-2.53-.84a1 1 0 0 0-1.25.6l-4.65 12.4a5 5 0 0 1-3.1 3L.07 43.02Z" 6048 /> 6049 <path 6050 fill="#fff" 6051 fill-rule="evenodd" 6052 d="M49.5 19a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" 6053 clip-rule="evenodd" 6054 /> 6055 <path fill="#fff" d="M45 .28v59.66l-2 .1V.19c.7.02 1.37.05 2 .1Z" /> 6056 <path fill="#2BEE6C" d="M47.5 19a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> 6057 <path 6058 stroke="#fff" 6059 stroke-opacity=".1" 6060 d="M.5 25.01c0-4.63 0-8.08.24-10.8.25-2.7.73-4.64 1.66-6.28a14.5 14.5 0 0 1 5.42-5.41C9.46 1.58 11.39 1.1 14.1.85A133 133 0 0 1 24.9.61h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.67a14.5 14.5 0 0 1 5.42 5.4c.93 1.65 1.41 3.58 1.66 6.3.24 2.71.24 6.16.24 10.79v10.2c0 4.64 0 8.08-.24 10.8-.25 2.7-.73 4.65-1.66 6.28a14.5 14.5 0 0 1-5.42 5.42c-1.63.93-3.57 1.41-6.28 1.66-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.66a14.5 14.5 0 0 1-5.42-5.42C1.47 50.66 1 48.72.74 46.01A133 133 0 0 1 .5 35.2v-10.2Z" 6061 /> 6062 </g>
6063 <defs> 6064 <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> 6065 </defs> 6066</svg>`,rc=Q`<svg fill="none" viewBox="0 0 60 60"> 6067 <g clip-path="url(#a)"> 6068 <rect width="60" height="60" fill="#C653C6" rx="30" /> 6069 <path 6070 fill="#E87DE8" 6071 d="M57.98.01v19.5a4.09 4.09 0 0 0-2.63 2.29L50.7 34.2a2 2 0 0 1-2.5 1.2l-2.53-.84a2 2 0 0 0-2.42 1l-2.97 5.94a2 2 0 0 1-3.7-.32L32.8 28.6a2 2 0 0 0-3.02-1.09l-3.35 2.23a2 2 0 0 0-.64.7l-5.3 9.72a2 2 0 0 1-1.43 1.01l-4.13.69a2 2 0 0 1-1.61-.44l-3.9-3.24a2 2 0 0 0-2.69.12L2.1 42.93.02 43V.01h57.96Z" 6072 /> 6073 <path 6074 fill="#fff" 6075 d="m61.95 16.94.05 2.1-3.85 1.28a3 3 0 0 0-1.86 1.79l-4.65 12.4a3 3 0 0 1-3.76 1.8l-2.53-.84a1 1 0 0 0-1.2.5l-2.98 5.94a3 3 0 0 1-5.55-.48l-3.78-12.58a1 1 0 0 0-1.5-.55l-3.35 2.23a1 1 0 0 0-.32.35l-5.3 9.72a3 3 0 0 1-2.14 1.52l-4.14.69a3 3 0 0 1-2.41-.66l-3.9-3.24a1 1 0 0 0-1.34.06l-5.28 5.28c-.05-.84-.08-1.75-.1-2.73l3.97-3.96a3 3 0 0 1 4.04-.19l3.89 3.25a1 1 0 0 0 .8.21l4.14-.68a1 1 0 0 0 .71-.51l5.3-9.71a3 3 0 0 1 .97-1.06l3.34-2.23a3 3 0 0 1 4.54 1.63l3.77 12.58a1 1 0 0 0 1.86.16l2.96-5.93a3 3 0 0 1 3.64-1.5l2.52.83a1 1 0 0 0 1.25-.6l4.66-12.4a5 5 0 0 1 3.1-2.99l4.43-1.48Z" 6076 /> 6077 <path 6078 fill="#fff" 6079 fill-rule="evenodd" 6080 d="M35.5 27a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z" 6081 clip-rule="evenodd" 6082 /> 6083 <path fill="#fff" d="M31 0v60h-2V0h2Z" /> 6084 <path fill="#E87DE8" d="M33.5 27a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z" /> 6085 </g> 6086 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> 6087 <defs> 6088 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6089 </defs> 6090</svg> `,ru=Q`<svg fill="none" viewBox="0 0 60 60"> 6091 <g clip-path="url(#a)"> 6092 <rect width="60" height="60" fill="#987DE8" rx="30" /> 6093 <path 6094 fill="#fff" 6095 fill-rule="evenodd" 6096 d="m15.48 28.37 11.97-19.3a3 3 0 0 1 5.1 0l11.97 19.3a6 6 0 0 1 .9 3.14v.03a6 6 0 0 1-1.16 3.56L33.23 50.2a4 4 0 0 1-6.46 0L15.73 35.1a6 6 0 0 1-1.15-3.54v-.03a6 6 0 0 1 .9-3.16Z" 6097 clip-rule="evenodd" 6098 /> 6099 <path 6100 fill="#643CDD" 6101 d="M30.84 10.11a1 1 0 0 0-.84-.46V24.5l12.6 5.53a2 2 0 0 0-.28-1.4L30.84 10.11Z" 6102 /> 6103 <path 6104 fill="#BDADEB" 6105 d="M30 9.65a1 1 0 0 0-.85.46L17.66 28.64a2 2 0 0 0-.26 1.39L30 24.5V9.65Z" 6106 /> 6107 <path 6108 fill="#643CDD" 6109 d="M30 50.54a1 1 0 0 0 .8-.4l11.24-15.38c.3-.44-.2-1-.66-.73l-9.89 5.68a3 3 0 0 1-1.5.4v10.43Z" 6110 /> 6111 <path 6112 fill="#BDADEB" 6113 d="m17.97 34.76 11.22 15.37c.2.28.5.41.8.41V40.11a3 3 0 0 1-1.49-.4l-9.88-5.68c-.47-.27-.97.3-.65.73Z" 6114 /> 6115 <path 6116 fill="#401AB3" 6117 d="M42.6 30.03 30 24.5v13.14a3 3 0 0 0 1.5-.4l10.14-5.83a2 2 0 0 0 .95-1.38Z" 6118 /> 6119 <path 6120 fill="#7C5AE2" 6121 d="M30 37.64V24.46l-12.6 5.57a2 2 0 0 0 .97 1.39l10.13 5.82a3 3 0 0 0 1.5.4Z" 6122 /> 6123 </g> 6124 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="29.5" /> 6125 <defs> 6126 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6127 </defs> 6128</svg> `,rd=Q`<svg fill="none" viewBox="0 0 60 60"> 6129 <rect width="60" height="60" fill="#1DC956" rx="3" /> 6130 <path 6131 fill="#1FAD7E" 6132 stroke="#fff" 6133 stroke-width="2" 6134 d="m30.49 29.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" 6135 /> 6136 <path 6137 fill="#2BEE6C" 6138 stroke="#fff" 6139 stroke-width="2" 6140 d="m30.49 19.13-.49-.27-.49.27-12.77 7.1-.05.02c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45l-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-12.77-7.1Z" 6141 /> 6142 <path 6143 fill="#86F999" 6144 stroke="#fff" 6145 stroke-width="2" 6146 d="m46.69 21.06-.94-.35.94.35a3 3 0 0 0 0-2.12l-.94.35.94-.35a3.21 3.21 0 0 0-1.27-1.45c-.53-.36-1.25-.76-2.11-1.24l-.05-.03-6.32-3.51-.18-.1c-2.33-1.3-3.72-2.06-5.22-2.33a9 9 0 0 0-3.08 0c-1.5.27-2.9 1.04-5.22 2.33l-.17.1-6.33 3.51-.05.03c-.86.48-1.58.88-2.1 1.24-.54.37-1.04.81-1.28 1.45a3 3 0 0 0 0 2.12c.24.63.74 1.08 1.27 1.45.53.36 1.25.76 2.11 1.24l.05.03 6.33 3.51.17.1c2.33 1.3 3.72 2.06 5.22 2.32a9 9 0 0 0 3.08 0c1.5-.26 2.9-1.03 5.22-2.32l.18
6146-.1 6.32-3.51.05-.03a26.9 26.9 0 0 0 2.1-1.24 3.21 3.21 0 0 0 1.28-1.45Z" 6147 /> 6148 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6149</svg>`,rh=Q`<svg fill="none" viewBox="0 0 60 60"> 6150 <rect width="60" height="60" fill="#C653C6" rx="3" /> 6151 <path 6152 fill="#fff" 6153 d="M20.03 15.22C20 15.6 20 16.07 20 17v2.8c0 1.14 0 1.7-.2 2.12-.15.31-.3.5-.58.71-.37.28-1.06.42-2.43.7-.59.12-1.11.29-1.6.51a9 9 0 0 0-4.35 4.36C10 30 10 32.34 10 37c0 4.66 0 7 .84 8.8a9 9 0 0 0 4.36 4.36C17 51 19.34 51 24 51h12c4.66 0 7 0 8.8-.84a9 9 0 0 0 4.36-4.36C50 44 50 41.66 50 37c0-4.66 0-7-.84-8.8a9 9 0 0 0-4.36-4.36c-.48-.22-1-.39-1.6-.5-1.36-.29-2.05-.43-2.42-.7-.27-.22-.43-.4-.58-.72-.2-.42-.2-.98-.2-2.11V17c0-.93 0-1.4-.03-1.78a9 9 0 0 0-8.19-8.19C31.4 7 30.93 7 30 7s-1.4 0-1.78.03a9 9 0 0 0-8.19 8.19Z" 6154 /> 6155 <path 6156 fill="#E87DE8" 6157 d="M22 17c0-.93 0-1.4.04-1.78a7 7 0 0 1 6.18-6.18C28.6 9 29.07 9 30 9s1.4 0 1.78.04a7 7 0 0 1 6.18 6.18c.04.39.04.85.04 1.78v4.5a1.5 1.5 0 0 1-3 0V17c0-.93 0-1.4-.08-1.78a4 4 0 0 0-3.14-3.14C31.39 12 30.93 12 30 12s-1.4 0-1.78.08a4 4 0 0 0-3.14 3.14c-.08.39-.08.85-.08 1.78v4.5a1.5 1.5 0 0 1-3 0V17Z" 6158 /> 6159 <path 6160 fill="#E87DE8" 6161 fill-rule="evenodd" 6162 d="M12 36.62c0-4.32 0-6.48.92-8.09a7 7 0 0 1 2.61-2.61C17.14 25 19.3 25 23.62 25h6.86c.46 0 .7 0 .9.02 2.73.22 4.37 2.43 4.62 4.98.27-2.7 2.11-5 5.02-5A6.98 6.98 0 0 1 48 31.98v5.4c0 4.32 0 6.48-.92 8.09a7 7 0 0 1-2.61 2.61c-1.61.92-3.77.92-8.09.92h-5.86c-.46 0-.7 0-.9-.02-2.73-.22-4.37-2.43-4.62-4.98-.26 2.58-1.94 4.82-4.71 4.99l-.7.01c-.55 0-.82 0-1.05-.02a7 7 0 0 1-6.52-6.52c-.02-.23-.02-.5-.02-1.05v-4.79Zm21.24-.27a4 4 0 1 0-6.48 0 31.28 31.28 0 0 1 1.57 2.23c.17.4.17.81.17 1.24V42.5a1.5 1.5 0 0 0 3 0V39.82c0-.43 0-.85.17-1.24.09-.2.58-.87 1.57-2.23Z" 6163 clip-rule="evenodd" 6164 /> 6165 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6166</svg>`,rf=Q`<svg fill="none" viewBox="0 0 60 60"> 6167 <g clip-path="url(#a)"> 6168 <path 6169 fill="#EB8B47" 6170 d="M0 24.9c0-9.25 0-13.88 1.97-17.33a15 15 0 0 1 5.6-5.6C11.02 0 15.65 0 24.9 0h10.2c9.25 0 13.88 0 17.33 1.97a15 15 0 0 1 5.6 5.6C60 11.02 60 15.65 60 24.9v10.2c0 9.25 0 13.88-1.97 17.33a15 15 0 0 1-5.6 5.6C48.98 60 44.35 60 35.1 60H24.9c-9.25 0-13.88 0-17.33-1.97a15 15 0 0 1-5.6-5.6C0 48.98 0 44.35 0 35.1V24.9Z" 6171 /> 6172 <path 6173 stroke="#062B2B" 6174 stroke-opacity=".1" 6175 d="M.5 24.9c0-4.64 0-8.08.24-10.8.25-2.7.73-4.65 1.66-6.28A14.5 14.5 0 0 1 7.82 2.4C9.46 1.47 11.39 1 14.1.74A133 133 0 0 1 24.9.5h10.2c4.63 0 8.08 0 10.8.24 2.7.25 4.65.73 6.28 1.66a14.5 14.5 0 0 1 5.42 5.42c.93 1.63 1.41 3.57 1.66 6.28.24 2.72.24 6.16.24 10.8v10.2c0 4.63 0 8.08-.24 10.8-.25 2.7-.73 4.64-1.66 6.28a14.5 14.5 0 0 1-5.42 5.41c-1.63.94-3.57 1.42-6.28 1.67-2.72.24-6.17.24-10.8.24H24.9c-4.63 0-8.08 0-10.8-.24-2.7-.25-4.64-.73-6.28-1.67a14.5 14.5 0 0 1-5.42-5.4C1.47 50.53 1 48.6.74 45.88A133 133 0 0 1 .5 35.1V24.9Z" 6176 /> 6177 <path 6178 fill="#FF974C" 6179 stroke="#fff" 6180 stroke-width="2" 6181 d="M39.2 29.2a13 13 0 1 0-18.4 0l1.3 1.28a12.82 12.82 0 0 1 2.1 2.39 6 6 0 0 1 .6 1.47c.2.76.2 1.56.2 3.17v11.24c0 1.08 0 1.61.13 2.12a4 4 0 0 0 .41.98c.26.45.64.83 1.4 1.6l.3.29c.65.65.98.98 1.36 1.09.26.07.54.07.8 0 .38-.11.7-.44 1.36-1.1l3.48-3.47c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.47-.48c-.
618165-.65-.98-.98-1.09-1.36a1.5 1.5 0 0 1 0-.8c.1-.38.44-.7 1.1-1.36l.47-.48c.65-.65.98-.98 1.09-1.36a1.5 1.5 0 0 0 0-.8c-.1-.38-.44-.7-1.1-1.36l-.48-.5c-.65-.64-.98-.97-1.08-1.35a1.5 1.5 0 0 1 0-.79c.1-.38.42-.7 1.06-1.36l5.46-5.55Z" 6182 /> 6183 <circle cx="30" cy="17" r="4" fill="#EB8B47" stroke="#fff" stroke-width="2" /> 6184 </g> 6185 <defs> 6186 <clipPath id="a"><path fill="#fff" d="M0 0h60v60H0z" /></clipPath> 6187 </defs> 6188</svg> `,rp=Q`<svg fill="none" viewBox="0 0 60 60"> 6189 <g clip-path="url(#a)"> 6190 <rect width="60" height="60" fill="#00ACE6" rx="30" /> 6191 <circle cx="64" cy="39" r="50" fill="#1AC6FF" stroke="#fff" stroke-width="2" /> 6192 <circle cx="78" cy="30" r="50" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> 6193 <circle cx="72" cy="15" r="35" fill="#80DFFF" stroke="#fff" stroke-width="2" /> 6194 <circle cx="34" cy="-17" r="45" stroke="#fff" stroke-width="2" /> 6195 <circle cx="34" cy="-5" r="50" stroke="#fff" stroke-width="2" /> 6196 <circle cx="30" cy="45" r="4" fill="#4DD2FF" stroke="#fff" stroke-width="2" /> 6197 <circle cx="39.5" cy="27.5" r="4" fill="#80DFFF" stroke="#fff" stroke-width="2" /> 6198 <circle cx="16" cy="24" r="4" fill="#19C6FF" stroke="#fff" stroke-width="2" /> 6199 </g> 6200 <rect width="59" height="59" x=".5" y=".5" stroke="#062B2B" stroke-opacity=".1" rx="29.5" /> 6201 <defs> 6202 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="30" /></clipPath> 6203 </defs> 6204</svg>`,rg=Q`<svg fill="none" viewBox="0 0 60 60"> 6205 <g clip-path="url(#a)"> 6206 <rect width="60" height="60" fill="#C653C6" rx="3" /> 6207 <path 6208 fill="#E87DE8" 6209 stroke="#fff" 6210 stroke-width="2" 6211 d="M52.1 47.34c0-4.24-1.44-9.55-5.9-12.4a2.86 2.86 0 0 0-1.6-3.89v-.82c0-1.19-.52-2.26-1.35-3a4.74 4.74 0 0 0-2.4-6.26v-5.5a11.31 11.31 0 1 0-22.63 0v2.15a3.34 3.34 0 0 0-1.18 5.05 4.74 4.74 0 0 0-.68 6.44A5.22 5.22 0 0 0 14 35.92c-3.06 4.13-6.1 8.3-6.1 15.64 0 2.67.37 4.86.74 6.39a20.3 20.3 0 0 0 .73 2.39l.02.04v.01l.92-.39-.92.4.26.6h38.26l.3-.49-.87-.51.86.5.02-.01.03-.07a16.32 16.32 0 0 0 .57-1.05c.36-.72.85-1.74 1.33-2.96a25.51 25.51 0 0 0 1.94-9.07Z" 6212 /> 6213 <path 6214 fill="#fff" 6215 fill-rule="evenodd" 6216 d="M26.5 29.5c-3-.5-5.5-3-5.5-7v-7c0-.47 0-.7.03-.9a3 3 0 0 1 2.58-2.57c.2-.03.42-.03.89-.03 2 0 2.5-2.5 2.5-2.5s0 2.5 2.5 2.5c1.4 0 2.1 0 2.65.23a3 3 0 0 1 1.62 1.62c.23.55.23 1.25.23 2.65v6c0 4-3 7-6.5 7 1.35.23 4 0 6.5-2v9.53C34 38.5 31.5 40 28 40s-6-1.5-6-2.97L24 34l2.5 1.5v-6ZM26 47h4.5c2.5 0 3 4 3 5.5h-3l-1-1.5H26v-4Zm-6.25 5.5H24V57h-8c0-1 1-4.5 3.75-4.5Z" 6217 clip-rule="evenodd" 6218 /> 6219 </g> 6220 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6221 <defs> 6222 <clipPath id="a"><rect width="60" height="60" fill="#fff" rx="3" /></clipPath> 6223 </defs> 6224</svg> `,rm=Q`<svg fill="none" viewBox="0 0 60 60"> 6225 <rect width="60" height="60" fill="#794CFF" rx="3" /> 6226 <path 6227 fill="#987DE8" 6228 stroke="#fff" 6229 stroke-width="2" 6230 d="M33 22.5v-1H16v5H8.5V36H13v-5h3v7.5h17V31h1v7.5h17v-17H34v5h-1v-4Z" 6231 /> 6232 <path fill="#fff" d="M37.5 25h10v10h-10z" /> 6233 <path fill="#4019B2" d="M42.5 25h5v10h-5z" /> 6234 <path fill="#fff" d="M19.5 25h10v10h-10z" /> 6235 <path fill="#4019B2" d="M24.5 25h5v10h-5z" /> 6236 <path fill="#fff" d="M12 30.5h4V37h-4v-6.5Z" /> 6237 <rect width="59" height="59" x=".5" y=".5" stroke="#fff" stroke-opacity=".1" rx="2.5" /> 6238</svg>`,rw=Q`<svg 6239 viewBox="0 0 60 60" 6240 fill="none" 6241> 6242 <g clip-path="url(#1)"> 6243 <rect width="60" height="60" rx="30" fill="#00ACE6" /> 6244 <path 6245 d="M59 73C59 89.0163 46.0163 102 30 102C13.9837 102 1 89.0163 1 73C1 56.9837 12 44 30 44C48 44 59 56.9837 59 73Z" 6246 fill="#1AC6FF" 6247 stroke="white" 6248 stroke-width="2" 6249 /> 6250 <path 6251 d="M18.6904 19.9015C19.6264 15.3286 23.3466 11.8445 27.9708 11.2096C29.3231 11.024 30.6751 11.0238 32.0289 11.2096C36.6532 11.8445 40.3733 15.3286 41.3094 19.9015C41.4868 20.7681 41.6309 21.6509 41.7492 22.5271C41.8811 23.5041 41.8811 24.4944 41.7492 25.4715C41.6309 26.3476 41.4868 27.2304 41.3094 28.097C40.3733 32.6699 36.6532 36.154 32.0289 36.7889C30.6772 36.9744 29.3216 36.9743 27.9708 36.7889C23.3466 36.154 19.6264 32.6699 18.6904 28.097C18.513 27.2304 18.3689 26.3476 18.2506 25.4715C18.1186 24.4944 18.1186 23.5041 18.2506 22.5271C18.3689 21.6509 18.513 20.7681 18.6904 19.9015Z" 6252 fill="#1AC6FF" 6253 stroke="white" 6254 stroke-width="2" 6255 /> 6256 <circle cx="24.5" cy="23.5" r="1.5" fill="white" /> 6257 <circle cx="35.5" cy="23.5" r="1.5" fill="white" /> 6258 <path 6259 d="M31 20L28 28H32" 6260 stroke="white" 6261 stroke-width="2" 6262 stroke-linecap="round" 6263 stroke-linejoin="round" 6264 /> 6265 </g> 6266 <rect x="0.5" y="0.5" width="59" height="59" rx="29.5" stroke="white" stroke-opacity="0.1" /> 6267 <defs> 6268 <clipPath id="1"> 6269 <rect width="60" height="60" rx="30" fill="white" /> 6270 </clipPath> 6271 </defs> 6272</svg> `,ry=Q`<svg viewBox="0 0 60 60" fill="none"> 6273 <g clip-path="url(#1)"> 6274 <path 6275 d="M0 24.9C0 15.6485 0 11.0228 1.97053 7.56812C3.3015 5.23468 5.23468 3.3015 7.56812 1.97053C11.0228 0 15.6485 0 24.9 0H35.1C44.3514 0 48.9772 0 52.4319 1.97053C54.7653 3.3015 56.6985 5.23468 58.0295 7.56812C60 11.0228 60 15.6485 60 24.9V35.1C60 44.3514 60 48.9772 58.0295 52.4319C56.6985 54.7653 54.7653 56.
62756985 52.4319 58.0295C48.9772 60 44.3514 60 35.1 60H24.9C15.6485 60 11.0228 60 7.56812 58.0295C5.23468 56.6985 3.3015 54.7653 1.97053 52.4319C0 48.9772 0 44.3514 0 35.1V24.9Z" 6276 fill="#794CFF" 6277 /> 6278 <path 6279 d="M0.5 24.9C0.5 20.2652 0.50047 16.8221 0.744315 14.105C0.987552 11.3946 1.46987 9.45504 2.40484 7.81585C3.69145 5.56019 5.56019 3.69145 7.81585 2.40484C9.45504 1.46987 11.3946 0.987552 14.105 0.744315C16.8221 0.50047 20.2652 0.5 24.9 0.5H35.1C39.7348 0.5 43.1779 0.50047 45.895 0.744315C48.6054 0.987552 50.545 1.46987 52.1841 2.40484C54.4398 3.69145 56.3086 5.56019 57.5952 7.81585C58.5301 9.45504 59.0124 11.3946 59.2557 14.105C59.4995 16.8221 59.5 20.2652 59.5 24.9V35.1C59.5 39.7348 59.4995 43.1779 59.2557 45.895C59.0124 48.6054 58.5301 50.545 57.5952 52.1841C56.3086 54.4398 54.4398 56.3086 52.1841 57.5952C50.545 58.5301 48.6054 59.0124 45.895 59.2557C43.1779 59.4995 39.7348 59.5 35.1 59.5H24.9C20.2652 59.5 16.8221 59.4995 14.105 59.2557C11.3946 59.0124 9.45504 58.5301 7.81585 57.5952C5.56019 56.3086 3.69145 54.4398 2.40484 52.1841C1.46987 50.545 0.987552 48.6054 0.744315 45.895C0.50047 43.1779 0.5 39.7348 0.5 35.1V24.9Z" 6280 stroke="#062B2B" 6281 stroke-opacity="0.1" 6282 /> 6283 <path 6284 d="M35.1403 31.5016C35.1193 30.9637 35.388 30.4558 35.8446 30.1707C36.1207 29.9982 36.4761 29.8473 36.7921 29.7685C37.3143 29.6382 37.8664 29.7977 38.2386 30.1864C38.8507 30.8257 39.3004 31.6836 39.8033 32.408C40.2796 33.0942 41.4695 33.2512 41.9687 32.5047C42.4839 31.7341 42.9405 30.8229 43.572 30.1399C43.9375 29.7447 44.4866 29.5756 45.0111 29.6967C45.3283 29.7701 45.6863 29.9147 45.9655 30.0823C46.4269 30.3595 46.7045 30.8626 46.6928 31.4008C46.6731 32.3083 46.3764 33.2571 46.2158 34.1473C46.061 35.0048 46.9045 35.8337 47.7592 35.664C48.6464 35.4878 49.5899 35.1747 50.497 35.1391C51.0348 35.1181 51.5427 35.3868 51.8279 35.8433C52.0004 36.1195 52.1513 36.4749 52.2301 36.7908C52.3604 37.3131 52.2009 37.8651 51.8121 38.2374C51.1729 38.8495 50.3151 39.2991 49.5908 39.8019C48.9046 40.2782 48.7473 41.4683 49.4939 41.9675C50.2644 42.4827 51.1757 42.9393 51.8587 43.5708C52.2539 43.9362 52.423 44.4854 52.3018 45.0099C52.2285 45.3271 52.0839 45.6851 51.9162 45.9642C51.6391 46.4257 51.1359 46.7032 50.5978 46.6916C49.6903 46.6719 48.7417 46.3753 47.8516 46.2146C46.9939 46.0598 46.1648 46.9035 46.3346 47.7583C46.5108 48.6454 46.8239 49.5888 46.8594 50.4958C46.8805 51.0336 46.6117 51.5415 46.1552 51.8267C45.879 51.9992 45.5236 52.15 45.2077 52.2289C44.6854 52.3592 44.1334 52.1997 43.7611 51.8109C43.1491 51.1718 42.6996 50.314 42.1968 49.5897C41.7203 48.9034 40.5301 48.7463 40.0309 49.493C39.5157 50.2634 39.0592 51.1746 38.4278 51.8574C38.0623 52.2527 37.5132 52.4218 36.9887 52.3006C36.6715 52.2273 36.3135 52.0826 36.0343 51.915C35.5729 51.6379 35.2953 51.1347 35.307 50.5966C35.3267 49.6891 35.6233 48.7405 35.7839 47.8505C35.9388 46.9928 35.0951 46.1636 34.2402 46.3334C33.3531 46.5096 32.4098 46.8227 31.5028 46.8582C30.9649 46.8793 30.457 46.6105 30.1719 46.154C29.9994 45.8778 29.8485 45.5224 29.7697 45.2065C29.6394 44.6842 29.7989 44.1322 30.1877 43.7599C30.8269 43.1479 31.6847 42.6982 32.4091 42.1954C33.0954 41.7189 33.2522 40.5289 32.5056 40.0297C31.7351 39.5145 30.824 39.058 30.1411 38.4265C29.7459 38.0611 29.5768 37.5119 29.698 36.9875C29.7713 36.6702 29.9159 36.3122 30.0836 36.0331C30.3607 35.5717 30.8638 35.2941 31.402 35.3058C32.3095 35.3255 33.2583 35.6221 34.1485 35.7828C35.006 35.9376 35.8349 35.094 35.6652 34.2393C35.489 33.3521 35.1759 32.4087 35.1403 31.5016Z" 6285 fill="#906EF7" 6286 stroke="white" 6287 stroke-width="2" 6288 /> 6289 <path 6290 d="M20.7706 8.22357C20.9036 7.51411 21.5231 7 22.2449 7H23.7551C24.4769 7 25.0964 7.51411 25.2294 8.22357C25.5051 9.69403 25.4829 11.6321 27.1202 12.2606C27.3092 12.3331 27.4958 12.4105 27.6798 12.4926C29.2818 13.2072 30.6374 11.8199 31.8721 10.9752C32.4678 10.5676 33.2694 10.6421 33.7798 11.1525L34.8477 12.2204C35.3581 12.7308 35.4326 13.5323 35.025 14.128C34.1802 15.3627 32.7931 16.7183 33.5077 18.3202C33.5898 18.5043 33.6672 18.6909 33.7398 18.88C34.3683 20.5171 36.3061 20.4949 37.7764 20.7706C38.4859 20.9036 39 21.5231 39 22.2449V23.7551C39 24.4769 38.4859 25.0964 37.7764 25.2294C36.3061 25.5051 34.3685 25.483 33.7401 27.1201C33.6675 27.3093 33.59 27.4961 33.5079 27.6803C32.7934 29.282 34.1803 30.6374 35.025 31.8719C35.4326 32.4677 35.3581 33.2692 34.8477 33.7796L33.7798 34.8475C33.2694 35.3579 32.4678 35.4324 31.8721 35.0248C30.6376 34.1801 29.2823 32.7934 27.6806 33.508C27.4962 33.5903 27.3093 33.6678 27.12 33.7405C25.483 34.3688 25.5051 36.3062 25.2294 37.7764C25.0964 38.4859 24.4769 39 23.7551 39H22.2449C21.5231 39 20.9036 38.4859 20.7706 37.7764C20.4949 36.3062 20.517 34.3688 18.88 33.7405C18.6908 33.6678 18.5039 33.5903 18.3196 33.5081C16.7179 32.7936 15.3625 34.1804 14.1279 35.0251C13.5322 35.4327 12.7307 35.3582 12.2203 34.8478L11.1524 33.7799C10.642 33.2695 10.5675 32.4679 10.9751 31.8722C11.8198 30.6376 13.2067 29.2822 12.4922 27.6804C12.41 27.4962 12.3325 27.3093 12.2599 27.1201C11.6315 25.483 9.69392 25.5051 8.22357 25.2294C7.51411 25.0964 7 24.4769 7 23.7551V22.2449C7 21.5231 7.51411 20.9036 8.22357 20.7706C9.69394 20.4949 11.6317 20.5171 12.2602 18.88C12.3328 18.6909 12.4103 18.5042 12.4924 18.3201C13.207 16.7181 11.8198 15.3625 10.975 14.1278C10.5674 13.5321 10.6419 12.7305 11.
62901523 12.2201L12.2202 11.1522C12.7306 10.6418 13.5322 10.5673 14.1279 10.9749C15.3626 11.8197 16.7184 13.2071 18.3204 12.4925C18.5044 12.4105 18.6909 12.3331 18.8799 12.2606C20.5171 11.6321 20.4949 9.69403 20.7706 8.22357Z" 6291 fill="#906EF7" 6292 stroke="white" 6293 stroke-width="2" 6294 /> 6295 <circle cx="23" cy="23" r="6" fill="#794CFF" stroke="white" stroke-width="2" /> 6296 <circle cx="41" cy="41" r="4" fill="#794CFF" stroke="white" stroke-width="2" /> 6297 </g> 6298 <defs> 6299 <clipPath id="1"> 6300 <rect width="60" height="60" fill="white" /> 6301 </clipPath> 6302 </defs> 6303</svg> `,rb=Q`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"> 6304 <g clip-path="url(#clip0_187_29)"> 6305 <path d="M1.18187e-05 15.8055C1.18187e-05 9.8015 -5.19442e-07 6.91338 1.69991e-08 0C4.5 3.72236e-05 9.62249 0 16.5 0L23.5 4.31399e-05C29.9349 4.31399e-05 35.5 0.000206332 40 3.73468e-05C40 2.77754 40 9.36708 40 15.8055V22.8364C40 29.2647 40 33.7962 40 40C31.5 40 29.8337 40 23.4 40H16.6C10.5092 40 6.50004 40 4.04289e-05 40C3.05176e-05 32.2453 1.18187e-05 29.6382 1.18187e-05 22.8364V15.8055Z" fill="#0052FF"/> 6306 <path d="M20.0236 26.5C16.4342 26.5 13.5236 23.5931 13.5236 20C13.5236 16.4069 16.4342 13.5 20.0236 13.5C23.2411 13.5 25.9134 15.8472 26.4261 18.9167H32.9731C32.4206 12.2433 26.8342 7 20.02 7C12.8411 7 7.02002 12.8211 7.02002 20C7.02002 27.1789 12.8411 33 20.02 33C26.8342 33 32.4206 27.7567 32.9731 21.0833H26.4225C25.9061 24.1528 23.2411 26.5 20.0236 26.5Z" fill="white"/> 6307 </g> 6308 <defs> 6309 <clipPath id="clip0_187_29"> 6310 <rect width="40" height="40" fill="white"/> 6311 </clipPath> 6312 </defs> 6313</svg>`,rv=Q` 6314 <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"> 6315 <g clip-path="url(#a)"> 6316 <path 6317 d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z" 6318 fill="#7D00FF" 6319 /> 6320 <path 6321 d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z" 6322 stroke="#fff" 6323 stroke-opacity=".05" 6324 /> 6325 <path 6326 d="M28.306 15.381a3.69 3.69 0 1 0 0-7.381 3.69 3.69 0 0 0 0 7.381ZM16.987 32a8.991 8.991 0 1 1 .016-17.983A8.991 8.991 0 0 1 16.988 32Z" 6327 fill="#fff" 6328 /> 6329 </g> 6330 <defs> 6331 <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 6332 </defs> 6333 </svg> 6334`,r_=Q` 6335 <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"> 6336 <g clip-path="url(#a)"> 6337 <path 6338 d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z" 6339 fill="#635BFF" 6340 /> 6341 <path 6342 d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z" 6343 stroke="#fff" 6344 stroke-opacity=".05" 6345 /> 6346 <path 6347 fill-rule="evenodd" 6348 clip-rule="evenodd" 6349 d="M18.299 15.147c0-1.028.844-1.424 2.242-1.424 2.004 0 4.536.607 6.54 1.688V9.213C24.892 8.343 22.73 8 20.541 8c-5.354 0-8.915 2.796-8.915 7.464 0 7.279 10.022 6.118 10.022 9.257 0 1.213-1.055 1.609-2.531 1.609-2.19 0-4.985-.897-7.2-2.11v6.277a18.283 18.283 0 0 0 7.2 1.503c5.485 0 9.257-2.716 9.257-7.437-.027-7.86-10.075-6.462-10.075-9.416Z" 6350 fill="#fff" 6351 /> 6352 </g> 6353 <defs> 6354 <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 6355 </defs> 6356 </svg> 6357`,rx=Q` 6358 <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"> 6359 <g clip-path="url(#a)"> 6360 <path 6361 d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z" 6362 fill="#fff" 6363 /> 6364 <path 6365 d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z" 6366 stroke="#fff" 6367 stroke-opacity=".05" 6368 /> 6369 <path 6370 d="M18.606 12.642a.781.781 0 0 0-.771.66l-1.281 8.125a.78.78 0 0 1 .77-.66
6370h3.755a7.668 7.668 0 0 0 7.57-6.49 6.26 6.26 0 0 0 .075-.843c-.96-.504-2.089-.792-3.325-.792h-6.793Z" 6371 fill="#001C64" 6372 /> 6373 <path 6374 d="M28.724 13.434c-.006.282-.03.564-.075.843a7.668 7.668 0 0 1-7.57 6.491h-3.754a.78.78 0 0 0-.771.66l-1.916 12.15a.634.634 0 0 0 .626.734h4.075a.781.781 0 0 0 .77-.66l1.074-6.807a.781.781 0 0 1 .772-.66h2.4a7.668 7.668 0 0 0 7.57-6.491c.415-2.651-.92-5.064-3.201-6.26Z" 6375 fill="#0070E0" 6376 /> 6377 <path 6378 d="M13.977 7.226a.78.78 0 0 0-.771.658l-3.198 20.277a.634.634 0 0 0 .626.733h4.742l1.178-7.467 1.281-8.125a.782.782 0 0 1 .771-.66H25.4c1.237 0 2.364.289 3.325.792.065-3.4-2.74-6.208-6.599-6.208h-8.148Z" 6379 fill="#003087" 6380 /> 6381 </g> 6382 <defs> 6383 <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath> 6384 </defs> 6385 </svg> 6386`;var rE=h` 6387 :host { 6388 display: block; 6389 width: var(--local-size); 6390 height: var(--local-size); 6391 } 6392 6393 :host svg { 6394 width: 100%; 6395 height: 100%; 6396 } 6397`,rC=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rk={browser:rs,dao:ra,defi:rl,defiAlt:rc,eth:ru,layers:rd,lock:rh,login:rf,network:rp,nft:rg,noun:rm,profile:rw,system:ry,coinbase:rb,onrampCard:Q`<svg width="60" height="60" viewB
6397ox="0 0 60 60" fill="none"> 6398<g clip-path="url(#clip0_13859_31161)"> 6399 <path d="M0 24.8995C0 15.6481 0 11.0223 1.97053 7.56763C3.3015 5.2342 5.23468 3.30101 7.56812 1.97004C11.0228 -0.000488281 15.6485 -0.000488281 24.9 -0.000488281H35.1C44.3514 -0.000488281 48.9772 -0.000488281 52.4319 1.97004C54.7653 3.30101 56.6985 5.2342 58.0295 7.56763C60 11.0223 60 15.6481 60 24.8995V35.0995C60 44.351 60 48.9767 58.0295 52.4314C56.6985 54.7648 54.7653 56.698 52.4319 58.029C48.9772 59.9995 44.3514 59.9995 35.1 59.9995H24.9C15.6485 59.9995 11.0228 59.9995 7.56812 58.029C5.23468 56.698 3.3015 54.7648 1.97053 52.4314C0 48.9767 0 44.351 0 35.0995V24.8995Z" fill="#EB8B47"/> 6400 <path d="M0.5 24.8995C0.5 20.2647 0.50047 16.8216 0.744315 14.1045C0.987552 11.3941 1.46987 9.45455 2.40484 7.81536C3.69145 5.55971 5.56019 3.69096 7.81585 2.40435C9.45504 1.46938 11.3946 0.987064 14.105 0.743826C16.8221 0.499981 20.2652 0.499512 24.9 0.499512H35.1C39.7348 0.499512 43.1779 0.499981 45.895 0.743826C48.6054 0.987064 50.545 1.46938 52.1841 2.40435C54.4398 3.69096 56.3086 5.55971 57.5952 7.81536C58.5301 9.45455 59.0124 11.3941 59.2557 14.1045C59.4995 16.8216 59.5 20.2647 59.5 24.8995V35.0995C59.5 39.7343 59.4995 43.1774 59.2557 45.8945C59.0124 48.6049 58.5301 50.5445 57.5952 52.1837C56.3086 54.4393 54.4398 56.3081 52.1841 57.5947C50.545 58.5296 48.6054 59.012 45.895 59.2552C43.1779 59.499 39.7348 59.4995 35.1 59.4995H24.9C20.2652 59.4995 16.8221 59.499 14.105 59.2552C11.3946 59.012 9.45504 58.5296 7.81585 57.5947C5.56019 56.3081 3.69145 54.4393 2.40484 52.1837C1.46987 50.5445 0.987552 48.6049 0.744315 45.8945C0.50047 43.1774 0.5 39.7343 0.5 35.0995V24.8995Z" stroke="#141414" stroke-opacity="0.1"/> 6401 <path d="M13 26.0335C13 21.7838 13 19.659 14.0822 18.1694C14.4318 17.6883 14.8548 17.2653 15.3359 16.9157C16.8255 15.8335 18.9503 15.8335 23.2 15.8335H36.8C41.0497 15.8335 43.1745 15.8335 44.6641 16.9157C45.1452 17.2653 45.5682 17.6883 45.9178 18.1694C47 19.659 47 21.7838 47 26.0335V33.9668C47 38.2165 47 40.3414 45.9178 41.831C45.5682 42.312 45.1452 42.7351 44.6641 43.0846C43.1745 44.1668 41.0497 44.1668 36.8 44.1668H23.2C18.9503 44.1668 16.8255 44.1668 15.3359 43.0846C14.8548 42.7351 14.4318 42.312 14.0822 41.831C13 40.3414 13 38.2165 13 33.9668V26.0335Z" fill="#FF974C" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6402 <path d="M39.5 36.667H36.6666" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/> 6403 <path d="M45.2 23.0645H14.8C14.0501 23.0645 13.6751 23.0645 13.4122 23.2554C13.3273 23.3171 13.2527 23.3918 13.191 23.4767C13 23.7395 13 24.1145 13 24.8645V27.2645C13 28.0144 13 28.3894 13.191 28.6522C13.2527 28.7371 13.3273 28.8118 13.4122 28.8735C13.6751 29.0645 14.0501 29.0645 14.8 29.0645H45.2C45.9499 29.0645 46.3249 29.0645 46.5878 28.8735C46.6727 28.8118 46.7473 28.7371 46.809 28.6522C47 28.3894 47 28.0144 47 27.2645V24.8645C47 24.1145 47 23.7395 46.809 23.4767C46.7473 23.3918 46.6727 23.3171 46.5878 23.2554C46.3249 23.0645 45.9499 23.0645 45.2 23.0645Z" fill="white" fill-opacity="0.4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6404</g> 6405<defs> 6406 <clipPath id="clip0_13859_31161"> 6407 <rect width="60" height="60" fill="white"/> 6408 </clipPath> 6409</defs> 6410</svg>`,moonpay:rv,stripe:r_,paypal:rx,google:Q`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 6411 <rect width="64" height="64" rx="30" fill="#1DC956"/> 6412 <rect x="0.5" y="0.5" width="63" height="63" rx="29.5" stroke="#141414" stroke-opacity="0.1"/> 6413 <path d="M32.4053 19.8031C35.3901 19.8031 38.0431 20.8349 40.1619 22.8247L45.9656 17.0211C42.4465 13.7416 37.8773 11.7333 32.4053 11.7333C24.4829 11.7333 17.6475 16.2841 14.3127 22.9168L21.056 28.1493C22.6589 23.359 27.136 19.8031 32.4053 19.8031Z" fill="#1DC956" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6414 <path d="M32.4053 52.2667C37.8773 52.2667 42.465 50.4611 45.8182 47.3658L39.2407 42.2623C37.4351 43.4783 35.1321 44.2153 32.4053 44.2153C27.136 44.2153 22.6589 40.6594 21.056 35.8691L14.3127 41.1016C17.6475 47.7159 24.4829 52.2667 32.4053 52.2667Z" fill="#2BEE6C"/> 6415 <path d="M21.056 35.8507L19.5636 36.993L14.3127 41.0832M39.2407 42.2623L45.8182 47.3658C42.465 50.4611 37.8773 52.2667 32.4053 52.2667C24.4829 52.2667 17.6475 47.7159 14.3127 41.1016L21.056 35.8691C22.6589 40.6594 27.136 44.2153 32.4053 44.2153C35.1321 44.2153 37.4351 43.4783 39.2407 42.2623Z" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6416 <path d="M51.8613 32.4606C51.8613 31.0235 51.7323 29.6417 51.4928 28.3151H32.4053V36.1638H43.3124C42.8334 38.688 41.3963 40.8252 39.2407 42.2623L45.8181 47.3658C49.6503 43.8283 51.8613 38.6327 51.8613 32.4606Z" fill="#1FAD7E" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6417 <path d="M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3
6417653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" fill="#86F999"/> 6418 <path d="M21.056 35.8691L14.3127 41.1016M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6419</svg> 6420`,pencil:Q`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 6421 <g clip-path="url(#clip0_241_31635)"> 6422 <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58317 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58317 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9268C60.4784 58.4158 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4158 2.1019 55.9268C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#EB8B47"/> 6423 <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/> 6424 <path d="M28.1042 49.2329L13.1024 51.2077L15.0772 36.2059L37.1015 14.1815C39.2441 12.039 40.3154 10.9677 41.5718 10.624C42.4205 10.3918 43.3159 10.3918 44.1645 10.624C45.421 10.9677 46.4922 12.039 48.6348 14.1815L50.1286 15.6753C52.2711 17.8179 53.3424 18.8891 53.6861 20.1456C53.9183 20.9942 53.9183 21.8896 53.6861 22.7383C53.3424 23.9947 52.2711 25.066 50.1286 27.2086L28.1042 49.2329Z" fill="#FF974C" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6425 <path d="M38.5962 20.5376L22.4199 36.7139" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6426 <path d="M43.7727 25.714L27.5964 41.8903" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6427 <path d="M22.3703 36.7635C19.3258 39.808 16.0198 36.6395 16.2616 35.0324" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6428 <path d="M27.5466 41.9399C24.5034 44.9831 28.155 48.7098 29.2738 48.0475" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6429 <path d="M27.5468 41.9398C23.428 46.0586 18.2516 40.8822 22.3704 36.7634" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6430 <path d="M15.8191 50.5214C15.4711 49.5823 14.728 48.8392 13.7889 48.4912" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> 6431 <path d="M49.2862 29.5805L34.7275 15.0219" stroke="#E4E7E7" stroke-width="2" stroke-linejoin="round"/> 6432 </g> 6433 <defs> 6434 <clipPath id="clip0_241_31635"> 6435 <rect width="64" height="64" fill="white"/> 6436 </clipPath> 6437 </defs> 6438</svg> 6439`,lightbulb:Q`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"> 6440 <g clip-path="url(#clip0_241_31636)"> 6441 <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58318 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58318 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9269C60.4784 58.4159 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4159 2.1019 55.9269C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#794CFF"/> 6442 <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199
6442C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/> 6443 <path d="M40 39.4595C44.7824 36.693 48 31.5222 48 25.6C48 16.7634 40.8366 9.59998 32 9.59998C23.1634 9.59998 16 16.7634 16 25.6C16 31.5222 19.2176 36.693 24 39.4595V45.8144H40V39.4595Z" fill="#906EF7"/> 6444 <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#906EF7"/> 6445 <path d="M24 45.8144V39.4595C19.2176 36.693 16 31.5222 16 25.6C16 16.7634 23.1634 9.59998 32 9.59998C40.8366 9.59998 48 16.7634 48 25.6C48 31.5222 44.7824 36.693 40 39.4595V45.8144M24 45.8144H40M24 45.8144V49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6446 <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#643CDD" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6447 <path d="M29.6735 26.9101V29.1109H34.0753V26.9101C34.0753 25.6945 35.0607 24.7092 36.2762 24.7092C37.4917 24.7092 38.4771 25.6945 38.4771 26.9101C38.4771 28.1256 37.4917 29.1109 36.2762 29.1109H34.0753H29.6735H27.4726C26.2571 29.1109 25.2717 28.1256 25.2717 26.9101C25.2717 25.6945 26.2571 24.7092 27.4726 24.7092C28.6881 24.7092 29.6735 25.6945 29.6735 26.9101Z" fill="#906EF7"/> 6448 <path d="M29.6735 45.3183V26.9101C29.6735 25.6945 28.6881 24.7092 27.4726 24.7092V24.7092C26.2571 24.7092 25.2717 25.6945 25.2717 26.9101V26.9101C25.2717 28.1256 26.2571 29.1109 27.4726 29.1109H36.2762C37.4917 29.1109 38.4771 28.1256 38.4771 26.9101V26.9101C38.4771 25.6945 37.4917 24.7092 36.2762 24.7092V24.7092C35.0607 24.7092 34.0753 25.6945 34.0753 26.9101V45.3183" stroke="white" stroke-width="2" stroke-linejoin="round"/> 6449 </g> 6450 <defs> 6451 <clipPath id="clip0_241_31636"> 6452 <rect width="64" height="64" fill="white"/> 6453 </clipPath> 6454 </defs> 6455</svg> 6456`},rS=class extends ew{constructor(){super(...arguments),this.name="browser",this.size="md"}render(){return this.style.cssText=` 6457 --local-size: var(--wui-visual-size-${this.size}); 6458 `,J`${rk[this.name]}`}};rS.styles=[eA,rE],rC([eB()],rS.prototype,"name",void 0),rC([eB()],rS.prototype,"size",void 0),rS=rC([eP("wui-visual")],rS);let rA=e=>e??ee,rI={getSpacingStyles:(e,t)=>Array.isArray(e)?e[t]?`var(--wui-spacing-${e[t]})`:void 0:"string"==typeof e?`var(--wui-spacing-${e})`:void 0,getFormattedDate:e=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(e),getHostName(e){try{return new URL(e).hostname}catch(e){return""}},getTruncateString:({string:e,charsStart:t,charsEnd:r,truncate:i})=>e.length<=t+r?e:"end"===i?`${e.substring(0,t)}...`:"start"===i?`...${e.substring(e.length-r)}`:`${e.substring(0,Math.floor(t))}...${e.substring(e.length-Math.floor(r))}`,generateAvatarColors(e){let t=e.toLowerCase().replace(/^0x/iu,"").substring(0,6),r=this.hexToRgb(t),i=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),n=100-3*Number(i?.replace("px","")),o=`${n}% ${n}% at 65% 40%`,s=[];for(let e=0;e<5;e+=1){let t=this.tintColor(r,.15*e);s.push(`rgb(${t[0]}, ${t[1]}, ${t[2]})`)}return` 6459 --local-color-1: ${s[0]}; 6460 --local-color-2: ${s[1]}; 6461 --local-color-3: ${s[2]}; 6462 --local-color-4: ${s[3]}; 6463 --local-color-5: ${s[4]}; 6464 --local-radial-circle: ${o} 6465 `},hexToRgb(e){let t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},tintColor(e,t){let[r,i,n]=e;return[Math.round(r+(255-r)*t),Math.round(i+(255-i)*t),Math.round(n+(255-n)*t)]},isNumber:e=>/^[0-9]+$/u.test(e),getColorTheme:e=>e||("undefined"!=typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
6465k":"light":"dark"),splitBalance(e){let t=e.split(".");return 2===t.length?[t[0],t[1]]:["0","00"]},roundNumber:(e,t,r)=>e.toString().length>=t?Number(e).toFixed(r):e,formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})};var rT=h` 6466 :host { 6467 display: flex; 6468 width: inherit; 6469 height: inherit; 6470 } 6471`,rR=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rO=class extends ew{render(){return this.style.cssText=` 6472 flex-direction: ${this.flexDirection}; 6473 flex-wrap: ${this.flexWrap}; 6474 flex-basis: ${this.flexBasis}; 6475 flex-grow: ${this.flexGrow}; 6476 flex-shrink: ${this.flexShrink}; 6477 align-items: ${this.alignItems}; 6478 justify-content: ${this.justifyContent}; 6479 column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`}; 6480 row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`}; 6481 gap: ${this.gap&&`var(--wui-spacing-${this.gap})`}; 6482 padding-top: ${this.padding&&rI.getSpacingStyles(this.padding,0)}; 6483 padding-right: ${this.padding&&rI.getSpacingStyles(this.padding,1)}; 6484 padding-bottom: ${this.padding&&rI.getSpacingStyles(this.padding,2)}; 6485 padding-left: ${this.padding&&rI.getSpacingStyles(this.padding,3)}; 6486 margin-top: ${this.margin&&rI.getSpacingStyles(this.margin,0)}; 6487 margin-right: ${this.margin&&rI.getSpacingStyles(this.margin,1)}; 6488 margin-bottom: ${this.margin&&rI.getSpacingStyles(this.margin,2)}; 6489 margin-left: ${this.margin&&rI.getSpacingStyles(this.margin,3)}; 6490 `,J`<slot></slot>`}};rO.styles=[eA,rT],rR([eB()],rO.prototype,"flexDirection",void 0),rR([eB()],rO.prototype,"flexWrap",void 0),rR([eB()],rO.prototype,"flexBasis",void 0),rR([eB()],rO.prototype,"flexGrow",void 0),rR([eB()],rO.prototype,"flexShrink",void 0),rR([eB()],rO.prototype,"alignItems",void 0),rR([eB()],rO.prototype,"justifyContent",void 0),rR([eB()],rO.prototype,"columnGap",void 0),rR([eB()],rO.prototype,"rowGap",void 0),rR([eB()],rO.prototype,"gap",void 0),rR([eB()],rO.prototype,"padding",void 0),rR([eB()],rO.prototype,"margin",void 0),rO=rR([eP("wui-flex")],rO);var rP=h` 6491 :host { 6492 display: block; 6493 width: var(--wui-icon-box-size-xl); 6494 height: var(--wui-icon-box-size-xl); 6495 border-radius: var(--wui-border-radius-3xl); 6496 box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); 6497 overflow: hidden; 6498 position: relative; 6499 } 6500 6501 :host([data-variant='generated']) { 6502 --mixed-local-color-1: var(--local-color-1); 6503 --mixed-local-color-2: var(--local-color-2); 6504 --mixed-local-color-3: var(--local-color-3); 6505 --mixed-local-color-4: var(--local-color-4); 6506 --mixed-local-color-5: var(--local-color-5); 6507 } 6508 6509 @supports (background: color-mix(in srgb, white 50%, black)) { 6510 :host([data-variant='generated']) { 6511 --mixed-local-color-1: color-mix( 6512 in srgb, 6513 var(--w3m-color-mix) var(--w3m-color-mix-strength), 6514 var(--local-color-1) 6515 ); 6516 --mixed-local-color-2: color-mix( 6517 in srgb, 6518 var(--w3m-color-mix) var(--w3m-color-mix-strength), 6519 var(--local-color-2) 6520 ); 6521 --mixed-local-color-3: color-mix( 6522 in srgb, 6523 var(--w3m-color-mix) var(--w3m-color-mix-strength), 6524 var(--local-color-3) 6525 ); 6526 --mixed-local-color-4: color-mix( 6527 in srgb, 6528 var(--w3m-color-mix) var(--w3m-color-mix-strength), 6529 var(--local-color-4) 6530 ); 6531 --mixed-local-color-5: color-mix( 6532 in srgb, 6533 var(--w3m-color-mix) var(--w3m-color-mix-strength), 6534 var(--local-color-5) 6535 ); 6536 } 6537 } 6538 6539 :host([data-variant='generated']) { 6540 box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); 6541 background: radial-gradient( 6542 var(--local-radial-circle), 6543 #fff 0.52%, 6544 var(--mixed-local-color-5) 31.25%, 6545 var(--mixed-local-color-3) 51.56%, 6546 var(--mixed-local-color-2) 65.63%, 6547 var(--mixed-local-color-1) 82.29%, 6548 var(--mixed-local-color-4) 100% 6549 ); 6550 } 6551 6552 :host([data-variant='default']) { 6553 box-shadow: 0 0 0 8px var(--wui-color-gray-glass-005); 6554 background: radial-gradient( 6555 75.29% 75.29% at 64.96% 24.36%, 6556 #fff 0.52%, 6557 #f5ccfc 31.25%, 6558 #dba4f5 51.56%, 6559 #9a8ee8 65.63%, 6560 #6493da 82.29%, 6561 #6ebdea 100% 6562 ); 6563 } 6564`,rN=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
6564);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rM=class extends ew{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0}render(){return J`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",J`<wui-image src=${this.imageSrc} alt=${this.alt??"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";let e=rI.generateAvatarColors(this.address);return this.style.cssText=e,null}return this.dataset.variant="default",null}};rM.styles=[eA,rP],rN([eB()],rM.prototype,"imageSrc",void 0),rN([eB()],rM.prototype,"alt",void 0),rN([eB()],rM.prototype,"address",void 0),rM=rN([eP("wui-avatar")],rM);var rD=h` 6565 :host { 6566 display: inline-flex; 6567 justify-content: center; 6568 align-items: center; 6569 position: relative; 6570 overflow: hidden; 6571 background-color: var(--wui-color-gray-glass-020); 6572 border-radius: var(--local-border-radius); 6573 border: var(--local-border); 6574 box-sizing: content-box; 6575 width: var(--local-size); 6576 height: var(--local-size); 6577 min-height: var(--local-size); 6578 min-width: var(--local-size); 6579 } 6580 6581 @supports (background: color-mix(in srgb, white 50%, black)) { 6582 :host { 6583 background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent); 6584 } 6585 } 6586`,rL=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rj=class extends ew{constructor(){super(...arguments),this.size="md",this.backgroundColor="accent-100",this.iconColor="accent-100",this.background="transparent",this.border=!1,this.borderColor="wui-color-bg-125",this.icon="copy"}render(){let e=this.iconSize||this.size,t="lg"===this.size,r="xl"===this.size,i=t?"12%":"16%",n=t?"xxs":r?"s":"3xl",o="gray"===this.background,s="opaque"===this.background,a="accent-100"===this.backgroundColor&&s||"success-100"===this.backgroundColor&&s||"error-100"===this.backgroundColor&&s||"inverse-100"===this.backgroundColor&&s,l=`var(--wui-color-${this.backgroundColor})`;return a?l=`var(--wui-icon-box-bg-${this.backgroundColor})`:o&&(l=`var(--wui-gray-${this.backgroundColor})`),this.style.cssText=` 6587 --local-bg-value: ${l}; 6588 --local-bg-mix: ${a||o?"100%":i}; 6589 --local-border-radius: var(--wui-border-radius-${n}); 6590 --local-size: var(--wui-icon-box-size-${this.size}); 6591 --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"} 6592 `,J` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};rj.styles=[eA,eI,rD],rL([eB()],rj.prototype,"size",void 0),rL([eB()],rj.prototype,"backgroundColor",void 0),rL([eB()],rj.prototype,"iconColor",void 0),rL([eB()],rj.prototype,"iconSize",void 0),rL([eB()],rj.prototype,"background",void 0),rL([eB({type:Boolean})],rj.prototype,"border",void 0),rL([eB()],rj.prototype,"borderColor",void 0),rL([eB()],rj.prototype,"icon",void 0),rj=rL([eP("wui-icon-box")],rj);var rB=h` 6593 :host { 6594 display: block; 6595 } 6596 6597 button { 6598 border-radius: var(--wui-border-radius-3xl); 6599 background: var(--wui-color-gray-glass-002); 6600 display: flex; 6601 gap: var(--wui-spacing-xs); 6602 padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) var(--wui-spacing-3xs) 6603 var(--wui-spacing-xs); 6604 border: 1px solid var(--wui-color-gray-glass-005); 6605 } 6606 6607 button:disabled { 6608 background: var(--wui-color-gray-glass-015); 6609 } 6610 6611 button:disabled > wui-text { 6612 color: var(--wui-color-gray-glass-015); 6613 } 6614 6615 button:disabled > wui-flex > wui-text { 6616 color: var(--wui-color-gray-glass-015); 6617 } 6618 6619 button:disabled > wui-image, 6620 button:disabled > wui-icon-box, 6621 button:disabled > wui-flex > wui-avatar { 6622 filter: grayscale(1); 6623 } 6624 6625 button:has(wui-image) { 6626 padding: var(--wui-spacing-3xs) var(--wui-spacing-3xs) var(--wui-spacing-3xs) 6627 var(--wui-spacing-xs); 6628 } 6629 6630 wui-text { 6631 color: var(--wui-color-fg-100); 6632 } 6633 6634 wui-flex > wui-text { 6635 color: var(--wui-color-fg-200); 6636 } 6637 6638 wui-image, 6639 wui-icon-box { 6640 border-radius: var(--wui-border-radius-3xl); 6641 width: 24px; 6642 height: 24px; 6643 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 6644 } 6645 6646 wui-flex { 6647 border-radius: var(--wui-border-radius-3xl); 6648 border: 1px solid var(--wui-color-gray-glass-005); 6649 background: var(--wui-color-gray-glass-005); 6650 padding: 4px var(--wui-spacing-m) 4px var(--wui-spacing-xxs); 6651 } 6652 6653 button.local-no-balance { 6654 border-radius: 0px; 6655 border: none; 6656 background: transparent; 6657 } 6658 6659 wui-avatar {
6660 width: 20px; 6661 height: 20px; 6662 box-shadow: 0 0 0 2px var(--wui-color-accent-glass-010); 6663 } 6664 6665 @media (max-width: 500px) { 6666 button { 6667 gap: 0px; 6668 padding: var(--wui-spacing-3xs) var(--wui-spacing-xs) !important; 6669 height: 32px; 6670 } 6671 wui-image, 6672 wui-icon-box, 6673 button > wui-text { 6674 visibility: hidden; 6675 width: 0px; 6676 height: 0px; 6677 } 6678 button { 6679 border-radius: 0px; 6680 border: none; 6681 background: transparent; 6682 padding: 0px; 6683 } 6684 } 6685 6686 @media (hover: hover) and (pointer: fine) { 6687 button:hover:enabled > wui-flex > wui-text { 6688 color: var(--wui-color-fg-175); 6689 } 6690 6691 button:active:enabled > wui-flex > wui-text { 6692 color: var(--wui-color-fg-175); 6693 } 6694 } 6695`,r$=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rU=class extends ew{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.isUnsupportedChain=void 0,this.disabled=!1,this.address="",this.profileName="",this.charsStart=4,this.charsEnd=6}render(){return J` 6696 <button 6697 ?disabled=${this.disabled} 6698 class=${rA(this.balance?void 0:"local-no-balance")} 6699 > 6700 ${this.balanceTemplate()} 6701 <wui-flex gap="xxs" alignItems="center"> 6702 <wui-avatar 6703 .imageSrc=${this.avatarSrc} 6704 alt=${this.address} 6705 address=${this.address} 6706 ></wui-avatar> 6707 <wui-text variant="paragraph-600" color="inherit"> 6708 ${this.address?rI.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"}):null} 6709 </wui-text> 6710 </wui-flex> 6711 </button> 6712 `}balanceTemplate(){if(this.isUnsupportedChain)return J` <wui-icon-box 6713 size="sm" 6714 iconColor="error-100" 6715 backgroundColor="error-100" 6716 icon="warningCircle" 6717 ></wui-icon-box> 6718 <wui-text variant="paragraph-600" color="inherit"> Switch Network</wui-text>`;if(this.balance){let e=this.networkSrc?J`<wui-image src=${this.networkSrc}></wui-image>`:J` 6719 <wui-icon-box 6720 size="sm" 6721 iconColor="fg-200" 6722 backgroundColor="fg-300" 6723 icon="networkPlaceholder" 6724 ></wui-icon-box> 6725 `;return J` 6726 ${e} 6727 <wui-text variant="paragraph-600" color="inherit"> ${this.balance}</wui-text> 6728 `}return null}};rU.styles=[eA,eI,rB],r$([eB()],rU.prototype,"networkSrc",void 0),r$([eB()],rU.prototype,"avatarSrc",void 0),r$([eB()],rU.prototype,"balance",void 0),r$([eB({type:Boolean})],rU.prototype,"isUnsupportedChain",void 0),r$([eB({type:Boolean})],rU.prototype,"disabled",void 0),r$([eB()],rU.prototype,"address",void 0),r$([eB()],rU.prototype,"profileName",void 0),r$([eB()],rU.prototype,"charsStart",void 0),r$([eB()],rU.prototype,"charsEnd",void 0),rU=r$([eP("wui-account-button")],rU);var rF=h` 6729 :host { 6730 position: relative; 6731 background-color: var(--wui-color-gray-glass-002); 6732 display: flex; 6733 justify-content: center; 6734 align-items: center; 6735 width: var(--local-size); 6736 height: var(--local-size); 6737 border-radius: inherit; 6738 border-radius: var(--local-border-radius); 6739 } 6740 6741 :host > wui-flex { 6742 overflow: hidden; 6743 border-radius: inherit; 6744 border-radius: var(--local-border-radius); 6745 } 6746 6747 :host::after { 6748 content: ''; 6749 position: absolute; 6750 top: 0; 6751 bottom: 0; 6752 left: 0; 6753 right: 0; 6754 border-radius: inherit; 6755 border: 1px solid var(--wui-color-gray-glass-010); 6756 pointer-events: none; 6757 } 6758 6759 :host([name='Extension'])::after { 6760 border: 1px solid var(--wui-color-accent-glass-010); 6761 } 6762 6763 :host([data-wallet-icon='allWallets']) { 6764 background-color: var(--wui-all-wallets-bg-100); 6765 } 6766 6767 :host([data-wallet-icon='allWallets'])::after { 6768 border: 1px solid var(--wui-color-accent-glass-010); 6769 } 6770 6771 wui-icon[data-parent-size='inherit'] { 6772 width: 75%; 6773 height: 75%; 6774 align-items: center; 6775 } 6776 6777 wui-icon[data-parent-size='sm'] { 6778 width: 18px; 6779 height: 18px; 6780 } 6781 6782 wui-icon[data-parent-size='md'] { 6783 width: 24px; 6784 height: 24px; 6785 } 6786 6787 wui-icon[data-parent-size='lg'] { 6788 width: 42px; 6789 height: 42px; 6790 } 6791 6792 wui-icon[data-parent-size='full'] { 6793 width: 100%; 6794 height: 100%; 6795 } 6796 6797 :host > wui-icon-box { 6798 position: absolute; 6799 overflow: hidden; 6800 right: -1px; 6801 bottom: -2px; 6802 z-index: 1; 6803 border: 2px solid var(--wui-color-bg-150, #1e1f1f); 6804 padding: 1px; 6805 } 6806`,rz=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
6806);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rq=class extends ew{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let e="xxs";return e="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=` 6807 --local-border-radius: var(--wui-border-radius-${e}); 6808 --local-size: var(--wui-wallet-image-size-${this.size}); 6809 `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),J` 6810 <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex> 6811 `}templateVisual(){return this.imageSrc?J`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?J`<wui-icon 6812 data-parent-size="md" 6813 size="md" 6814 color="inherit" 6815 name=${this.walletIcon} 6816 ></wui-icon>`:J`<wui-icon 6817 data-parent-size=${this.size} 6818 size="inherit" 6819 color="inherit" 6820 name="walletPlaceholder" 6821 ></wui-icon>`}};rq.styles=[eA,rF],rz([eB()],rq.prototype,"size",void 0),rz([eB()],rq.prototype,"name",void 0),rz([eB()],rq.prototype,"imageSrc",void 0),rz([eB()],rq.prototype,"walletIcon",void 0),rz([eB({type:Boolean})],rq.prototype,"installed",void 0),rz([eB()],rq.prototype,"badgeSize",void 0),rq=rz([eP("wui-wallet-image")],rq);var rW=h` 6822 :host { 6823 position: relative; 6824 border-radius: var(--wui-border-radius-xxs); 6825 width: 40px; 6826 height: 40px; 6827 overflow: hidden; 6828 background: var(--wui-color-gray-glass-002); 6829 display: flex; 6830 justify-content: center; 6831 align-items: center; 6832 flex-wrap: wrap; 6833 gap: var(--wui-spacing-4xs); 6834 padding: 3.75px !important; 6835 } 6836 6837 :host::after { 6838 content: ''; 6839 position: absolute; 6840 top: 0; 6841 bottom: 0; 6842 left: 0; 6843 right: 0; 6844 border-radius: inherit; 6845 border: 1px solid var(--wui-color-gray-glass-010); 6846 pointer-events: none; 6847 } 6848 6849 :host > wui-wallet-image { 6850 width: 14px; 6851 height: 14px; 6852 border-radius: var(--wui-border-radius-5xs); 6853 } 6854 6855 :host > wui-flex { 6856 padding: 2px; 6857 position: fixed; 6858 overflow: hidden; 6859 left: 34px; 6860 bottom: 8px; 6861 background: var(--dark-background-150, #1e1f1f); 6862 border-radius: 50%; 6863 z-index: 2; 6864 display: flex; 6865 } 6866`,rH=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rV=4,rZ=class extends ew{constructor(){super(...arguments),this.walletImages=[]}render(){let e=this.walletImages.length<rV;return J`${this.walletImages.slice(0,rV).map(({src:e,walletName:t})=>J` 6867 <wui-wallet-image 6868 size="inherit" 6869 imageSrc=${e} 6870 name=${rA(t)} 6871 ></wui-wallet-image> 6872 `)} 6873 ${e?[...Array(rV-this.walletImages.length)].map(()=>J` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null} 6874 <wui-flex> 6875 <wui-icon-box 6876 size="xxs" 6877 iconSize="xxs" 6878 iconcolor="success-100" 6879 backgroundcolor="success-100" 6880 icon="checkmark" 6881 background="opaque" 6882 ></wui-icon-box> 6883 </wui-flex>`}};rZ.styles=[eA,rW],rH([eB({type:Array})],rZ.prototype,"walletImages",void 0),rZ=rH([eP("wui-all-wallets-image")],rZ);var rK=h` 6884 :host { 6885 width: var(--local-width); 6886 position: relative; 6887 } 6888 6889 button { 6890 border: none; 6891 border-radius: var(--local-border-radius); 6892 width: var(--local-width); 6893 white-space: nowrap; 6894 } 6895 6896 /* -- Sizes --------------------------------------------------- */ 6897 button[data-size='md'] { 6898 padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l); 6899 height: 36px; 6900 } 6901 6902 button[data-size='md'][data-icon-left='true'][data-icon-right='false'] { 6903 padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s); 6904 } 6905 6906 button[data-size='md'][data-icon-right='true'][data-icon-left='false'] { 6907 padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l); 6908 } 6909 6910 button[data-size='lg'] { 6911 padding: var(--wui-spacing-m) var(--wui-spacing-2l); 6912 height: 48px; 6913 } 6914 6915 /* -- Variants --------------------------------------------------------- */ 6916 button[data-variant='main'] { 6917 background-color: var(--wui-color-accent-100); 6918 color: var(--wui-color-inverse-100); 6919 border: none; 6920 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 6921 } 6922 6923 button[data-variant='inverse'] { 6924 background-color: var(--wui-color-inverse-100); 6925 color: var(--wui-color-inverse-000); 6926 border: none; 6927 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 6928 } 6929 6930 button[data-variant='accent'] { 6931 background-color: var(--wui-color-accent-glass-010); 6932 color: var(--wui-color-accent-100); 6933 border: none; 6934 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 6935 } 6936 6937 button[data-variant='accent-error'] { 6938 background: var(--wui-color-error-glass-015); 6939 color: var(--wui-color-error-100); 6940 border: none; 6941 box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010); 6942 } 6943 6944 button[data-variant='accent-success'] { 6945 background: var(--wui-color-success-glass-015); 6946 color: var(--wui-color-success-100); 6947 border: none; 6948 box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010); 6949 } 6950 6951 button[data-variant='neutral'] { 6952 background: transparent; 6953 color: var(--wui-color-fg-100); 6954 border: none; 6955 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 6956 } 6957 6958 /* -- Focus states --------------------------------------------------- */ 6959 button[data-variant='main']:focus-visible:enabled { 6960 background-color: var(--wui-color-accent-090); 6961 box-shadow: 6962 inset 0 0 0 1px var(--wui-color-accent-100), 6963 0 0 0 4px var(--wui-color-accent-glass-020); 6964 } 6965 button[data-variant='inverse']:focus-visible:enabled { 6966 background-color: var(--wui-color-inverse-100); 6967 box-shadow: 6968 inset 0 0 0 1px var(--wui-color-gray-glass-010), 6969 0 0 0 4px var(--wui-color-accent-glass-020); 6970 } 6971 button[data-variant='accent']:focus-visible:enabled { 6972 background-color: var(--wui-color-accent-glass-010); 6973 box-shadow: 6974 inset 0 0 0 1px var(--wui-color-accent-100), 6975 0 0 0 4px var(--wui-color-accent-glass-020); 6976 } 6977 button[data-variant='accent-error']:focus-visible:enabled { 6978 background: var(--wui-color-error-glass-015); 6979 box-shadow: 6980 inset 0 0 0 1px var(--wui-color-error-100), 6981 0 0 0 4px var(--wui-color-error-glass-020); 6982 } 6983 button[data-variant='accent-success']:focus-visible:enabled { 6984 background: var(--wui-color-success-glass-015); 6985 box-shadow: 6986 inset 0 0 0 1px var(--wui-color-success-100), 6987 0 0 0 4px var(--wui-color-success-glass-020); 6988 } 6989 button[data-variant='neutral']:focus-visible:enabled { 6990 background: var(--wui-color-gray-glass-005); 6991 box-shadow: 6992 inset 0 0 0 1px var(--wui-color-gray-glass-010), 6993 0 0 0 4px var(--wui-color-gray-glass-002); 6994 } 6995 6996 /* -- Hover & Active states ----------------------------------------------------------- */ 6997 button[data-variant='main']:hover:enabled { 6998 background-color: var(--wui-color-accent-090); 6999 } 7000 7001 button[data-variant='main']:active:enabled { 7002 background-color: var(--wui-color-accent-080); 7003 } 7004 7005 button[data-variant='inverse']:hover:enabled { 7006 background-color: var(--wui-color-inverse-100); 7007 } 7008 7009 button[data-variant='accent']:hover:enabled { 7010 background-color: var(--wui-color-accent-glass-010); 7011 } 7012 7013 button[data-variant='accent-error']:hover:enabled { 7014 background: var(--wui-color-error-glass-015); 7015 color: var(--wui-color-error-100); 7016 } 7017 7018 button[data-variant='accent-success']:hover:enabled { 7019 background: var(--wui-color-success-glass-015); 7020 color: var(--wui-color-success-100); 7021 } 7022 7023 button[data-variant='neutral']:hover:enabled { 7024 background: var(--wui-color-gray-glass-005); 7025 } 7026 7027 button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] { 7028 padding-left: var(--wui-spacing-m); 7029 } 7030 7031 button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] { 7032 padding-right: var(--wui-spacing-m); 7033 } 7034 7035 /* -- Disabled state --------------------------------------------------- */ 7036 button:disabled { 7037 background-color: var(--wui-color-gray-glass-002); 7038 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 7039 color: var(--wui-color-gray-glass-020);
7040 cursor: not-allowed; 7041 } 7042 7043 button > wui-text { 7044 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 7045 will-change: opacity; 7046 opacity: var(--local-opacity-100); 7047 } 7048 7049 ::slotted(*) { 7050 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 7051 will-change: opacity; 7052 opacity: var(--local-opacity-100); 7053 } 7054 7055 wui-loading-spinner { 7056 position: absolute; 7057 left: 50%; 7058 top: 50%; 7059 transform: translate(-50%, -50%); 7060 opacity: var(--local-opacity-000); 7061 } 7062`,rG=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let rY={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},rJ={lg:"paragraph-600",md:"small-600"},rQ={lg:"md",md:"md"},rX=class extends ew{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=` 7063 --local-width: ${this.fullWidth?"100%":"auto"}; 7064 --local-opacity-100: ${this.loading?0:1}; 7065 --local-opacity-000: ${this.loading?1:0}; 7066 --local-border-radius: var(--wui-border-radius-${this.borderRadius}); 7067 `;let e=this.textVariant??rJ[this.size];return J` 7068 <button 7069 data-variant=${this.variant} 7070 data-icon-left=${this.hasIconLeft} 7071 data-icon-right=${this.hasIconRight} 7072 data-size=${this.size} 7073 ?disabled=${this.disabled} 7074 ontouchstart 7075 > 7076 ${this.loadingTemplate()} 7077 <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot> 7078 <wui-text variant=${e} color="inherit"> 7079 <slot></slot> 7080 </wui-text> 7081 <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot> 7082 </button> 7083 `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){let e=rQ[this.size],t=this.disabled?rY.disabled:rY[this.variant];return J`<wui-loading-spinner color=${t} size=${e}></wui-loading-spinner>`}return J``}};rX.styles=[eA,eI,rK],rG([eB()],rX.prototype,"size",void 0),rG([eB({type:Boolean})],rX.prototype,"disabled",void 0),rG([eB({type:Boolean})],rX.prototype,"fullWidth",void 0),rG([eB({type:Boolean})],rX.prototype,"loading",void 0),rG([eB()],rX.prototype,"variant",void 0),rG([eB({type:Boolean})],rX.prototype,"hasIconLeft",void 0),rG([eB({type:Boolean})],rX.prototype,"hasIconRight",void 0),rG([eB()],rX.prototype,"borderRadius",void 0),rG([eB()],rX.prototype,"textVariant",void 0),rX=rG([eP("wui-button")],rX);let r0=Q`<svg viewBox="0 0 48 54" fill="none"> 7084 <path 7085 d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z" 7086 /> 7087</svg>`;var r1=h` 7088 :host { 7089 display: flex; 7090 flex-direction: column; 7091 align-items: center; 7092 width: 76px; 7093 row-gap: var(--wui-spacing-xs); 7094 padding: var(--wui-spacing-xs) 10px; 7095 background-color: var(--wui-color-gray-glass-002); 7096 border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); 7097 position: relative; 7098 } 7099 7100 wui-shimmer[data-type='network'] { 7101 border: none; 7102 -webkit-clip-path: var(--wui-path-network); 7103 clip-path: var(--wui-path-network); 7104 } 7105 7106 svg { 7107 position: absolute; 7108 width: 48px; 7109 height: 54px; 7110 z-index: 1; 7111 } 7112 7113 svg > path { 7114 stroke: var(--wui-color-gray-glass-010); 7115 stroke-width: 1px; 7116 } 7117`,r2=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
7117);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let r3=class extends ew{constructor(){super(...arguments),this.type="wallet"}render(){return J` 7118 ${this.shimmerTemplate()} 7119 <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer> 7120 `}shimmerTemplate(){return"network"===this.type?J` <wui-shimmer 7121 data-type=${this.type} 7122 width="48px" 7123 height="54px" 7124 borderRadius="xs" 7125 ></wui-shimmer> 7126 ${r0}`:J`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};r3.styles=[eA,eI,r1],r2([eB()],r3.prototype,"type",void 0),r3=r2([eP("wui-card-select-loader")],r3);let r5=Q` 7127 <svg fill="none" viewBox="0 0 36 40"> 7128 <path 7129 d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z" 7130 /> 7131 </svg> 7132`,r4=Q`<svg width="86" height="96" fill="none"> 7133 <path 7134 d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z" 7135 /> 7136</svg>`;var r6=h` 7137 :host { 7138 position: relative; 7139 border-radius: inherit; 7140 display: flex; 7141 justify-content: center; 7142 align-items: center; 7143 width: var(--local-width); 7144 height: var(--local-height); 7145 } 7146 7147 svg { 7148 position: absolute; 7149 top: 0; 7150 left: 0; 7151 width: 100%; 7152 height: 100%; 7153 z-index: 1; 7154 fill: var(--wui-color-gray-glass-002); 7155 } 7156 7157 svg > path { 7158 stroke: var(--local-stroke); 7159 } 7160 7161 wui-image { 7162 width: 100%; 7163 height: 100%; 7164 -webkit-clip-path: var(--local-path); 7165 clip-path: var(--local-path); 7166 background: var(--wui-color-gray-glass-002); 7167 } 7168 7169 wui-icon { 7170 transform: translateY(-5%); 7171 width: var(--local-icon-size); 7172 height: var(--local-icon-size); 7173 } 7174`,r8=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let r7=class extends ew{constructor(){super(...arguments),this.size="md",this.name="uknown",this.selected=!1}render(){let e={sm:r5,md:r0,lg:r4};return this.style.cssText=` 7175 --local-stroke: ${this.selected?"var(--wui-color-accent-100)":"var(--wui-color-gray-glass-010)"}; 7176 --local-path: var(--wui-path-network-${this.size}); 7177 --local-width: var(--wui-width-network-${this.size}); 7178 --local-height: var(--wui-height-network-${this.size}); 7179 --local-icon-size: var(--wui-icon-size-network-${this.size}); 7180 `,J`${this.templateVisual()} ${e[this.size]}`}templateVisual(){return this.imageSrc?J`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:J`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};r7.styles=[eA,r6],r8([eB()],r7.prototype,"size",void 0),r8([eB()],r7.prototype,"name",void 0),r8([eB()],r7.prototype,"imageSrc",void 0),r8([eB({type:Boolean})],r7.prototype,"selected",void 0),r7=r8([eP("wui-network-image")],r7);var r9=h` 7181 button { 7182 flex-direction: column; 7183 width: 76px; 7184 row-gap: var(--wui-spacing-xs); 7185 padding: var(--wui-spacing-xs) var(--wui-spacing-0); 7186 background-color: var(--wui-color-gray-glass-002); 7187 border-radius: clamp(0px, var(--wui-border-radius-xs), 20px); 7188 } 7189 7190 button > wui-text { 7191 color: var(--wui-color-fg-100); 7192 max-width: var(--wui-icon-box-size-xl); 7193 white-space: nowrap; 7194 overflow: hidden; 7195 text-overflow: ellipsis; 7196 justify-content: center; 7197 } 7198 7199 button:hover:enabled { 7200 background-color: var(--wui-color-gray-glass-005); 7201 } 7202 7203 button:disabled > wui-text { 7204 color: var(--wui-color-gray-glass-015); 7205 } 7206 7207 [data-selected='true'] { 7208 background-color: var(--wui-color-accent-glass-020); 7209 } 7210 7211 @media (hover: hover) and (pointer: fine) { 7212 [data-selected='true']:hover:enabled { 7213 background-color: var(--wui-color-accent-glass-015); 7214 } 7215 } 7216 7217 [data-selected='true']:active:enabled { 7218 background-color: var(--wui-color-accent-glass-010); 7219 } 7220`,ie=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
7220);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let it=class extends ew{constructor(){super(...arguments),this.name="Unknown",this.type="wallet",this.imageSrc=void 0,this.disabled=!1,this.selected=!1,this.installed=!1}render(){return J` 7221 <button data-selected=${rA(this.selected)} ?disabled=${this.disabled} ontouchstart> 7222 ${this.imageTemplate()} 7223 <wui-text variant="tiny-500" color=${this.selected?"accent-100":"inherit"}> 7224 ${this.name} 7225 </wui-text> 7226 </button> 7227 `}imageTemplate(){return"network"===this.type?J` 7228 <wui-network-image 7229 .selected=${this.selected} 7230 imageSrc=${rA(this.imageSrc)} 7231 name=${this.name} 7232 > 7233 </wui-network-image> 7234 `:J` 7235 <wui-wallet-image 7236 size="md" 7237 imageSrc=${rA(this.imageSrc)} 7238 name=${this.name} 7239 .installed=${this.installed} 7240 badgeSize="sm" 7241 > 7242 </wui-wallet-image> 7243 `}};it.styles=[eA,eI,r9],ie([eB()],it.prototype,"name",void 0),ie([eB()],it.prototype,"type",void 0),ie([eB()],it.prototype,"imageSrc",void 0),ie([eB({type:Boolean})],it.prototype,"disabled",void 0),ie([eB({type:Boolean})],it.prototype,"selected",void 0),ie([eB({type:Boolean})],it.prototype,"installed",void 0),it=ie([eP("wui-card-select")],it);var ir=h` 7244 a { 7245 border: 1px solid var(--wui-color-gray-glass-010); 7246 border-radius: var(--wui-border-radius-3xl); 7247 } 7248 7249 wui-image { 7250 border-radius: var(--wui-border-radius-3xl); 7251 overflow: hidden; 7252 } 7253 7254 a.disabled > wui-icon, 7255 a.disabled > wui-image { 7256 filter: grayscale(1); 7257 } 7258 7259 a[data-variant='fill'] { 7260 color: var(--wui-color-inverse-100); 7261 background-color: var(--wui-color-accent-100); 7262 } 7263 7264 a[data-variant='shade'], 7265 a[data-variant='shadeSmall'] { 7266 background-color: transparent; 7267 background-color: var(--wui-color-gray-glass-010); 7268 color: var(--wui-color-fg-200); 7269 } 7270 7271 a[data-variant='success'] { 7272 column-gap: var(--wui-spacing-xxs); 7273 border: 1px solid var(--wui-color-success-glass-010); 7274 background-color: var(--wui-color-success-glass-010); 7275 color: var(--wui-color-success-100); 7276 } 7277 7278 a[data-variant='error'] { 7279 column-gap: var(--wui-spacing-xxs); 7280 border: 1px solid var(--wui-color-error-glass-010); 7281 background-color: var(--wui-color-error-glass-010); 7282 color: var(--wui-color-error-100); 7283 } 7284 7285 a[data-variant='transparent'] { 7286 column-gap: var(--wui-spacing-xxs); 7287 background-color: transparent; 7288 color: var(--wui-color-fg-150); 7289 } 7290 7291 a[data-variant='transparent'], 7292 a[data-variant='success'], 7293 a[data-variant='shadeSmall'], 7294 a[data-variant='error'] { 7295 padding: 7px var(--wui-spacing-s) 7px 10px; 7296 } 7297 7298 a[data-variant='transparent']:has(wui-text:first-child), 7299 a[data-variant='success']:has(wui-text:first-child), 7300 a[data-variant='shadeSmall']:has(wui-text:first-child), 7301 a[data-variant='error']:has(wui-text:first-child) { 7302 padding: 7px var(--wui-spacing-s); 7303 } 7304 7305 a[data-variant='fill'], 7306 a[data-variant='shade'] { 7307 column-gap: var(--wui-spacing-xs); 7308 padding: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-xxs) 7309 var(--wui-spacing-xs); 7310 } 7311 7312 a[data-variant='fill']:has(wui-text:first-child), 7313 a[data-variant='shade']:has(wui-text:first-child) { 7314 padding: 9px var(--wui-spacing-m) 9px var(--wui-spacing-m); 7315 } 7316 7317 a[data-variant='fill'] > wui-image, 7318 a[data-variant='shade'] > wui-image { 7319 width: 24px; 7320 height: 24px; 7321 } 7322 7323 a[data-variant='fill'] > wui-image { 7324 box-shadow: inset 0 0 0 1px var(--wui-color-accent-090); 7325 } 7326 7327 a[data-variant='shade'] > wui-image, 7328 a[data-variant='shadeSmall'] > wui-image { 7329 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 7330 } 7331 7332 a[data-variant='fill'] > wui-icon, 7333 a[data-variant='shade'] > wui-icon { 7334 width: 14px; 7335 height: 14px; 7336 } 7337 7338 a[data-variant='transparent'] > wui-image, 7339 a[data-variant='success'] > wui-image, 7340 a[data-variant='shadeSmall'] > wui-image, 7341 a[data-variant='error'] > wui-image { 7342 width: 14px; 7343 height: 14px; 7344 } 7345 7346 a[data-variant='transparent'] > wui-icon, 7347 a[data-variant='success'] > wui-icon, 7348 a[data-variant='shadeSmall'] > wui-icon, 7349 a[data-variant='error'] > wui-icon { 7350 width: 12px; 7351 height: 12px; 7352 } 7353 7354 a[data-variant='fill']:focus-visible { 7355 background-color: var(--wui-color-accent-090); 7356 } 7357 7358 a[data-variant='shade']:focus-visible, 7359 a[data-variant='shadeSmall']:focus-visible { 7360 background-color: var(--wui-color-gray-glass-015); 7361 } 7362 7363 a[data-variant='transparent']:focus-visible { 7364 background-color: var(--wui-color-gray-glass-005); 7365 } 7366 7367 a[data-variant='success']:focus-visible { 7368 background-color: var(--wui-color-success-glass-015); 7369 } 7370 7371 a[data-variant='error']:focus-visible { 7372 background-color: var(--wui-color-error-glass-015); 7373 } 7374 7375 a.disabled { 7376 color: var(--wui-color-gray-glass-015); 7377 background-color: var(--wui-color-gray-glass-015); 7378 pointer-events: none; 7379 } 7380 7381 @media (hover: hover) and (pointer: fine) { 7382 a[data-variant='fill']:hover { 7383 background-color: var(--wui-color-accent-090); 7384 } 7385 7386 a[data-variant='shade']:hover, 7387 a[data-variant='shadeSmall']:hover { 7388 background-color: var(--wui-color-gray-glass-015); 7389 } 7390 7391 a[data-variant='transparent']:hover { 7392 background-color: var(--wui-color-gray-glass-005); 7393 } 7394 7395 a[data-variant='success']:hover { 7396 background-color: var(--wui-color-success-glass-015); 7397 } 7398 7399 a[data-variant='error']:hover { 7400 background-color: var(--wui-color-error-glass-015); 7401 } 7402 } 7403 7404 a[data-variant='fill']:active { 7405 background-color: var(--wui-color-accent-080); 7406 } 7407 7408 a[data-variant='shade']:active, 7409 a[data-variant='shadeSmall']:active { 7410 background-color: var(--wui-color-gray-glass-020); 7411 } 7412 7413 a[data-variant='transparent']:active { 7414 background-color: var(--wui-color-gray-glass-010); 7415 } 7416 7417 a[data-variant='success']:active { 7418 background-color: var(--wui-color-success-glass-020); 7419 } 7420 7421 a[data-variant='error']:active { 7422 background-color: var(--wui-color-error-glass-020); 7423 } 7424`,ii=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
7424);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let io=class extends ew{constructor(){super(...arguments),this.variant="fill",this.imageSrc=void 0,this.disabled=!1,this.icon="externalLink",this.href="",this.text=void 0}render(){let e="success"===this.variant||"transparent"===this.variant||"shadeSmall"===this.variant?"small-600":"paragraph-600";return J` 7425 <a 7426 rel="noreferrer" 7427 target="_blank" 7428 href=${this.href} 7429 class=${this.disabled?"disabled":""} 7430 data-variant=${this.variant} 7431 > 7432 ${this.imageTemplate()} 7433 <wui-text variant=${e} color="inherit"> 7434 ${this.title?this.title:rI.getHostName(this.href)} 7435 </wui-text> 7436 <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon> 7437 </a> 7438 `}imageTemplate(){return this.imageSrc?J`<wui-image src=${this.imageSrc}></wui-image>`:null}};io.styles=[eA,eI,ir],ii([eB()],io.prototype,"variant",void 0),ii([eB()],io.prototype,"imageSrc",void 0),ii([eB({type:Boolean})],io.prototype,"disabled",void 0),ii([eB()],io.prototype,"icon",void 0),ii([eB()],io.prototype,"href",void 0),ii([eB()],io.prototype,"text",void 0),io=ii([eP("wui-chip")],io);var is=h` 7439 :host { 7440 position: relative; 7441 display: block; 7442 } 7443 7444 button { 7445 background: var(--wui-color-accent-100); 7446 border: 1px solid var(--wui-color-gray-glass-010); 7447 border-radius: var(--wui-border-radius-m); 7448 gap: var(--wui-spacing-xs); 7449 } 7450 7451 button.loading { 7452 background: var(--wui-color-gray-glass-010); 7453 border: 1px solid var(--wui-color-gray-glass-010); 7454 pointer-events: none; 7455 } 7456 7457 button:disabled { 7458 background-color: var(--wui-color-gray-glass-015); 7459 border: 1px solid var(--wui-color-gray-glass-010); 7460 } 7461 7462 button:disabled > wui-text { 7463 color: var(--wui-color-gray-glass-015); 7464 } 7465 7466 @media (hover: hover) and (pointer: fine) { 7467 button:hover:enabled { 7468 background-color: var(--wui-color-accent-090); 7469 } 7470 7471 button:active:enabled { 7472 background-color: var(--wui-color-accent-080); 7473 } 7474 } 7475 7476 button:focus-visible { 7477 border: 1px solid var(--wui-color-gray-glass-010); 7478 background-color: var(--wui-color-accent-090); 7479 -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 7480 -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 7481 box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 7482 } 7483 7484 button[data-size='sm'] { 7485 padding: 6.75px 10px 7.25px; 7486 } 7487 7488 ::slotted(*) { 7489 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 7490 will-change: opacity; 7491 opacity: var(--local-opacity-100); 7492 } 7493 7494 button > wui-text { 7495 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 7496 will-change: opacity; 7497 opacity: var(--local-opacity-100); 7498 color: var(--wui-color-inverse-100); 7499 } 7500 7501 button[data-size='md'] { 7502 padding: 9px var(--wui-spacing-l) 9px var(--wui-spacing-l); 7503 } 7504 7505 button[data-size='md'] + wui-text { 7506 padding-left: var(--wui-spacing-3xs); 7507 } 7508 7509 @media (max-width: 500px) { 7510 button[data-size='md'] { 7511 height: 32px; 7512 padding: 5px 12px; 7513 } 7514 7515 button[data-size='md'] > wui-text > slot { 7516 font-size: 14px !important; 7517 } 7518 } 7519 7520 wui-loading-spinner { 7521 width: 14px; 7522 height: 14px; 7523 } 7524 7525 wui-loading-spinner::slotted(svg) { 7526 width: 10px !important; 7527 height: 10px !important; 7528 } 7529 7530 button[data-size='sm'] > wui-loading-spinner { 7531 width: 12px; 7532 height: 12px; 7533 } 7534`,ia=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let il=class extends ew{constructor(){super(...arguments),this.size="md",this.loading=!1}render(){let e="md"===this.size?"paragraph-600":"small-600";return J` 7535 <button data-size=${this.size} ?disabled=${this.loading} ontouchstart> 7536 ${this.loadingTemplate()} 7537 <wui-text variant=${e} color=${this.loading?"accent-100":"inherit"}> 7538 <slot></slot> 7539 </wui-text> 7540 </button> 7541 `}loadingTemplate(){return this.loading?J`<wui-loading-spinner size=${this.size} color="accent-100"></wui-loading-spinner>`:null}};il.styles=[eA,eI,is],ia([eB()],il.prototype,"size",void 0),ia([eB({type:Boolean})],il.prototype,"loading",void 0),il=ia([eP("wui-connect-button")],il);var ic=h` 7542 wui-flex { 7543 width: 100%; 7544 background-color: var(--wui-color-gray-glass-002); 7545 border-radius: var(--wui-border-radius-xs); 7546 } 7547`,iu=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
7547);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let id=class extends ew{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return J` 7548 <wui-flex 7549 justifyContent="space-between" 7550 alignItems="center" 7551 .padding=${["1xs","2l","1xs","2l"]} 7552 > 7553 <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text> 7554 <wui-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight"> 7555 </wui-chip-button> 7556 </wui-flex> 7557 `}};id.styles=[eA,eI,ic],iu([eB({type:Boolean})],id.prototype,"disabled",void 0),iu([eB()],id.prototype,"label",void 0),iu([eB()],id.prototype,"buttonLabel",void 0),id=iu([eP("wui-cta-button")],id);var ih=h` 7558 :host { 7559 display: block; 7560 padding: var(--wui-spacing-l) var(--wui-spacing-m); 7561 background-color: var(--wui-color-gray-glass-002); 7562 border-radius: var(--wui-border-radius-xs); 7563 width: 100%; 7564 } 7565`,ip=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ig=class extends ew{render(){return J` 7566 <wui-flex gap="xl" flexDirection="column" justifyContent="space-between" alignItems="center"> 7567 <slot></slot> 7568 </wui-flex> 7569 `}};ig.styles=[eA,eI,ih],ig=ip([eP("wui-details-group")],ig);var im=h` 7570 :host { 7571 display: flex; 7572 flex-direction: row; 7573 gap: var(--wui-spacing-l); 7574 width: 100%; 7575 border-radius: var(--wui-border-radius-xs); 7576 } 7577`,iw=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iy=class extends ew{constructor(){super(...arguments),this.name=""}render(){return J` 7578 <wui-flex justifyContent="space-between" alignItems="center"> 7579 <wui-text variant="paragraph-500" color="fg-200">${this.name}</wui-text> 7580 <wui-flex gap="xs" alignItems="center"> 7581 <slot></slot> 7582 </wui-flex> 7583 </wui-flex> 7584 `}};iy.styles=[eA,eI,im],iw([eB()],iy.prototype,"name",void 0),iy=iw([eP("wui-details-group-item")],iy);let{I:ib}=ep,iv=e=>void 0===e.strings,i_=(e,t)=>{let r=e._$AN;if(void 0===r)return!1;for(let e of r)e._$AO?.(t,!1),i_(e,t);return!0},ix=e=>{let t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===r?.size)},iE=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),iS(t)}};function iC(e){void 0!==this._$AN?(ix(this),this._$AM=e,iE(this)):this._$AM=e}function ik(e,t=!1,r=0){let i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size){if(t){if(Array.isArray(i))for(let e=r;e<i.length;e++)i_(i[e],!1),ix(i[e]);else null!=i&&(i_(i,!1),ix(i))}else i_(this,e)}}let iS=e=>{e.type==t9&&(e._$AP??=ik,e._$AQ??=iC)};class iA extends rt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),iE(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(i_(this,e),ix(this))}setValue(e){if(iv(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}let iI=()=>new iT;class iT{}let iR=new WeakMap,iO=re(class extends iA{render(e){return ee}update(e,[t]){let r=t!==this.Y;return r&&void 0!==this.Y&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),ee}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.Y){let t=this.ht??globalThis,r=iR.get(t);void 0===r&&(r=new WeakMap,iR.set(t,r)),void 0!==r.get(this.Y)&&this.Y.call(this.ht,void 0),r.set(this.Y,e),void 0!==e&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return"function"==typeof this.Y?iR.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var iP=h` 7585 :host { 7586 position: relative; 7587 width: 100%; 7588 display: inline-block; 7589 color: var(--wui-color-fg-275); 7590 } 7591 7592 input { 7593 width: 100%; 7594 border-radius: var(--wui-border-radius-xs); 7595 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 7596 background: var(--wui-color-gray-glass-002); 7597 font-size: var(--wui-font-size-paragraph); 7598 letter-spacing: var(--wui-letter-spacing-paragraph); 7599 color: var(--wui-color-fg-100); 7600 transition: 7601 background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 7602 border-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 7603 box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); 7604 will-change: background-color, border-color, box-shadow; 7605 caret-color: var(--wui-color-accent-100); 7606 } 7607 7608 input:disabled {
7609 cursor: not-allowed; 7610 border: 1px solid var(--wui-color-gray-glass-010); 7611 } 7612 7613 input:disabled::placeholder, 7614 input:disabled + wui-icon { 7615 color: var(--wui-color-fg-300); 7616 } 7617 7618 input::placeholder { 7619 color: var(--wui-color-fg-275); 7620 } 7621 7622 input:focus:enabled { 7623 background-color: var(--wui-color-gray-glass-005); 7624 -webkit-box-shadow: 7625 inset 0 0 0 1px var(--wui-color-accent-100), 7626 0px 0px 0px 4px var(--wui-box-shadow-blue); 7627 -moz-box-shadow: 7628 inset 0 0 0 1px var(--wui-color-accent-100), 7629 0px 0px 0px 4px var(--wui-box-shadow-blue); 7630 box-shadow: 7631 inset 0 0 0 1px var(--wui-color-accent-100), 7632 0px 0px 0px 4px var(--wui-box-shadow-blue); 7633 } 7634 7635 input:hover:enabled { 7636 background-color: var(--wui-color-gray-glass-005); 7637 } 7638 7639 wui-icon { 7640 position: absolute; 7641 top: 50%; 7642 transform: translateY(-50%); 7643 pointer-events: none; 7644 } 7645 7646 .wui-size-sm { 7647 padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s); 7648 } 7649 7650 wui-icon + .wui-size-sm { 7651 padding: 9px var(--wui-spacing-m) 10px 36px; 7652 } 7653 7654 wui-icon[data-input='sm'] { 7655 left: var(--wui-spacing-s); 7656 } 7657 7658 .wui-size-md { 7659 padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m); 7660 } 7661 7662 wui-icon + .wui-size-md, 7663 wui-loading-spinner + .wui-size-md { 7664 padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl); 7665 } 7666 7667 wui-icon[data-input='md'] { 7668 left: var(--wui-spacing-l); 7669 } 7670 7671 .wui-size-lg { 7672 padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l); 7673 letter-spacing: var(--wui-letter-spacing-medium-title); 7674 font-size: var(--wui-font-size-medium-title); 7675 font-weight: var(--wui-font-weight-light); 7676 line-height: 130%; 7677 color: var(--wui-color-fg-100); 7678 height: 64px; 7679 } 7680 7681 .wui-padding-right-xs { 7682 padding-right: var(--wui-spacing-xs); 7683 } 7684 7685 .wui-padding-right-s { 7686 padding-right: var(--wui-spacing-s); 7687 } 7688 7689 .wui-padding-right-m { 7690 padding-right: var(--wui-spacing-m); 7691 } 7692 7693 .wui-padding-right-l { 7694 padding-right: var(--wui-spacing-l); 7695 } 7696 7697 .wui-padding-right-xl { 7698 padding-right: var(--wui-spacing-xl); 7699 } 7700 7701 .wui-padding-right-2xl { 7702 padding-right: var(--wui-spacing-2xl); 7703 } 7704 7705 .wui-padding-right-3xl { 7706 padding-right: var(--wui-spacing-3xl); 7707 } 7708 7709 .wui-padding-right-4xl { 7710 padding-right: var(--wui-spacing-4xl); 7711 } 7712 7713 .wui-padding-right-5xl { 7714 padding-right: var(--wui-spacing-5xl); 7715 } 7716 7717 wui-icon + .wui-size-lg, 7718 wui-loading-spinner + .wui-size-lg { 7719 padding-left: 50px; 7720 } 7721 7722 wui-icon[data-input='lg'] { 7723 left: var(--wui-spacing-l); 7724 } 7725 7726 .wui-size-mdl { 7727 padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m); 7728 } 7729 wui-icon + .wui-size-mdl, 7730 wui-loading-spinner + .wui-size-mdl { 7731 padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px; 7732 } 7733 wui-icon[data-input='mdl'] { 7734 left: var(--wui-spacing-m); 7735 } 7736 7737 input:placeholder-shown ~ ::slotted(wui-input-element), 7738 input:placeholder-shown ~ ::slotted(wui-icon) { 7739 opacity: 0; 7740 pointer-events: none; 7741 } 7742 7743 input::-webkit-outer-spin-button, 7744 input::-webkit-inner-spin-button { 7745 -webkit-appearance: none; 7746 margin: 0; 7747 } 7748 7749 input[type='number'] { 7750 -moz-appearance: textfield; 7751 } 7752 7753 ::slotted(wui-input-element), 7754 ::slotted(wui-icon) { 7755 position: absolute; 7756 top: 50%; 7757 transform: translateY(-50%); 7758 } 7759 7760 ::slotted(wui-input-element) { 7761 right: var(--wui-spacing-m); 7762 } 7763 7764 ::slotted(wui-icon) { 7765 right: 0px; 7766 } 7767`,iN=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iM=class extends ew{constructor(){super(...arguments),this.inputElementRef=iI(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){let e=`wui-padding-right-${this.inputRightPadding}`,t={[`wui-size-${this.size}`]:!0,[e]:!!this.inputRightPadding};return J`${this.templateIcon()} 7768 <input 7769 ${iO(this.inputElementRef)} 7770 class=${rr(t)} 7771 type=${this.type} 7772 enterkeyhint=${rA(this.enterKeyHint)} 7773 ?disabled=${this.disabled} 7774 placeholder=${this.placeholder}
7775 @input=${this.dispatchInputChangeEvent.bind(this)} 7776 .value=${this.value||""} 7777 /> 7778 <slot></slot>`}templateIcon(){return this.icon?J`<wui-icon 7779 data-input=${this.size} 7780 size=${this.size} 7781 color="inherit" 7782 name=${this.icon} 7783 ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};iM.styles=[eA,eI,iP],iN([eB()],iM.prototype,"size",void 0),iN([eB()],iM.prototype,"icon",void 0),iN([eB({type:Boolean})],iM.prototype,"disabled",void 0),iN([eB()],iM.prototype,"placeholder",void 0),iN([eB()],iM.prototype,"type",void 0),iN([eB()],iM.prototype,"keyHint",void 0),iN([eB()],iM.prototype,"value",void 0),iN([eB()],iM.prototype,"inputRightPadding",void 0),iM=iN([eP("wui-input-text")],iM);var iD=h` 7784 :host { 7785 position: relative; 7786 display: inline-block; 7787 } 7788 7789 wui-text { 7790 margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); 7791 } 7792`,iL=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ij=class extends ew{constructor(){super(...arguments),this.disabled=!1}render(){return J` 7793 <wui-input-text 7794 placeholder="Email" 7795 icon="mail" 7796 size="mdl" 7797 .disabled=${this.disabled} 7798 .value=${this.value} 7799 data-testid="wui-email-input" 7800 ></wui-input-text> 7801 ${this.templateError()} 7802 `}templateError(){return this.errorMessage?J`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};ij.styles=[eA,iD],iL([eB()],ij.prototype,"errorMessage",void 0),iL([eB({type:Boolean})],ij.prototype,"disabled",void 0),iL([eB()],ij.prototype,"value",void 0),ij=iL([eP("wui-email-input")],ij);var iB=h` 7803 :host { 7804 position: relative; 7805 width: 100%; 7806 display: inline-block; 7807 color: var(--wui-color-fg-275); 7808 } 7809 7810 .error { 7811 margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); 7812 } 7813 7814 .base-name { 7815 position: absolute; 7816 right: 45px; 7817 top: 15px; 7818 text-align: right; 7819 } 7820`,i$=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iU=class extends ew{constructor(){super(...arguments),this.disabled=!1,this.loading=!1}render(){return J` 7821 <wui-input-text 7822 value=${rA(this.value)} 7823 ?disabled=${this.disabled} 7824 .value=${this.value||""} 7825 data-testId="wui-ens-input" 7826 inputRightPadding="5xl" 7827 > 7828 ${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()} 7829 </wui-input-text> 7830 `}baseNameTemplate(){return J`<wui-text variant="paragraph-400" color="fg-200" class="base-name"> 7831 ${ex.bq.WC_NAME_SUFFIX} 7832 </wui-text>`}loadingTemplate(){return this.loading?J`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}errorTemplate(){return this.errorMessage?J`<wui-text variant="tiny-500" color="error-100" class="error" 7833 >${this.errorMessage}</wui-text 7834 >`:null}};iU.styles=[eA,iB],i$([eB()],iU.prototype,"errorMessage",void 0),i$([eB({type:Boolean})],iU.prototype,"disabled",void 0),i$([eB()],iU.prototype,"value",void 0),i$([eB({type:Boolean})],iU.prototype,"loading",void 0),iU=i$([eP("wui-ens-input")],iU);var iF=h` 7835 button { 7836 border-radius: var(--local-border-radius); 7837 color: var(--wui-color-fg-100); 7838 padding: var(--local-padding); 7839 } 7840 7841 button:hover:enabled { 7842 background-color: var(--wui-color-gray-glass-005); 7843 } 7844 7845 @media (max-width: 700px) { 7846 button { 7847 padding: var(--wui-spacing-s); 7848 } 7849 } 7850 7851 button > wui-icon { 7852 pointer-events: none; 7853 } 7854 7855 button:disabled > wui-icon { 7856 color: var(--wui-color-bg-300) !important; 7857 } 7858 7859 button:disabled { 7860 background-color: transparent; 7861 } 7862`,iz=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
7862);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iq=class extends ew{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){let e="lg"===this.size?"--wui-border-radius-xs":"--wui-border-radius-xxs",t="lg"===this.size?"--wui-spacing-1xs":"--wui-spacing-2xs";return this.style.cssText=` 7863 --local-border-radius: var(${e}); 7864 --local-padding: var(${t}); 7865`,J` 7866 <button ?disabled=${this.disabled} ontouchstart> 7867 <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon> 7868 </button> 7869 `}};iq.styles=[eA,eI,eT,iF],iz([eB()],iq.prototype,"size",void 0),iz([eB({type:Boolean})],iq.prototype,"disabled",void 0),iz([eB()],iq.prototype,"icon",void 0),iz([eB()],iq.prototype,"iconColor",void 0),iq=iz([eP("wui-icon-link")],iq);var iW=h` 7870 button { 7871 background-color: var(--wui-color-fg-300); 7872 border-radius: var(--wui-border-radius-4xs); 7873 width: 16px; 7874 height: 16px; 7875 } 7876 7877 button:disabled { 7878 background-color: var(--wui-color-bg-300); 7879 } 7880 7881 wui-icon { 7882 color: var(--wui-color-bg-200) !important; 7883 } 7884 7885 button:focus-visible { 7886 background-color: var(--wui-color-fg-250); 7887 border: 1px solid var(--wui-color-accent-100); 7888 } 7889 7890 button:active:enabled { 7891 background-color: var(--wui-color-fg-225); 7892 } 7893 7894 @media (hover: hover) and (pointer: fine) { 7895 button:hover:enabled { 7896 background-color: var(--wui-color-fg-250); 7897 } 7898 } 7899`,iH=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iV=class extends ew{constructor(){super(...arguments),this.icon="copy"}render(){return J` 7900 <button> 7901 <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon> 7902 </button> 7903 `}};iV.styles=[eA,eI,iW],iH([eB()],iV.prototype,"icon",void 0),iV=iH([eP("wui-input-element")],iV);var iZ=h` 7904 :host { 7905 position: relative; 7906 display: inline-block; 7907 } 7908 7909 input { 7910 width: 50px; 7911 height: 50px; 7912 background: var(--wui-color-gray-glass-010); 7913 border-radius: var(--wui-border-radius-xs); 7914 border: 1px solid var(--wui-color-gray-glass-005); 7915 font-family: var(--wui-font-family); 7916 font-size: var(--wui-font-size-large); 7917 font-weight: var(--wui-font-weight-regular); 7918 letter-spacing: var(--wui-letter-spacing-large); 7919 text-align: center; 7920 color: var(--wui-color-fg-100); 7921 caret-color: var(--wui-color-accent-100); 7922 transition: 7923 background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 7924 border-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 7925 box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); 7926 will-change: background-color, border-color, box-shadow; 7927 box-sizing: border-box; 7928 -webkit-appearance: none; 7929 -moz-appearance: textfield; 7930 padding: 0px; 7931 } 7932 7933 input::-webkit-outer-spin-button, 7934 input::-webkit-inner-spin-button { 7935 -webkit-appearance: none; 7936 margin: 0; 7937 } 7938 7939 input[type='number'] { 7940 -moz-appearance: textfield; 7941 } 7942 7943 input:disabled { 7944 cursor: not-allowed; 7945 border: 1px solid var(--wui-color-gray-glass-010); 7946 background: var(--wui-color-gray-glass-005); 7947 } 7948 7949 input:focus:enabled { 7950 background-color: var(--wui-color-gray-glass-015); 7951 border: 1px solid var(--wui-color-accent-100); 7952 -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 7953 -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 7954 box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 7955 } 7956 7957 @media (hover: hover) and (pointer: fine) { 7958 input:hover:enabled { 7959 background-color: var(--wui-color-gray-glass-015); 7960 } 7961 } 7962`,iK=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
7962);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iG=class extends ew{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return J`<input 7963 type="number" 7964 maxlength="1" 7965 inputmode="numeric" 7966 autofocus 7967 ?disabled=${this.disabled} 7968 value=${this.value} 7969 /> `}};iG.styles=[eA,eI,iZ],iK([eB({type:Boolean})],iG.prototype,"disabled",void 0),iK([eB({type:String})],iG.prototype,"value",void 0),iG=iK([eP("wui-input-numeric")],iG);var iY=h` 7970 button { 7971 padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); 7972 border-radius: var(--wui-border-radius-3xs); 7973 background-color: transparent; 7974 color: var(--wui-color-accent-100); 7975 } 7976 7977 button:disabled { 7978 background-color: transparent; 7979 color: var(--wui-color-gray-glass-015); 7980 } 7981 7982 button:hover { 7983 background-color: var(--wui-color-gray-glass-005); 7984 } 7985`,iJ=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let iQ=class extends ew{constructor(){super(...arguments),this.disabled=!1,this.color="inherit"}render(){return J` 7986 <button ?disabled=${this.disabled} ontouchstart> 7987 <slot name="iconLeft"></slot> 7988 <wui-text variant="small-600" color=${this.color}> 7989 <slot></slot> 7990 </wui-text> 7991 <slot name="iconRight"></slot> 7992 </button> 7993 `}};iQ.styles=[eA,eI,iY],iJ([eB({type:Boolean})],iQ.prototype,"disabled",void 0),iJ([eB()],iQ.prototype,"color",void 0),iQ=iJ([eP("wui-l
7993ink")],iQ);var iX=h` 7994 button { 7995 column-gap: var(--wui-spacing-s); 7996 padding: 11px 18px 11px var(--wui-spacing-s); 7997 width: 100%; 7998 background-color: var(--wui-color-gray-glass-002); 7999 border-radius: var(--wui-border-radius-xs); 8000 color: var(--wui-color-fg-250); 8001 transition: 8002 color var(--wui-ease-out-power-1) var(--wui-duration-md), 8003 background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 8004 will-change: color, background-color; 8005 } 8006 8007 button[data-iconvariant='square'], 8008 button[data-iconvariant='square-blue'] { 8009 padding: 6px 18px 6px 9px; 8010 } 8011 8012 button > wui-flex { 8013 flex: 1; 8014 } 8015 8016 button > wui-image { 8017 width: 32px; 8018 height: 32px; 8019 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 8020 border-radius: var(--wui-border-radius-3xl); 8021 } 8022 8023 button > wui-icon { 8024 width: 36px; 8025 height: 36px; 8026 transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md); 8027 will-change: opacity; 8028 } 8029 8030 button > wui-icon-box[data-variant='blue'] { 8031 box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005); 8032 } 8033 8034 button > wui-icon-box[data-variant='overlay'] { 8035 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 8036 } 8037 8038 button > wui-icon-box[data-variant='square-blue'] { 8039 border-radius: var(--wui-border-radius-3xs); 8040 position: relative; 8041 border: none; 8042 width: 36px; 8043 height: 36px; 8044 } 8045 8046 button > wui-icon-box[data-variant='square-blue']::after { 8047 content: ''; 8048 position: absolute; 8049 top: 0; 8050 bottom: 0; 8051 left: 0; 8052 right: 0; 8053 border-radius: inherit; 8054 border: 1px solid var(--wui-color-accent-glass-010); 8055 pointer-events: none; 8056 } 8057 8058 button > wui-icon:last-child { 8059 width: 14px; 8060 height: 14px; 8061 } 8062 8063 button:hover:enabled { 8064 background-color: var(--wui-color-gray-glass-005); 8065 } 8066 8067 button:disabled { 8068 background-color: var(--wui-color-gray-glass-015); 8069 color: var(--wui-color-gray-glass-015); 8070 } 8071 8072 button[data-loading='true'] > wui-icon { 8073 opacity: 0; 8074 } 8075 8076 wui-loading-spinner { 8077 position: absolute; 8078 right: 18px; 8079 top: 50%; 8080 transform: translateY(-50%); 8081 } 8082`,i0=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let i1=class extends ew{constructor(){super(...arguments),this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return J` 8083 <button 8084 ?disabled=${!!this.loading||!!this.disabled} 8085 data-loading=${this.loading} 8086 data-iconvariant=${rA(this.iconVariant)} 8087 ontouchstart 8088 > 8089 ${this.loadingTemplate()} ${this.visualTemplate()} 8090 <wui-flex gap="3xs"> 8091 <slot></slot> 8092 </wui-flex> 8093 ${this.chevronTemplate()} 8094 </button> 8095 `}visualTemplate(){if("image"===this.variant&&this.imageSrc)return J`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return J`<wui-icon name=${this.icon}></wui-icon>`;if("icon"===this.variant&&this.icon&&this.iconVariant){let e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",t="square-blue"===this.iconVariant?"mdl":"md",r=this.iconSize?this.iconSize:t;return J` 8096 <wui-icon-box 8097 data-variant=${this.iconVariant} 8098 icon=${this.icon} 8099 iconSize=${r} 8100 background="transparent" 8101 iconColor=${e} 8102 backgroundColor=${e} 8103 size=${t} 8104 ></wui-icon-box> 8105 `}return null}loadingTemplate(){return this.loading?J`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:J``}chevronTemplate(){return this.chevron?J`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};i1.styles=[eA,eI,iX],i0([eB()],i1.prototype,"icon",void 0),i0([eB()],i1.prototype,"iconSize",void 0),i0([eB()],i1.prototype,"variant",void 0),i0([eB()],i1.prototype,"iconVariant",void 0),i0([eB({type:Boolean})],i1.prototype,"disabled",void 0),i0([eB()],i1.prototype,"imageSrc",void 0),i0([eB()],i1.prototype,"alt",void 0),i0([eB({type:Boolean})],i1.prototype,"chevron",void 0),i0([eB({type:Boolean}
8105)],i1.prototype,"loading",void 0),i1=i0([eP("wui-list-item")],i1),function(e){e.approve="approved",e.bought="bought",e.borrow="borrowed",e.burn="burnt",e.cancel="canceled",e.claim="claimed",e.deploy="deployed",e.deposit="deposited",e.execute="executed",e.mint="minted",e.receive="received",e.repay="repaid",e.send="sent",e.sell="sold",e.stake="staked",e.trade="swapped",e.unstake="unstaked",e.withdraw="withdrawn"}(e_||(e_={}));var i2=h` 8106 :host > wui-flex { 8107 display: flex; 8108 justify-content: center; 8109 align-items: center; 8110 position: relative; 8111 width: 40px; 8112 height: 40px; 8113 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 8114 background-color: var(--wui-color-gray-glass-005); 8115 } 8116 8117 :host > wui-flex wui-image { 8118 display: block; 8119 } 8120 8121 :host > wui-flex, 8122 :host > wui-flex wui-image, 8123 .swap-images-container, 8124 .swap-images-container.nft, 8125 wui-image.nft { 8126 border-top-left-radius: var(--local-left-border-radius); 8127 border-top-right-radius: var(--local-right-border-radius); 8128 border-bottom-left-radius: var(--local-left-border-radius); 8129 border-bottom-right-radius: var(--local-right-border-radius); 8130 } 8131 8132 wui-icon { 8133 width: 20px; 8134 height: 20px; 8135 } 8136 8137 wui-icon-box { 8138 position: absolute; 8139 right: 0; 8140 bottom: 0; 8141 transform: translate(20%, 20%); 8142 } 8143 8144 .swap-images-container { 8145 position: relative; 8146 width: 40px; 8147 height: 40px; 8148 overflow: hidden; 8149 } 8150 8151 .swap-images-container wui-image:first-child { 8152 position: absolute; 8153 width: 40px; 8154 height: 40px; 8155 top: 0; 8156 left: 0%; 8157 clip-path: inset(0px calc(50% + 2px) 0px 0%); 8158 } 8159 8160 .swap-images-container wui-image:last-child { 8161 clip-path: inset(0px 0px 0px calc(50% + 2px)); 8162 } 8163`,i3=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let i5=class extends ew{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){let[e,t]=this.images,r=e?.type==="NFT",i=t?.url?"NFT"===t.type:r,n=r?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)",o=i?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)";return this.style.cssText=` 8164 --local-left-border-radius: ${n}; 8165 --local-right-border-radius: ${o}; 8166 `,J`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){let[e,t]=this.images,r=e?.type;return 2===this.images.length&&(e?.url||t?.url)?J`<div class="swap-images-container"> 8167 ${e?.url?J`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:null} 8168 ${t?.url?J`<wui-image src=${t.url} alt="Transaction image"></wui-image>`:null} 8169 </div>`:e?.url?J`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:"NFT"===r?J`<wui-icon size="inherit" color="fg-200" name="nftPlaceholder"></wui-icon>`:J`<wui-icon size="inherit" color="fg-200" name="coinPlaceholder"></wui-icon>`}templateIcon(){let e,t="accent-100";return(e=this.getIcon(),this.status&&(t=this.getStatusColor()),e)?J` 8170 <wui-icon-box 8171 size="xxs" 8172 iconColor=${t} 8173 backgroundColor=${t} 8174 background="opaque" 8175 icon=${e} 8176 ?border=${!0} 8177 borderColor="wui-color-bg-125" 8178 ></wui-icon-box> 8179 `:null}getDirectionIcon(){switch(this.direction){case"in":return"arrowBottom";case"out":return"arrowTop";default:return}}getIcon(){return this.onlyDirectionIcon?this.getDirectionIcon():"trade"===this.type?"swapHorizontalBold":"approve"===this.type?"checkmark":"cancel"===this.type?"close":this.getDirectionIcon()}getStatusColor(){switch(this.status){case"confirmed":return"success-100";case"failed":return"error-100";case"pending":return"inverse-100";default:return"accent-100"}}};i5.styles=[i2],i3([eB()],i5.prototype,"type",void 0),i3([eB()],i5.prototype,"status",void 0),i3([eB()],i5.prototype,"direction",void 0),i3([eB({type:Boolean})],i5.prototype,"onlyDirectionIcon",void 0),i3([eB({type:Array})],i5.prototype,"images",void 0),i3([eB({type:Object})],i5.prototype,"secondImage",void 0),i5=i3([eP("wui-transaction-visual")],i5);var i4=h` 8180 :host > wui-flex:first-child {
8181 align-items: center; 8182 column-gap: var(--wui-spacing-s); 8183 padding: 6.5px var(--wui-spacing-xs) 6.5px var(--wui-spacing-xs); 8184 width: 100%; 8185 } 8186 8187 :host > wui-flex:first-child wui-text:nth-child(1) { 8188 text-transform: capitalize; 8189 } 8190 8191 wui-transaction-visual { 8192 width: 40px; 8193 height: 40px; 8194 } 8195 8196 wui-flex { 8197 flex: 1; 8198 } 8199 8200 :host wui-flex wui-flex { 8201 overflow: hidden; 8202 } 8203 8204 :host .description-container wui-text span { 8205 word-break: break-all; 8206 } 8207 8208 :host .description-container wui-text { 8209 overflow: hidden; 8210 } 8211 8212 :host .description-separator-icon { 8213 margin: 0px 6px; 8214 } 8215 8216 :host wui-text > span { 8217 overflow: hidden; 8218 display: -webkit-box; 8219 -webkit-box-orient: vertical; 8220 -webkit-line-clamp: 1; 8221 } 8222`,i6=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let i8=class extends ew{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[],this.price=[],this.amount=[],this.symbol=[]}render(){return J` 8223 <wui-flex> 8224 <wui-transaction-visual 8225 .status=${this.status} 8226 direction=${rA(this.direction)} 8227 type=${this.type} 8228 onlyDirectionIcon=${rA(this.onlyDirectionIcon)} 8229 .images=${this.images} 8230 ></wui-transaction-visual> 8231 <wui-flex flexDirection="column" gap="3xs"> 8232 <wui-text variant="paragraph-600" color="fg-100"> 8233 ${e_[this.type]||this.type} 8234 </wui-text> 8235 <wui-flex class="description-container"> 8236 ${this.templateDescription()} ${this.templateSecondDescription()} 8237 </wui-flex> 8238 </wui-flex> 8239 <wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text> 8240 </wui-flex> 8241 `}templateDescription(){let e=this.descriptions?.[0];return e?J` 8242 <wui-text variant="small-500" color="fg-200"> 8243 <span>${e}</span> 8244 </wui-text> 8245 `:null}templateSecondDescription(){let e=this.descriptions?.[1];return e?J` 8246 <wui-icon class="description-separator-icon" size="xxs" name="arrowRight"></wui-icon> 8247 <wui-text variant="small-400" color="fg-200"> 8248 <span>${e}</span> 8249 </wui-text> 8250 `:null}};i8.styles=[eA,i4],i6([eB()],i8.prototype,"type",void 0),i6([eB({type:Array})],i8.prototype,"descriptions",void 0),i6([eB()],i8.prototype,"date",void 0),i6([eB({type:Boolean})],i8.prototype,"onlyDirectionIcon",void 0),i6([eB()],i8.prototype,"status",void 0),i6([eB()],i8.prototype,"direction",void 0),i6([eB({type:Array})],i8.prototype,"images",void 0),i6([eB({type:Array})],i8.prototype,"price",void 0),i6([eB({type:Array})],i8.prototype,"amount",void 0),i6([eB({type:Array})],i8.prototype,"symbol",void 0),i8=i6([eP("wui-transaction-list-item")],i8);var i7=h` 8251 :host > wui-flex:first-child { 8252 column-gap: var(--wui-spacing-s); 8253 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 8254 width: 100%; 8255 } 8256 8257 wui-flex { 8258 display: flex; 8259 flex: 1; 8260 } 8261`,i9=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ne=class extends ew{render(){return J` 8262 <wui-flex alignItems="center"> 8263 <wui-shimmer width="40px" height="40px"></wui-shimmer> 8264 <wui-flex flexDirection="column" gap="2xs"> 8265 <wui-shimmer width="72px" height="16px" borderRadius="4xs"></wui-shimmer> 8266 <wui-shimmer width="148px" height="14px" borderRadius="4xs"></wui-shimmer> 8267 </wui-flex> 8268 <wui-shimmer width="24px" height="12px" borderRadius="5xs"></wui-shimmer> 8269 </wui-flex> 8270 `}};ne.styles=[eA,i7],ne=i9([eP("wui-transaction-list-item-loader")],ne);var nt=h` 8271 :host { 8272 display: flex; 8273 justify-content: center;
8274 align-items: center; 8275 height: var(--wui-spacing-m); 8276 padding: 0 var(--wui-spacing-3xs) !important; 8277 border-radius: var(--wui-border-radius-5xs); 8278 } 8279 8280 :host > wui-text { 8281 transform: translateY(5%); 8282 } 8283 8284 :host([data-variant='main']) { 8285 background-color: var(--wui-color-accent-glass-015); 8286 color: var(--wui-color-accent-100); 8287 } 8288 8289 :host([data-variant='shade']) { 8290 background-color: var(--wui-color-gray-glass-010); 8291 color: var(--wui-color-fg-200); 8292 } 8293 8294 :host([data-variant='success']) { 8295 background-color: var(--wui-icon-box-bg-success-100); 8296 color: var(--wui-color-success-100); 8297 } 8298 8299 :host([data-variant='error']) { 8300 background-color: var(--wui-icon-box-bg-error-100); 8301 color: var(--wui-color-error-100); 8302 } 8303 8304 :host([data-size='lg']) { 8305 padding: 11px 5px !important; 8306 } 8307 8308 :host([data-size='lg']) > wui-text { 8309 transform: translateY(2%); 8310 } 8311`,nr=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ni=class extends ew{constructor(){super(...arguments),this.variant="main",this.size="lg"}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;let e="md"===this.size?"mini-700":"micro-700";return J` 8312 <wui-text data-variant=${this.variant} variant=${e} color="inherit"> 8313 <slot></slot> 8314 </wui-text> 8315 `}};ni.styles=[eA,nt],nr([eB()],ni.prototype,"variant",void 0),nr([eB()],ni.prototype,"size",void 0),ni=nr([eP("wui-tag")],ni);var nn=h` 8316 button { 8317 column-gap: var(--wui-spacing-s); 8318 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 8319 width: 100%; 8320 background-color: var(--wui-color-gray-glass-002); 8321 border-radius: var(--wui-border-radius-xs); 8322 color: var(--wui-color-fg-100); 8323 } 8324 8325 button > wui-text:nth-child(2) { 8326 display: flex; 8327 flex: 1; 8328 } 8329 8330 button:hover:enabled { 8331 background-color: var(--wui-color-gray-glass-005); 8332 } 8333 8334 button:disabled { 8335 background-color: var(--wui-color-gray-glass-015); 8336 color: var(--wui-color-gray-glass-015); 8337 } 8338 8339 button:disabled > wui-tag { 8340 background-color: var(--wui-color-gray-glass-010); 8341 color: var(--wui-color-fg-300); 8342 } 8343 8344 wui-icon { 8345 color: var(--wui-color-fg-200) !important; 8346 } 8347`,no=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ns=class extends ew{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return J` 8348 <button ?disabled=${this.disabled} ontouchstart> 8349 ${this.templateAllWallets()} ${this.templateWalletImage()} 8350 <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text> 8351 ${this.templateStatus()} 8352 </button> 8353 `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?J` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?J` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?J`<wui-wallet-image 8354 size="sm" 8355 imageSrc=${this.imageSrc} 8356 name=${this.name} 8357 .installed=${this.installed} 8358 ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:J`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.tagLabel&&this.tagVariant?J`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?J`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};ns.styles=[eA,eI,nn],no([eB({type:Array})],ns.prototype,"walletImages",void 0),no([eB()],ns.prototype,"imageSrc",void 0),no([eB()],ns.prototype,"name",void 0),no([eB()],ns.prototype,"tagLabel",void 0),no([eB()],ns.prototype,"tagVariant",void 0),no([eB()],ns.prototype,"icon",void 0),no([eB()],ns.prototype,"walletIcon",void 0),no([eB({type:Boolean})],ns.prototype,"installed",void 0),no([eB({type:Boolean})],ns.prototype,"disabled",void 0),no([eB({type:Boolean}
8358)],ns.prototype,"showAllWallets",void 0),ns=no([eP("wui-list-wallet")],ns);var na=h` 8359 :host { 8360 display: flex; 8361 justify-content: center; 8362 align-items: center; 8363 width: 40px; 8364 height: 40px; 8365 border-radius: var(--wui-border-radius-3xl); 8366 border: 1px solid var(--wui-color-gray-glass-005); 8367 overflow: hidden; 8368 } 8369 8370 wui-icon { 8371 width: 100%; 8372 height: 100%; 8373 } 8374`,nl=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nc=class extends ew{constructor(){super(...arguments),this.logo="google"}render(){return J`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `}};nc.styles=[eA,na],nl([eB()],nc.prototype,"logo",void 0),nc=nl([eP("wui-logo")],nc);var nu=h` 8375 :host { 8376 display: block; 8377 width: 100%; 8378 } 8379 8380 button { 8381 width: 100%; 8382 height: 56px; 8383 background: var(--wui-color-gray-glass-002); 8384 border-radius: var(--wui-border-radius-xs); 8385 } 8386`,nd=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nh=class extends ew{constructor(){super(...arguments),this.logo="google",this.disabled=!1}render(){return J` 8387 <button ?disabled=${this.disabled} ontouchstart> 8388 <wui-logo logo=${this.logo}></wui-logo> 8389 </button> 8390 `}};nh.styles=[eA,eI,nu],nd([eB()],nh.prototype,"logo",void 0),nd([eB({type:Boolean})],nh.prototype,"disabled",void 0),nh=nd([eP("wui-logo-select")],nh);var nf=h` 8391 :host { 8392 display: block; 8393 } 8394 8395 button { 8396 border-radius: var(--wui-border-radius-3xl); 8397 display: flex; 8398 gap: var(--wui-spacing-xs); 8399 padding: var(--wui-spacing-2xs) var(--wui-spacing-s) var(--wui-spacing-2xs) 8400 var(--wui-spacing-xs); 8401 border: 1px solid var(--wui-color-gray-glass-010); 8402 background-color: var(--wui-color-gray-glass-005); 8403 color: var(--wui-color-fg-100); 8404 } 8405 8406 button:disabled { 8407 border: 1px solid var(--wui-color-gray-glass-005); 8408 background-color: var(--wui-color-gray-glass-015); 8409 color: var(--wui-color-gray-glass-015); 8410 } 8411 8412 @media (hover: hover) and (pointer: fine) { 8413 button:hover:enabled { 8414 background-color: var(--wui-color-gray-glass-010); 8415 } 8416 8417 button:active:enabled { 8418 background-color: var(--wui-color-gray-glass-015); 8419 } 8420 } 8421 8422 wui-image, 8423 wui-icon-box { 8424 border-radius: var(--wui-border-radius-3xl); 8425 width: 24px; 8426 height: 24px; 8427 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005); 8428 } 8429`,np=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ng=class extends ew{constructor(){super(...arguments),this.imageSrc=void 0,this.isUnsupportedChain=void 0,this.disabled=!1}render(){return J` 8430 <button ?disabled=${this.disabled}> 8431 ${this.visualTemplate()} 8432 <wui-text variant="paragraph-600" color="inherit"> 8433 <slot></slot> 8434 </wui-text> 8435 </button> 8436 `}visualTemplate(){return this.isUnsupportedChain?J` 8437 <wui-icon-box 8438 size="sm" 8439 iconColor="error-100" 8440 backgroundColor="error-100" 8441 icon="warningCircle" 8442 ></wui-icon-box> 8443 `:this.imageSrc?J`<wui-image src=${this.imageSrc}></wui-image>`:J` 8444 <wui-icon-box 8445 size="sm" 8446 iconColor="inverse-100" 8447 backgroundColor="fg-100" 8448 icon="networkPlaceholder" 8449 ></wui-icon-box> 8450 `}};ng.styles=[eA,eI,nf],np([eB()],ng.prototype,"imageSrc",void 0),np([eB({type:Boolean})],ng.prototype,"isUnsupportedChain",void 0),np([eB({type:Boolean})],ng.prototype,"disabled",void 0),ng=np([eP("wui-network-button")],ng);var nm=h` 8451 :host { 8452 position: relative; 8453 display: block; 8454 } 8455`,nw=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
8455);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ny=class extends ew{constructor(){super(...arguments),this.length=6,this.otp="",this.values=Array.from({length:this.length}).map(()=>""),this.numerics=[],this.shouldInputBeEnabled=e=>this.values.slice(0,e).every(e=>""!==e),this.handleKeyDown=(e,t)=>{let r=e.target,i=this.getInputElement(r),n=["ArrowLeft","ArrowRight","Shift","Delete"];if(!i)return;n.includes(e.key)&&e.preventDefault();let o=i.selectionStart;switch(e.key){case"ArrowLeft":o&&i.setSelectionRange(o+1,o+1),this.focusInputField("prev",t);break;case"ArrowRight":case"Shift":this.focusInputField("next",t);break;case"Delete":case"Backspace":""===i.value?this.focusInputField("prev",t):this.updateInput(i,t,"")}},this.focusInputField=(e,t)=>{if("next"===e){let e=t+1;if(!this.shouldInputBeEnabled(e))return;let r=this.numerics[e<this.length?e:t],i=r?this.getInputElement(r):void 0;i&&(i.disabled=!1,i.focus())}if("prev"===e){let e=t-1,r=this.numerics[e>-1?e:t],i=r?this.getInputElement(r):void 0;i&&i.focus()}}}firstUpdated(){this.otp&&(this.values=this.otp.split(""));let e=this.shadowRoot?.querySelectorAll("wui-input-numeric");e&&(this.numerics=Array.from(e)),this.numerics[0]?.focus()}render(){return J` 8456 <wui-flex gap="xxs" data-testid="wui-otp-input"> 8457 ${Array.from({length:this.length}).map((e,t)=>J` 8458 <wui-input-numeric 8459 @input=${e=>this.handleInput(e,t)} 8460 @click=${e=>this.selectInput(e)} 8461 @keydown=${e=>this.handleKeyDown(e,t)} 8462 .disabled=${!this.shouldInputBeEnabled(t)} 8463 .value=${this.values[t]||""} 8464 > 8465 </wui-input-numeric> 8466 `)} 8467 </wui-flex> 8468 `}updateInput(e,t,r){let i=this.numerics[t],n=e||(i?this.getInputElement(i):void 0);n&&(n.value=r,this.values=this.values.map((e,i)=>i===t?r:e))}selectInput(e){let t=e.target;if(t){let e=this.getInputElement(t);e?.select()}}handleInput(e,t){let r=e.target,i=this.getInputElement(r);if(i){let r=i.value;"insertFromPaste"===e.inputType?this.handlePaste(i,r,t):rI.isNumber(r)&&e.data?(this.updateInput(i,t,e.data),this.focusInputField("next",t)):this.updateInput(i,t,"")}this.dispatchInputChangeEvent()}handlePaste(e,t,r){let i=t[0];if(i&&rI.isNumber(i)){this.updateInput(e,r,i);let n=t.substring(1);if(r+1<this.length&&n.length){let e=this.numerics[r+1],t=e?this.getInputElement(e):void 0;t&&this.handlePaste(t,n,r+1)}else this.focusInputField("next",r)}else this.updateInput(e,r,"")}getInputElement(e){return e.shadowRoot?.querySelector("input")?e.shadowRoot.querySelector("input"):null}dispatchInputChangeEvent(){let e=this.values.join("");this.dispatchEvent(new CustomEvent("inputChange",{detail:e,bubbles:!0,composed:!0}))}};ny.styles=[eA,nm],nw([eB({type:Number})],ny.prototype,"length",void 0),nw([eB({type:String})],ny.prototype,"otp",void 0),nw([e$()],ny.prototype,"values",void 0),ny=nw([eP("wui-otp")],ny);var nb=r(35819);let nv=.1,n_=2.5,nx=7;function nE(e,t,r){return e!==t&&(e-t<0?t-e:e-t)<=r+nv}function nC(e,t){let r=Array.prototype.slice.call(nb.create(e,{errorCorrectionLevel:t}).modules.data,0),i=Math.sqrt(r.length);return r.reduce((e,t,r)=>(r%i==0?e.push([t]):e[e.length-1].push(t))&&e,[])}let nk={generate(e,t,r){let i="#141414",n="transparent",o=5,s=[],a=nC(e,"Q"),l=t/a.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x:e,y:t})=>{let r=(a.length-nx)*l*e,u=(a.length-nx)*l*t,d=.45;for(let e=0;e<c.length;e+=1){let t=l*(nx-2*e);s.push(Q` 8469 <rect 8470 fill=${2===e?i:n} 8471 width=${0===e?t-o:t} 8472 rx= ${0===e?(t-o)*d:t*d} 8473 ry= ${0===e?(t-o)*d:t*d} 8474 stroke=${i} 8475 stroke-width=${0===e?o:0} 8476 height=${0===e?t-o:t} 8477 x= ${0===e?u+l*e+o/2:u+l*e} 8478 y= ${0===e?r+l*e+o/2:r+l*e} 8479 /> 8480 `)}});let u=Math.floor((r+25)/l),d=a.length/2-u/2,h=a.length/2+u/2-1,f=[];a.forEach((e,t)=>{e.forEach((e,r)=>{if(a[t][r]&&!(t<nx&&r<nx||t>a.length-(nx+1)&&r<nx||t<nx&&r>a.length-(nx+1))&&!(t>d&&t<h&&r>d&&r<h)){let e=t*l+l/2,i=r*l+l/2;f.push([e,i])}})});let p={};return f.forEach(([e,t])=>{p[e]?p[e]?.push(t):p[e]=[t]}),Object.entries(p).map(([e,t])=>{let r=t.filter(e=>t.every(t=>!nE(e,t,l)));return[Number(e),r]}
8480).forEach(([e,t])=>{t.forEach(t=>{s.push(Q`<circle cx=${e} cy=${t} fill=${i} r=${l/n_} />`)})}),Object.entries(p).filter(([e,t])=>t.length>1).map(([e,t])=>{let r=t.filter(e=>t.some(t=>nE(e,t,l)));return[Number(e),r]}).map(([e,t])=>{t.sort((e,t)=>e<t?-1:1);let r=[];for(let e of t){let t=r.find(t=>t.some(t=>nE(e,t,l)));t?t.push(e):r.push([e])}return[e,r.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,t])=>{t.forEach(([t,r])=>{s.push(Q` 8481 <line 8482 x1=${e} 8483 x2=${e} 8484 y1=${t} 8485 y2=${r} 8486 stroke=${i} 8487 stroke-width=${l/(n_/2)} 8488 stroke-linecap="round" 8489 /> 8490 `)})}),s}};var nS=h` 8491 :host { 8492 position: relative; 8493 user-select: none; 8494 display: block; 8495 overflow: hidden; 8496 aspect-ratio: 1 / 1; 8497 width: var(--local-size); 8498 } 8499 8500 :host([data-theme='dark']) { 8501 border-radius: clamp(0px, var(--wui-border-radius-l), 40px); 8502 background-color: var(--wui-color-inverse-100); 8503 padding: var(--wui-spacing-l); 8504 } 8505 8506 :host([data-theme='light']) { 8507 box-shadow: 0 0 0 1px var(--wui-color-bg-125); 8508 background-color: var(--wui-color-bg-125); 8509 } 8510 8511 :host([data-clear='true']) > wui-icon { 8512 display: none; 8513 } 8514 8515 svg:first-child, 8516 wui-image, 8517 wui-icon { 8518 position: absolute; 8519 top: 50%; 8520 left: 50%; 8521 transform: translateY(-50%) translateX(-50%); 8522 } 8523 8524 wui-image { 8525 width: 25%; 8526 height: 25%; 8527 border-radius: var(--wui-border-radius-xs); 8528 } 8529 8530 wui-icon { 8531 width: 100%; 8532 height: 100%; 8533 color: #3396ff !important; 8534 transform: translateY(-50%) translateX(-50%) scale(0.25); 8535 } 8536`,nA=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nI=class extends ew{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`--local-size: ${this.size}px`,J`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){let e="light"===this.theme?this.size:this.size-32;return Q` 8537 <svg height=${e} width=${e}> 8538 ${nk.generate(this.uri,e,this.arenaClear?0:e/4)} 8539 </svg> 8540 `}templateVisual(){return this.imageSrc?J`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:J`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};nI.styles=[eA,nS],nA([eB()],nI.prototype,"uri",void 0),nA([eB({type:Number})],nI.prototype,"size",void 0),nA([eB()],nI.prototype,"theme",void 0),nA([eB()],nI.prototype,"imageSrc",void 0),nA([eB()],nI.prototype,"alt",void 0),nA([eB({type:Boolean})],nI.prototype,"arenaClear",void 0),nI=nA([eP("wui-qr-code")],nI);var nT=h` 8541 :host { 8542 position: relative; 8543 display: inline-block; 8544 width: 100%; 8545 } 8546`,nR=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nO=class extends ew{constructor(){super(...arguments),this.inputComponentRef=iI()}render(){return J` 8547 <wui-input-text 8548 ${iO(this.inputComponentRef)} 8549 placeholder="Search wallet" 8550 icon="search" 8551 type="search" 8552 enterKeyHint="search" 8553 size="sm" 8554 > 8555 <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element> 8556 </wui-input-text> 8557 `}clearValue(){let e=this.inputComponentRef.value,t=e?.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};nO.styles=[eA,nT],nO=nR([eP("wui-search-bar")],nO);var nP=h` 8558 :host { 8559 display: flex; 8560 column-gap: var(--wui-spacing-xs); 8561 align-items: center; 8562 padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs); 8563 border-radius: var(--wui-border-radius-3xl); 8564 border: 1px solid var(--wui-color-gray-glass-005); 8565 box-sizing: border-box; 8566 max-height: 40px; 8567 background-color: var(--wui-color-bg-175); 8568 box-shadow: 8569 0px 14px 64px -4px rgba(0, 0, 0, 0.15), 8570 0px 8px 22px -6px rgba(0, 0, 0, 0.15); 8571 } 8572`,nN=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
8572);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nM=class extends ew{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message=""}render(){return J` 8573 <wui-icon-box 8574 size="sm" 8575 iconSize="xs" 8576 iconColor=${this.iconColor} 8577 backgroundColor=${this.backgroundColor} 8578 icon=${this.icon} 8579 background="opaque" 8580 ></wui-icon-box> 8581 <wui-text variant="paragraph-500" color="fg-100">${this.message}</wui-text> 8582 `}};nM.styles=[eA,nP],nN([eB()],nM.prototype,"backgroundColor",void 0),nN([eB()],nM.prototype,"iconColor",void 0),nN([eB()],nM.prototype,"icon",void 0),nN([eB()],nM.prototype,"message",void 0),nM=nN([eP("wui-snackbar")],nM);var nD=h` 8583 :host { 8584 display: inline-flex; 8585 background-color: var(--wui-color-gray-glass-002); 8586 border-radius: var(--wui-border-radius-3xl); 8587 padding: var(--wui-spacing-3xs); 8588 position: relative; 8589 height: 36px; 8590 overflow: hidden; 8591 } 8592 8593 :host::before { 8594 content: ''; 8595 position: absolute; 8596 pointer-events: none; 8597 top: 4px; 8598 left: 4px; 8599 display: block; 8600 width: var(--local-tab-width); 8601 height: 28px; 8602 border-radius: var(--wui-border-radius-3xl); 8603 background-color: var(--wui-color-gray-glass-002); 8604 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 8605 transform: translateX(calc(var(--local-tab) * var(--local-tab-width))); 8606 transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md); 8607 will-change: background-color, opacity; 8608 } 8609 8610 :host([data-type='flex'])::before { 8611 left: 3px; 8612 transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px))); 8613 } 8614 8615 :host([data-type='flex']) { 8616 display: flex; 8617 padding: 0px 0px 0px 12px; 8618 gap: 4px; 8619 } 8620 8621 :host([data-type='flex']) > button > wui-text { 8622 position: absolute; 8623 left: 18px; 8624 opacity: 0; 8625 } 8626 8627 button[data-active='true'] > wui-icon, 8628 button[data-active='true'] > wui-text { 8629 color: var(--wui-color-fg-100); 8630 } 8631 8632 button[data-active='false'] > wui-icon, 8633 button[data-active='false'] > wui-text { 8634 color: var(--wui-color-fg-200); 8635 } 8636 8637 button[data-active='true']:disabled, 8638 button[data-active='false']:disabled { 8639 background-color: transparent; 8640 opacity: 0.5; 8641 cursor: not-allowed; 8642 } 8643 8644 button[data-active='true']:disabled > wui-text { 8645 color: var(--wui-color-fg-200); 8646 } 8647 8648 button[data-active='false']:disabled > wui-text { 8649 color: var(--wui-color-fg-300); 8650 } 8651 8652 button > wui-icon, 8653 button > wui-text { 8654 pointer-events: none; 8655 transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md); 8656 will-change: color; 8657 } 8658 8659 button { 8660 width: var(--local-tab-width); 8661 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 8662 will-change: background-color; 8663 } 8664 8665 :host([data-type='flex']) > button { 8666 width: 34px; 8667 position: relative; 8668 display: flex; 8669 justify-content: flex-start; 8670 } 8671 8672 button:hover:enabled, 8673 button:active:enabled { 8674 background-color: transparent !important; 8675 } 8676 8677 button:hover:enabled > wui-icon, 8678 button:active:enabled > wui-icon { 8679 color: var(--wui-color-fg-125); 8680 } 8681 8682 button:hover:enabled > wui-text, 8683 button:active:enabled > wui-text { 8684 color: var(--wui-color-fg-125); 8685 } 8686 8687 button { 8688 border-radius: var(--wui-border-radius-3xl); 8689 } 8690`,nL=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nj=class extends ew{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=` 8691 --local-tab: ${this.activeTab}; 8692 --local-tab-width: ${this.localTabWidth}; 8693 `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,t)=>{let r=t===this.activeTab;return J` 8694 <button 8695 ?disabled=${this.disabled} 8696 @click=${()=>this.onTabClick(t)} 8697 data-active=${r} 8698 data-testid="tab-${e.label?.toLowerCase()}" 8699 > 8700 ${this.iconTemplate(e)} 8701 <wui-text variant="small-600" color="inherit"> ${e.label} </wui-text> 8702 </button> 8703 `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?J`<wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,t){let r=this.buttons[this.activeTab],i=this.buttons[e],n=r?.querySelector("wui-text"),o=i?.querySelector("wui-text"),s=i?.getBoundingClientRect(),a=o?.getBoundingClientRect();r&&n&&!t&&e!==this.activeTab&&(n.animate([{opacity:0}
8703],{duration:50,easing:"ease",fill:"forwards"}),r.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),i&&s&&a&&o&&(e!==this.activeTab||t)&&(this.localTabWidth=`${Math.round(s.width+a.width)+6}px`,i.animate([{width:`${s.width+a.width}px`}],{duration:t?0:500,fill:"forwards",easing:"ease"}),o.animate([{opacity:1}],{duration:t?0:125,delay:t?0:200,fill:"forwards",easing:"ease"}))}};nj.styles=[eA,eI,nD],nL([eB({type:Array})],nj.prototype,"tabs",void 0),nL([eB()],nj.prototype,"onTabChange",void 0),nL([eB({type:Array})],nj.prototype,"buttons",void 0),nL([eB({type:Boolean})],nj.prototype,"disabled",void 0),nL([eB()],nj.prototype,"localTabWidth",void 0),nL([e$()],nj.prototype,"activeTab",void 0),nL([e$()],nj.prototype,"isDense",void 0),nj=nL([eP("wui-tabs")],nj);var nB=h` 8704 :host { 8705 display: block; 8706 } 8707 8708 :host > button { 8709 gap: var(--wui-spacing-xxs); 8710 padding: var(--wui-spacing-xs); 8711 padding-right: var(--wui-spacing-1xs); 8712 height: 40px; 8713 border-radius: var(--wui-border-radius-l); 8714 background: var(--wui-color-gray-glass-002); 8715 border-width: 0px; 8716 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 8717 } 8718 8719 :host > button wui-image { 8720 width: 24px; 8721 height: 24px; 8722 border-radius: var(--wui-border-radius-s); 8723 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 8724 } 8725`,n$=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nU=class extends ew{constructor(){super(...arguments),this.text=""}render(){return J` 8726 <button ontouchstart> 8727 ${this.tokenTemplate()} 8728 <wui-text variant="paragraph-600" color="fg-100">${this.text}</wui-text> 8729 </button> 8730 `}tokenTemplate(){return this.imageSrc?J`<wui-image src=${this.imageSrc}></wui-image>`:J` 8731 <wui-icon-box 8732 size="sm" 8733 iconColor="fg-200" 8734 backgroundColor="fg-300" 8735 icon="networkPlaceholder" 8736 ></wui-icon-box> 8737 `}};nU.styles=[eA,eI,nB],n$([eB()],nU.prototype,"imageSrc",void 0),n$([eB()],nU.prototype,"text",void 0),nU=n$([eP("wui-token-button")],nU);var nF=h` 8738 :host { 8739 display: block; 8740 padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s); 8741 border-radius: var(--wui-border-radius-xxs); 8742 8743 color: var(--wui-color-bg-100); 8744 position: relative; 8745 } 8746 8747 :host([data-variant='shade']) { 8748 background-color: var(--wui-color-bg-150); 8749 border: 1px solid var(--wui-color-gray-glass-005); 8750 } 8751 8752 :host([data-variant='shade']) > wui-text { 8753 color: var(--wui-color-fg-150); 8754 } 8755 8756 :host([data-variant='fill']) { 8757 background-color: var(--wui-color-fg-100); 8758 border: none; 8759 } 8760 8761 wui-icon { 8762 position: absolute; 8763 width: 12px !important; 8764 height: 4px !important; 8765 } 8766 8767 wui-icon[data-placement='top'] { 8768 bottom: 0px; 8769 left: 50%; 8770 transform: translate(-50%, 95%); 8771 } 8772 8773 wui-icon[data-placement='bottom'] { 8774 top: 0; 8775 left: 50%; 8776 transform: translate(-50%, -95%) rotate(180deg); 8777 } 8778 8779 wui-icon[data-placement='right'] { 8780 top: 50%; 8781 left: 0; 8782 transform: translate(-65%, -50%) rotate(90deg); 8783 } 8784 8785 wui-icon[data-placement='left'] { 8786 top: 50%; 8787 right: 0%; 8788 transform: translate(65%, -50%) rotate(270deg); 8789 } 8790`,nz=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nq=class extends ew{constructor(){super(...arguments),this.placement="top",this.variant="fill",this.message=""}render(){return this.dataset.variant=this.variant,J`<wui-icon 8791 data-placement=${this.placement} 8792 color="fg-100" 8793 size="inherit" 8794 name=${"fill"===this.variant?"cursor":"cursorTransparent"} 8795 ></wui-icon> 8796 <wui-text color="inherit" variant="small-500">${this.message}</wui-text>`}};nq.styles=[eA,eI,nF],nz([eB()],nq.prototype,"placement",void 0),nz([eB()],nq.prototype,"variant",void 0),nz([eB()],nq.prototype,"message",void 0),nq=nz([eP("wui-tooltip")],nq);var nW=h` 8797 :host > wui-flex { 8798 cursor: pointer; 8799 display: flex; 8800 column-gap: var(--wui-spacing-s); 8801 padding: var(--wui-spacing-xs); 8802 padding-right: var(--wui-spacing-l); 8803 width: 100%; 8804 background-color: transparent; 8805 border-radius: var(--wui-border-radius-xs); 8806 color: var(--wui-color-fg-250); 8807 transition: background-color 0.2s linear; 8808 } 8809 8810 :host > wui-flex:hover { 8811 background-color: var(--wui-color-gray-glass-002); 8812 } 8813 8814 :host([disabled]) > wui-flex { 8815 opacity: 0.6; 8816 } 8817 8818 :host([disabled]) > wui-flex:hover { 8819 background-color: transparent; 8820 } 8821 8822 :host > wui-flex > wui-flex { 8823 flex: 1; 8824 } 8825 8826 :host > wui-flex > wui-image { 8827 width: 40px; 8828 height: 40px; 8829 border-radius: var(--wui-border-radius-3xl); 8830 position: relative; 8831 } 8832 8833 :host > wui-flex > wui-image::after { 8834 position: absolute; 8835 content: ''; 8836 inset: 0; 8837 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 8838 border-radius: var(--wui-border-radius-l); 8839 } 8840 8841 button > wui-icon-box[data-variant='square-blue'] { 8842 border-radius: var(--wui-border-radius-3xs); 8843 position: relative; 8844 border: none; 8845 width: 36px; 8846 height: 36px; 8847 } 8848`,nH=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
8848);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nV=class extends ew{constructor(){super(...arguments),this.imageSrc=void 0,this.name=void 0,this.symbol=void 0,this.price=void 0,this.amount=void 0}render(){let e=this.amount&&this.price?ex.C6.multiply(this.price,this.amount)?.toFixed(3):null;return J` 8849 <wui-flex alignItems="center"> 8850 ${this.visualTemplate()} 8851 <wui-flex flexDirection="column" gap="3xs"> 8852 <wui-flex justifyContent="space-between"> 8853 <wui-text variant="paragraph-500" color="fg-100">${this.name}</wui-text> 8854 ${e?J` 8855 <wui-text variant="paragraph-500" color="fg-100"> 8856 $${rI.formatNumberToLocalString(e,3)} 8857 </wui-text> 8858 `:null} 8859 </wui-flex> 8860 <wui-flex justifyContent="space-between"> 8861 <wui-text variant="small-400" color="fg-200">${this.symbol}</wui-text> 8862 ${this.amount?J`<wui-text variant="small-400" color="fg-200"> 8863 ${rI.formatNumberToLocalString(this.amount,4)} 8864 </wui-text>`:null} 8865 </wui-flex> 8866 </wui-flex> 8867 </wui-flex> 8868 `}visualTemplate(){return this.imageSrc?J`<wui-image width="40" height="40" src=${this.imageSrc}></wui-image>`:null}};nV.styles=[eA,eI,nW],nH([eB()],nV.prototype,"imageSrc",void 0),nH([eB()],nV.prototype,"name",void 0),nH([eB()],nV.prototype,"symbol",void 0),nH([eB()],nV.prototype,"price",void 0),nH([eB()],nV.prototype,"amount",void 0),nV=nH([eP("wui-token-list-item")],nV);var nZ=h` 8869 :host { 8870 display: flex; 8871 justify-content: center; 8872 align-items: center; 8873 width: var(--wui-icon-box-size-xl); 8874 height: var(--wui-icon-box-size-xl); 8875 box-shadow: 0 0 0 8px var(--wui-thumbnail-border); 8876 border-radius: var(--local-border-radius); 8877 overflow: hidden; 8878 } 8879 8880 wui-icon { 8881 width: 32px; 8882 height: 32px; 8883 } 8884`,nK=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nG=class extends ew{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"};`,J`${this.templateVisual()}`}templateVisual(){return this.imageSrc?J`<wui-image src=${this.imageSrc} alt=${this.alt??""}></wui-image>`:J`<wui-icon 8885 data-parent-size="md" 8886 size="inherit" 8887 color="inherit" 8888 name="walletPlaceholder" 8889 ></wui-icon>`}};nG.styles=[eA,nZ],nK([eB()],nG.prototype,"imageSrc",void 0),nK([eB()],nG.prototype,"alt",void 0),nK([eB({type:Boolean})],nG.prototype,"borderRadiusFull",void 0),nG=nK([eP("wui-visual-thumbnail")],nG);var nY=h` 8890 :host { 8891 display: block; 8892 } 8893 8894 button { 8895 width: 100%; 8896 display: block; 8897 padding-top: var(--wui-spacing-l); 8898 padding-bottom: var(--wui-spacing-l); 8899 padding-left: var(--wui-spacing-s); 8900 padding-right: var(--wui-spacing-2l); 8901 border-radius: var(--wui-border-radius-s); 8902 background-color: var(--wui-color-accent-glass-015); 8903 } 8904 8905 button:hover { 8906 background-color: var(--wui-color-accent-glass-010) !important; 8907 } 8908 8909 button:active { 8910 background-color: var(--wui-color-accent-glass-020) !important; 8911 } 8912`,nJ=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let nQ=class extends ew{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return J` 8913 <button> 8914 <wui-flex gap="m" alignItems="center" justifyContent="space-between"> 8915 <wui-icon-box 8916 size="lg" 8917 iconcolor="accent-100" 8918 backgroundcolor="accent-100" 8919 icon=${this.icon} 8920 background="transparent" 8921 ></wui-icon-box> 8922 8923 <wui-flex flexDirection="column" gap="3xs"> 8924 <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text> 8925 <wui-text variant="small-400" color="fg-200">${this.description}</wui-text> 8926 </wui-flex> 8927 8928 <wui-icon size="md" color="fg-200" name="chevronRight"></wui-icon> 8929 </wui-flex> 8930 </button> 8931 `}};nQ.styles=[eA,eI,nY],nJ([eB()],nQ.prototype,"label",void 0),nJ([eB()],nQ.prototype,"description",void 0),nJ([eB()],nQ.prototype,"icon",void 0),nQ=nJ([eP("wui-notice-card")],nQ);var nX=h` 8932 button { 8933 height: auto; 8934 position: relative; 8935 flex-direction: column; 8936 gap: var(--wui-spacing-s); 8937 padding: 17px 18px 17px var(--wui-spacing-m); 8938 width: 100%; 8939 background-color: var(--wui-color-gray-glass-002); 8940 border-radius: var(--wui-border-radius-xs); 8941 color: var(--wui-color-fg-250); 8942 } 8943 8944 .overflowedContent { 8945 width: 100%; 8946 overflow: hidden; 8947 } 8948 8949 .overflowedContent[data-active='false']:after { 8950 content: ''; 8951 position: absolute; 8952 top: 50%; 8953 left: 0; 8954 right: 0; 8955 bottom: 0; 8956 background: linear-gradient(to top, var(--wui-color-bg-200), transparent); 8957 border-bottom-left-radius: var(--wui-border-radius-xs); 8958 border-bottom-right-radius: var(--wui-border-radius-xs); 8959 } 8960 8961 .heightContent { 8962 max-height: 100px; 8963 } 8964 8965 pre { 8966 text-align: left; 8967 white-space: pre-wrap; 8968 height: auto; 8969 overflow-x: auto;
8970 overflow-wrap: anywhere; 8971 } 8972`,n0=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let n1=100,n2=class extends ew{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}updated(e){super.updated(e),(e.has("textTitle")||e.has("overflowedContent"))&&setTimeout(()=>{this.checkHeight()},1)}checkHeight(){this.updateComplete.then(()=>{let e=this.shadowRoot?.querySelector(".heightContent"),t=this.shadowRoot?.querySelector(".textContent");if(e&&t){this.scrollElement=e;let r=t?.scrollHeight;r&&r>n1&&(this.enableAccordion=!0,this.scrollHeightElement=r,this.requestUpdate())}})}render(){return J` 8973 <button ontouchstart @click=${()=>this.onClick()}> 8974 <wui-flex justifyContent="space-between" alignItems="center"> 8975 <wui-text variant="paragraph-500" color="fg-100">${this.textTitle}</wui-text> 8976 ${this.chevronTemplate()} 8977 </wui-flex> 8978 <div 8979 data-active=${!this.enableAccordion||!!this.toggled} 8980 class="overflowedContent" 8981 > 8982 <div class="heightContent"> 8983 <wui-text class="textContent" variant="paragraph-400" color="fg-200"> 8984 <pre>${this.overflowedContent}</pre> 8985 </wui-text> 8986 </div> 8987 </div> 8988 </button> 8989 `}onClick(){let e=this.shadowRoot?.querySelector("wui-icon");this.enableAccordion&&(this.toggled=!this.toggled,this.requestUpdate(),this.scrollElement&&this.scrollElement.animate([{maxHeight:this.toggled?`${n1}px`:`${this.scrollHeightElement}px`},{maxHeight:this.toggled?`${this.scrollHeightElement}px`:`${n1}px`}],{duration:300,fill:"forwards",easing:"ease"}),e&&e.animate([{transform:this.toggled?"rotate(0deg)":"rotate(180deg)"},{transform:this.toggled?"rotate(180deg)":"rotate(0deg)"}],{duration:300,fill:"forwards",easing:"ease"}))}chevronTemplate(){return this.enableAccordion?J` <wui-icon color="fg-100" size="sm" name="chevronBottom"></wui-icon>`:null}};n2.styles=[eA,eI,nX],n0([eB()],n2.prototype,"textTitle",void 0),n0([eB()],n2.prototype,"overflowedContent",void 0),n2=n0([eP("wui-list-accordion")],n2);var n3=h` 8990 :host { 8991 display: flex; 8992 column-gap: var(--wui-spacing-s); 8993 padding: 17px 18px 17px var(--wui-spacing-m); 8994 width: 100%; 8995 background-color: var(--wui-color-gray-glass-002); 8996 border-radius: var(--wui-border-radius-xs); 8997 color: var(--wui-color-fg-250); 8998 } 8999 9000 wui-image { 9001 width: var(--wui-icon-size-lg); 9002 height: var(--wui-icon-size-lg); 9003 border-radius: var(--wui-border-radius-3xl); 9004 } 9005 9006 wui-icon { 9007 width: var(--wui-icon-size-lg); 9008 height: var(--wui-icon-size-lg); 9009 } 9010`,n5=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let n4=class extends ew{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return J` 9011 <wui-flex justifyContent="space-between" alignItems="center"> 9012 <wui-text variant="paragraph-500" color=${this.textValue?"fg-200":"fg-100"}> 9013 ${this.textTitle} 9014 </wui-text> 9015 ${this.templateContent()} 9016 </wui-flex> 9017 `}templateContent(){return this.imageSrc?J`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?J` <wui-text variant="paragraph-400" color="fg-100"> ${this.textValue} </wui-text>`:J`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};n4.styles=[eA,eI,n3],n5([eB()],n4.prototype,"imageSrc",void 0),n5([eB()],n4.prototype,"textTitle",void 0),n5([eB()],n4.prototype,"textValue",void 0),n4=n5([eP("wui-l
9017ist-content")],n4);var n6=h` 9018 button { 9019 column-gap: var(--wui-spacing-s); 9020 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 9021 width: 100%; 9022 background-color: var(--wui-color-gray-glass-002); 9023 border-radius: var(--wui-border-radius-xs); 9024 color: var(--wui-color-fg-100); 9025 } 9026 9027 button > wui-text:nth-child(2) { 9028 display: flex; 9029 flex: 1; 9030 } 9031 9032 button[data-transparent='true'] { 9033 pointer-events: none; 9034 background-color: transparent; 9035 } 9036 9037 wui-icon { 9038 color: var(--wui-color-fg-200) !important; 9039 } 9040 9041 button:disabled { 9042 background-color: var(--wui-color-gray-glass-015); 9043 color: var(--wui-color-gray-glass-015); 9044 } 9045 9046 button:disabled > wui-tag { 9047 background-color: var(--wui-color-gray-glass-010); 9048 color: var(--wui-color-fg-300); 9049 } 9050`,n8=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let n7=class extends ew{constructor(){super(...arguments),this.imageSrc="",this.name="",this.disabled=!1,this.transparent=!1}render(){return J` 9051 <button data-transparent=${this.transparent} ?disabled=${this.disabled} ontouchstart> 9052 ${this.templateNetworkImage()} 9053 <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text> 9054 </button> 9055 `}templateNetworkImage(){return this.imageSrc?J`<wui-network-image 9056 size="sm" 9057 imageSrc=${this.imageSrc} 9058 name=${this.name} 9059 ></wui-network-image>`:this.imageSrc?null:J`<wui-network-image size="sm" name=${this.name}></wui-network-image>`}};n7.styles=[eA,eI,n6],n8([eB()],n7.prototype,"imageSrc",void 0),n8([eB()],n7.prototype,"name",void 0),n8([eB({type:Boolean})],n7.prototype,"disabled",void 0),n8([eB({type:Boolean}
9059)],n7.prototype,"transparent",void 0),n7=n8([eP("wui-list-network")],n7);var n9=h` 9060 :host { 9061 display: flex; 9062 flex-direction: column; 9063 gap: var(--wui-spacing-l); 9064 padding: 17px 18px 17px var(--wui-spacing-m); 9065 width: 100%; 9066 background-color: var(--wui-color-gray-glass-002); 9067 border-radius: var(--wui-border-radius-xs); 9068 color: var(--wui-color-fg-250); 9069 } 9070 9071 wui-image { 9072 width: var(--wui-icon-size-lg); 9073 height: var(--wui-icon-size-lg); 9074 border-radius: var(--wui-border-radius-3xl); 9075 } 9076 9077 wui-icon { 9078 width: var(--wui-icon-size-lg); 9079 height: var(--wui-icon-size-lg); 9080 } 9081`,oe=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ot=class extends ew{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress="",this.addressExplorerUrl=""}render(){return J` 9082 <wui-flex justifyContent="space-between" alignItems="center"> 9083 <wui-text variant="paragraph-500" color="fg-200">Sending</wui-text> 9084 <wui-flex gap="xs" alignItems="center"> 9085 <wui-text variant="paragraph-400" color="fg-100"> 9086 ${this.amount} ${this.networkCurreny} 9087 </wui-text> 9088 ${this.templateNetworkVisual()} 9089 </wui-flex> 9090 </wui-flex> 9091 <wui-flex justifyContent="space-between" alignItems="center"> 9092 <wui-text variant="paragraph-500" color="fg-200">To</wui-text> 9093 <wui-chip 9094 icon="externalLink" 9095 variant="shadeSmall" 9096 href=${this.addressExplorerUrl} 9097 title=${this.receiverAddress} 9098 ></wui-chip> 9099 </wui-flex> 9100 `}templateNetworkVisual(){return this.networkImageUrl?J`<wui-image src=${this.networkImageUrl} alt="Network Image"></wui-image>`:J`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};ot.styles=[eA,eI,n9],oe([eB()],ot.prototype,"amount",void 0),oe([eB()],ot.prototype,"networkCurreny",void 0),oe([eB()],ot.prototype,"networkImageUrl",void 0),oe([eB()],ot.prototype,"receiverAddress",void 0),oe([eB()],ot.prototype,"addressExplorerUrl",void 0),ot=oe([eP("wui-l
9100ist-wallet-transaction")],ot);var or=h` 9101 :host { 9102 width: 100%; 9103 } 9104 9105 :host > wui-flex { 9106 width: 100%; 9107 padding: var(--wui-spacing-s); 9108 border-radius: var(--wui-border-radius-xs); 9109 width: 100%; 9110 display: flex; 9111 align-items: center; 9112 justify-content: flex-start; 9113 gap: var(--wui-spacing-s); 9114 } 9115 9116 :host > wui-flex:hover { 9117 background-color: var(--wui-color-gray-glass-002); 9118 } 9119 9120 .purchase-image-container { 9121 display: flex; 9122 justify-content: center; 9123 align-items: center; 9124 position: relative; 9125 width: var(--wui-icon-box-size-lg); 9126 height: var(--wui-icon-box-size-lg); 9127 } 9128 9129 .purchase-image-container wui-image { 9130 width: 100%; 9131 height: 100%; 9132 position: relative; 9133 border-radius: calc(var(--wui-icon-box-size-lg) / 2); 9134 } 9135 9136 .purchase-image-container wui-image::after { 9137 content: ''; 9138 display: block; 9139 width: 100%; 9140 height: 100%; 9141 position: absolute; 9142 inset: 0; 9143 border-radius: calc(var(--wui-icon-box-size-lg) / 2); 9144 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 9145 } 9146 9147 .purchase-image-container wui-icon-box { 9148 position: absolute; 9149 right: 0; 9150 bottom: 0; 9151 transform: translate(20%, 20%); 9152 } 9153`,oi=r(56374),on=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oo=class extends ew{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="Bought",this.purchaseValue="",this.purchaseCurrency="",this.date="",this.completed=!1,this.inProgress=!1,this.failed=!1,this.onClick=null,this.symbol=""}firstUpdated(){this.icon||this.fetchTokenImage()}render(){return J` 9154 <wui-flex> 9155 ${this.imageTemplate()} 9156 <wui-flex flexDirection="column" gap="4xs" flexGrow="1"> 9157 <wui-flex gap="xxs" alignItems="center" justifyContent="flex-start"> 9158 ${this.statusIconTemplate()} 9159 <wui-text variant="paragraph-500" color="fg-100"> ${this.label}</wui-text> 9160 </wui-flex> 9161 <wui-text variant="small-400" color="fg-200"> 9162 + ${this.purchaseValue} ${this.purchaseCurrency} 9163 </wui-text> 9164 </wui-flex> 9165 ${this.inProgress?J`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:J`<wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text>`} 9166 </wui-flex> 9167 `}async fetchTokenImage(){await oi.ApiController._fetchTokenImage(this.purchaseCurrency)}statusIconTemplate(){return this.inProgress?null:this.completed?this.boughtIconTemplate():this.errorIconTemplate()}errorIconTemplate(){return J`<wui-icon-box 9168 size="xxs" 9169 iconColor="error-100" 9170 backgroundColor="error-100" 9171 background="opaque" 9172 icon="close" 9173 borderColor="wui-color-bg-125" 9174 ></wui-icon-box>`}imageTemplate(){let e=this.icon||`https://avatar.vercel.sh/andrew.svg?size=50&text=${this.symbol}`;return J`<wui-flex class="purchase-image-container"> 9175 <wui-image src=${e}></wui-image> 9176 </wui-flex>`}boughtIconTemplate(){return J`<wui-icon-box 9177 size="xxs" 9178 iconColor="success-100" 9179 backgroundColor="success-100" 9180 background="opaque" 9181 icon="arrowBottom" 9182 borderColor="wui-color-bg-125" 9183 ></wui-icon-box>`}};oo.styles=[eA,eI,or],on([eB({type:Boolean})],oo.prototype,"disabled",void 0),on([eB()],oo.prototype,"color",void 0),on([eB()],oo.prototype,"label",void 0),on([eB()],oo.prototype,"purchaseValue",void 0),on([eB()],oo.prototype,"purchaseCurrency",void 0),on([eB()],oo.prototype,"date",void 0),on([eB({type:Boolean})],oo.prototype,"completed",void 0),on([eB({type:Boolean})],oo.prototype,"inProgress",void 0),on([eB({type:Boolean})],oo.prototype,"failed",void 0),on([eB()],oo.prototype,"onClick",void 0),on([eB()],oo.prototype,"symbol",void 0),on([eB()],oo.prototype,"icon",void 0),oo=on([eP("wui-onramp-activity-item")],oo);var os=h` 9184 button { 9185 padding: var(--wui-spacing-s); 9186 border-radius: var(--wui-border-radius-xs); 9187 background-color: var(--wui-color-gray-glass-002); 9188 width: 100%; 9189 display: flex; 9190 align-items: center; 9191 justify-content: flex-start; 9192 gap: var(--wui-spacing-s); 9193 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 9194 will-change: background-color; 9195 } 9196 9197 button:hover { 9198 background-color: var(--wui-color-gray-glass-005); 9199 } 9200 9201 .provider-image { 9202 width: var(--wui-spacing-3xl); 9203 min-width: var(--wui-spacing-3xl); 9204 height: var(--wui-spacing-3xl); 9205 border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2)); 9206 position: relative; 9207 overflow: hidden; 9208 } 9209 9210 .provider-image::after { 9211 content: ''; 9212 display: block; 9213 width: 100%; 9214 height: 100%; 9215 position: absolute; 9216 inset: 0; 9217 border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2)); 9218 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 9219 } 9220 9221 .network-icon { 9222 width: var(--wui-spacing-m); 9223 height: var(--wui-spacing-m); 9224 border-radius: calc(var(--wui-spacing-m) / 2); 9225 overflow: hidden; 9226 box-shadow: 9227 0 0 0 3px var(--wui-color-gray-glass-002), 9228 0 0 0 3px var(--wui-color-modal-bg); 9229 transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-md); 9230 will-change: box-shadow; 9231 } 9232 9233 button:hover .network-icon { 9234 box-shadow: 9235 0 0 0 3px var(--wui-color-gray-glass-005), 9236 0 0 0 3px var(--wui-color-modal-bg); 9237 } 9238`,oa=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
9238);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ol=class extends ew{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="",this.feeRange="",this.loading=!1,this.onClick=null}render(){return J` 9239 <button ?disabled=${this.disabled} ontouchstart> 9240 <wui-visual name=${rA(this.name)} class="provider-image"></wui-visual> 9241 <wui-flex flexDirection="column" gap="4xs"> 9242 <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text> 9243 <wui-flex alignItems="center" justifyContent="flex-start" gap="l"> 9244 <wui-text variant="tiny-500" color="fg-100"> 9245 <wui-text variant="tiny-400" color="fg-200">Fees</wui-text> 9246 ${this.feeRange} 9247 </wui-text> 9248 <wui-flex gap="xxs"> 9249 <wui-icon name="bank" size="xs" color="fg-150"></wui-icon> 9250 <wui-icon name="card" size="xs" color="fg-150"></wui-icon> 9251 </wui-flex> 9252 ${this.networksTemplate()} 9253 </wui-flex> 9254 </wui-flex> 9255 ${this.loading?J`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:J`<wui-icon name="chevronRight" color="fg-200" size="sm"></wui-icon>`} 9256 </button> 9257 `}networksTemplate(){let e=oi.NetworkController.getRequestedCaipNetworks(),t=e?.filter(e=>e?.imageId)?.slice(0,5);return J` 9258 <wui-flex class="networks"> 9259 ${t?.map(e=>J` 9260 <wui-flex class="network-icon"> 9261 <wui-image src=${rA(oi.fz.getNetworkImage(e))}></wui-image> 9262 </wui-flex> 9263 `)} 9264 </wui-flex> 9265 `}};ol.styles=[eA,eI,os],oa([eB({type:Boolean})],ol.prototype,"disabled",void 0),oa([eB()],ol.prototype,"color",void 0),oa([eB()],ol.prototype,"name",void 0),oa([eB()],ol.prototype,"label",void 0),oa([eB()],ol.prototype,"feeRange",void 0),oa([eB({type:Boolean})],ol.prototype,"loading",void 0),oa([eB()],ol.prototype,"onClick",void 0),ol=oa([eP("wui-onramp-provider-item")],ol);var oc=h` 9266 button { 9267 display: flex; 9268 gap: var(--wui-spacing-3xs); 9269 align-items: center; 9270 padding: 6.25px var(--wui-spacing-xs) 7.25px var(--wui-spacing-s); 9271 background-color: var(--wui-color-gray-glass-090); 9272 border-radius: var(--wui-border-radius-3xl); 9273 border: 1px solid var(--wui-color-gray-glass-060); 9274 transition: background-color var(--wui-duration-md) var(--wui-ease-inout-power-1); 9275 will-change: background-color; 9276 } 9277 9278 @media (hover: hover) and (pointer: fine) { 9279 button:hover:enabled { 9280 background-color: var(--wui-color-gray-glass-080); 9281 } 9282 9283 button:active:enabled { 9284 background-color: var(--wui-color-gray-glass-060); 9285 } 9286 } 9287`,ou=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let od=class extends ew{constructor(){super(...arguments),this.text=""}render(){return J`<button ontouchstart> 9288 <wui-text variant="small-600" color="bg-100">${this.text}</wui-text> 9289 <wui-icon color="bg-100" size="xs" name="arrowRight"></wui-icon> 9290 </button>`}};od.styles=[eA,eI,oc],ou([eB()],od.prototype,"text",void 0),od=ou([eP("wui-promo")],od);var oh=h` 9291 span { 9292 font-weight: 500; 9293 font-size: 40px; 9294 color: var(--wui-color-fg-100); 9295 line-height: 130%; /* 52px */ 9296 letter-spacing: -1.6px; 9297 text-align: center; 9298 } 9299 9300 .pennies { 9301 color: var(--wui-color-fg-200); 9302 } 9303`,of=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let op=class extends ew{constructor(){super(...arguments),this.dollars="0",this.pennies="00"}render(){return J`<span>$${this.dollars}<span class="pennies">.${this.pennies}</span></span>`}};op.styles=[eA,oh],of([eB()],op.prototype,"dollars",void 0),of([eB()],op.prototype,"pennies",void 0),op=of([eP("wui-balance")],op);var og=h` 9304 button { 9305 background-color: var(--wui-color-gray-glass-002); 9306 border-radius: var(--wui-border-radius-3xl); 9307 border: 1px solid var(--wui-color-gray-glass-002); 9308 padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs); 9309 position: relative; 9310 } 9311 9312 wui-avatar { 9313 width: 32px; 9314 height: 32px; 9315 box-shadow: 0 0 0 0; 9316 outline: 3px solid var(--wui-color-gray-glass-005); 9317 } 9318 9319 wui-icon-box, 9320 wui-image { 9321 width: 16px; 9322 height: 16px; 9323 border-radius: var(--wui-border-radius-3xl); 9324 position: absolute; 9325 left: 26px; 9326 top: 24px; 9327 } 9328 9329 wui-image { 9330 outline: 2px solid var(--wui-color-bg-125); 9331 } 9332 9333 wui-icon-box { 9334 outline: 2px solid var(--wui-color-bg-200); 9335 background-color: var(--wui-color-bg-250); 9336 } 9337`,om=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
9337);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ow=class extends ew{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="chevronBottom"}render(){return J`<button ontouchstart data-testid="wui-profile-button"> 9338 <wui-flex gap="xs" alignItems="center"> 9339 <wui-avatar 9340 .imageSrc=${this.avatarSrc} 9341 alt=${this.address} 9342 address=${this.address} 9343 ></wui-avatar> 9344 ${this.networkImageTemplate()} 9345 <wui-flex gap="xs" alignItems="center"> 9346 <wui-text variant="large-600" color="fg-100"> 9347 ${rI.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})} 9348 </wui-text> 9349 <wui-icon size="sm" color="fg-200" name=${this.icon}></wui-icon> 9350 </wui-flex> 9351 </wui-flex> 9352 </button>`}networkImageTemplate(){return this.networkSrc?J`<wui-image src=${this.networkSrc}></wui-image>`:J` 9353 <wui-icon-box 9354 size="xxs" 9355 iconColor="fg-200" 9356 backgroundColor="bg-100" 9357 icon="networkPlaceholder" 9358 ></wui-icon-box> 9359 `}};ow.styles=[eA,eI,og],om([eB()],ow.prototype,"networkSrc",void 0),om([eB()],ow.prototype,"avatarSrc",void 0),om([eB()],ow.prototype,"profileName",void 0),om([eB()],ow.prototype,"address",void 0),om([eB()],ow.prototype,"icon",void 0),ow=om([eP("wui-profile-button")],ow);var oy=h` 9360 button { 9361 border: none; 9362 border-radius: var(--wui-border-radius-3xl); 9363 } 9364 9365 button[data-variant='main'] { 9366 background-color: var(--wui-color-accent-100); 9367 color: var(--wui-color-inverse-100); 9368 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 9369 } 9370 9371 button[data-variant='accent'] { 9372 background-color: var(--wui-color-accent-glass-010); 9373 color: var(--wui-color-accent-100); 9374 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005); 9375 } 9376 9377 button[data-variant='gray'] { 9378 background-color: transparent; 9379 color: var(--wui-color-fg-200); 9380 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 9381 } 9382 9383 button[data-variant='shade'] { 9384 background-color: transparent; 9385 color: var(--wui-color-accent-100); 9386 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 9387 } 9388 9389 button[data-size='sm'] { 9390 height: 32px; 9391 padding: 0 var(--wui-spacing-s); 9392 } 9393 9394 button[data-size='md'] { 9395 height: 40px; 9396 padding: 0 var(--wui-spacing-l); 9397 } 9398 9399 button[data-size='sm'] > wui-image { 9400 width: 16px; 9401 height: 16px; 9402 } 9403 9404 button[data-size='md'] > wui-image { 9405 width: 24px; 9406 height: 24px; 9407 } 9408 9409 button[data-size='sm'] > wui-icon { 9410 width: 12px; 9411 height: 12px; 9412 } 9413 9414 button[data-size='md'] > wui-icon { 9415 width: 14px; 9416 height: 14px; 9417 } 9418 9419 wui-image { 9420 border-radius: var(--wui-border-radius-3xl); 9421 overflow: hidden; 9422 } 9423 9424 button.disabled > wui-icon, 9425 button.disabled > wui-image { 9426 filter: grayscale(1); 9427 } 9428 9429 button[data-variant='main'] > wui-image { 9430 box-shadow: inset 0 0 0 1px var(--wui-color-accent-090); 9431 } 9432 9433 button[data-variant='shade'] > wui-image, 9434 button[data-variant='gray'] > wui-image { 9435 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); 9436 } 9437 9438 @media (hover: hover) and (pointer: fine) { 9439 button[data-variant='main']:focus-visible { 9440 background-color: var(--wui-color-accent-090); 9441 } 9442 9443 button[data-variant='shade']:focus-visible, 9444 button[data-variant='gray']:focus-visible, 9445 button[data-variant='shade']:hover, 9446 button[data-variant='gray']:hover { 9447 background-color: var(--wui-color-gray-glass-002); 9448 } 9449 9450 button[data-variant='gray']:active, 9451 button[data-variant='shade']:active { 9452 background-color: var(--wui-color-gray-glass-005); 9453 } 9454 } 9455 9456 button.disabled { 9457 color: var(--wui-color-gray-glass-020); 9458 background-color: var(--wui-color-gray-glass-002); 9459 box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); 9460 pointer-events: none; 9461 } 9462`,ob=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
9462);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let ov=class extends ew{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){let e="sm"===this.size?"small-600":"paragraph-600";return J` 9463 <button 9464 class=${this.disabled?"disabled":""} 9465 data-variant=${this.variant} 9466 data-size=${this.size} 9467 > 9468 ${this.imageSrc?J`<wui-image src=${this.imageSrc}></wui-image>`:null} 9469 <wui-text variant=${e} color="inherit"> ${this.text} </wui-text> 9470 <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon> 9471 </button> 9472 `}};ov.styles=[eA,eI,oy],ob([eB()],ov.prototype,"variant",void 0),ob([eB()],ov.prototype,"imageSrc",void 0),ob([eB({type:Boolean})],ov.prototype,"disabled",void 0),ob([eB()],ov.prototype,"icon",void 0),ob([eB()],ov.prototype,"size",void 0),ob([eB()],ov.prototype,"text",void 0),ov=ob([eP("wui-chip-button")],ov);var o_=h` 9473 button { 9474 display: flex; 9475 gap: var(--wui-spacing-xl); 9476 width: 100%; 9477 background-color: var(--wui-color-gray-glass-002); 9478 border-radius: var(--wui-border-radius-xxs); 9479 padding: var(--wui-spacing-m) var(--wui-spacing-s); 9480 } 9481 9482 wui-text { 9483 width: 100%; 9484 } 9485 9486 wui-flex { 9487 width: auto; 9488 } 9489 9490 .network-icon { 9491 width: var(--wui-spacing-2l); 9492 height: var(--wui-spacing-2l); 9493 border-radius: calc(var(--wui-spacing-2l) / 2); 9494 overflow: hidden; 9495 box-shadow: 9496 0 0 0 3px var(--wui-color-gray-glass-002), 9497 0 0 0 3px var(--wui-color-modal-bg); 9498 } 9499`,ox=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oE=class extends ew{constructor(){super(...arguments),this.networkImages=[""],this.text=""}render(){return J` 9500 <button ontouchstart> 9501 <wui-text variant="small-400" color="fg-200">${this.text}</wui-text> 9502 <wui-flex gap="3xs" alignItems="center"> 9503 ${this.networksTemplate()} 9504 <wui-icon name="chevronRight" size="sm" color="fg-200"></wui-icon> 9505 </wui-flex> 9506 </button> 9507 `}networksTemplate(){let e=this.networkImages.slice(0,5);return J` <wui-flex class="networks"> 9508 ${e?.map(e=>J` <wui-flex class="network-icon"> <wui-image src=${e}></wui-image> </wui-flex>`)} 9509 </wui-flex>`}};oE.styles=[eA,eI,o_],ox([eB({type:Array})],oE.prototype,"networkImages",void 0),ox([eB()],oE.prototype,"text",void 0),oE=ox([eP("wui-compatible-network")],oE);var oC=h` 9510 wui-flex { 9511 width: 100%; 9512 background-color: var(--wui-color-gray-glass-005); 9513 border-radius: var(--wui-border-radius-s); 9514 padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs) 9515 var(--wui-spacing-1xs); 9516 } 9517`,ok=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oS=class extends ew{constructor(){super(...arguments),this.icon="externalLink",this.text=""}render(){return J` 9518 <wui-flex gap="1xs" alignItems="center"> 9519 <wui-icon-box 9520 size="sm" 9521 iconcolor="fg-200" 9522 backgroundcolor="fg-200" 9523 icon=${this.icon} 9524 background="transparent" 9525 ></wui-icon-box> 9526 <wui-text variant="small-400" color="fg-200">${this.text}</wui-text> 9527 </wui-flex> 9528 `}};oS.styles=[eA,eI,oC],ok([eB()],oS.prototype,"icon",void 0),ok([eB()],oS.prototype,"text",void 0),oS=ok([eP("wui-banner")],oS);var oA=h` 9529 button { 9530 padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs); 9531 display: flex; 9532 justify-content: space-between; 9533 width: 100%; 9534 border-radius: var(--wui-border-radius-xs); 9535 background-color: var(--wui-color-gray-glass-002); 9536 } 9537 9538 button[data-clickable='false'] { 9539 pointer-events: none; 9540 background-color: transparent; 9541 } 9542 9543 wui-image, 9544 wui-icon { 9545 width: var(--wui-spacing-3xl); 9546 height: var(--wui-spacing-3xl); 9547 } 9548 9549 wui-image { 9550 border-radius: var(--wui-border-radius-3xl); 9551 } 9552`,oI=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
9552);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oT=class extends ew{constructor(){super(...arguments),this.tokenName="",this.tokenImageUrl="",this.tokenValue=0,this.tokenAmount="0.0",this.tokenCurrency="",this.clickable=!1}render(){return J` 9553 <button data-clickable=${String(this.clickable)} ontouchstart> 9554 <wui-flex gap="s" alignItems="center"> 9555 ${this.visualTemplate()} 9556 <wui-flex flexDirection="column" justifyContent="spaceBetween"> 9557 <wui-text variant="paragraph-500" color="fg-100">${this.tokenName}</wui-text> 9558 <wui-text variant="small-400" color="fg-200"> 9559 ${rI.formatNumberToLocalString(this.tokenAmount,4)} ${this.tokenCurrency} 9560 </wui-text> 9561 </wui-flex> 9562 </wui-flex> 9563 <wui-text variant="paragraph-500" color="fg-100">$${this.tokenValue.toFixed(2)}</wui-text> 9564 </button> 9565 `}visualTemplate(){return this.tokenName&&this.tokenImageUrl?J`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>`:J`<wui-icon name="coinPlaceholder" color="fg-100"></wui-icon>`}};oT.styles=[eA,eI,oA],oI([eB()],oT.prototype,"tokenName",void 0),oI([eB()],oT.prototype,"tokenImageUrl",void 0),oI([eB({type:Number})],oT.prototype,"tokenValue",void 0),oI([eB()],oT.prototype,"tokenAmount",void 0),oI([eB()],oT.prototype,"tokenCurrency",void 0),oI([eB({type:Boolean})],oT.prototype,"clickable",void 0),oT=oI([eP("wui-list-token")],oT);var oR=h` 9566 button { 9567 width: 100%; 9568 display: flex; 9569 gap: var(--wui-spacing-s); 9570 align-items: center; 9571 justify-content: flex-start; 9572 padding: var(--wui-spacing-s) var(--wui-spacing-m) var(--wui-spacing-s) var(--wui-spacing-s); 9573 background-color: var(--wui-color-gray-glass-002); 9574 border-radius: var(--wui-border-radius-xs); 9575 } 9576 9577 wui-icon-box { 9578 width: var(--wui-spacing-2xl); 9579 height: var(--wui-spacing-2xl); 9580 } 9581 9582 wui-flex { 9583 width: auto; 9584 } 9585`,oO=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oP=class extends ew{constructor(){super(...arguments),this.icon="card",this.text="",this.description="",this.tag=void 0,this.iconBackgroundColor="accent-100",this.iconColor="accent-100",this.disabled=!1}render(){return J` 9586 <button ontouchstart ?disabled=${this.disabled}> 9587 <wui-icon-box 9588 iconColor=${this.iconColor} 9589 backgroundColor=${this.iconBackgroundColor} 9590 size="inherit" 9591 icon=${this.icon} 9592 iconSize="md" 9593 ></wui-icon-box> 9594 <wui-flex flexDirection="column" justifyContent="spaceBetween"> 9595 ${this.titleTemplate()} 9596 <wui-text variant="small-400" color="fg-200"> ${this.description}</wui-text></wui-flex 9597 > 9598 </button> 9599 `}titleTemplate(){return this.tag?J` <wui-flex alignItems="center" gap="xxs" 9600 ><wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text 9601 ><wui-tag tagType="main" size="md">${this.tag}</wui-tag> 9602 </wui-flex>`:J`<wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text>`}};oP.styles=[eA,eI,oR],oO([eB()],oP.prototype,"icon",void 0),oO([eB()],oP.prototype,"text",void 0),oO([eB()],oP.prototype,"description",void 0),oO([eB()],oP.prototype,"tag",void 0),oO([eB()],oP.prototype,"iconBackgroundColor",void 0),oO([eB()],oP.prototype,"iconColor",void 0),oO([eB({type:Boolean})],oP.prototype,"disabled",void 0),oP=oO([eP("wui-list-description")],oP);var oN=h` 9603 :host { 9604 position: relative; 9605 display: inline-block; 9606 } 9607 9608 input { 9609 background: transparent; 9610 width: 100%; 9611 height: auto; 9612 font-family: var(--wui-font-family); 9613 color: var(--wui-color-fg-100); 9614 9615 font-feature-settings: 'case' on; 9616 font-size: 32px; 9617 font-weight: var(--wui-font-weight-light); 9618 caret-color: var(--wui-color-accent-100); 9619 line-height: 130%; 9620 letter-spacing: -1.28px; 9621 box-sizing: border-box; 9622 -webkit-appearance: none; 9623 -moz-appearance: textfield; 9624 padding: 0px; 9625 } 9626 9627 input::-webkit-outer-spin-button, 9628 input::-webkit-inner-spin-button { 9629 -webkit-appearance: none; 9630 margin: 0; 9631 } 9632 9633 input::placeholder { 9634 color: var(--wui-color-fg-275); 9635 } 9636`;let oM=/[.*+?^${}()|[\]\\]/gu,oD=/[0-9,.]/u;var oL=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i
9636);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oj=class extends ew{constructor(){super(...arguments),this.inputElementRef=iI(),this.disabled=!1,this.value="",this.placeholder="0"}render(){return this.inputElementRef?.value&&this.value&&(this.inputElementRef.value.value=this.value),J`<input 9637 ${iO(this.inputElementRef)} 9638 type="text" 9639 inputmode="decimal" 9640 pattern="[0-9,.]*" 9641 placeholder=${this.placeholder} 9642 ?disabled=${this.disabled} 9643 autofocus 9644 value=${this.value??""} 9645 @input=${this.dispatchInputChangeEvent.bind(this)} 9646 /> `}dispatchInputChangeEvent(e){let t=e.data;if(t&&this.inputElementRef?.value){if(","===t){let e=this.inputElementRef.value.value.replace(",",".");this.inputElementRef.value.value=e,this.value=`${this.value}${e}`}else oD.test(t)||(this.inputElementRef.value.value=this.value.replace(RegExp(t.replace(oM,"\\$&"),"gu"),""))}this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};oj.styles=[eA,eI,oN],oL([eB({type:Boolean})],oj.prototype,"disabled",void 0),oL([eB({type:String})],oj.prototype,"value",void 0),oL([eB({type:String})],oj.prototype,"placeholder",void 0),oj=oL([eP("wui-input-amount")],oj);var oB=h` 9647 :host { 9648 display: flex; 9649 gap: var(--wui-spacing-xs); 9650 border-radius: var(--wui-border-radius-3xl); 9651 border: 1px solid var(--wui-color-gray-glass-002); 9652 background: var(--wui-color-gray-glass-002); 9653 padding: var(--wui-spacing-2xs) var(--wui-spacing-xs) var(--wui-spacing-2xs) 9654 var(--wui-spacing-s); 9655 align-items: center; 9656 } 9657 9658 wui-avatar, 9659 wui-icon, 9660 wui-image { 9661 width: 32px; 9662 height: 32px; 9663 border: 1px solid var(--wui-color-gray-glass-002); 9664 border-radius: var(--wui-border-radius-3xl); 9665 box-shadow: 0 0 0 2px var(--wui-color-gray-glass-002); 9666 } 9667`,o$=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oU=class extends ew{constructor(){super(...arguments),this.text="",this.address="",this.isAddress=!1}render(){return J`<wui-text variant="large-500" color="fg-100">${this.text}</wui-text> 9668 ${this.imageTemplate()}`}imageTemplate(){return this.isAddress?J`<wui-avatar address=${this.address} .imageSrc=${this.imageSrc}></wui-avatar>`:this.imageSrc?J`<wui-image src=${this.imageSrc}></wui-image>`:J`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};oU.styles=[eA,eI,oB],o$([eB()],oU.prototype,"text",void 0),o$([eB()],oU.prototype,"address",void 0),o$([eB()],oU.prototype,"imageSrc",void 0),o$([eB({type:Boolean})],oU.prototype,"isAddress",void 0),oU=o$([eP("wui-preview-item")],oU);var oF=h` 9669 :host { 9670 position: relative; 9671 } 9672 9673 button { 9674 display: flex; 9675 justify-content: center; 9676 align-items: center; 9677 height: 48px; 9678 width: 100%; 9679 background-color: var(--wui-color-accent-glass-010); 9680 border-radius: var(--wui-border-radius-xs); 9681 border: 1px solid var(--wui-color-accent-glass-010); 9682 transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md); 9683 will-change: background-color; 9684 } 9685 9686 wui-tooltip { 9687 padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s); 9688 position: absolute; 9689 top: -8px; 9690 left: 50%; 9691 transform: translate(-50%, -100%); 9692 opacity: 0; 9693 display: none; 9694 } 9695 9696 @media (hover: hover) and (pointer: fine) { 9697 button:hover:enabled { 9698 background-color: var(--wui-color-accent-glass-015); 9699 } 9700 9701 button:active:enabled { 9702 background-color: var(--wui-color-accent-glass-020); 9703 } 9704 } 9705`,oz=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oq=class extends ew{constructor(){super(...arguments),this.text="",this.icon="card"}render(){return J`<button> 9706 <wui-icon color="accent-100" name=${this.icon} size="lg"></wui-icon> 9707 </button>`}}
9707;oq.styles=[eA,eI,oF],oz([eB()],oq.prototype,"text",void 0),oz([eB()],oq.prototype,"icon",void 0),oq=oz([eP("wui-icon-button")],oq);var oW=h` 9708 button { 9709 column-gap: var(--wui-spacing-s); 9710 padding: 16.5px var(--wui-spacing-l) 16.5px var(--wui-spacing-xs); 9711 width: 100%; 9712 background-color: var(--wui-color-gray-glass-002); 9713 border-radius: var(--wui-border-radius-xs); 9714 color: var(--wui-color-fg-100); 9715 justify-content: center; 9716 align-items: center; 9717 } 9718 9719 button:disabled { 9720 background-color: var(--wui-color-gray-glass-015); 9721 color: var(--wui-color-gray-glass-015); 9722 } 9723`,oH=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oV=class extends ew{constructor(){super(...arguments),this.text="",this.disabled=!1}render(){return J` 9724 <button ?disabled=${this.disabled} ontouchstart> 9725 <wui-text align="center" variant="paragraph-500" color="inherit">${this.text}</wui-text> 9726 </button> 9727 `}};oV.styles=[eA,eI,oW],oH([eB()],oV.prototype,"text",void 0),oH([eB({type:Boolean})],oV.prototype,"disabled",void 0),oV=oH([eP("wui-list-button")],oV);var oZ=h` 9728 button { 9729 column-gap: var(--wui-spacing-s); 9730 padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs); 9731 width: 100%; 9732 justify-content: flex-start; 9733 background-color: var(--wui-color-gray-glass-002); 9734 border-radius: var(--wui-border-radius-xs); 9735 color: var(--wui-color-fg-100); 9736 } 9737 9738 wui-text { 9739 text-transform: capitalize; 9740 } 9741 9742 wui-text[data-align='left'] { 9743 display: flex; 9744 flex: 1; 9745 } 9746 9747 wui-text[data-align='center'] { 9748 display: flex; 9749 flex: 1; 9750 justify-content: center; 9751 } 9752 9753 .invisible { 9754 opacity: 0; 9755 pointer-events: none; 9756 } 9757 9758 button:disabled { 9759 background-color: var(--wui-color-gray-glass-015); 9760 color: var(--wui-color-gray-glass-015); 9761 } 9762`,oK=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oG=class extends ew{constructor(){super(...arguments),this.logo="google",this.name="Continue with google",this.align="left",this.disabled=!1}render(){return J` 9763 <button ?disabled=${this.disabled} ontouchstart> 9764 <wui-logo logo=${this.logo}></wui-logo> 9765 <wui-text 9766 data-align=${this.align} 9767 variant="paragraph-500" 9768 color="inherit" 9769 align=${this.align} 9770 >${this.name}</wui-text 9771 > 9772 ${this.templatePlacement()} 9773 </button> 9774 `}templatePlacement(){return"center"===this.align?J` <wui-logo class="invisible" logo=${this.logo}></wui-logo>`:null}};oG.styles=[eA,eI,oZ],oK([eB()],oG.prototype,"logo",void 0),oK([eB()],oG.prototype,"name",void 0),oK([eB()],oG.prototype,"align",void 0),oK([eB({type:Boolean})],oG.prototype,"disabled",void 0),oG=oK([eP("wui-list-social")],oG);var oY=h` 9775 :host { 9776 display: grid; 9777 width: inherit; 9778 height: inherit; 9779 } 9780`,oJ=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let oQ=class extends ew{render(){return this.style.cssText=` 9781 grid-template-rows: ${this.gridTemplateRows}; 9782 grid-template-columns: ${this.gridTemplateColumns}; 9783 justify-items: ${this.justifyItems}; 9784 align-items: ${this.alignItems}; 9785 justify-content: ${this.justifyContent}; 9786 align-content: ${this.alignContent}; 9787 column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`}; 9788 row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`}; 9789 gap: ${this.gap&&`var(--wui-spacing-${this.gap})`}; 9790 padding-top: ${this.padding&&rI.getSpacingStyles(this.padding,0)}; 9791 padding-right: ${this.padding&&rI.getSpacingStyles(this.padding,1)}; 9792 padding-bottom: ${this.padding&&rI.getSpacingStyles(this.padding,2)}; 9793 padding-left: ${this.padding&&rI.getSpacingStyles(this.padding,3)}; 9794 margin-top: ${this.margin&&rI.getSpacingStyles(this.margin,
97940)}; 9795 margin-right: ${this.margin&&rI.getSpacingStyles(this.margin,1)}; 9796 margin-bottom: ${this.margin&&rI.getSpacingStyles(this.margin,2)}; 9797 margin-left: ${this.margin&&rI.getSpacingStyles(this.margin,3)}; 9798 `,J`<slot></slot>`}};oQ.styles=[eA,oY],oJ([eB()],oQ.prototype,"gridTemplateRows",void 0),oJ([eB()],oQ.prototype,"gridTemplateColumns",void 0),oJ([eB()],oQ.prototype,"justifyItems",void 0),oJ([eB()],oQ.prototype,"alignItems",void 0),oJ([eB()],oQ.prototype,"justifyContent",void 0),oJ([eB()],oQ.prototype,"alignContent",void 0),oJ([eB()],oQ.prototype,"columnGap",void 0),oJ([eB()],oQ.prototype,"rowGap",void 0),oJ([eB()],oQ.prototype,"gap",void 0),oJ([eB()],oQ.prototype,"padding",void 0),oJ([eB()],oQ.prototype,"margin",void 0),oQ=oJ([eP("wui-grid")],oQ);var oX=h` 9799 :host { 9800 position: relative; 9801 display: flex; 9802 width: 100%; 9803 height: 1px; 9804 background-color: var(--wui-color-gray-glass-005); 9805 justify-content: center; 9806 align-items: center; 9807 } 9808 9809 :host > wui-text { 9810 position: absolute; 9811 padding: 0px 10px; 9812 background-color: var(--wui-color-modal-bg); 9813 } 9814`,o0=function(e,t,r,i){var n,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,r,s):n(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};let o1=class extends ew{constructor(){super(...arguments),this.text=""}render(){return J`${this.template()}`}template(){return this.text?J`<wui-text variant="small-500" color="fg-200">${this.text}</wui-text>`:null}};o1.styles=[eA,oX],o0([eB()],o1.prototype,"text",void 0),o1=o0([eP("wui-separator")],o1);let o2={interpolate(e,t,r){if(2!==e.length||2!==t.length)throw Error("inputRange and outputRange must be an array of length 2");let i=e[0]||0,n=e[1]||0,o=t[0]||0,s=t[1]||0;return r<i?o:r>n?s:(s-o)/(n-i)*(r-i)+o}},o3=3,o5=["receive","deposit","borrow","claim"],o4=["withdraw","repay","burn"],o6={getMonthName(e){let t=new Date;return t.setMonth(e),t.toLocaleString("en-US",{month:"long"})},getTransactionGroupTitle(e,t){let r=ex.Em.getYear(),i=this.getMonthName(t);return e===r?i:`${i} ${e}`},getTransactionImages(e){let[t,r]=e,i=!!t&&e?.every(e=>!!e.nft_info),n=e?.length>1;return e?.length!==2||i?n?e.map(e=>this.getTransactionImage(e)):[this.getTransactionImage(t)]:[this.getTransactionImage(t),this.getTransactionImage(r)]},getTransactionImage:e=>({type:o6.getTransactionTransferTokenType(e),url:o6.getTransactionImageURL(e)}),getTransactionImageURL(e){let t;let r=!!e?.nft_info,i=!!e?.fungible_info;return e&&r?t=e?.nft_info?.content?.preview?.url:e&&i&&(t=e?.fungible_info?.icon?.url),t},getTransactionTransferTokenType:e=>e?.fungible_info?"FUNGIBLE":e?.nft_info?"NFT":void 0,getTransactionDescriptions(e){let t=e?.metadata?.operationType,r=e?.transfers,i=e?.transfers?.length>0,n=e?.transfers?.length>1,o=i&&r?.every(e=>!!e?.fungible_info),[s,a]=r,l=this.getTransferDescription(s),c=this.getTransferDescription(a);if(!i)return("send"===t||"receive"===t)&&o?[l=rI.getTruncateString({string:e?.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),c=rI.getTruncateString({string:e?.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"})]:[e.metadata.status];if(n)return r.map(e=>this.getTransferDescription(e));let u="";return o5.includes(t)?u="+":o4.includes(t)&&(u="-"),[l=u.concat(l)]},getTransferDescription(e){let t="";return e&&(e?.nft_info?t=e?.nft_info?.name||"-":e?.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){return e?[this.getQuantityFixedValue(e?.quantity.numeric),e?.fungible_info?.symbol].join(" ").trim():null},getQuantityFixedValue:e=>e?parseFloat(e).toFixed(o3):null}},14306:function(e,t,r){"use strict";let i;r.d(t,{$D:function(){return rp},y_:function(){return o}}),r(64285),r(25566).env.NEXT_PUBLIC_SECURE_SITE_SDK_URL;let n={APP_EVENT_KEY:"@w3m-app/",FRAME_EVENT_KEY:"@w3m-frame/",RPC_METHOD_KEY:"RPC_",STORAGE_KEY:"@w3m-storage/",SESSION_TOKEN_KEY:"SESSION_TOKEN_KEY",EMAIL_LOGIN_USED_KEY:"EMAIL_LOGIN_USED_KEY",LAST_USED_CHAIN_KEY:"LAST_USED_CHAIN_KEY",LAST_EMAIL_LOGIN_TIME:"LAST_EMAIL_LOGIN_TIME",EMAIL:"EMAIL",PREFERRED_ACCOUNT_TYPE:"PREFERRED_ACCOUNT_TYPE",SMART_ACCOUNT_ENABLED:"SMART_ACCOUNT_ENABLED",SMART_ACCOUNT_ENABLED_NETWORKS:"SMART_ACCOUNT_ENABLED_NETWORKS",SO
9814CIAL_USERNAME:"SOCIAL_USERNAME",SOCIAL:"@w3m/connected_social",APP_SWITCH_NETWORK:"@w3m-app/SWITCH_NETWORK",APP_CONNECT_EMAIL:"@w3m-app/CONNECT_EMAIL",APP_CONNECT_DEVICE:"@w3m-app/CONNECT_DEVICE",APP_CONNECT_OTP:"@w3m-app/CONNECT_OTP",APP_CONNECT_SOCIAL:"@w3m-app/CONNECT_SOCIAL",APP_GET_SOCIAL_REDIRECT_URI:"@w3m-app/GET_SOCIAL_REDIRECT_URI",APP_GET_USER:"@w3m-app/GET_USER",APP_SIGN_OUT:"@w3m-app/SIGN_OUT",APP_IS_CONNECTED:"@w3m-app/IS_CONNECTED",APP_GET_CHAIN_ID:"@w3m-app/GET_CHAIN_ID",APP_RPC_REQUEST:"@w3m-app/RPC_REQUEST",APP_UPDATE_EMAIL:"@w3m-app/UPDATE_EMAIL",APP_UPDATE_EMAIL_PRIMARY_OTP:"@w3m-app/UPDATE_EMAIL_PRIMARY_OTP",APP_UPDATE_EMAIL_SECONDARY_OTP:"@w3m-app/UPDATE_EMAIL_SECONDARY_OTP",APP_AWAIT_UPDATE_EMAIL:"@w3m-app/AWAIT_UPDATE_EMAIL",APP_SYNC_THEME:"@w3m-app/SYNC_THEME",APP_SYNC_DAPP_DATA:"@w3m-app/SYNC_DAPP_DATA",APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS:"@w3m-app/GET_SMART_ACCOUNT_ENABLED_NETWORKS",APP_INIT_SMART_ACCOUNT:"@w3m-app/INIT_SMART_ACCOUNT",APP_SET_PREFERRED_ACCOUNT:"@w3m-app/SET_PREFERRED_ACCOUNT",FRAME_SWITCH_NETWORK_ERROR:"@w3m-frame/SWITCH_NETWORK_ERROR",FRAME_SWITCH_NETWORK_SUCCESS:"@w3m-frame/SWITCH_NETWORK_SUCCESS",FRAME_CONNECT_EMAIL_ERROR:"@w3m-frame/CONNECT_EMAIL_ERROR",FRAME_CONNECT_EMAIL_SUCCESS:"@w3m-frame/CONNECT_EMAIL_SUCCESS",FRAME_CONNECT_DEVICE_ERROR:"@w3m-frame/CONNECT_DEVICE_ERROR",FRAME_CONNECT_DEVICE_SUCCESS:"@w3m-frame/CONNECT_DEVICE_SUCCESS",FRAME_CONNECT_OTP_SUCCESS:"@w3m-frame/CONNECT_OTP_SUCCESS",FRAME_CONNECT_OTP_ERROR:"@w3m-frame/CONNECT_OTP_ERROR",FRAME_CONNECT_SOCIAL_SUCCESS:"@w3m-frame/CONNECT_SOCIAL_SUCCESS",FRAME_CONNECT_SOCIAL_ERROR:"@w3m-frame/CONNECT_SOCIAL_ERROR",FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_SUCCESS",FRAME_GET_SOCIAL_REDIRECT_URI_ERROR:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_ERROR",FRAME_GET_USER_SUCCESS:"@w3m-frame/GET_USER_SUCCESS",FRAME_GET_USER_ERROR:"@w3m-frame/GET_USER_ERROR",FRAME_SIGN_OUT_SUCCESS:"@w3m-frame/SIGN_OUT_SUCCESS",FRAME_SIGN_OUT_ERROR:"@w3m-frame/SIGN_OUT_ERROR",FRAME_IS_CONNECTED_SUCCESS:"@w3m-frame/IS_CONNECTED_SUCCESS",FRAME_IS_CONNECTED_ERROR:"@w3m-frame/IS_CONNECTED_ERROR",FRAME_GET_CHAIN_ID_SUCCESS:"@w3m-frame/GET_CHAIN_ID_SUCCESS",FRAME_GET_CHAIN_ID_ERROR:"@w3m-frame/GET_CHAIN_ID_ERROR",FRAME_RPC_REQUEST_SUCCESS:"@w3m-frame/RPC_REQUEST_SUCCESS",FRAME_RPC_REQUEST_ERROR:"@w3m-frame/RPC_REQUEST_ERROR",FRAME_SESSION_UPDATE:"@w3m-frame/SESSION_UPDATE",FRAME_UPDATE_EMAIL_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SUCCESS",FRAME_UPDATE_EMAIL_ERROR:"@w3m-frame/UPDATE_EMAIL_ERROR",FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_ERROR",FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_ERROR",FRAME_SYNC_THEME_SUCCESS:"@w3m-frame/SYNC_THEME_SUCCESS",FRAME_SYNC_THEME_ERROR:"@w3m-frame/SYNC_THEME_ERROR",FRAME_SYNC_DAPP_DATA_SUCCESS:"@w3m-frame/SYNC_DAPP_DATA_SUCCESS",FRAME_SYNC_DAPP_DATA_ERROR:"@w3m-frame/SYNC_DAPP_DATA_ERROR",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR",FRAME_INIT_SMART_ACCOUNT_SUCCESS:"@w3m-frame/INIT_SMART_ACCOUNT_SUCCESS",FRAME_INIT_SMART_ACCOUNT_ERROR:"@w3m-frame/INIT_SMART_ACCOUNT_ERROR",FRAME_SET_PREFERRED_ACCOUNT_SUCCESS:"@w3m-frame/SET_PREFERRED_ACCOUNT_SUCCESS",FRAME_SET_PREFERRED_ACCOUNT_ERROR:"@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR",RPC_RESPONSE_TYPE_ERROR:"RPC_RESPONSE_ERROR",RPC_RESPONSE_TYPE_TX:"RPC_RESPONSE_TRANSACTION_HASH",RPC_RESPONSE_TYPE_OBJECT:"RPC_RESPONSE_OBJECT"}
9814,o={SAFE_RPC_METHODS:["eth_accounts","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getAccount","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockReceipts","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_maxPriorityFeePerGas","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter"],NOT_SAFE_RPC_METHODS:["personal_sign","eth_signTypedData_v4","eth_sendTransaction"],GET_CHAIN_ID:"eth_chainId",RPC_METHOD_NOT_ALLOWED_MESSAGE:"Requested RPC call is not allowed",RPC_METHOD_NOT_ALLOWED_UI_MESSAGE:"Action not allowed",ACCOUNT_TYPES:{EOA:"eoa",SMART_ACCOUNT:"smartAccount"}};!function(e){function t(e){}function r(e){throw Error()}function i(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)}e.assertEqual=e=>e,e.assertIs=t,e.assertNever=r,e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),i={};for(let e of r)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=i,e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(to||(to={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(ts||(ts={}));let s=to.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":if(Array.isArray(e))return s.array;if(null===e)return s.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return s.promise;if("undefined"!=typeof Map&&e instanceof Map)return s.map;if("undefined"!=typeof Set&&e instanceof Set)return s.set;if("undefined"!=typeof Date&&e instanceof Date)return s.date;return s.object;default:return s.unknown}}
vendor: 4,167 bytes, line 9814
9814,l=to.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),c=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class u extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},i=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(i);else if("invalid_return_type"===n.code)i(n.returnTypeError);else if("invalid_arguments"===n.code)i(n.argumentsError);else if(0===n.path.length)r._errors.push(t(n));else{let e=r,i=0;for(;i<n.path.length;){let r=n.path[i];i===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,to.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let i of this.issues)i.path.length>0?(t[i.path[0]]=t[i.path[0]]||[],t[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}u.create=e=>new u(e);let d=(e,t)=>{let r;switch(e.code){case l.invalid_type:r=e.received===s.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case l.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,to.jsonStringifyReplacer)}`;break;case l.unrecognized_keys:r=`Unrecognized key(s) in object: ${to.joinValues(e.keys,", ")}`;break;case l.invalid_union:r="Invalid input";break;case l.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${to.joinValues(e.options)}`;break;case l.invalid_enum_value:r=`Invalid enum value. Expected ${to.joinValues(e.options)}, received '${e.received}'`;break;case l.invalid_arguments:r="Invalid function arguments";break;case l.invalid_return_type:r="Invalid function return type";break;case l.invalid_date:r="Invalid date";break;case l.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:to.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case l.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case l.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case l.custom:r="Invalid input";break;
9814case l.invalid_intersection_types:r="Intersection results could not be merged";break;case l.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case l.not_finite:r="Number must be finite";break;default:r=t.defaultError,to.assertNever(e)}return{message:r}},h=d;function f(e){h=e}function p(){return h}let g=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,o=[...r,...n.path||[]],s={...n,path:o},a="";for(let e of i.filter(e=>!!e).slice().reverse())a=e(s,{data:t,defaultError:a}).message;return{...n,path:o,message:n.message||a}},m=[];function w(e,t){let r=g({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,p(),d].filter(e=>!!e)});e.common.issues.push(r)}class y{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let i of t){if("aborted"===i.status)return b;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return y.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let i of t){let{key:t,value:n}=i;if("aborted"===t.status||"aborted"===n.status)return b;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||i.alwaysSet)&&(r[t.value]=n.value)}return{status:e.value,value:r}}}let b=Object.freeze({status:"aborted"}),v=e=>({status:"dirty",value:e}),_=e=>({status:"valid",value:e}),x=e=>"aborted"===e.status,E=e=>"dirty"===e.status,C=e=>"valid"===e.status,k=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(ta||(ta={}));
9814class S{constructor(e,t,r,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let A=(e,t)=>{if(C(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new u(e.common.issues);return this._error=t,this._error}}};function I(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=i?i:t.defaultError}:{message:null!=r?r:t.defaultError},description:n}}class T{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new y,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(k(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let i={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},n=this._parseSync({data:e,path:i.path,parent:i});return A(i,n)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parse({data:e,path:r.path,parent:r});return A(r,await (k(i)?i:Promise.resolve(i)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,i)=>{let n=e(t),o=()=>i.addIssue({code:l.custom,...r(t)});return"undefined"!=typeof Promise&&n instanceof Promise?n.then(e=>!!e||(o(),!1)):!!n||(o(),!1)})}refinement(e,t){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof t?t(r,i):t),!1))}_refinement(e){return new ey({schema:this,typeName:tl.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eb.create(this,this._def)}nullable(){return ev.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return X.create(this,this._def)}promise(){return ew.create(this,this._def)}or(e){return er.create([this,e],this._def)}and(e){return es.create(this,e,this._def)}transform(e){return new ey({...I(this._def),schema:this,typeName:tl.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t="function"==typeof e?e:()=>e;return new e_({...I(this._def),innerType:this,defaultValue:t,typeName:tl.ZodDefault})}brand(){return new ek({typeName:tl.ZodBranded,type:this,...I(this._def)})}catch(e){let t="function"==typeof e?e:()=>e;return new ex({...I(this._def),innerType:this,catchValue:t,typeName:tl.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eS.create(this,e)}readonly(){return eA.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let R=/^c[^\s-]{8,}
9814$/i,O=/^[a-z][a-z0-9]*$/,P=/^[0-9A-HJKMNP-TV-Z]{26}$/,N=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,M=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,D="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",L=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,j=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,B=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function $(e,t){return!!(("v4"===t||!t)&&L.test(e)||("v6"===t||!t)&&j.test(e))}class U extends T{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.string){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.string,received:t.parsedType}),b}let r=new y;for(let n of this._def.checks)if("min"===n.kind)e.data.length<n.value&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if("max"===n.kind)e.data.length>n.value&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if("length"===n.kind){let i=e.data.length>n.value,o=e.data.length<n.value;(i||o)&&(t=this._getOrReturnCtx(e,t),i?w(t,{code:l.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&w(t,{code:l.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if("email"===n.kind)M.test(e.data)||(w(t=this._getOrReturnCtx(e,t),{validation:"email",code:l.invalid_string,message:n.message}),r.dirty());else if("emoji"===n.kind)i||(i=RegExp(D,"u")),i.test(e.data)||(w(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:l.invalid_string,message:n.message}),r.dirty());else if("uuid"===n.kind)N.test(e.data)||(w(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:l.invalid_string,message:n.message}),r.dirty());else if("cuid"===n.kind)R.test(e.data)||(w(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:l.invalid_string,message:n.message}),r.dirty());else if("cuid2"===n.kind)O.test(e.data)||(w(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:l.invalid_string,message:n.message}),r.dirty());else if("ulid"===n.kind)P.test(e.data)||(w(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:l.invalid_string,message:n.message}),r.dirty());else if("url"===n.kind)try{new URL(e.data)}catch(i){w(t=this._getOrReturnCtx(e,t),{validation:"url",code:l.invalid_string,message:n.message}),r.dirty()}else"regex"===n.kind?(n.regex.lastIndex=0,n.regex.test(e.data)||(w(t=this._getOrReturnCtx(e,t),{validation:"regex",code:l.invalid_string,message:n.message}),r.dirty())):"trim"===n.kind?e.data=e.data.trim():"includes"===n.kind?e.data.includes(n.value,n.position)||(w(t=this._getOrReturnCtx(e,t),{code:l.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):"toLowerCase"===n.kind?e.data=e.data.toLowerCase():"toUpperCase"===n.kind?e.data=e.data.toUpperCase():"startsWith"===n.kind?e.data.startsWith(n.value)||(w(t=this._getOrReturnCtx(e,t),{code:l.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):"endsWith"===n.kind?e.data.endsWith(n.value)||(w(t=this._getOrReturnCtx(e,t),{code:l.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):"datetime"===n.kind?B(n).test(e.data)||(w(t=this._getOrReturnCtx(e,t),{code:l.invalid_string,validation:"datetime",message:n.message}),r.dirty()):"ip"===n.kind?$(e.data,n.version)||(w(t=this._getOrReturnCtx(e,t),{validation:"ip",code:l.invalid_string,message:n.message}),r.dirty()):to.assertNever(n);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:l.invalid_string,...ta.errToObj(r)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ta.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ta.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ta.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ta.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ta.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ta.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ta.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ta.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...ta.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ta.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...ta.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ta.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ta.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ta.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ta.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ta.errToObj(t)})}nonempty(e){return this.min(1,ta.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}
9814get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function F(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i;return parseInt(e.toFixed(n).replace(".",""))%parseInt(t.toFixed(n).replace(".",""))/Math.pow(10,n)}U.create=e=>{var t;return new U({checks:[],typeName:tl.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...I(e)})};class z extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.number){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.number,received:t.parsedType}),b}let r=new y;for(let i of this._def.checks)"int"===i.kind?to.isInteger(e.data)||(w(t=this._getOrReturnCtx(e,t),{code:l.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):"multipleOf"===i.kind?0!==F(e.data,i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:l.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(w(t=this._getOrReturnCtx(e,t),{code:l.not_finite,message:i.message}),r.dirty()):to.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ta.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ta.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ta.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ta.toString(t))}setLimit(e,t,r,i){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:ta.toString(i)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ta.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ta.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ta.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ta.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ta.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ta.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ta.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ta.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ta.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&to.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}z.create=e=>new z({checks:[],typeName:tl.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...I(e)});class q extends T{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==s.bigint){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.bigint,received:t.parsedType}),b}let r=new y;for(let i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(w(t=this._getOrReturnCtx(e,t),{code:l.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):to.assertNever(i);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ta.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ta.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ta.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ta.toString(t))}
9814setLimit(e,t,r,i){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:ta.toString(i)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ta.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ta.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ta.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ta.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ta.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}q.create=e=>{var t;return new q({checks:[],typeName:tl.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...I(e)})};class W extends T{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==s.boolean){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.boolean,received:t.parsedType}),b}return _(e.data)}}W.create=e=>new W({typeName:tl.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...I(e)});class H extends T{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.date){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.date,received:t.parsedType}),b}if(isNaN(e.data.getTime()))return w(this._getOrReturnCtx(e),{code:l.invalid_date}),b;let r=new y;for(let i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(w(t=this._getOrReturnCtx(e,t),{code:l.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):to.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ta.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ta.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}H.create=e=>new H({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tl.ZodDate,...I(e)});class V extends T{_parse(e){if(this._getType(e)!==s.symbol){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.symbol,received:t.parsedType}),b}return _(e.data)}}V.create=e=>new V({typeName:tl.ZodSymbol,...I(e)});class Z extends T{_parse(e){if(this._getType(e)!==s.undefined){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.undefined,received:t.parsedType}),b}return _(e.data)}}Z.create=e=>new Z({typeName:tl.ZodUndefined,...I(e)});class K extends T{_parse(e){if(this._getType(e)!==s.null){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.null,received:t.parsedType}),b}return _(e.data)}}K.create=e=>new K({typeName:tl.ZodNull,...I(e)});class G extends T{constructor(){super(...arguments),this._any=!0}_parse(e){return _(e.data)}}G.create=e=>new G({typeName:tl.ZodAny,...I(e)});class Y extends T{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _(e.data)}}Y.create=e=>new Y({typeName:tl.ZodUnknown,...I(e)});class J extends T{_parse(e){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.never,received:t.parsedType}),b}}J.create=e=>new J({typeName:tl.ZodNever,...I(e)});class Q extends T{_parse(e){if(this._getType(e)!==s.undefined){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.void,received:t.parsedType}),b}return _(e.data)}}Q.create=e=>new Q({typeName:tl.ZodVoid,...I(e)});class X extends T{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==s.array)return w(t,{code:l.invalid_type,expected:s.array,received:t.parsedType}),b;if(null!==i.exactLength){let e=t.data.length>
vendor: 4,653 bytes, line 9814
9814i.exactLength.value,n=t.data.length<i.exactLength.value;(e||n)&&(w(t,{code:e?l.too_big:l.too_small,minimum:n?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(w(t,{code:l.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(w(t,{code:l.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>i.type._parseAsync(new S(t,e,t.path,r)))).then(e=>y.mergeArray(r,e));let n=[...t.data].map((e,r)=>i.type._parseSync(new S(t,e,t.path,r)));return y.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new X({...this._def,minLength:{value:e,message:ta.toString(t)}})}max(e,t){return new X({...this._def,maxLength:{value:e,message:ta.toString(t)}})}length(e,t){return new X({...this._def,exactLength:{value:e,message:ta.toString(t)}})}nonempty(e){return this.min(1,e)}}function ee(e){if(e instanceof et){let t={};for(let r in e.shape){let i=e.shape[r];t[r]=eb.create(ee(i))}return new et({...e._def,shape:()=>t})}return e instanceof X?new X({...e._def,type:ee(e.element)}):e instanceof eb?eb.create(ee(e.unwrap())):e instanceof ev?ev.create(ee(e.unwrap())):e instanceof ea?ea.create(e.items.map(e=>ee(e))):e}X.create=(e,t)=>new X({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tl.ZodArray,...I(t)});class et extends T{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=to.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==s.object){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.object,received:t.parsedType}),b}let{status:t,ctx:r}=this._processInputParams(e),{shape:i,keys:n}=this._getCached(),o=[];if(!(this._def.catchall instanceof J&&"strip"===this._def.unknownKeys))for(let e in r.data)n.includes(e)||o.push(e);let a=[];for(let e of n){let t=i[e],n=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new S(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof J){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(w(r,{code:l.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let i=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new S(r,i,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>y.mergeObjectSync(t,e)):y.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return ta.errToObj,new et({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var i,n,o,s;let a=null!==(o=null===(n=(i=this._def).errorMap)||void 0===n?void 0:n.call(i,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=ta.errToObj(e).message)&&void 0!==s?s:a}:{message:a}}}:{}})}strip(){return new et({...this._def,unknownKeys:"strip"})}passthrough(){return new et({...this._def,unknownKeys:"passthrough"})}extend(e){return new et({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new et({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tl.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new et({...this._def,catchall:e})}pick(e){let t={};return to.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new et({...this._def,shape:()=>t})}omit(e){let t={};return to.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new et({...this._def,shape:()=>t})}deepPartial(){return ee(this)}partial(e){let t={};return to.objectKeys(this.shape).forEach(r=>{let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}),new et({...this._def,shape:()=>t})}required(e){let t={};return to.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eb;)e=e._def.innerType;t[r]=e}}),new et({...this._def,shape:()=>t})}keyof(){return ep(to.objectKeys(this.shape))}}et.create=(e,t)=>
9814new et({shape:()=>e,unknownKeys:"strip",catchall:J.create(),typeName:tl.ZodObject,...I(t)}),et.strictCreate=(e,t)=>new et({shape:()=>e,unknownKeys:"strict",catchall:J.create(),typeName:tl.ZodObject,...I(t)}),et.lazycreate=(e,t)=>new et({shape:e,unknownKeys:"strip",catchall:J.create(),typeName:tl.ZodObject,...I(t)});class er extends T{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;function i(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new u(e.ctx.common.issues));return w(t,{code:l.invalid_union,unionErrors:r}),b}if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(i);{let e;let i=[];for(let n of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=n._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let n=i.map(e=>new u(e));return w(t,{code:l.invalid_union,unionErrors:n}),b}}get options(){return this._def.options}}er.create=(e,t)=>new er({options:e,typeName:tl.ZodUnion,...I(t)});let ei=e=>{if(e instanceof eh)return ei(e.schema);if(e instanceof ey)return ei(e.innerType());if(e instanceof ef)return[e.value];if(e instanceof eg)return e.options;if(e instanceof em)return Object.keys(e.enum);if(e instanceof e_)return ei(e._def.innerType);if(e instanceof Z)return[void 0];else if(e instanceof K)return[null];else return null};class en extends T{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.object)return w(t,{code:l.invalid_type,expected:s.object,received:t.parsedType}),b;let r=this.discriminator,i=t.data[r],n=this.optionsMap.get(i);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(w(t,{code:l.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=ei(r.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(i.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,r)}}return new en({typeName:tl.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...I(r)})}}function eo(e,t){let r=a(e),i=a(t);if(e===t)return{valid:!0,data:e};if(r===s.object&&i===s.object){let r=to.objectKeys(t),i=to.objectKeys(e).filter(e=>-1!==r.indexOf(e)),n={...e,...t};for(let r of i){let i=eo(e[r],t[r]);if(!i.valid)return{valid:!1};n[r]=i.data}return{valid:!0,data:n}}if(r===s.array&&i===s.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let i=0;i<e.length;i++){let n=eo(e[i],t[i]);if(!n.valid)return{valid:!1};r.push(n.data)}return{valid:!0,data:r}}return r===s.date&&i===s.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class es extends T{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=(e,i)=>{if(x(e)||x(i))return b;let n=eo(e.value,i.value);return n.valid?((E(e)||E(i))&&t.dirty(),{status:t.value,value:n.data}):(w(r,{code:l.invalid_intersection_types}),b)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>i(e,t)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}es.create=(e,t,r)=>new es({left:e,right:t,typeName:tl.ZodIntersection,...I(r)});class ea extends T{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.array)return w(r,{code:l.invalid_type,expected:s.array,received:r.parsedType}),b;if(r.data.length<this._def.items.length)return w(r,{code:l.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),b;!this._def.rest&&r.data.length>this._def.items.length&&(w(r,{code:l.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...r.data].map((e,t)=>{let i=this._def.items[t]||this._def.rest;return i?i._parse(new S(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>y.mergeArray(t,e)):y.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new ea({...this._def,rest:e})}}ea.create=(e,t)=>
vendor: 4,813 bytes, line 9814
9814{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ea({items:e,typeName:tl.ZodTuple,rest:null,...I(t)})};class el extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.object)return w(r,{code:l.invalid_type,expected:s.object,received:r.parsedType}),b;let i=[],n=this._def.keyType,o=this._def.valueType;for(let e in r.data)i.push({key:n._parse(new S(r,e,r.path,e)),value:o._parse(new S(r,r.data[e],r.path,e))});return r.common.async?y.mergeObjectAsync(t,i):y.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,r){return new el(t instanceof T?{keyType:e,valueType:t,typeName:tl.ZodRecord,...I(r)}:{keyType:U.create(),valueType:e,typeName:tl.ZodRecord,...I(t)})}}class ec extends T{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.map)return w(r,{code:l.invalid_type,expected:s.map,received:r.parsedType}),b;let i=this._def.keyType,n=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:i._parse(new S(r,e,r.path,[o,"key"])),value:n._parse(new S(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let i=await r.key,n=await r.value;if("aborted"===i.status||"aborted"===n.status)return b;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let i=r.key,n=r.value;if("aborted"===i.status||"aborted"===n.status)return b;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}}}}ec.create=(e,t,r)=>new ec({valueType:t,keyType:e,typeName:tl.ZodMap,...I(r)});class eu extends T{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==s.set)return w(r,{code:l.invalid_type,expected:s.set,received:r.parsedType}),b;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(w(r,{code:l.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&r.data.size>i.maxSize.value&&(w(r,{code:l.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let n=this._def.valueType;function o(e){let r=new Set;for(let i of e){if("aborted"===i.status)return b;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>n._parse(new S(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new eu({...this._def,minSize:{value:e,message:ta.toString(t)}})}max(e,t){return new eu({...this._def,maxSize:{value:e,message:ta.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eu.create=(e,t)=>new eu({valueType:e,minSize:null,maxSize:null,typeName:tl.ZodSet,...I(t)});class ed extends T{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.function)return w(t,{code:l.invalid_type,expected:s.function,received:t.parsedType}),b;function r(e,r){return g({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,p(),d].filter(e=>!!e),issueData:{code:l.invalid_arguments,argumentsError:r}})}function i(e,r){return g({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,p(),d].filter(e=>!!e),issueData:{code:l.invalid_return_type,returnTypeError:r}})}let n={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ew){let e=this;return _(async function(...t){let s=new u([]),a=await e._def.args.parseAsync(t,n).catch(e=>{throw s.addIssue(r(t,e)),s}),l=await Reflect.apply(o,this,a);return await e._def.returns._def.type.parseAsync(l,n).catch(e=>{throw s.addIssue(i(l,e)),s})})}{let e=this;return _(function(...t){let s=e._def.args.safeParse(t,n);if(!s.success)throw new u([r(t,s.error)]);let a=Reflect.apply(o,this,s.data),l=e._def.returns.safeParse(a,n);if(!l.success)throw new u([i(a,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ed({...this._def,args:ea.create(e).rest(Y.create())})}returns(e){return new ed({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ed({args:e||ea.create([]).rest(Y.create()),returns:t||Y.create(),typeName:tl.ZodFunction,...I(r)})}}class eh extends T{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eh.create=(e,t)=>
9814new eh({getter:e,typeName:tl.ZodLazy,...I(t)});class ef extends T{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return w(t,{received:t.data,code:l.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ep(e,t){return new eg({values:e,typeName:tl.ZodEnum,...I(t)})}ef.create=(e,t)=>new ef({value:e,typeName:tl.ZodLiteral,...I(t)});class eg extends T{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return w(t,{expected:to.joinValues(r),received:t.parsedType,code:l.invalid_type}),b}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return w(t,{received:t.data,code:l.invalid_enum_value,options:r}),b}return _(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return eg.create(e)}exclude(e){return eg.create(this.options.filter(t=>!e.includes(t)))}}eg.create=ep;class em extends T{_parse(e){let t=to.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==s.string&&r.parsedType!==s.number){let e=to.objectValues(t);return w(r,{expected:to.joinValues(e),received:r.parsedType,code:l.invalid_type}),b}if(-1===t.indexOf(e.data)){let e=to.objectValues(t);return w(r,{received:r.data,code:l.invalid_enum_value,options:e}),b}return _(e.data)}get enum(){return this._def.values}}em.create=(e,t)=>new em({values:e,typeName:tl.ZodNativeEnum,...I(t)});class ew extends T{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==s.promise&&!1===t.common.async?(w(t,{code:l.invalid_type,expected:s.promise,received:t.parsedType}),b):_((t.parsedType===s.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ew.create=(e,t)=>new ew({type:e,typeName:tl.ZodPromise,...I(t)});class ey extends T{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tl.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),i=this._def.effect||null,n={addIssue:e=>{w(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===i.type){let e=i.transform(r.data,n);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}if("refinement"===i.type){let e=e=>{let t=i.refinement(e,n);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?b:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?b:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}}if("transform"===i.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>C(e)?Promise.resolve(i.transform(e.value,n)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!C(e))return e;let o=i.transform(e.value,n);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}}to.assertNever(i)}}ey.create=(e,t,r)=>new ey({schema:e,typeName:tl.ZodEffects,effect:t,...I(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:tl.ZodEffects,...I(r)});class eb extends T{_parse(e){return this._getType(e)===s.undefined?_(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eb.create=(e,t)=>
9814new eb({innerType:e,typeName:tl.ZodOptional,...I(t)});class ev extends T{_parse(e){return this._getType(e)===s.null?_(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:tl.ZodNullable,...I(t)});class e_ extends T{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===s.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:tl.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...I(t)});class ex extends T{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return k(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new u(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new u(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:tl.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...I(t)});class eE extends T{_parse(e){if(this._getType(e)!==s.nan){let t=this._getOrReturnCtx(e);return w(t,{code:l.invalid_type,expected:s.nan,received:t.parsedType}),b}return{status:"valid",value:e.data}}}eE.create=e=>new eE({typeName:tl.ZodNaN,...I(e)});let eC=Symbol("zod_brand");class ek extends T{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eS extends T{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),v(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eS({in:e,out:t,typeName:tl.ZodPipeline})}}class eA extends T{_parse(e){let t=this._def.innerType._parse(e);return C(t)&&(t.value=Object.freeze(t.value)),t}}eA.create=(e,t)=>new eA({innerType:e,typeName:tl.ZodReadonly,...I(t)});let eI=(e,t={},r)=>e?G.create().superRefine((i,n)=>{var o,s;if(!e(i)){let e="function"==typeof t?t(i):"string"==typeof t?{message:t}:t,a=null===(s=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===s||s,l="string"==typeof e?{message:e}:e;n.addIssue({code:"custom",...l,fatal:a})}}):G.create(),eT={object:et.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tl||(tl={}));let eR=(e,t={message:`Input not instance of ${e.name}`})=>eI(t=>t instanceof e,t),eO=U.create,eP=z.create,eN=eE.create,eM=q.create,eD=W.create,eL=H.create,ej=V.create,eB=Z.create,e$=K.create,eU=G.create,eF=Y.create,ez=J.create,eq=Q.create,eW=X.create,eH=et.create,eV=et.strictCreate,eZ=er.create,eK=en.create,eG=es.create,eY=ea.create,eJ=el.create,eQ=ec.create,eX=eu.create,e0=ed.create,e1=eh.create,e2=ef.create,e3=eg.create,e5=em.create,e4=ew.create,e6=ey.create,e8=eb.create,e7=ev.create,e9=ey.createWithPreprocess,te=eS.create,tt=()=>eP().optional(),tr=()=>eD().optional(),ti={string:e=>U.create({...e,coerce:!0}),number:e=>z.create({...e,coerce:!0}),boolean:e=>W.create({...e,coerce:!0}),bigint:e=>q.create({...e,coerce:!0}),date:e=>H.create({...e,coerce:!0})},tn=b;var to,ts,ta,tl,tc=Object.freeze({__proto__:null,defaultErrorMap:d,setErrorMap:f,getErrorMap:p,makeIssue:g,EMPTY_PATH:m,addIssueToContext:w,ParseStatus:y,INVALID:b,DIRTY:v,OK:_,isAborted:x,isDirty:E,isValid:C,isAsync:k,get util(){return to},get objectUtil(){return ts},ZodParsedType:s,getParsedType:a,ZodType:T,ZodString:U,ZodNumber:z,ZodBigInt:q,ZodBoolean:W,ZodDate:H,ZodSymbol:V,ZodUndefined:
9814Z,ZodNull:K,ZodAny:G,ZodUnknown:Y,ZodNever:J,ZodVoid:Q,ZodArray:X,ZodObject:et,ZodUnion:er,ZodDiscriminatedUnion:en,ZodIntersection:es,ZodTuple:ea,ZodRecord:el,ZodMap:ec,ZodSet:eu,ZodFunction:ed,ZodLazy:eh,ZodLiteral:ef,ZodEnum:eg,ZodNativeEnum:em,ZodPromise:ew,ZodEffects:ey,ZodTransformer:ey,ZodOptional:eb,ZodNullable:ev,ZodDefault:e_,ZodCatch:ex,ZodNaN:eE,BRAND:eC,ZodBranded:ek,ZodPipeline:eS,ZodReadonly:eA,custom:eI,Schema:T,ZodSchema:T,late:eT,get ZodFirstPartyTypeKind(){return tl},coerce:ti,any:eU,array:eW,bigint:eM,boolean:eD,date:eL,discriminatedUnion:eK,effect:e6,enum:e3,function:e0,instanceof:eR,intersection:eG,lazy:e1,literal:e2,map:eQ,nan:eN,nativeEnum:e5,never:ez,null:e$,nullable:e7,number:eP,object:eH,oboolean:tr,onumber:tt,optional:e8,ostring:()=>eO().optional(),pipeline:te,preprocess:e9,promise:e4,record:eJ,set:eX,strictObject:eV,string:eO,symbol:ej,transformer:e6,tuple:eY,undefined:eB,union:eZ,unknown:eF,void:eq,NEVER:tn,ZodIssueCode:l,quotelessJson:c,ZodError:u});let tu=tc.object({message:tc.string()});function td(e){return tc.literal(n[e])}tc.object({accessList:tc.array(tc.string()),blockHash:tc.string().nullable(),blockNumber:tc.string().nullable(),chainId:tc.string(),from:tc.str
9814ing(),gas:tc.string(),hash:tc.string(),input:tc.string().nullable(),maxFeePerGas:tc.string(),maxPriorityFeePerGas:tc.string(),nonce:tc.string(),r:tc.string(),s:tc.string(),to:tc.string(),transactionIndex:tc.string().nullable(),type:tc.string(),v:tc.string(),value:tc.string()});let th=tc.object({chainId:tc.number()}),tf=tc.object({email:tc.string().email()}),tp=tc.object({otp:tc.string()}),tg=tc.object({uri:tc.string()}),tm=tc.object({chainId:tc.optional(tc.number()),preferredAccountType:tc.optional(tc.string())}),tw=tc.object({provider:tc.enum(["google","github","apple","facebook","x","discord"])}),ty=tc.object({email:tc.string().email()}),tb=tc.object({otp:tc.string()}),tv=tc.object({otp:tc.string()}),t_=tc.object({themeMode:tc.optional(tc.enum(["light","dark"])),themeVariables:tc.optional(tc.record(tc.string(),tc.string().or(tc.number()))),w3mThemeVariables:tc.optional(tc.record(tc.string(),tc.string()))}),tx=tc.object({metadata:tc.object({name:tc.string(),description:tc.string(),url:tc.string(),icons:tc.array(tc.string())}).optional(),sdkVersion:tc.string(),projectId:tc.string()}),tE=tc.object({type:tc.string()}),tC=tc.object({action:tc.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),tk=tc.object({email:tc.string(),address:tc.string(),chainId:tc.number(),userName:tc.string().optional()}),tS=tc.object({action:tc.enum(["VERIFY_PRIMARY_OTP","VERIFY_SECONDARY_OTP"])}),tA=tc.object({email:tc.string().email(),address:tc.string(),chainId:tc.number(),smartAccountDeployed:tc.optional(tc.boolean()),preferredAccountType:tc.optional(tc.string())}),tI=tc.object({uri:tc.string()}),tT=tc.object({isConnected:tc.boolean()}),tR=tc.object({chainId:tc.number()}),tO=tc.object({chainId:tc.number()}),tP=tc.object({newEmail:tc.string().email()}),tN=tc.object({smartAccountEnabledNetworks:tc.array(tc.number())});tc.object({address:tc.string(),isDeployed:tc.boolean()});let tM=tc.object({type:tc.string(),address:tc.string()}),tD=tc.any(),tL=tc.object({method:tc.literal("eth_accounts")}),tj=tc.object({method:tc.literal("eth_blockNumber")}),tB=tc.object({method:tc.literal("eth_call"),params:tc.array(tc.any())}),t$=tc.object({method:tc.literal("eth_chainId")}),tU=tc.object({method:tc.literal("eth_estimateGas"),params:tc.array(tc.any())}),tF=tc.object({method:tc.literal("eth_feeHistory"),params:tc.array(tc.any())}),tz=tc.object({method:tc.literal("eth_gasPrice")}),tq=tc.object({method:tc.literal("eth_getAccount"),params:tc.array(tc.any())}),tW=tc.object({method:tc.literal("eth_getBalance"),params:tc.array(tc.any())}),tH=tc.object({method:tc.literal("eth_getBlockByHash"),params:tc.array(tc.any())}),tV=tc.object({method:tc.literal("eth_getBlockByNumber"),params:tc.array(tc.any())}),tZ=tc.object({method:tc.literal("eth_getBlockReceipts"),params:tc.array(tc.any())}),tK=tc.object({method:tc.literal("eth_getBlockTransactionCountByHash"),params:tc.array(tc.any())}),tG=tc.object({method:tc.literal("eth_getBlockTransactionCountByNumber"),params:tc.array(tc.any())}),tY=tc.object({method:tc.literal("eth_getCode"),params:tc.array(tc.any())}),tJ=tc.object({method:tc.literal("eth_getFilterChanges"),params:tc.array(tc.any())}),tQ=tc.object({method:tc.literal("eth_getFilterLogs"),params:tc.array(tc.any())}),tX=tc.object({method:tc.literal("eth_getLogs"),params:tc.array(tc.any())}),t0=tc.object({method:tc.literal("eth_getProof"),params:tc.array(tc.any())}),t1=tc.object({method:tc.literal("eth_getStorageAt"),params:tc.array(tc.any())}),t2=tc.object({method:tc.literal("eth_getTransactionByBlockHashAndIndex"),params:tc.array(tc.any())}),t3=tc.object({method:tc.literal("eth_getTransactionByBlockNumberAndIndex"),params:tc.array(tc.any())}),t5=tc.object({method:tc.literal("eth_getTransactionByHash"),params:tc.array(tc.any())}),t4=tc.object({method:tc.literal("eth_getTransactionCount"),params:tc.array(tc.any())}),t6=tc.object({method:tc.literal("eth_getTransactionReceipt"),params:tc.array(tc.any())}),t8=tc.object({method:tc.literal("eth_getUncleCountByBlockHash"),params:tc.array(tc.any())}),t7=tc.object({method:tc.literal("eth_getUncleCountByBlockNumber"),params:tc.array(tc.any())}),t9=tc.object({method:tc.literal("eth_maxPriorityFeePerGas")}),re=tc.object({method:tc.literal("eth_newBlockFilter")}),rt=tc.object({method:tc.literal("eth_newFilter"),params:tc.array(tc.any())}),rr=tc.object({method:tc.literal("eth_newPendingTransactionFilter")}),ri=tc.object({method:tc.literal("eth_sendRawTransaction"),params:tc.array(tc.any())}),rn=tc.object({method:tc.literal("eth_syncing"),params:tc.array(tc.any())}),ro=tc.object({method:tc.literal("eth_uninstallFilter"),params:tc.array(tc.any())}),rs=tc.object({method:tc.literal("personal_sign"),params:tc.array(tc.any())}),ra=tc.object({method:tc.literal("eth_signTypedData_v4"),params:tc.array(tc.any())}),rl=tc.object({method:tc.literal("eth_sendTransaction"),params:tc.array(tc.any())}),rc=tc.object({token:tc.string()});tc.object({type:td("APP_SWITCH_NETWORK"),payload:th}).or(tc.object({type:td("APP_CONNECT_EMAIL"),payload:tf})).or(tc.object({type:td("APP_CONNECT_DEVICE")})).or(tc.object({type:td("APP_CONNECT_OTP"),payload:tp})).or(tc.object({type:td("APP_CONNECT_SOCIAL"),payload:tg})).or(tc.object({type:td("APP_GET_USER"),payload:tc.optional(tm)})).or(tc.object({type:td("APP_GET_SOCIAL_REDIRECT_URI"),payload:tw})).or(tc.object({type:td("APP_SIGN_OUT")})).or(tc.object({type:td("APP_IS_CONNECTED"),payload:tc.optional(rc)})).or(tc.object({type:td("APP_GET_CHAIN_ID")})).or(tc.object({type:td("APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS")})).or(tc.object({type:td("APP_INIT_SMART_ACCOUNT")})).or(tc.object({type:td("APP_SET_PREFERRED_ACCOUNT"),payload:tE})).or(tc.object({type:td("APP_RPC_REQUEST"),payload:rs.or(rl).or(tL).or(tj).or(tB).or(t$).or(tU).or(tF).or(tz).or(tq).or(tW).or(tH).or(tV).or(tZ).or(tK).or(tG).or(tY).or(tJ).or(tQ).or(tX).or(t0).or(t1).or(t2).or(t3).or(t5).or(t4).or(t6).or(t8).or(t7).or(t9).or(re).or(rt).or(rr).or(ri).or(rn).or(ro).or(rs).or(ra).or(rl)})).or(tc.object({type:td("APP_UPDATE_EMAIL"),payload:ty})).or(tc.object({type:td("APP_UPDATE_EMAIL_PRIMARY_OTP"),payload:tb})).or(tc.object({type:td("APP_UPDATE_EMAIL_SECONDARY_OTP"),payload:tv})).or(tc.object({type:td("APP_SYNC_THEME"),payload:t_})).or(tc.object({type:td("APP_SYNC_DAPP_DATA"),payload:tx}
9814)),tc.object({type:td("FRAME_SWITCH_NETWORK_ERROR"),payload:tu}).or(tc.object({type:td("FRAME_SWITCH_NETWORK_SUCCESS"),payload:tO})).or(tc.object({type:td("FRAME_CONNECT_EMAIL_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_CONNECT_EMAIL_SUCCESS"),payload:tC})).or(tc.object({type:td("FRAME_CONNECT_OTP_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_CONNECT_OTP_SUCCESS")})).or(tc.object({type:td("FRAME_CONNECT_DEVICE_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_CONNECT_DEVICE_SUCCESS")})).or(tc.object({type:td("FRAME_CONNECT_SOCIAL_SUCCESS"),payload:tk})).or(tc.object({type:td("FRAME_CONNECT_SOCIAL_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_GET_USER_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_GET_USER_SUCCESS"),payload:tA})).or(tc.object({type:td("FRAME_GET_SOCIAL_REDIRECT_URI_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS"),payload:tI})).or(tc.object({type:td("FRAME_SIGN_OUT_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_SIGN_OUT_SUCCESS")})).or(tc.object({type:td("FRAME_IS_CONNECTED_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_IS_CONNECTED_SUCCESS"),payload:tT})).or(tc.object({type:td("FRAME_GET_CHAIN_ID_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_GET_CHAIN_ID_SUCCESS"),payload:tR})).or(tc.object({type:td("FRAME_RPC_REQUEST_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_RPC_REQUEST_SUCCESS"),payload:tD})).or(tc.object({type:td("FRAME_SESSION_UPDATE"),payload:rc})).or(tc.object({type:td("FRAME_UPDATE_EMAIL_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_UPDATE_EMAIL_SUCCESS"),payload:tS})).or(tc.object({type:td("FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS")})).or(tc.object({type:td("FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS"),payload:tP})).or(tc.object({type:td("FRAME_SYNC_THEME_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_SYNC_THEME_SUCCESS")})).or(tc.object({type:td("FRAME_SYNC_DAPP_DATA_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_SYNC_DAPP_DATA_SUCCESS")})).or(tc.object({type:td("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS"),payload:tN})).or(tc.object({type:td("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_INIT_SMART_ACCOUNT_ERROR"),payload:tu})).or(tc.object({type:td("FRAME_SET_PREFERRED_ACCOUNT_SUCCESS"),payload:tM})).or(tc.object({type:td("FRAME_SET_PREFERRED_ACCOUNT_ERROR"),payload:tu}));let ru={set(e,t){rp.isClient&&localStorage.setItem(`${n.STORAGE_KEY}${e}`,t)},get:e=>rp.isClient?localStorage.getItem(`${n.STORAGE_KEY}${e}`):null,delete(e,t){rp.isClient&&(t?localStorage.removeItem(e):localStorage.removeItem(`${n.STORAGE_KEY}${e}`))}},rd={transactionHash:/^0x(?:[A-Fa-f0-9]{64})$/u,signedMessage:/^0x(?:[a-fA-F0-9]{62,})$/u},rh=["ASIA/SHANGHAI","ASIA/URUMQI","ASIA/CHONGQING","ASIA/HARBIN","ASIA/KASHGAR","ASIA/MACAU","ASIA/HONG_KONG","ASIA/MACAO","ASIA/BEIJING","ASIA/HARBIN"],rf=3e4,rp={getBlockchainApiUrl(){try{let{timeZone:e}=new Intl.DateTimeFormat().resolvedOptions(),t=e.toUpperCase();return rh.includes(t)?"https://rpc.walletconnect.org":"https://rpc.walletconnect.com"}catch{return!1}},checkIfAllowedToTriggerEmail(){let e=ru.get(n.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<rf){let e=Math.ceil((rf-t)/1e3);throw Error(`Please try again after ${e} seconds`)}}},getTimeToNextEmailLogin(){let e=ru.get(n.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<rf)return Math.ceil((rf-t)/1e3)}return 0},checkIfRequestExists(e){let t=this.getRequestMethod(e);return o.NOT_SAFE_RPC_METHODS.includes(t)||o.SAFE_RPC_METHODS.includes(t)},getRequestMethod:e=>e?.payload?.method,getResponseType(e){let{type:t,payload:r}=e;return t===n.FRAME_RPC_REQUEST_ERROR?n.RPC_RESPONSE_TYPE_ERROR:"string"==typeof r&&(r.match(rd.transactionHash)||r.match(rd.signedMessage))?n.RPC_RESPONSE_TYPE_TX:n.RPC_RESPONSE_TYPE_OBJECT},checkIfRequestIsAllowed(e){let t=this.getRequestMethod(e);return o.SAFE_RPC_METHODS.includes(t)},isClient:"undefined"!=typeof window}},68651:function(e,t,r){"use strict";r.d(t,{O:function(){return x}});var i=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,o=Math.floor,s="[BigNumber Error] ",a=s+"Number primitive has more than 15 significant digits: ",l=1e14,c=14,u=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,f=1e9;function p(e){var t,r,x,E=j.prototype={constructor:j,toString:null,valueOf:null},C=new j(1),k=20,S=4,A=-7,I=21,T=-1e7,R=1e7,O=!1,P=1,N=0,M={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},D="0123456789abcdefghijklmnopqrstuvwxyz",L=!0;function j(e,t){var n,s,l,d,h,f,p,g,m=this;if(!(m instanceof j))return new j(e,t);if(null==t){if(e&&!0===e._isBigNumber){m.s=e.s,!e.c||e.e>R?m.c=m.e=null:e.e<T?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice());return}if((f="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(d=0,h=e;h>=10;h/=10,d++);d>R?m.c=m.e=null:(m.e=d,m.c=[e]);return}g=String(e)}else{if(!i.test(g=String(e)))return x(m,g,f);m.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(d=g.indexOf("."))>-1&&(g=g.replace(".","")),(h=g.search(/e/i))>
vendor: 9,559 bytes, line 9814
98140?(d<0&&(d=h),d+=+g.slice(h+1),g=g.substring(0,h)):d<0&&(d=g.length)}else{if(y(t,2,D.length,"Base"),10==t&&L)return F(m=new j(e),k+m.e+1,S);if(g=String(e),f="number"==typeof e){if(0*e!=0)return x(m,g,f,t);if(m.s=1/e<0?(g=g.slice(1),-1):1,j.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else m.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=D.slice(0,t),d=h=0,p=g.length;h<p;h++)if(0>n.indexOf(s=g.charAt(h))){if("."==s){if(h>d){d=p;continue}}else if(!l&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){l=!0,h=-1,d=0;continue}return x(m,String(e),f,t)}f=!1,(d=(g=r(g,t,10,m.s)).indexOf("."))>-1?g=g.replace(".",""):d=g.length}for(h=0;48===g.charCodeAt(h);h++);for(p=g.length;48===g.charCodeAt(--p););if(g=g.slice(h,++p)){if(p-=h,f&&j.DEBUG&&p>15&&(e>u||e!==o(e)))throw Error(a+m.s*e);if((d=d-h-1)>R)m.c=m.e=null;else if(d<T)m.c=[m.e=0];else{if(m.e=d,m.c=[],h=(d+1)%c,d<0&&(h+=c),h<p){for(h&&m.c.push(+g.slice(0,h)),p-=c;h<p;)m.c.push(+g.slice(h,h+=c));h=c-(g=g.slice(h)).length}else h-=p;for(;h--;g+="0");m.c.push(+g)}}else m.c=[m.e=0]}function B(e,t,r,i){var n,o,s,a,l;if(null==r?r=S:y(r,0,8),!e.c)return e.toString();if(n=e.c[0],s=e.e,null==t)l=m(e.c),l=1==i||2==i&&(s<=A||s>=I)?v(l,s):_(l,s,"0");else if(o=(e=F(new j(e),t,r)).e,a=(l=m(e.c)).length,1==i||2==i&&(t<=o||o<=A)){for(;a<t;l+="0",a++);l=v(l,o)}else if(t-=s,l=_(l,o,"0"),o+1>a){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-a)>0)for(o+1==a&&(l+=".");t--;l+="0");return e.s<0&&n?"-"+l:l}function $(e,t){for(var r,i,n=1,o=new j(e[0]);n<e.length;n++)(i=new j(e[n])).s&&(r=w(o,i))!==t&&(0!==r||o.s!==t)||(o=i);return o}function U(e,t,r){for(var i=1,n=t.length;!t[--n];t.pop());for(n=t[0];n>=10;n/=10,i++);return(r=i+r*c-1)>R?e.c=e.e=null:r<T?e.c=[e.e=0]:(e.e=r,e.c=t),e}function F(e,t,r,i){var s,a,u,h,f,p,g,m=e.c,w=d;if(m){t:{for(s=1,h=m[0];h>=10;h/=10,s++);if((a=t-s)<0)a+=c,u=t,g=o((f=m[p=0])/w[s-u-1]%10);else if((p=n((a+1)/c))>=m.length){if(i){for(;m.length<=p;m.push(0));f=g=0,s=1,a%=c,u=a-c+1}else break t}else{for(s=1,f=h=m[p];h>=10;h/=10,s++);a%=c,g=(u=a-c+s)<0?0:o(f/w[s-u-1]%10)}if(i=i||t<0||null!=m[p+1]||(u<0?f:f%w[s-u-1]),i=r<4?(g||i)&&(0==r||r==(e.s<0?3:2)):g>5||5==g&&(4==r||i||6==r&&(a>0?u>0?f/w[s-u]:0:m[p-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,i?(t-=e.e+1,m[0]=w[(c-t%c)%c],e.e=-t||0):m[0]=e.e=0,e;if(0==a?(m.length=p,h=1,p--):(m.length=p+1,h=w[c-a],m[p]=u>0?o(f/w[s-u]%w[u])*h:0),i)for(;;){if(0==p){for(a=1,u=m[0];u>=10;u/=10,a++);for(u=m[0]+=h,h=1;u>=10;u/=10,h++);a!=h&&(e.e++,m[0]==l&&(m[0]=1));break}if(m[p]+=h,m[p]!=l)break;m[p--]=0,h=1}for(a=m.length;0===m[--a];m.pop());}e.e>R?e.c=e.e=null:e.e<T&&(e.c=[e.e=0])}return e}function z(e){var t,r=e.e;return null===r?e.toString():(t=m(e.c),t=r<=A||r>=I?v(t,r):_(t,r,"0"),e.s<0?"-"+t:t)}return j.clone=p,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(y(r=e[t],0,f,t),k=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(y(r=e[t],0,8,t),S=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(y(r[0],-f,0,t),y(r[1],0,f,t),A=r[0],I=r[1]):(y(r,-f,f,t),A=-(I=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)y(r[0],-f,-1,t),y(r[1],1,f,t),T=r[0],R=r[1];else if(y(r,-f,f,t),r)T=-(R=r<0?-r:r);else throw Error(s+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))O=r;else throw O=!r,Error(s+"crypto unavailable")}else O=r}else throw Error(s+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(y(r=e[t],0,9,t),P=r),e.hasOwnProperty(t="POW_PRECISION")&&(y(r=e[t],0,f,t),N=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))M=r;else throw Error(s+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(s+t+" invalid: "+r);L="0123456789"==r.slice(0,10),D=r}}else throw Error(s+"Object expected: "+e)}return{DECIMAL_PLACES:k,ROUNDING_MODE:S,EXPONENTIAL_AT:[A,I],RANGE:[T,R],CRYPTO:O,MODULO_MODE:P,POW_PRECISION:N,FORMAT:M,ALPHABET:D}},j.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!j.DEBUG)return!0;var t,r,i=e.c,n=e.e,a=e.s;t:if("[object Array]"==({}).toString.call(i)){if((1===a||-1===a)&&n>=-f&&n<=f&&n===o(n)){if(0===i[0]){if(0===n&&1===i.length)return!0;break t}if((t=(n+1)%c)<1&&(t+=c),String(i[0]).length==t){for(t=0;t<i.length;t++)if((r=i[t])<0||r>=l||r!==o(r))break t;if(0!==r)return!0}}}else if(null===i&&null===n&&(null===a||1===a||-1===a))return!0;throw Error(s+"Invalid BigNumber: "+e)},j.maximum=j.max=function(){return $(arguments,-1)},j.minimum=j.min=function(){return $(arguments,1)},j.random=function(){var e=9007199254740992,t=9007199254740992*Math.random()&2097151?function(){return o(Math.random()*e)}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)};return function(e){var r,i,a,l,u,h=0,p=[],g=new j(C);if(null==e?e=k:y(e,0,f),l=n(e/c),O){if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(l*=2));h<l;)(u=131072*r[h]+(r[h+1]>>>11))>=9e15?(i=crypto.getRandomValues(new Uint32Array(2)),r[h]=i[0],r[h+1]=i[1]):(p.push(u%1e14),h+=2);h=l/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(l*=7);h<l;)(u=(31&r[h])*281474976710656+1099511627776*r[h+1]+4294967296*r[h+2]+16777216*r[h+3]+(r[h+4]<<16)+(r[h+5]<<8)+r[h+6])>=9e15?crypto.randomBytes(7).copy(r,h):(p.push(u%1e14),h+=7);h=l/7}else throw O=!1,Error(s+"crypto unavailable")}if(!O)for(;h<l;)(u=t())<9e15&&(p[h++]=u%1e14);for(l=p[--h],e%=c,l&&e&&(u=d[c-e],p[h]=o(l/u)*u);0===p[h];p.pop(),h--);if(h<0)p=[a=0];else{for(a=-1;0===p[0];p.splice(0,1),a-=c);for(h=1,u=p[0];u>=10;u/=10,h++);h<c&&(a-=c-h)}return g.e=a,g.c=p,g}}(),j.sum=function(){for(var e=1,t=arguments,r=new j(t[0]);e<t.length;)r=r.plus(t[e++]);return r},r=function(){var e="0123456789";function r(e,t,r,i){for(var n,o,s=[0],a=0,l=e.length;a<l;){for(o=s.length;o--;s[o]*=t);for(s[0]+=i.indexOf(e.charAt(a++)),n=0;n<s.length;n++)s[n]>r-1&&(null==s[n+1]&&(s[n+1]=0),s[n+1]+=s[n]/r|0,s[n]%=r)}return s.reverse()}return function(i,n,o,s,a){var l,c,u,d,h,f,p,g,w=i.indexOf("."),y=k,b=S;for(w>=0&&(d=N,N=0,i=i.replace(".",""),f=(g=new j(n)).pow(i.length-w),N=d,g.c=r(_(m(f.c),f.e,"0"),10,o,e),g.e=g.c.length),u=d=(p=r(i,n,o,a?(l=D,e):(l=e,D))).length;0==p[--d];p.pop());if(!p[0])return l.charAt(0);if(w<0?--u:(f.c=p,f.e=u,f.s=s,p=(f=t(f,g,y,b,o)).c,h=f.r,u=f.e),w=p[c=u+y+1],d=o/2,h=h||c<0||null!=p[c+1],h=b<4?(null!=w||h)&&(0==b||b==(f.s<0?3:2)):w>d||w==d&&(4==b||h||6==b&&1&p[c-1]||b==(f.s<0?8:7)),c<1||!p[0])i=h?_(l.charAt(1),-y,l.charAt(0)):l.charAt(0);else{if(p.length=c,h)for(--o;++p[--c]>o;)p[c]=0,c||(++u,p=[1].concat(p));for(d=p.length;!p[--d];);for(w=0,i="";w<=d;i+=l.charAt(p[w++]));i=_(i,u,l.charAt(0))}return i}}(),t=function(){function e(e,t,r){var i,n,o,s,a=0,l=e.length,c=t%h,u=t/h|0;for(e=e.slice();l--;)i=u*(o=e[l]%h)+(s=e[l]/h|0)*c,a=((n=c*o+i%h*h+a)/r|0)+(i/h|0)+u*s,e[l]=n%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,i){var n,o;if(r!=i)o=r>i?1:-1;else for(n=o=0;n<r;n++)if(e[n]!=t[n]){o=e[n]>t[n]?1:-1;break}return o}function r(e,t,r,i){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*i+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,n,s,a,u){var d,h,f,p,m,w,y,b,v,_,x,E,C,k,S,A,I,T=i.s==n.s?1:-1,R=i.c,O=n.c;if(!R||!R[0]||!O||!O[0])return new j(i.s&&n.s&&(R?!O||R[0]!=O[0]:O)?R&&0==R[0]||!O?0*T:T/0:NaN);for(v=(b=new j(T)).c=[],T=s+(h=i.e-n.e)+1,u||(u=l,h=g(i.e/c)-g(n.e/c),T=T/c|0),f=0;O[f]==(R[f]||0);f++);if(O[f]>(R[f]||0)&&h--,T<0)v.push(1),p=!0;else{for(k=R.length,A=O.length,f=0,T+=2,(m=o(u/(O[0]+1)))>1&&(O=e(O,m,u),R=e(R,m,u),A=O.length,k=R.length),C=A,x=(_=R.slice(0,A)).length;x<A;_[x++]=0);I=[0].concat(I=O.slice()),S=O[0],O[1]>=u/2&&S++;do{if(m=0,(d=t(O,_,A,x))<0){if(E=_[0],A!=x&&(E=E*u+(_[1]||0)),(m=o(E/S))>1)for(m>=u&&(m=u-1),y=(w=e(O,m,u)).length,x=_.length;1==t(w,_,y,x);)m--,r(w,A<y?I:O,y,u),y=w.length,d=1;else 0==m&&(d=m=1),y=(w=O.slice()).length;if(y<x&&(w=[0].concat(w)),r(_,w,x,u),x=_.length,-1==d)for(;1>t(O,_,A,x);)m++,r(_,A<x?I:O,x,u),x=_.length}else 0===d&&(m++,_=[0]);v[f++]=m,_[0]?_[x++]=R[C]||0:(_=[R[C]],x=1)}while((C++<k||null!=_[0])&&T--);p=null!=_[0],v[0]||v.splice(0,1)}if(u==l){for(f=1,T=v[0];T>=10;T/=10,f++);F(b,s+(b.e=f+h*c-1)+1,a,p)}else b.e=h,b.r=+p;return b}}(),x=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,n=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,l,c){var u,d=l?a:a.replace(n,"");if(i.test(d))o.s=isNaN(d)?null:d<0?-1:1;else{if(!l&&(d=d.replace(e,function(e,t,r){return u="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=u?e:t}),c&&(u=c,d=d.replace(t,"$1").replace(r,"0.$1")),a!=d))return new j(d,u);if(j.DEBUG)throw Error(s+"Not a"+(c?" base "+c:"")+" number: "+a);o.s=null}o.c=o.e=null}}(),E.absoluteValue=E.abs=function(){var e=new j(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return w(this,new j(e,t))},E.decimalPlaces=E.dp=function(e,t){var r,i,n,o=this;if(null!=e)return y(e,0,f),null==t?t=S:y(t,0,8),F(new j(o),e+o.e+1,t);if(!(r=o.c))return null;if(i=((n=r.length-1)-g(this.e/c))*c,n=r[n])for(;n%10==0;n/=10,i--);return i<0&&(i=0),i},E.dividedBy=E.div=function(e,r){return t(this,new j(e,r),k,S)},E.dividedToIntegerBy=E.idiv=function(e,r){return t(this,new j(e,r),0,1)},E.exponentiatedBy=E.pow=function(e,t){var r,i,a,l,u,d,h,f,p,g=this;
vendor: 4,115 bytes, line 9814
9814if((e=new j(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+z(e));if(null!=t&&(t=new j(t)),d=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return p=new j(Math.pow(+z(g),d?e.s*(2-b(e)):+z(e))),t?p.mod(t):p;if(h=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new j(NaN);(i=!h&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||d&&g.c[1]>=24e7:g.c[0]<8e13||d&&g.c[0]<=9999975e7)))return l=g.s<0&&b(e)?-0:0,g.e>-1&&(l=1/l),new j(h?1/l:l);N&&(l=n(N/c+2))}for(d?(r=new j(.5),h&&(e.s=1),f=b(e)):f=(a=Math.abs(+z(e)))%2,p=new j(C);;){if(f){if(!(p=p.times(g)).c)break;l?p.c.length>l&&(p.c.length=l):i&&(p=p.mod(t))}if(a){if(0===(a=o(a/2)))break;f=a%2}else if(F(e=e.times(r),e.e+1,1),e.e>14)f=b(e);else{if(0==(a=+z(e)))break;f=a%2}g=g.times(g),l?g.c&&g.c.length>l&&(g.c.length=l):i&&(g=g.mod(t))}return i?p:(h&&(p=C.div(p)),t?p.mod(t):l?F(p,N,S,u):p)},E.integerValue=function(e){var t=new j(this);return null==e?e=S:y(e,0,8),F(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===w(this,new j(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return w(this,new j(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=w(this,new j(e,t)))||0===t},E.isInteger=function(){return!!this.c&&g(this.e/c)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>w(this,new j(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=w(this,new j(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var r,i,n,o,s=this,a=s.s;if(t=(e=new j(e,t)).s,!a||!t)return new j(NaN);if(a!=t)return e.s=-t,s.plus(e);var u=s.e/c,d=e.e/c,h=s.c,f=e.c;if(!u||!d){if(!h||!f)return h?(e.s=-t,e):new j(f?s:NaN);if(!h[0]||!f[0])return f[0]?(e.s=-t,e):new j(h[0]?s:3==S?-0:0)}if(u=g(u),d=g(d),h=h.slice(),a=u-d){for((o=a<0)?(a=-a,n=h):(d=u,n=f),n.reverse(),t=a;t--;n.push(0));n.reverse()}else for(i=(o=(a=h.length)<(t=f.length))?a:t,a=t=0;t<i;t++)if(h[t]!=f[t]){o=h[t]<f[t];break}if(o&&(n=h,h=f,f=n,e.s=-e.s),(t=(i=f.length)-(r=h.length))>0)for(;t--;h[r++]=0);for(t=l-1;i>a;){if(h[--i]<f[i]){for(r=i;r&&!h[--r];h[r]=t);--h[r],h[i]+=l}h[i]-=f[i]}for(;0==h[0];h.splice(0,1),--d);return h[0]?U(e,h,d):(e.s=3==S?-1:1,e.c=[e.e=0],e)},E.modulo=E.mod=function(e,r){var i,n,o=this;return(e=new j(e,r),o.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!o.c||o.c[0])?(9==P?(n=e.s,e.s=1,i=t(o,e,0,3),e.s=n,i.s*=n):i=t(o,e,0,P),(e=o.minus(i.times(e))).c[0]||1!=P||(e.s=o.s),e):new j(o):new j(NaN)},E.multipliedBy=E.times=function(e,t){var r,i,n,o,s,a,u,d,f,p,m,w,y,b,v,_=this,x=_.c,E=(e=new j(e,t)).c;if(!x||!E||!x[0]||!E[0])return _.s&&e.s&&(!x||x[0]||E)&&(!E||E[0]||x)?(e.s*=_.s,x&&E?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(i=g(_.e/c)+g(e.e/c),e.s*=_.s,(u=x.length)<(p=E.length)&&(y=x,x=E,E=y,n=u,u=p,p=n),n=u+p,y=[];n--;y.push(0));for(b=l,v=h,n=p;--n>=0;){for(r=0,m=E[n]%v,w=E[n]/v|0,o=n+(s=u);o>n;)a=w*(d=x[--s]%v)+(f=x[s]/v|0)*m,r=((d=m*d+a%v*v+y[o]+r)/b|0)+(a/v|0)+w*f,y[o--]=d%b;y[o]=r}return r?++i:y.splice(0,1),U(e,y,i)},E.negated=function(){var e=new j(this);return e.s=-e.s||null,e},E.plus=function(e,t){var r,i=this,n=i.s;if(t=(e=new j(e,t)).s,!n||!t)return new j(NaN);if(n!=t)return e.s=-t,i.minus(e);var o=i.e/c,s=e.e/c,a=i.c,u=e.c;if(!o||!s){if(!a||!u)return new j(n/0);if(!a[0]||!u[0])return u[0]?e:new j(a[0]?i:0*n)}if(o=g(o),s=g(s),a=a.slice(),n=o-s){for(n>0?(s=o,r=u):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=u.length)<0&&(r=u,u=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+u[t]+n)/l|0,a[t]=l===a[t]?0:a[t]%l;return n&&(a=[n].concat(a),++s),U(e,a,s)},E.precision=E.sd=function(e,t){var r,i,n,o=this;if(null!=e&&!!e!==e)return y(e,1,f),null==t?t=S:y(t,0,8),F(new j(o),e,t);if(!(r=o.c))return null;if(i=(n=r.length-1)*c+1,n=r[n]){for(;n%10==0;n/=10,i--);for(n=r[0];n>=10;n/=10,i++);}return e&&o.e+1>i&&(i=o.e+1),i},E.shiftedBy=function(e){return y(e,-u,u),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,r,i,n,o,s=this,a=s.c,l=s.s,c=s.e,u=k+4,d=new j("0.5");
9814if(1!==l||!a||!a[0])return new j(!l||l<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(l=Math.sqrt(+z(s)))||l==1/0?(((r=m(a)).length+c)%2==0&&(r+="0"),l=Math.sqrt(+r),c=g((c+1)/2)-(c<0||c%2),i=new j(r=l==1/0?"5e"+c:(r=l.toExponential()).slice(0,r.indexOf("e")+1)+c)):i=new j(l+""),i.c[0]){for((l=(c=i.e)+u)<3&&(l=0);;)if(o=i,i=d.times(o.plus(t(s,o,u,1))),m(o.c).slice(0,l)===(r=m(i.c)).slice(0,l)){if(i.e<c&&--l,"9999"!=(r=r.slice(l-3,l+1))&&(n||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(F(i,i.e+k+2,1),e=!i.times(i).eq(s));break}if(!n&&(F(o,o.e+k+2,0),o.times(o).eq(s))){i=o;break}u+=4,l+=4,n=1}}return F(i,i.e+k+1,S,e)},E.toExponential=function(e,t){return null!=e&&(y(e,0,f),e++),B(this,e,t,1)},E.toFixed=function(e,t){return null!=e&&(y(e,0,f),e=e+this.e+1),B(this,e,t)},E.toFormat=function(e,t,r){var i,n=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=M;else if("object"!=typeof r)throw Error(s+"Argument not an object: "+r);if(i=n.toFixed(e,t),n.c){var o,a=i.split("."),l=+r.groupSize,c=+r.secondaryGroupSize,u=r.groupSeparator||"",d=a[0],h=a[1],f=n.s<0,p=f?d.slice(1):d,g=p.length;if(c&&(o=l,l=c,c=o,g-=o),l>0&&g>0){for(o=g%l||l,d=p.substr(0,o);o<g;o+=l)d+=u+p.substr(o,l);c>0&&(d+=u+p.slice(o)),f&&(d="-"+d)}i=h?d+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):d}return(r.prefix||"")+i+(r.suffix||"")},E.toFraction=function(e){var r,i,n,o,a,l,u,h,f,p,g,w,y=this,b=y.c;if(null!=e&&(!(u=new j(e)).isInteger()&&(u.c||1!==u.s)||u.lt(C)))throw Error(s+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+z(u));if(!b)return new j(y);for(r=new j(C),f=i=new j(C),n=h=new j(C),w=m(b),a=r.e=w.length-y.e-1,r.c[0]=d[(l=a%c)<0?c+l:l],e=!e||u.comparedTo(r)>0?a>0?r:f:u,l=R,R=1/0,u=new j(w),h.c[0]=0;p=t(u,r,0,1),1!=(o=i.plus(p.times(n))).comparedTo(e);)i=n,n=o,f=h.plus(p.times(o=f)),h=o,r=u.minus(p.times(o=r)),u=o;return o=t(e.minus(i),n,0,1),h=h.plus(o.times(f)),i=i.plus(o.times(n)),h.s=f.s=y.s,a*=2,g=1>t(f,n,a,S).minus(y).abs().comparedTo(t(h,i,a,S).minus(y).abs())?[f,n]:[h,i],R=l,g},E.toNumber=function(){return+z(this)},E.toPrecision=function(e,t){return null!=e&&y(e,1,f),B(this,e,t,2)},E.toString=function(e){var t,i=this,n=i.s,o=i.e;return null===o?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=o<=A||o>=I?v(m(i.c),o):_(m(i.c),o,"0"):10===e&&L?t=_(m((i=F(new j(i),k+o+1,S)).c),i.e,"0"):(y(e,2,D.length,"Base"),t=r(_(m(i.c),o,"0"),10,e,n,!0)),n<0&&i.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return z(this)},E._isBigNumber=!0,E[Symbol.toStringTag]="BigNumber",E[Symbol.for("nodejs.util.inspect.custom")]=E.valueOf,null!=e&&j.set(e),j}function g(e){var t=0|e;return e>0||e===t?t:t-1}function m(e){for(var t,r,i=1,n=e.length,o=e[0]+"";i<n;){for(r=c-(t=e[i++]+"").length;r--;t="0"+t);o+=t}for(n=o.length;48===o.charCodeAt(--n););return o.slice(0,n+1||1)}function w(e,t){var r,i,n=e.c,o=t.c,s=e.s,a=t.s,l=e.e,c=t.e;if(!s||!a)return null;if(r=n&&!n[0],i=o&&!o[0],r||i)return r?i?0:-a:s;if(s!=a)return s;if(r=s<0,i=l==c,!n||!o)return i?0:!n^r?1:-1;if(!i)return l>c^r?1:-1;for(s=0,a=(l=n.length)<(c=o.length)?l:c;s<a;s++)if(n[s]!=o[s])return n[s]>o[s]^r?1:-1;return l==c?0:l>c^r?1:-1}function y(e,t,r,i){if(e<t||e>r||e!==o(e))throw Error(s+(i||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function b(e){var t=e.c.length-1;return g(e.e/c)==t&&e.c[t]%2!=0}function v(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t,r){var i,n;if(t<0){for(n=r+".";++t;n+=r);e=n+e}else if(i=e.length,++t>i){for(n=r,t-=i;--t;n+=r);e+=n}else t<i&&(e=e.slice(0,t)+"."+e.slice(t));return e}var x=p();t.Z=x},17507:function(e,t,r){"use strict";r.d(t,{wn:function(){return o}});var i=r(92530),n=r(13744);(0,n.gn)(i.R4);let o=(()=>{let e=(0,n.gn)(i.fr);return e.create=i.fr.create,e})();(0,n.gn)(i.HY),(0,n.gn)(i.x)},59782:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});var i=r(29272);let n=(0,r(13744).gn)(i.J)},13744:function(e,t,r){"use strict";r.d(t,{gn:function(){return s},hD:function(){return o},iY:function(){return n.iY}});var i=r(74043),n=r(25884);function o(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function s(e){return t=>(i.ZP.bytes(t),e(t))}i.ZP.bool,i.ZP.bytes,(()=>{let e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,t="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);return t&&!e?t("crypto"):void 0})()},87336:function(e,t,r){"use strict";r.d(t,{v:function(){return i}});var i=r(77625)},27600:function(e,t,r){"use strict";let i;function n(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function o(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let i=n(r);return(e,r)=>i.then(i=>r(i.transaction(t,e).objectStore(t)))}
9814function s(){return i||(i=o("keyval-store","keyval")),i}function a(e,t=s()){return t("readonly",t=>n(t.get(e)))}function l(e,t,r=s()){return r("readwrite",r=>(r.put(t,e),n(r.transaction)))}function c(e,t=s()){return t("readwrite",t=>(t.delete(e),n(t.transaction)))}function u(e=s()){return e("readwrite",e=>(e.clear(),n(e.transaction)))}function d(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},n(e.transaction)}function h(e=s()){return e("readonly",e=>{if(e.getAllKeys)return n(e.getAllKeys());let t=[];return d(e,e=>t.push(e.key)).then(()=>t)})}r.d(t,{IV:function(){return c},MT:function(){return o},U2:function(){return a},XP:function(){return h},ZH:function(){return u},t8:function(){return l}})},14474:function(e,t,r){"use strict";r.d(t,{o:function(){return s}});class i extends Error{}function n(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function o(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{return n(t)}catch(e){return atob(t)}}function s(e,t){let r;if("string"!=typeof e)throw new i("Invalid token specified: must be a string");t||(t={});let n=!0===t.header?0:1,s=e.split(".")[n];if("string"!=typeof s)throw new i(`Invalid token specified: missing part #${n+1}`);try{r=o(s)}catch(e){throw new i(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new i(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}i.prototype.name="InvalidTokenError"},25922:function(e,t,r){"use strict";r.d(t,{F:function(){return u},f:function(){return d}});var i=r(2265),n=(e,t,r,i,n,o,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,i=r&&o?n.map(e=>o[e]||e):n;r?(l.classList.remove(...i),l.classList.add(t)):l.setAttribute(e,t)}),d(t)}function d(e){a&&c.includes(e)&&(l.style.colorScheme=e)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)u(i);else try{let e=localStorage.getItem(t)||r,i=s&&"system"===e?h():e;u(i)}catch(e){}},o=["light","dark"],s="(prefers-color-scheme: dark)",a="undefined"==typeof window,l=i.createContext(void 0),c={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=i.useContext(l))?e:c},d=e=>i.useContext(l)?i.createElement(i.Fragment,null,e.children):i.createElement(f,{...e}),h=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:c="theme",themes:u=h,defaultTheme:d=n?"system":"light",attribute:f="data-theme",value:y,children:b,nonce:v,scriptProps:_}=e,[x,E]=i.useState(()=>g(c,d)),[C,k]=i.useState(()=>g(c)),S=y?Object.values(y):u,A=i.useCallback(e=>{let t=e;if(!t)return;"system"===e&&n&&(t=w());let i=y?y[t]:t,s=r?m(v):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...S),i&&l.classList.add(i)):e.startsWith("data-")&&(i?l.setAttribute(e,i):l.removeAttribute(e))};if(Array.isArray(f)?f.forEach(c):c(f),a){let e=o.includes(d)?d:null,r=o.includes(t)?t:e;l.style.colorScheme=r}null==s||s()},[v]),I=i.useCallback(e=>{let t="function"==typeof e?e(x):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[x]),T=i.useCallback(e=>{k(w(e)),"system"===x&&n&&!t&&A("system")},[x,t]);i.useEffect(()=>{let e=window.matchMedia(s);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),i.useEffect(()=>{let e=e=>{e.key===c&&I(e.newValue||d)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[I]),i.useEffect(()=>{A(null!=t?t:x)},[t,x]);let R=i.useMemo(()=>({theme:x,setTheme:I,forcedTheme:t,resolvedTheme:"system"===x?C:x,themes:n?[...u,"system"]:u,systemTheme:n?C:void 0}),[x,I,t,C,n,u]);return i.createElement(l.Provider,{value:R},i.createElement(p,{forcedTheme:t,storageKey:c,attribute:f,enableSystem:n,enableColorScheme:a,defaultTheme:d,value:y,themes:u,nonce:v,scriptProps:_}),b)},p=i.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:o,enableSystem:s,enableColorScheme:a,defaultTheme:l,value:c,themes:u,nonce:d,scriptProps:h}=e,f=JSON.stringify([o,r,l,t,u,c,s,a]).slice(1,-1);return i.createElement("script",{...h,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(n.toString(),")(").concat(f,")")}})}),g=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},m=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},w=e=>
9814(e||(e=window.matchMedia(s)),e.matches?"dark":"light")},65866:function(e,t,r){"use strict";r.d(t,{Ix:function(){return et},Am:function(){return F}});var i=r(2265);function n(e){var t,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r)}return i}var o=function(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=" "),i+=t);return i};!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
9814.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
9814}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var s=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,l=e=>"function"==typeof e,c=e=>a(e)||s(e),u=e=>a(e)||l(e)?e:null,d=(e,t)=>!1===e||s(e)&&e>0?e:t,h=e=>(0,i.isValidElement)(e)||a(e)||l(e)||s(e);function f(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,{scrollHeight:i,style:n}=e;requestAnimationFrame(()=>{n.minHeight="initial",n.height=i+"px",n.transition="all ".concat(r,"ms"),requestAnimationFrame(()=>{n.height="0",n.padding="0",n.margin="0",setTimeout(t,r)})})}function p(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(e){let{children:a,position:l,preventExitTransition:c,done:u,nodeRef:d,isIn:h,playToast:p}=e,g=n?"".concat(t,"--").concat(l):t,m=n?"".concat(r,"--").concat(l):r,w=(0,i.useRef)(0);return(0,i.useLayoutEffect)(()=>{let e=d.current,t=g.split(" "),r=i=>{i.target===d.current&&(p(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===w.current&&"animationcancel"!==i.type&&e.classList.remove(...t))};(()=>{e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)})()},[]),(0,i.useEffect)(()=>{let e=d.current,t=()=>{e.removeEventListener("animationend",t),o?f(e,u,s):u()};h||(c?t():(()=>{w.current=1,e.className+=" ".concat(m),e.addEventListener("animationend",t)})())},[h]),i.createElement(i.Fragment,null,a)}}function g(e,t){return{content:m(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function m(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,i.isValidElement)(e)&&!a(e.type)?(0,i.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):l(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function w(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return i.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(r),type:"button",onClick:e=>{e.stopPropagation(),t(!0)},"aria-label":n},i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function y(e){let{delay:t,isRunning:r,closeToast:n,type:s="default",hide:a,className:c,controlledProgress:u,progress:d,rtl:h,isIn:f,theme:p}=e,g=a||u&&0===d,m={animationDuration:"".concat(t,"ms"),animationPlayState:r?"running":"paused"};u&&(m.transform="scaleX(".concat(d,")"));let w=o("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(p),"Toastify__progress-bar--".concat(s),{"Toastify__progress-bar--rtl":h}),y=l(c)?c({rtl:h,type:s,defaultClassName:w}):o(w,c),b={[u&&d>=1?"onTransitionEnd":"onAnimationEnd"]:u&&d<1?null:()=>{f&&n()}};return i.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},i.createElement("div",{className:"Toastify__progress-bar--bg Toastify__progress-bar-theme--".concat(p," Toastify__progress-bar--").concat(s)}),i.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:y,style:m,...b}))}var b=1,v=()=>"".concat(b++);function _(e,t,r){let i=1,n=0,o=[],a=[],l=t,c=new Map,f=new Set,p=()=>
9814{a=Array.from(c.values()),f.forEach(e=>e())},m=t=>{let{containerId:r,toastId:i,updateId:n}=t,o=r?r!==e:1!==e,s=c.has(i)&&null==n;return o||s},w=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},y=e=>{if(null==e)c.forEach(w);else{let t=c.get(e);t&&w(t)}p()},b=e=>{var t,i;let{toastId:n,updateId:o}=e.props,s=null==o;e.staleId&&c.delete(e.staleId),e.isActive=!0,c.set(n,e),p(),r(g(e,s?"added":"updated")),s&&(null==(i=(t=e.props).onOpen)||i.call(t))};return{id:e,props:l,observe:e=>(f.add(e),()=>f.delete(e)),toggle:(e,t)=>{c.forEach(r=>{var i;(null==t||t===r.props.toastId)&&(null==(i=r.toggle)||i.call(r,e))})},removeToast:y,toasts:c,clearQueue:()=>{n-=o.length,o=[]},buildToast:(e,t)=>{if(m(t))return;let{toastId:a,updateId:f,data:w,staleId:v,delay:_}=t,x=null==f;x&&n++;let E={...l,style:l.toastStyle,key:i++,...Object.fromEntries(Object.entries(t).filter(e=>{let[t,r]=e;return null!=r})),toastId:a,updateId:f,data:w,isIn:!1,className:u(t.className||l.toastClassName),progressClassName:u(t.progressClassName||l.progressClassName),autoClose:!t.isLoading&&d(t.autoClose,l.autoClose),closeToast(e){c.get(a).removalReason=e,y(a)},deleteToast(){let e=c.get(a);if(null!=e){if(r(g(e,"removed")),c.delete(a),--n<0&&(n=0),o.length>0){b(o.shift());return}p()}}};E.closeButton=l.closeButton,!1===t.closeButton||h(t.closeButton)?E.closeButton=t.closeButton:!0===t.closeButton&&(E.closeButton=!h(l.closeButton)||l.closeButton);let C={content:e,props:E,staleId:v};l.limit&&l.limit>0&&n>l.limit&&x?o.push(C):s(_)?setTimeout(()=>{b(C)},_):b(C)},setProps(e){l=e},setToggle:(e,t)=>{let r=c.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=c.get(e))?void 0:t.isActive},getSnapshot:()=>a}}var x=new Map,E=[],C=new Set,k=e=>C.forEach(t=>t(e)),S=()=>x.size>0;function A(){E.forEach(e=>P(e.content,e.options)),E=[]}var I=(e,t)=>{var r;let{containerId:i}=t;return null==(r=x.get(i||1))?void 0:r.toasts.get(e)};function T(e,t){var r;if(t)return!!(null!=(r=x.get(t))&&r.isToastActive(e));let i=!1;return x.forEach(t=>{t.isToastActive(e)&&(i=!0)}),i}function R(e){if(!S()){E=E.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||c(e))x.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=x.get(e.containerId);t?t.removeToast(e.id):x.forEach(t=>{t.removeToast(e.id)})}}var O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};x.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function P(e,t){h(e)&&(S()||E.push({content:e,options:t}),x.forEach(r=>{r.buildToast(e,t)}))}function N(e){var t;null==(t=x.get(e.containerId||1))||t.setToggle(e.id,e.fn)}function M(e,t){x.forEach(r=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==r.id||r.toggle(e,null==t?void 0:t.id)})}function D(e){let t=e.containerId||1;return{subscribe(r){let i=_(t,e,k);x.set(t,i);let n=i.observe(r);return A(),()=>{n(),x.delete(t)}},setProps(e){var r;null==(r=x.get(t))||r.setProps(e)},getSnapshot(){var e;return null==(e=x.get(t))?void 0:e.getSnapshot()}}}function L(e){return C.add(e),()=>{C.delete(e)}}function j(e){return e&&(a(e.toastId)||s(e.toastId))?e.toastId:v()}function B(e,t){return P(e,t),t.toastId}function $(e,t){return{...t,type:t&&t.type||e,toastId:j(t)}}function U(e){return(t,r)=>B(t,$(e,r))}function F(e,t){return B(e,$("default",t))}function z(e,t,r){let i,{pending:n,error:o,success:s}=t;n&&(i=a(n)?F.loading(n,r):F.loading(n.render,{...r,...n}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,n)=>{if(null==t){F.dismiss(i);return}let o={type:e,...c,...r,data:n},s=a(t)?{render:t}:t;return i?F.update(i,{...o,...s}):F(s.render,{...o,...s}),n},d=l(e)?e():e;return d.then(e=>u("success",s,e)).catch(e=>u("error",o,e)),d}function q(e){R(e)}function W(e){var t;let{subscribe:r,getSnapshot:n,setProps:o}=(0,i.useRef)(D(e)).current;o(e);let s=null==(t=(0,i.useSyncExternalStore)(r,n,n))?void 0:t.slice();return{getToastToRender:function(t){if(!s)return[];let r=new Map;
9814return e.newestOnTop&&s.reverse(),s.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:T,count:null==s?void 0:s.length}}function H(e){let[t,r]=(0,i.useState)(!1),[n,o]=(0,i.useState)(!1),s=(0,i.useRef)(null),a=(0,i.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=e;function f(){document.hasFocus()||m(),window.addEventListener("focus",g),window.addEventListener("blur",m)}function p(){window.removeEventListener("focus",g),window.removeEventListener("blur",m)}function g(){r(!0)}function m(){r(!1)}function w(){a.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",v)}function y(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",v)}function b(r){let i=s.current;if(a.canDrag&&i){a.didMove=!0,t&&m(),"x"===e.draggableDirection?a.delta=r.clientX-a.start:a.delta=r.clientY-a.start,a.start!==r.clientX&&(a.canCloseOnClick=!1);let n="x"===e.draggableDirection?"".concat(a.delta,"px, var(--y)"):"0, calc(".concat(a.delta,"px + var(--y))");i.style.transform="translate3d(".concat(n,",0)"),i.style.opacity="".concat(1-Math.abs(a.delta/a.removalDistance))}}function v(){y();let t=s.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance){o(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}N({id:e.toastId,containerId:e.containerId,fn:r}),(0,i.useEffect)(()=>{if(e.pauseOnFocusLoss)return f(),()=>{p()}},[e.pauseOnFocusLoss]);let _={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){w();let r=s.current;a.canCloseOnClick=!0,a.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(a.start=t.clientX,a.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(a.start=t.clientY,a.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:i,left:n,right:o}=s.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=n&&t.clientX<=o&&t.clientY>=r&&t.clientY<=i?m():g()}};return l&&c&&(_.onMouseEnter=m,e.stacked||(_.onMouseLeave=g)),h&&(_.onClick=e=>{d&&d(e),a.canCloseOnClick&&u(!0)}),{playToast:g,pauseToast:m,isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:_}}F.loading=(e,t)=>
9814B(e,$("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),F.promise=z,F.success=U("success"),F.info=U("info"),F.error=U("error"),F.warning=U("warning"),F.warn=F.warning,F.dark=(e,t)=>B(e,$("default",{theme:"dark",...t})),F.dismiss=q,F.clearWaitingQueue=O,F.isActive=T,F.update=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=I(e,t);if(r){let{props:i,content:n}=r,o={delay:100,...i,...t,toastId:t.toastId||e,updateId:v()};o.toastId!==e&&(o.staleId=e);let s=o.render||n;delete o.render,B(s,o)}},F.done=e=>{F.update(e,{progress:1})},F.onChange=L,F.play=e=>M(!0,e),F.pause=e=>M(!1,e);var V="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,Z=e=>{let{theme:t,type:r,isLoading:n,...o}=e;return i.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-".concat(r,")"),...o})},K={info:function(e){return i.createElement(Z,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return i.createElement(Z,{...e},i.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return i.createElement(Z,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return i.createElement(Z,{...e},i.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return i.createElement("div",{className:"Toastify__spinner"})}},G=e=>e in K;function Y(e){let{theme:t,type:r,isLoading:n,icon:o}=e,s=null,a={theme:t,type:r};return!1===o||(l(o)?s=o({...a,isLoading:n}):(0,i.isValidElement)(o)?s=(0,i.cloneElement)(o,a):n?s=K.spinner():G(r)&&(s=K[r](a))),s}var J=e=>{let{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:s,playToast:a}=H(e),{closeButton:c,children:u,autoClose:d,onClick:h,type:f,hideProgressBar:p,closeToast:g,transition:b,position:v,className:_,style:x,progressClassName:E,updateId:C,role:k,progress:S,rtl:A,toastId:I,deleteToast:T,isIn:R,isLoading:O,closeOnClick:P,theme:N,ariaLabel:M}=e,D=o("Toastify__toast","Toastify__toast-theme--".concat(N),"Toastify__toast--".concat(f),{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":P}),L=l(_)?_({rtl:A,position:v,type:f,defaultClassName:D}):o(D,_),j=Y(e),B=!!S||!d,$={closeToast:g,type:f,theme:N},U=null;return!1===c||(U=l(c)?c($):(0,i.isValidElement)(c)?(0,i.cloneElement)(c,$):w($)),i.createElement(b,{isIn:R,done:T,position:v,preventExitTransition:r,nodeRef:n,playToast:a},i.createElement("div",{id:I,tabIndex:0,onClick:h,"data-in":R,className:L,...s,style:x,ref:n,...R&&{role:k,"aria-label":M}},null!=j&&i.createElement("div",{className:o("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!O})},j),m(u,e,!t),U,!e.customProgressBar&&i.createElement(y,{...C&&!B?{key:"p-".concat(C)}:{},rtl:A,theme:N,delay:d,isRunning:t,isIn:R,closeToast:g,hide:p,type:f,className:E,controlledProgress:B,progress:S||0})))},Q=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},X=p(Q("bounce",!0));p(Q("slide",!0)),p(Q("zoom")),p(Q("flip"));var ee={position:"top-right",transition:X,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function et(e){let t={...ee,...e},r=e.stacked,[n,s]=(0,i.useState)(!0),a=(0,i.useRef)(null),{getToastToRender:c,isToastActive:d,count:h}=W(t),{className:f,style:p,rtl:g,containerId:m,hotKeys:w}=t;function y(e){let t=o("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":g});return l(f)?f({position:e,rtl:g,defaultClassName:t}):o(t,u(f))}function b(){r&&(s(!0),F.play())}return V(()=>{var e;if(r){let r=a.current.querySelectorAll('[data-in="true"]'),i=12,o=null==(e=t.position)?void 0:e.includes("top"),s=0,l=0;
9814Array.from(r).reverse().forEach((e,t)=>{let r=e;r.classList.add("Toastify__toast--stacked"),t>0&&(r.dataset.collapsed="".concat(n)),r.dataset.pos||(r.dataset.pos=o?"top":"bot");let a=s*(n?.2:1)+(n?0:i*t);r.style.setProperty("--y","".concat(o?a:-1*a,"px")),r.style.setProperty("--g","".concat(i)),r.style.setProperty("--s","".concat(1-(n?l:0))),s+=r.offsetHeight,l+=.025})}},[n,h,r]),(0,i.useEffect)(()=>{function e(e){var t;let r=a.current;w(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),s(!1),F.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(s(!0),F.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[w]),i.createElement("section",{ref:a,className:"Toastify",id:m,onMouseEnter:()=>{r&&(s(!1),F.pause())},onMouseLeave:b,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},c((e,t)=>{let n=t.length?{...p}:{...p,pointerEvents:"none"};return i.createElement("div",{tabIndex:-1,className:y(e),"data-stacked":r,style:n,key:"c-".concat(e)},t.map(e=>{let{content:t,props:n}=e;return i.createElement(J,{...n,stacked:r,collapseAll:b,isIn:d(n.toastId,n.containerId),key:"t-".concat(n.key)},t)}))}))}},79482:function(e,t,r){"use strict";let i,n;r.d(t,{io:function(){return eZ}});var o,s={};r.r(s),r.d(s,{Decoder:function(){return e$},Encoder:function(){return ej},PacketType:function(){return o},protocol:function(){return eL}});let a=Object.create(null);a.open="0",a.close="1",a.ping="2",a.pong="3",a.message="4",a.upgrade="5",a.noop="6";let l=Object.create(null);Object.keys(a).forEach(e=>{l[a[e]]=e});let c={type:"error",data:"parser error"},u="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),d="function"==typeof ArrayBuffer,h=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,f=({type:e,data:t},r,i)=>u&&t instanceof Blob?r?i(t):p(t,i):d&&(t instanceof ArrayBuffer||h(t))?r?i(t):p(new Blob([t]),i):i(a[e]+(t||"")),p=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function g(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function m(e,t){return u&&e.data instanceof Blob?e.data.arrayBuffer().then(g).then(t):d&&(e.data instanceof ArrayBuffer||h(e.data))?t(g(e.data)):void f(e,!1,e=>{i||(i=new TextEncoder),t(i.encode(e))})}let w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<w.length;e++)y[w.charCodeAt(e)]=e;let b=e=>{let t=.75*e.length,r=e.length,i,n=0,o,s,a,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(i=0;i<r;i+=4)o=y[e.charCodeAt(i)],s=y[e.charCodeAt(i+1)],a=y[e.charCodeAt(i+2)],l=y[e.charCodeAt(i+3)],u[n++]=o<<2|s>>4,u[n++]=(15&s)<<4|a>>2,u[n++]=(3&a)<<6|63&l;return c},v="function"==typeof ArrayBuffer,_=(e,t)=>{if("string"!=typeof e)return{type:"message",data:E(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:x(e.substring(1),t)}:l[r]?e.length>1?{type:l[r],data:e.substring(1)}:{type:l[r]}:c},x=(e,t)=>v?E(b(e),t):{base64:!0,data:e},E=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,C="\x1e",k=(e,t)=>{let r=e.length,i=Array(r),n=0;e.forEach((e,o)=>{f(e,!1,e=>{i[o]=e,++n===r&&t(i.join(C))})})},S=(e,t)=>{let r=e.split(C),i=[];for(let e=0;e<r.length;e++){let n=_(r[e],t);if(i.push(n),"error"===n.type)break}return i};function A(){return new TransformStream({transform(e,t){m(e,r=>{let i;let n=r.length;if(n<126)new DataView((i=new Uint8Array(1)).buffer).setUint8(0,n);else if(n<65536){let e=new DataView((i=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,n)}else{let e=new DataView((i=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(r)})}})}function I(e){return e.reduce((e,t)=>
9814e+t.length,0)}function T(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),i=0;for(let n=0;n<t;n++)r[n]=e[0][i++],i===e[0].length&&(e.shift(),i=0);return e.length&&i<e[0].length&&(e[0]=e[0].slice(i)),r}function R(e,t){n||(n=new TextDecoder);let r=[],i=0,o=-1,s=!1;return new TransformStream({transform(a,l){for(r.push(a);;){if(0===i){if(1>I(r))break;let e=T(r,1);s=(128&e[0])==128,i=(o=127&e[0])<126?3:126===o?1:2}else if(1===i){if(2>I(r))break;let e=T(r,2);o=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),i=3}else if(2===i){if(8>I(r))break;let e=T(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),n=t.getUint32(0);if(n>2097151){l.enqueue(c);break}o=4294967296*n+t.getUint32(4),i=3}else{if(I(r)<o)break;let e=T(r,o);l.enqueue(_(s?e:n.decode(e),t)),i=0}if(0===o||o>e){l.enqueue(c);break}}}})}let O=4;var P=r(57146);let N="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function M(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}let D=N.setTimeout,L=N.clearTimeout;function j(e,t){t.useNativeTimers?(e.setTimeoutFn=D.bind(N),e.clearTimeoutFn=L.bind(N)):(e.setTimeoutFn=N.setTimeout.bind(N),e.clearTimeoutFn=N.clearTimeout.bind(N))}let B=1.33;function $(e){return"string"==typeof e?U(e):Math.ceil((e.byteLength||e.size)*B)}function U(e){let t=0,r=0;for(let i=0,n=e.length;i<n;i++)(t=e.charCodeAt(i))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(i++,r+=4);return r}function F(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function z(e){let t={},r=e.split("&");for(let e=0,i=r.length;e<i;e++){let i=r[e].split("=");
9814t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class q extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class W extends P.Emitter{constructor(e){super(),this.writable=!1,j(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new q(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=_(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=F(e);return t.length?"?"+t:""}}let H="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),V=64,Z={},K=0,G=0,Y;function J(e){let t="";do t=H[e%V]+t,e=Math.floor(e/V);while(e>0);return t}function Q(){let e=J(+new Date);return e!==Y?(K=0,Y=e):e+"."+J(K++)}for(;G<V;G++)Z[H[G]]=G;let X=!1;try{X="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}let ee=X;function et(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||ee))return new XMLHttpRequest}catch(e){}if(!t)try{return new N[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}function er(){}function ei(){}let en=function(){return null!=new et({xdomain:!1}).responseType}();class eo extends W{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}let t=e&&e.forceBase64;this.supportsBinary=en&&!t,this.opts.withCredentials&&(this.cookieJar=er())}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};S(e,this.socket.binaryType).forEach(t),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,k(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Q()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new es(this.uri(),e)}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class es extends P.Emitter{constructor(e,t){super(),j(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;let t=M(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;let r=this.xhr=new et(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}catch(e){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.
9814status||1223===r.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof r.status?r.status:0)},0))},r.send(this.data)}catch(e){this.setTimeoutFn(()=>{this.onError(e)},0);return}"undefined"!=typeof document&&(this.index=es.requestsCount++,es.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=ei,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete es.requests[this.index],this.xhr=null}}onLoad(){let e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}function ea(){for(let e in es.requests)es.requests.hasOwnProperty(e)&&es.requests[e].abort()}es.requestsCount=0,es.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ea):"function"==typeof addEventListener&&addEventListener("onpagehide"in N?"pagehide":"unload",ea,!1));let el="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),ec=N.WebSocket||N.MozWebSocket,eu=!0,ed="arraybuffer";var eh=r(82957).Buffer;let ef="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class ep extends W{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let e=this.uri(),t=this.opts.protocols,r=ef?{}:M(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=eu&&!ef?t?new ec(e,t):new ec(e):new ec(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],i=t===e.length-1;f(r,this.supportsBinary,e=>{let t={};!eu&&(r.options&&(t.compress=r.options.compress),this.opts.perMessageDeflate&&("string"==typeof e?eh.byteLength(e):e.length)<this.opts.perMessageDeflate.threshold&&(t.compress=!1));try{eu?this.ws.send(e):this.ws.send(e,t)}catch(e){}i&&el(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Q()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!ec}}class eg extends W{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{let t=R(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),i=A();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();let n=()=>{r.read().then(({done:e,value:t})=>{e||(this.onPacket(t),n())}).catch(e=>{})};n();let o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],i=t===e.length-1;this.writer.write(r).then(()=>{i&&el(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}}let em={websocket:ep,webtransport:eg,polling:eo},ew=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ey=["s
9814ource","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function eb(e){if(e.length>2e3)throw"URI too long";let t=e,r=e.indexOf("["),i=e.indexOf("]");-1!=r&&-1!=i&&(e=e.substring(0,r)+e.substring(r,i).replace(/:/g,";")+e.substring(i,e.length));let n=ew.exec(e||""),o={},s=14;for(;s--;)o[ey[s]]=n[s]||"";return -1!=r&&-1!=i&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ev(o,o.path),o.queryKey=e_(o,o.query),o}function ev(e,t){let r=/\/{2,9}/g,i=t.replace(r,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&i.splice(0,1),"/"==t.slice(-1)&&i.splice(i.length-1,1),i}function e_(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,i){t&&(r[t]=i)}),r}class ex extends P.Emitter{constructor(e,t={}){super(),this.binaryType=ed,this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=eb(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=eb(t.host).host),j(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=z(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=O,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new em[e](r)}open(){let e;if(this.opts.rememberUpgrade&&ex.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(e){let t=this.createTransport(e),r=!1;ex.priorWebsocketSuccess=!1;let i=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(ex.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"===this.readyState||(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function n(){r||(r=!0,c(),t.close(),t=null)}let o=e=>{let r=Error("probe error: "+e);r.transport=t.name,n(),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function l(e){t&&e.name!==t.name&&n()}let c=()=>{t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",s
9814),this.off("close",a),this.off("upgrading",l)};t.once("open",i),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",l),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onOpen(){if(this.readyState="open",ex.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0,t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let t=Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+=$(r)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,i){if("function"==typeof t&&(i=t,t=void 0),"function"==typeof r&&(i=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let n={type:e,data:t,options:r};this.emitReserved("packetCreate",n),this.writeBuffer.push(n),i&&this.once("flush",i),this.flush()}close(){let e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){ex.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){let t=[],r=0,i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}function eE(e,t="",r){let i=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),i=eb(e)),!i.port&&(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let n=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;
9814return i.id=i.protocol+"://"+n+":"+i.port+t,i.href=i.protocol+"://"+n+(r&&r.port===i.port?"":":"+i.port),i}ex.protocol=O,ex.protocol;let eC="function"==typeof ArrayBuffer,ek=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,eS=Object.prototype.toString,eA="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===eS.call(Blob),eI="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===eS.call(File);function eT(e){return eC&&(e instanceof ArrayBuffer||ek(e))||eA&&e instanceof Blob||eI&&e instanceof File}function eR(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)if(eR(e[t]))return!0;return!1}if(eT(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return eR(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&eR(e[t]))return!0;return!1}function eO(e){let t=[],r=e.data,i=e;return i.data=eP(r,t),i.attachments=t.length,{packet:i,buffers:t}}function eP(e,t){if(!e)return e;if(eT(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}if(Array.isArray(e)){let r=Array(e.length);for(let i=0;i<e.length;i++)r[i]=eP(e[i],t);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=eP(e[i],t));return r}return e}function eN(e,t){return e.data=eM(e.data,t),delete e.attachments,e}function eM(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=eM(e[r],t);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=eM(e[r],t));return e}let eD=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],eL=5;!function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o||(o={}));class ej{constructor(e){this.replacer=e}encode(e){return(e.type===o.EVENT||e.type===o.ACK)&&eR(e)?this.encodeAsBinary({type:e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===o.BINARY_EVENT||e.type===o.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=eO(e),r=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(r),i}}function eB(e){return"[object Object]"===Object.prototype.toString.call(e)}class e$ extends P.Emitter{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===o.BINARY_EVENT;r||t.type===o.BINARY_ACK?(t.type=r?o.EVENT:o.ACK,this.reconstructor=new eU(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(eT(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===o[r.type])throw Error("unknown packet type "+r.type);if(r.type===o.BINARY_EVENT||r.type===o.BINARY_ACK){let i=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let n=e.substring(i,t);if(n!=Number(n)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(n)}if("/"===e.charAt(t+1)){let i=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(i,t)}else r.nsp="/";let i=e.charAt(t+1);if(""!==i&&Number(i)==i){let i=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){let i=this.tryParse(e.substr(t));if(e$.isPayloadValid(r.type,i))r.data=i;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case o.CONNECT:return eB(t);case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||eB(t);case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===eD.indexOf(t[0]));case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class eU{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=eN(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function eF(e,t,r){return e.on(t,r),function(){e.off(t,r)}}let ez=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class eq extends P.Emitter{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[eF(e,"open",this.onopen.bind(this)),eF(e,"packet",this.onpacket.b
9814ind(this)),eF(e,"error",this.onerror.bind(this)),eF(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(ez.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let r={type:o.EVENT,data:t};if(r.options={},r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,i=t.pop();this._registerAckCallback(e,i),r.id=e}let i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return(!this.flags.volatile||i&&this.connected)&&(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){var r;let i=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===i){this.acks[e]=t;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},i),o=(...e)=>{this.io.clearTimeoutFn(n),t.apply(this,e)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((r,i)=>{let n=(e,t)=>e?i(e):r(t);n.withError=!0,t.push(n),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...i)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...i)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:o.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}
9814_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(!(e.nsp!==this.nsp))switch(e.type){case o.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.EVENT:case o.BINARY_EVENT:this.onevent(e);break;case o.ACK:case o.BINARY_ACK:this.onack(e);break;case o.DISCONNECT:this.ondisconnect();break;case o.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...i){r||(r=!0,t.packet({type:o.ACK,id:e,data:i}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:o.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function eW(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}eW.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},eW.prototype.reset=function(){this.attempts=0},eW.prototype.setMin=function(e){this.ms=e},eW.prototype.setMax=function(e){this.max=e},eW.prototype.setJitter=function(e){this.jitter=e};class eH extends P.Emitter{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,j(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new eW({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let i=t.parser||s;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ex(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=eF(t,"open",function(){r.onopen(),e&&e()}),n=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=eF(t,"error",n);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{i(),n(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(eF(e,"ping",this.onping.bind(this)),eF(e,"data",this.ondata.bind(this)),eF(e,"error",this.onerror.bind(this)),eF(e,"close",this.onclose.bind(this)),eF(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){el(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new eq(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}
9814cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}let eV={};function eZ(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let i=eE(e,(t=t||{}).path||"/socket.io"),n=i.source,o=i.id,s=i.path,a=eV[o]&&s in eV[o].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||a?r=new eH(n,t):(eV[o]||(eV[o]=new eH(n,t)),r=eV[o]),i.query&&!t.query&&(t.query=i.queryKey),r.socket(i.path,t)}Object.assign(eZ,{Manager:eH,Socket:eq,io:eZ,connect:eZ})},15400:function(e,t,r){"use strict";function i(e,t){var r=Object.setPrototypeOf;r?r(e,t):e.__proto__=t}function n(e,t){void 0===t&&(t=e.constructor);var r=Error.captureStackTrace;r&&r(e,t)}r.d(t,{s:function(){return s}});var o=function(){var e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),s=function(e){function t(t,r){var o=this.constructor,s=e.call(this,t,r)||this;return Object.defineProperty(s,"name",{value:o.name,enumerable:!1,configurable:!0}),i(s,o.prototype),n(s),s}return o(t,e),t}(Error)},55389:function(e,t,r){"use strict";function i(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}r.d(t,{E:function(){return i}})},8578:function(e,t,r){"use strict";r.d(t,{z:function(){return n}});var i=r(55389);function n(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=(0,i.E)(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}},93870:function(e,t,r){"use strict";r.d(t,{m:function(){return n}});var i=r(93393);function n(e,t="utf8"){let r=i.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}},47783:function(e,t,r){"use strict";r.d(t,{BB:function(){return o.B},mL:function(){return n.m},zo:function(){return i.z}});var i=r(8578),n=r(93870),o=r(71243)},71243:function(e,t,r){"use strict";r.d(t,{B:function(){return n}});var i=r(93393);function n(e,t="utf8"){let r=i.Z[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},93393:function(e,t,r){"use strict";r.d(t,{Z:function(){return tn}});var i={};r.r(i),r.d(i,{identity:function(){return P}});var n={};r.r(n),r.d(n,{base2:function(){return N}});var o={};r.r(o),r.d(o,{base8:function(){return M}});var s={};r.r(s),r.d(s,{base10:function(){return D}});var a={};r.r(a),r.d(a,{base16:function(){return L},base16upper:function(){return j}});var l={};r.r(l),r.d(l,{base32:function(){return B},base32hex:function(){return z},base32hexpad:function(){return W},base32hexpadupper:function(){return H},base32hexupper:function(){return q},base32pad:function(){return U},base32padupper:function(){return F},base32upper:function(){return $},base32z:function(){return V}});var c={};r.r(c),r.d(c,{base36:function(){return Z},base36upper:function(){return K}});var u={};r.r(u),r.d(u,{base58btc:function(){return G},base58flickr:function(){return Y}});var d={};r.r(d),r.d(d,{base64:function(){return J},base64pad:function(){return Q},base64url:function(){return X},base64urlpad:function(){return ee}});var h={};r.r(h),r.d(h,{base256emoji:function(){return en}});var f={};r.r(f),r.d(f,{sha256:function(){return eM},sha512:function(){return eD}});var p={};r.r(p),r.d(p,{identity:function(){return e$}});var g={};r.r(g),r.d(g,{code:function(){return eF},decode:function(){return eq},encode:function(){return ez},name:function(){return eU}});var m={};r.r(m),r.d(m,{code:function(){return eZ},decode:function(){return eG},encode:function(){return eK},name:function(){return eV}});var w=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");
9814for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var n=0;n<e.length;n++){var o=e.charAt(n),s=o.charCodeAt(0);if(255!==r[s])throw TypeError(o+" is ambiguous");r[s]=n}var a=e.length,l=e.charAt(0),c=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var i=0,n=0;e[t]===l;)i++,t++;for(var o=(e.length-t)*c+1>>>0,s=new Uint8Array(o);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=o-1;(0!==u||d<n)&&-1!==h;h--,d++)u+=a*s[h]>>>0,s[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");n=d,t++}if(" "!==e[t]){for(var f=o-n;f!==o&&0===s[f];)f++;for(var p=new Uint8Array(i+(o-f)),g=i;f!==o;)p[g++]=s[f++];return p}}}function h(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,i=0,n=0,o=t.length;n!==o&&0===t[n];)n++,r++;for(var s=(o-n)*u+1>>>0,c=new Uint8Array(s);n!==o;){for(var d=t[n],h=0,f=s-1;(0!==d||h<i)&&-1!==f;f--,h++)d+=256*c[f]>>>0,c[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error("Non-zero carry");i=h,n++}for(var p=s-i;p!==s&&0===c[p];)p++;for(var g=l.repeat(r);p<s;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:d,decode:h}};new Uint8Array(0);let y=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},b=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},v=e=>new TextEncoder().encode(e),_=e=>new TextDecoder().decode(e);class x{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class E{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return k(this,e)}}class C{constructor(e){this.decoders=e}or(e){return k(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let k=(e,t)=>new C({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});
9814class S{constructor(e,t,r,i){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=i,this.encoder=new x(e,t,r),this.decoder=new E(e,t,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let A=({name:e,prefix:t,encode:r,decode:i})=>new S(e,t,r,i),I=({prefix:e,name:t,alphabet:r})=>{let{encode:i,decode:n}=w(r,t);return A({prefix:e,name:t,encode:i,decode:e=>b(n(e))})},T=(e,t,r,i)=>{let n={};for(let e=0;e<t.length;++e)n[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let s=new Uint8Array(o*r/8|0),a=0,l=0,c=0;for(let t=0;t<o;++t){let o=n[e[t]];if(void 0===o)throw SyntaxError(`Non-${i} character`);l=l<<r|o,(a+=r)>=8&&(a-=8,s[c++]=255&l>>a)}if(a>=r||255&l<<8-a)throw SyntaxError("Unexpected end of data");return s},R=(e,t,r)=>{let i="="===t[t.length-1],n=(1<<r)-1,o="",s=0,a=0;for(let i=0;i<e.length;++i)for(a=a<<8|e[i],s+=8;s>r;)s-=r,o+=t[n&a>>s];if(s&&(o+=t[n&a<<r-s]),i)for(;o.length*r&7;)o+="=";return o},O=({name:e,prefix:t,bitsPerChar:r,alphabet:i})=>A({prefix:t,name:e,encode:e=>R(e,i,r),decode:t=>T(t,i,r,e)}),P=A({prefix:"\0",name:"identity",encode:e=>_(e),decode:e=>v(e)}),N=O({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),M=O({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),D=I({prefix:"9",name:"base10",alphabet:"0123456789"}),L=O({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),j=O({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),B=O({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$=O({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),U=O({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),F=O({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),z=O({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),q=O({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),W=O({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),H=O({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),V=O({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Z=I({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),K=I({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),G=I({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=I({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),J=O({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Q=O({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),X=O({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ee=O({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),et=Array.from("\uD83D\uDE80\uD83E\uDE90â\uD83D\uDEF0\uD83C\uDF0C\uD83C\uDF11\uD83C\uDF12\uD83C\uDF13\uD83C\uDF14\uD83C\uDF15\uD83C\uDF16\uD83C\uDF17\uD83C\uDF18\uD83C\uDF0D\uD83C\uDF0F\uD83C\uDF0E\uD83D\uDC09â\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02â¤\uD83D\uDE0D\uD83E\uDD23\uD83D\uDE0A\uD83D\uDE4F\uD83D\uDC95\uD83D\uDE2D\uD83D\uDE18\uD83D\uDC4D\uD83D\uDE05\uD83D\uDC4F\uD83D\uDE01\uD83D\uDD25\uD83E\uDD70\uD83D\uDC94\uD83D\uDC96\uD83D\uDC99\uD83D\uDE22\uD83E\uDD14\uD83D\uDE06\uD83D\uDE44\uD83D\uDCAA\uD83D\uDE09âº\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9Eââ¨\uD83E\uDD37\uD83D\uDE31\uD83D\uDE0C\uD83C\uDF38\uD83D\uDE4C\uD83D\uDE0B\uD83D\uDC97\uD83D\uDC9A\uD83D\uDE0F\uD83D\uDC9B\uD83D\uDE42\uD83D\uDC93\uD83E\uDD29\uD83D\uDE04\uD83D\uDE00\uD83D\uDDA4\uD83D\uDE03\uD83D\uDCAF\uD83D\uDE48\uD83D\uDC47\uD83C\uDFB6\uD83D\uDE12\uD83E\uDD2Dâ£\uD83D\uDE1C\uD83D\uDC8B\uD83D\uDC40\uD83D\uDE2A\uD83D\uDE11\uD83D\uDCA5\uD83D\uDE4B\uD83D\uDE1E\uD83D\uDE29\uD83D\uDE21\uD83E\uDD2A\uD83D\uDC4A\uD83E\uDD73\uD83D\uDE25\uD83E\uDD24\uD83D\uDC49\uD83D\uDC83\uD83D\uDE33â\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13ââ
\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6â\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90â¹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20â\uD83D\uDE15\uD83C\uDF3A\uD83C\uDF82\uD83C\uDF3B\uD83D\uDE10\uD83D\uDD95\uD83D\uDC9D\uD83D\uDE4A\uD83D\uDE39\uD83D\uDDE3\uD83D\uDCAB\uD83D\uDC80\uD83D\uDC51\uD83C\uDFB5\uD83E\uDD1E\uD83D\uDE1B\uD83D\uDD34\uD83D\uDE24\uD83C\uDF3C\uD83D\uDE2Bâ½\uD83E\uDD19â\uD83C\uDFC6\uD83E\uDD2B\uD83D\uDC48\uD83D\uDE2E\uD83D\uDE46\uD83C\uDF7B\uD83C\uDF43\uD83D\uDC36\uD83D\uDC81\uD83D\uDE32\uD83C\uDF3F\uD83E\uDDE1\uD83C\uDF81â¡\uD83C\uDF1E\uD83C\uDF88ââ\uD83D\uDC4B\uD83D\uDE30\uD83E\uDD28\uD83D\uDE36\uD83E\uDD1D\uD83D\uDEB6\uD83D\uDCB0\uD83C\uDF53\uD83D\uDCA2\uD83E\uDD1F\uD83D\uDE41\uD83D\uDEA8\uD83D\uDCA8\uD83E\uDD2Câ\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74â¶â¡â\uD83D\uDC8E\uD83D\uDCB8â¬\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7Aâ \uD83D\uDE45\uD83D\uDE1F\uD83D\uDE35\uD83D\uDC4E\uD83E\uDD32\uD83E\uDD20\uD83E\uDD27\uD83D\uDCCC\uD83D\uDD35\uD83D\uDC85\uD83E\uDDD0\uD83D\uDC3E\uD83C\uDF52\uD83D\uDE17\uD83E\uDD11\uD83C\uDF0A\uD83E\uDD2F\uD83D\uDC37â\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51â\uD83C\uDF34\uD83D\uDCA3\uD83D\uDC38\uD83D\uDC8C\uD83D\uDCCD\uD83E\uDD40\uD83E\uDD22\uD83D\uDC45\uD83D\uDCA1\uD83D\uDCA9\uD83D\uDC50\uD83D\uDCF8\uD83D\uDC7B\uD83E\uDD10\uD83E\uDD2E\uD83C\uDFBC\uD83E\uDD75\uD83D\uDEA9\uD83C\uDF4E\uD83C\uDF4A\uD83D\uDC7C\uD83D\uDC8D\uD83D\uDCE3\uD83E\uDD42"),er=et.reduce((e,t,r)=>(e[r]=t,e),[]),ei=et.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),en=A({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>
9814e+=er[t],"")},decode:function(e){let t=[];for(let r of e){let e=ei[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var eo=128,es=-128,ea=2147483648;function el(e,t,r){t=t||[];for(var i=r=r||0;e>=ea;)t[r++]=255&e|eo,e/=128;for(;e&es;)t[r++]=255&e|eo,e>>>=7;return t[r]=0|e,el.bytes=r-i+1,t}var ec=128,eu=127;function ed(e,t){var r,i=0,t=t||0,n=0,o=t,s=e.length;do{if(o>=s)throw ed.bytes=0,RangeError("Could not decode varint");r=e[o++],i+=n<28?(r&eu)<<n:(r&eu)*Math.pow(2,n),n+=7}while(r>=ec);return ed.bytes=o-t,i}var eh=128,ef=16384,ep=2097152,eg=268435456,em=34359738368,ew=4398046511104,ey=562949953421312,eb=72057594037927940,ev=0x7fffffffffffffff,e_=el,ex=ed,eE=function(e){return e<eh?1:e<ef?2:e<ep?3:e<eg?4:e<em?5:e<ew?6:e<ey?7:e<eb?8:e<ev?9:10};let eC=(e,t=0)=>[ex(e,t),ex.bytes],ek=(e,t,r=0)=>(e_(e,t,r),t),eS=e=>eE(e),eA=(e,t)=>{let r=t.byteLength,i=eS(e),n=i+eS(r),o=new Uint8Array(n+r);return ek(e,o,0),ek(r,o,i),o.set(t,n),new eR(e,r,t,o)},eI=e=>{let t=b(e),[r,i]=eC(t),[n,o]=eC(t.subarray(i)),s=t.subarray(i+o);if(s.byteLength!==n)throw Error("Incorrect length");return new eR(r,n,s,t)},eT=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&y(e.bytes,t.bytes);
9814class eR{constructor(e,t,r,i){this.code=e,this.size=t,this.digest=r,this.bytes=i}}let eO=({name:e,code:t,encode:r})=>new eP(e,t,r);class eP{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?eA(this.code,t):t.then(e=>eA(this.code,e))}throw Error("Unknown type, must be binary type")}}let eN=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),eM=eO({name:"sha2-256",code:18,encode:eN("SHA-256")}),eD=eO({name:"sha2-512",code:19,encode:eN("SHA-512")}),eL=0,ej=b,eB=e=>eA(eL,ej(e)),e$={code:eL,name:"identity",encode:ej,digest:eB},eU="raw",eF=85,ez=e=>b(e),eq=e=>b(e),eW=new TextEncoder,eH=new TextDecoder,eV="json",eZ=512,eK=e=>eW.encode(JSON.stringify(e)),eG=e=>JSON.parse(eH.decode(e));class eY{constructor(e,t,r,i){this.code=t,this.version=e,this.multihash=r,this.bytes=i,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:e4,byteLength:e4,code:e5,version:e5,multihash:e5,bytes:e5,_baseCache:e4,asCID:e4})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==e0)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==e1)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eY.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=eA(e,t);return eY.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&eT(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:i}=this;return 0===r?eQ(t,i,e||G.encoder):eX(t,i,e||B.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return e8(/^0\.0/,e7),!!(e&&(e[e3]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eY)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:i,bytes:n}=e;return new eY(t,r,i,n||e2(t,r,i.bytes))}if(null==e||!0!==e[e3])return null;{let{version:t,multihash:r,code:i}=e,n=eI(r);return eY.create(t,i,n)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===e0)return new eY(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${e0}) block encoding`);case 1:{let i=e2(e,t,r.bytes);return new eY(e,t,r,i)}default:throw Error("Invalid version")}}static createV0(e){return eY.create(0,e0,e)}static createV1(e,t){return eY.create(1,e,t)}static decode(e){let[t,r]=eY.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eY.inspectBytes(e),r=t.size-t.multihashSize,i=b(e.subarray(r,r+t.multihashSize));if(i.byteLength!==t.multihashSize)throw Error("Incorrect length");let n=i.subarray(t.multihashSize-t.digestSize),o=new eR(t.multihashCode,t.digestSize,n,i);return[0===t.version?eY.createV0(o):eY.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,i]=eC(e.subarray(t));return t+=i,r},i=r(),n=e0;if(18===i?(i=0,t=0):1===i&&(n=r()),0!==i&&1!==i)throw RangeError(`Invalid CID version ${i}`);let o=t,s=r(),a=r(),l=t+a;return{version:i,codec:n,multihashCode:s,digestSize:a,multihashSize:l-o,size:l}}static parse(e,t){let[r,i]=eJ(e,t),n=eY.decode(i);return n._baseCache.set(r,e),n}}let eJ=(e,t)=>{switch(e[0]){case"Q":{let r=t||G;return[G.prefix,r.decode(`${G.prefix}${e}`)]}case G.prefix:{let r=t||G;return[G.prefix,r.decode(e)]}case B.prefix:{let r=t||B;return[B.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eQ=(e,t,r)=>{let{prefix:i}=r;if(i!==G.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let n=t.get(i);if(null!=n)return n;{let n=r.encode(e).slice(1);return t.set(i,n),n}},eX=(e,t,r)=>{let{prefix:i}=r,n=t.get(i);if(null!=n)return n;{let n=r.encode(e);return t.set(i,n),n}},e0=112,e1=18,e2=(e,t,r)=>{let i=eS(e),n=i+eS(t),o=new Uint8Array(n+r.byteLength);return ek(e,o,0),ek(t,o,i),o.set(r,n),o}
9814,e3=Symbol.for("@ipld/js-cid/CID"),e5={writable:!1,configurable:!1,enumerable:!0},e4={writable:!1,enumerable:!1,configurable:!1},e6="0.0.0-dev",e8=(e,t)=>{if(e.test(e6))console.warn(t);else throw Error(t)},e7=`CID.isCID(v) is deprecated and will be removed in the next major release. 9815Following code pattern: 9816 9817if (CID.isCID(value)) { 9818 doSomethingWithCID(value) 9819} 9820 9821Is replaced with: 9822 9823const cid = CID.asCID(value) 9824if (cid) { 9825 // Make sure to use cid instead of value 9826 doSomethingWithCID(cid) 9827} 9828`,e9={...i,...n,...o,...s,...a,...l,...c,...u,...d,...h};({...f,...p});var te=r(55389);function tt(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}let tr=tt("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),ti=tt("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);let t=(0,te.E)(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t});var tn={utf8:tr,"utf-8":tr,hex:e9.base16,latin1:ti,ascii:ti,binary:ti,...e9}},50124:function(e,t,r){"use strict";r.d(t,{o6:function(){return E}});let i=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,n=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function s(e,t){if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){a(e);return}return t}function a(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function l(e,t={}){if("string"!=typeof e)return e;let r=e.trim();if('"'===e[0]&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){let e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!o.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(i.test(e)||n.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,s)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}var c=r(82957).Buffer;function u(e){return e&&"function"==typeof e.then?e:Promise.resolve(e)}function d(e,...t){try{return u(e(...t))}catch(e){return Promise.reject(e)}}function h(e){let t=typeof e;return null===e||"object"!==t&&"function"!==t}function f(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}function p(e){if(h(e))return String(e);if(f(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return p(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}let g="base64:";function m(e){return"string"==typeof e?e:g+c.from(e).toString("base64")}function w(e){return"string"==typeof e&&e.startsWith(g)?c.from(e.slice(g.length),"base64"):e}function y(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function b(...e){return y(e.join(":"))}function v(e){return(e=y(e))?e+":":""}let _="memory",x=()=>{let e=new Map;return{name:_,options:{},hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function E(e={}){let t={mounts:{"":e.driver||x()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(let r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},i=(e,r)=>t.mountpoints.filter(t=>t.startsWith(e)||r&&e.startsWith(t)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]})),n=(e,r)=>{if(t.watching)for(let i of(r=y(r),t.watchListeners))i(e,r)},o=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await C(t.mounts[e],n,e)},s=async()=>
9828{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},a=(e,t,i)=>{let n=new Map,o=e=>{let t=n.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},n.set(e.base,t)),t};for(let i of e){let e="string"==typeof i,n=y(e?i:i.key),s=e?void 0:i.value,a=e||!i.options?t:{...t,...i.options},l=r(n);o(l).items.push({key:n,value:s,relativeKey:l.relativeKey,options:a})}return Promise.all([...n.values()].map(e=>i(e))).then(e=>e.flat())},c={hasItem(e,t={}){let{relativeKey:i,driver:n}=r(e=y(e));return d(n.hasItem,i,t)},getItem(e,t={}){let{relativeKey:i,driver:n}=r(e=y(e));return d(n.getItem,i,t).then(e=>l(e))},getItems:(e,t)=>a(e,t,e=>e.driver.getItems?d(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:b(e.base,t.key),value:l(t.value)}))):Promise.all(e.items.map(t=>d(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:l(e)}))))),getItemRaw(e,t={}){let{relativeKey:i,driver:n}=r(e=y(e));return n.getItemRaw?d(n.getItemRaw,i,t):d(n.getItem,i,t).then(e=>w(e))},async setItem(e,t,i={}){if(void 0===t)return c.removeItem(e);let{relativeKey:o,driver:s}=r(e=y(e));s.setItem&&(await d(s.setItem,o,p(t),i),s.watch||n("update",e))},async setItems(e,t){await a(e,t,async e=>{if(e.driver.setItems)return d(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:p(e.value),options:e.options})),t);e.driver.setItem&&await Promise.all(e.items.map(t=>d(e.driver.setItem,t.relativeKey,p(t.value),t.options)))})},async setItemRaw(e,t,i={}){if(void 0===t)return c.removeItem(e,i);let{relativeKey:o,driver:s}=r(e=y(e));if(s.setItemRaw)await d(s.setItemRaw,o,t,i);else{if(!s.setItem)return;await d(s.setItem,o,m(t),i)}s.watch||n("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t});let{relativeKey:i,driver:o}=r(e=y(e));o.removeItem&&(await d(o.removeItem,i,t),(t.removeMeta||t.removeMata)&&await d(o.removeItem,i+"$",t),o.watch||n("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t});let{relativeKey:i,driver:n}=r(e=y(e)),o=Object.create(null);if(n.getMeta&&Object.assign(o,await d(n.getMeta,i,t)),!t.nativeOnly){let e=await d(n.getItem,i+"$",t).then(e=>l(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(o,e))}return o},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){let r=i(e=v(e),!0),n=[],o=[];for(let e of r){let r=(await d(e.driver.getKeys,e.relativeBase,t)).map(t=>e.mountpoint+y(t)).filter(e=>!n.some(t=>e.startsWith(t)));o.push(...r),n=[e.mountpoint,...n.filter(t=>!t.startsWith(e.mountpoint))]}return e?o.filter(t=>t.startsWith(e)&&!t.endsWith("$")):o.filter(e=>!e.endsWith("$"))},async clear(e,t={}){e=v(e),await Promise.all(i(e,!1).map(async e=>e.driver.clear?d(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>k(e)))},watch:async e=>(await o(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await s()}),async unwatch(){t.watchListeners=[],await s()},mount(e,r){if((e=v(e))&&t.mounts[e])throw Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=r,t.watching&&Promise.resolve(C(r,n,e)).then(r=>{t.unwatch[e]=r}).catch(console.error),c},async unmount(e,r=!0){(e=v(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await k(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e])},getMount(e=""){let t=r(e=y(e)+":");return{driver:t.driver,base:t.base}},getMounts:(e="",t={})=>i(e=y(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint}))};return c}function C(e,t,r){return e.watch?e.watch((e,i)=>t(e,r+i)):()=>{}}async function k(e){"function"==typeof e.dispose&&await d(e.dispose)}},33085:function(e,t,r){"use strict";r.d(t,{sj:function(){return f},iH:function(){return m},CO:function(){return g},Ld:function(){return p}}),Symbol();let i=Symbol(),n=Object.getPrototypeOf,o=new WeakMap,s=e=>e&&(o.has(e)?o.get(e):n(e)===Object.prototype||n(e)===Array.prototype),a=e=>s(e)&&e[i]||null,l=(e,t=!0)=>{o.set(e,t)},c=e=>"object"==typeof e&&null!==e,u=new WeakMap,d=new WeakSet,[h]=((e=Object.is,t=(e,t)=>new Proxy(e,t),r=e=>c(e)&&!d.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer),i=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},n=new WeakMap,o=(e,t,r=i)=>{let s=n.get(e);if((null==s?void 0:s[0])===t)return s[1];let a=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return l(a,!0),n.set(e,[t,a]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(a,t))return;let i=Reflect.get(e,t),n={value:i,enumerable:!0,configurable:!0};if(d.has(i))l(i,!1);else if(i instanceof Promise)delete n.value,n.get=()=>r(i);else if(u.has(i)){let[e,t]=u.get(i);n.value=o(e,t(),r)}Object.defineProperty(a,t,n)}),Object.preventExtensions(a)},s=new WeakMap,h=[1,1],f=i=>{if(!c(i))throw Error("object required");let n=s.get(i);if(n)return n;let l=h[0],p=new Set,g=(e,t=++h[0])=>{l!==t&&(l=t,p.forEach(r=>r(e,t)))},m=h[1],w=(e=++h[1])=>(m===e||p.size||(m=e,b.forEach(([t])=>{let r=t[1](e);r>l&&(l=r)})),l),y=e=>(t,r)=>{let i=[...t];i[1]=[e,...i[1]],g(i,r)},b=new Map,v=(e,t)=>
9828{if(b.has(e))throw Error("prop listener already exists");if(p.size){let r=t[3](y(e));b.set(e,[t,r])}else b.set(e,[t])},_=e=>{var t;let r=b.get(e);r&&(b.delete(e),null==(t=r[1])||t.call(r))},x=e=>{p.add(e),1===p.size&&b.forEach(([e,t],r)=>{if(t)throw Error("remove already exists");let i=e[3](y(r));b.set(r,[e,i])});let t=()=>{p.delete(e),0===p.size&&b.forEach(([e,t],r)=>{t&&(t(),b.set(r,[e]))})};return t},E=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),C={deleteProperty(e,t){let r=Reflect.get(e,t);_(t);let i=Reflect.deleteProperty(e,t);return i&&g(["delete",[t],r]),i},set(t,i,n,o){let l=Reflect.has(t,i),h=Reflect.get(t,i,o);if(l&&(e(h,n)||s.has(n)&&e(h,s.get(n))))return!0;_(i),c(n)&&(n=a(n)||n);let p=n;if(n instanceof Promise)n.then(e=>{n.status="fulfilled",n.value=e,g(["resolve",[i],e])}).catch(e=>{n.status="rejected",n.reason=e,g(["reject",[i],e])});else{!u.has(n)&&r(n)&&(p=f(n));let e=!d.has(p)&&u.get(p);e&&v(i,e)}return Reflect.set(t,i,p,o),g(["set",[i],n,h]),!0}},k=t(E,C);s.set(i,k);let S=[E,w,o,x];
9828return u.set(k,S),Reflect.ownKeys(i).forEach(e=>{let t=Object.getOwnPropertyDescriptor(i,e);"value"in t&&(k[e]=i[e],delete t.value,delete t.writable),Object.defineProperty(E,e,t)}),k})=>[f,u,d,e,t,r,i,n,o,s,h])();function f(e={}){return h(e)}function p(e,t,r){let i;let n=u.get(e);n||console.warn("Please use proxy object");let o=[],s=n[3],a=!1,l=s(e=>{if(o.push(e),r){t(o.splice(0));return}i||(i=Promise.resolve().then(()=>{i=void 0,a&&t(o.splice(0))}))});return a=!0,()=>{a=!1,l()}}function g(e,t){let r=u.get(e);r||console.warn("Please use proxy object");let[i,n,o]=r;return o(i,n(),t)}function m(e){return d.add(e),e}},55543:function(e,t,r){"use strict";r.d(t,{VW:function(){return n}});var i=r(33085);function n(e,t,r,n){let o=e[t];return(0,i.Ld)(e,()=>{let i=e[t];Object.is(o,i)||r(o=i)},n)}Symbol()},58274:function(e){"use strict";e.exports={i8:"6.6.1"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.