PageSourceSearch

https://moonspin.us/_next/static/chunks/775ca1a0.9de6873d41935e8e.js

js moonspin.us collected 2026-10-07 23:04:34 UTC 596,200 bytes, 4,775 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="432224eb-23ea-5df1-b8b1-ef72953736eb")}catch(e){}}();
3!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:frontend":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[90108],{39822:(e,t,r)=>{let i,a,o,n,s,l,c;r.d(t,{EthereumProvider:()=>er});var d,u,h,p,g,f,w,m,v,b,y,C,x,k,A,I,E,S,N,P,_,$,O,T,R,B,L=r(16096),M=r(47682),U=r(98847),z=r(87358);let j=["eth_sendTransaction","personal_sign"],D=["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"],W=["chainChanged","accountsChanged"],H=["chainChanged","accountsChanged","message","disconnect","connect"];var F=Object.defineProperty,V=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Y=(e,t,r)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t)=>{for(var r in t||(t={}))G.call(t,r)&&Y(e,r,t[r]);if(q)for(var r of q(t))K.call(t,r)&&Y(e,r,t[r]);return e},J=(e,t,r)=>Y(e,"symbol"!=typeof t?t+"":t,r);function Q(e){return Number(e[0].split(":")[1])}function ee(e){return`0x${e.toString(16)}`}class et{constructor(){J(this,"events",new L.EventEmitter),J(this,"namespace","eip155"),J(this,"accounts",[]),J(this,"signer"),J(this,"chainId",1),J(this,"modal"),J(this,"rpc"),J(this,"STORAGE_KEY","wc@2:ethereum_provider:"),J(this,"on",(e,t)=>(this.events.on(e,t),this)),J(this,"once",(e,t)=>(this.events.once(e,t),this)),J(this,"removeListener",(e,t)=>(this.events.removeListener(e,t),this)),J(this,"off",(e,t)=>(this.events.off(e,t),this)),J(this,"parseAccount",e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e),this.signer={},this.rpc={}}static async init(e){let t=new et;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){var t;if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:r,optional:i}=function(e){let{chains:t,optionalChains:r,methods:i,optionalMethods:a,events:o,optionalEvents:n,rpcMap:s}=e;if(!(0,M.OP1)(t))throw Error("Invalid chains");let l={chains:t,methods:i||j,events:o||W,rpcMap:X({},t.length?{[Q(t)]:s[Q(t)]}:{})},c=o?.filter(e=>!W.includes(e)),d=i?.filter(e=>!j.includes(e));if(!r&&!n&&!a&&!(null!=c&&c.length)&&!(null!=d&&d.length))return{required:t.length?l:void 0};let u={chains:[...new Set(c?.length&&d?.length||!r?l.chains.concat(r||[]):r)],methods:[...new Set(l.methods.concat(null!=a&&a.length?a:D))],events:[...new Set(l.events.concat(null!=n&&n.length?n:H))],rpcMap:s};return{required:t.length?l:void 0,optional:r.length?u:void 0}}(this.rpc);try{let t=await new Promise(async(t,a)=>{var o,n;let s,l;this.rpc.showQrModal&&(null==(o=this.modal)||o.open(),null==(n=this.modal)||n.subscribeState(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),a(Error("Connection request reset. Please try again.")))}));let c=null!=e&&e.scopedProperties?{[this.namespace]:e.scopedProperties}:void 0;await this.signer.connect((s=X({namespaces:X({},r&&{[this.namespace]:r})},i&&{optionalNamespaces:{[this.namespace]:i}}),l={pairingTopic:e?.pairingTopic,scopedProperties:c},V(s,Z(l)))).then(e=>{t(e)}).catch(e=>{var t;null==(t=this.modal)||t.showErrorMessage("Unable to connect"),a(Error(e.message))})});if(!t)return;let a=(0,M.Zz7)(t.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:a),this.setAccounts(a),this.events.emit("connect",{chainId:ee(this.chainId)})}catch(e){throw this.signer.logger.error(e),e}finally{null==(t=this.modal)||t.close()}}async authenticate(e,t){var r;if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:e?.chains});try{let r=await new Promise(async(r,i)=>{var a,o;let n,s;this.rpc.showQrModal&&(null==(a=this.modal)||a.open(),null==(o=this.modal)||o.subscribeState(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),i(Error("Connection request reset. Please try again.")))})),await this.signer.authenticate((n=X({},e),s={chains:this.rpc.chains},V(n,Z(s))),t).then(e=>{r(e)}).catch(e=>{var t;null==(t=this.modal)||t.showErrorMessage("Unable to connect"),i(Error(e.message))})}),i=r.session;if(i){let e=(0,M.Zz7)(i.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:e),this.setAccounts(e),this.events.emit("connect",{chainId:ee(this.chainId)})}return r}catch(e){throw this.signer.logger.error(e),e}finally{null==(r=this.modal)||r.close()}}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;
3"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("accountsChanged",e=>{this.accounts=this.parseAccounts(e),this.events.emit("accountsChanged",this.accounts)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",ee(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",V(X({},(0,M.Hjj)("USER_DISCONNECTED")),Z({data:e.topic,name:"USER_DISCONNECTED"})))}),this.signer.on("display_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",ee(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:[],a=null!=(r=e?.optionalChains)?r:[],o=i.concat(a);if(!o.length)throw Error("No chains specified in either `chains` or `optionalChains`");let n=i.length?e?.methods||j:[],s=i.length?e?.events||W:[],l=e?.optionalMethods||[],c=e?.optionalEvents||[],d=e?.rpcMap||this.buildRpcMap(o,e.projectId),u=e?.qrModalOptions||void 0;return{chains:i?.map(e=>this.formatChainId(e)),optionalChains:a.map(e=>this.formatChainId(e)),methods:n,events:s,optionalMethods:l,optionalEvents:c,rpcMap:d,showQrModal:!!(null!=e&&e.showQrModal),qrModalOptions:u,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let r={};return 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?Q(this.rpc.chains):Q(this.rpc.optionalChains),this.signer=await U.l.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storage:e.storage,storageOptions:e.storageOptions,customStoragePrefix:e.customStoragePrefix,telemetryEnabled:e.telemetryEnabled,logger:e.logger}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{let t,r,i,a,{createAppKit:o}=await Promise.resolve().then(function(){return lw}),{convertWCMToAppKitOptions:n}=await Promise.resolve().then(function(){return lI}),s=n((t=X({},this.rpc.qrModalOptions),r={chains:[...new Set([...this.rpc.chains,...this.rpc.optionalChains])],metadata:this.rpc.metadata,projectId:this.rpc.projectId},V(t,Z(r))));if(!s.networks.length)throw Error("No networks found for WalletConnect\xb7");e=o((i=X({},s),a={universalProvider:this.signer,manualWCControl:!0},V(i,Z(a))))}catch{throw Error("To use QR modal, please install @reown/appkit package")}if(e)try{this.modal=e}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,M.OP1)(t)&&(this.rpc.chains=t.map(e=>this.formatChainId(e)),t.forEach(e=>{this.rpc.rpcMap[e]=i?.[e]||this.getRpcUrl(e)})),r&&(0,M.OP1)(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])||`https://rpc.walletconnect.org/v1/?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))}}let er=et;"u">typeof globalThis||("u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self&&self);
3var ei={exports:{}};d="millisecond",u="second",h="minute",p="hour",g="week",f="month",w="quarter",m="year",v="date",b="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,x=function(e,t,r){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(r)+e},(A={})[k="en"]={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])+"]"}},I="$isDayjsObject",E=function(e){return e instanceof _||!(!e||!e[I])},S=function e(t,r,i){var a;if(!t)return k;if("string"==typeof t){var o=t.toLowerCase();A[o]&&(a=o),r&&(A[o]=r,a=o);var n=t.split("-");if(!a&&n.length>1)return e(n[0])}else{var s=t.name;A[s]=t,a=s}return!i&&a&&(k=a),a||!i&&k},N=function(e,t){if(E(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new _(r)},(P={s:x,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+x(Math.floor(r/60),2,"0")+":"+x(r%60,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()),a=t.clone().add(i,f),o=r-a<0,n=t.clone().add(i+(o?-1:1),f);return+(-(i+(r-a)/(o?a-n:n-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return({M:f,y:m,w:g,d:"day",D:v,h:p,m:h,s:u,ms:d,Q:w})[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}}).l=S,P.i=E,P.w=function(e,t){return N(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},$=(_=function(){function e(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[I]=!0}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(P.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(y);if(i){var a=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},t.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()},t.$utils=function(){return P},t.isValid=function(){return this.$d.toString()!==b},t.isSame=function(e,t){var r=N(e);return this.startOf(t)<=r&&r<=this.endOf(t)},t.isAfter=function(e,t){return N(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<N(e)},t.$g=function(e,t,r){return P.u(e)?this[t]:this.set(r,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var r=this,i=!!P.u(t)||t,a=P.p(e),o=function(e,t){var a=P.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return i?a:a.endOf("day")},n=function(e,t){return P.w(r.toDate()[e].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},s=this.$W,l=this.$M,c=this.$D,d="set"+(this.$u?"UTC":"");switch(a){case m:return i?o(1,0):o(31,11);case f:return i?o(1,l):o(0,l+1);case g:var w=this.$locale().weekStart||0,b=(s<w?s+7:s)-w;return o(i?c-b:c+(6-b),l);case"day":case v:return n(d+"Hours",0);case p:return n(d+"Minutes",1);case h:return n(d+"Seconds",2);case u:return n(d+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var r,i=P.p(e),a="set"+(this.$u?"UTC":""),o=((r={}).day=a+"Date",r[v]=a+"Date",r[f]=a+"Month",r[m]=a+"FullYear",r[p]=a+"Hours",r[h]=a+"Minutes",r[u]=a+"Seconds",r[d]=a+"Milliseconds",r)[i],n="day"===i?this.$D+(t-this.$W):t;if(i===f||i===m){var s=this.clone().set(v,1);s.$d[o](n),s.init(),this.$d=s.set(v,Math.min(this.$D,s.daysInMonth())).$d}else o&&this.$d[o](n);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[P.p(e)]()},t.add=function(e,t){var r,i=this;e=Number(e);var a=P.p(t),o=function(t){var r=N(i);return P.w(r.date(r.date()+Math.round(t*e)),i)};if(a===f)return this.set(f,this.$M+e);if(a===m)return this.set(m,this.$y+e);if("day"===a)return o(1);if(a===g)return o(7);var n=((r={})[h]=6e4,r[p]=36e5,r[u]=1e3,r)[a]||1,s=this.$d.getTime()+e*n;return P.w(s,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||b;var i=e||"YYYY-MM-DDTHH:mm:ssZ",a=P.z(this),o=this.$H,n=this.$m,s=this.$M,l=r.weekdays,c=r.months,d=r.meri
3diem,u=function(e,r,a,o){return e&&(e[r]||e(t,i))||a[r].slice(0,o)},h=function(e){return P.s(o%12||12,e,"0")},p=d||function(e,t,r){var i=e<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(C,function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return P.s(t.$y,4,"0");case"M":return s+1;case"MM":return P.s(s+1,2,"0");case"MMM":return u(r.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(r.weekdaysMin,t.$W,l,2);case"ddd":return u(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return P.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,n,!0);case"A":return p(o,n,!1);case"m":return String(n);case"mm":return P.s(n,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},t.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},t.diff=function(e,t,r){var i,a=this,o=P.p(t),n=N(e),s=(n.utcOffset()-this.utcOffset())*6e4,l=this-n,c=function(){return P.m(a,n)};switch(o){case m:i=c()/12;break;case f:i=c();break;case w:i=c()/3;break;case g:i=(l-s)/6048e5;break;case"day":i=(l-s)/864e5;break;case p:i=l/36e5;break;case h:i=l/6e4;break;case u:i=l/1e3;break;default:i=l}return r?i:P.a(i)},t.daysInMonth=function(){return this.endOf(f).$D},t.$locale=function(){return A[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),i=S(e,t,!0);return i&&(r.$L=i),r},t.clone=function(){return P.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}()).prototype,N.prototype=$,[["$ms",d],["$s",u],["$m",h],["$H",p],["$W","day"],["$M",f],["$y",m],["$D",v]].forEach(function(e){$[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),N.extend=function(e,t){return e.$i||(e(t,_,N),e.$i=!0),N},N.locale=S,N.isDayjs=E,N.unix=function(e){return N(1e3*e)},N.en=A[k],N.Ls=A,N.p={},ei.exports=N;var ea=ei.exports,eo={exports:{}};eo.exports={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])+"]"}};var en=eo.exports,es={exports:{}};es.exports=function(e,t,r){e=e||{};var i=t.prototype,a={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,a){return i.fromToBase(e,t,r,a)}r.en.relativeTime=a,i.fromToBase=function(t,i,o,n,s){for(var l,c,d,u=o.$locale().relativeTime||a,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"}],p=h.length,g=0;g<p;g+=1){var f=h[g];f.d&&(l=n?r(t).diff(o,f.d,!0):o.diff(t,f.d,!0));var w=(e.rounding||Math.round)(Math.abs(l));if(d=l>0,w<=f.r||!f.r){w<=1&&g>0&&(f=h[g-1]);var m=u[f.l];s&&(w=s(""+w)),c="string"==typeof m?m.replace("%d",w):m(w,i,f.l,d);break}}if(i)return c;var v=d?u.future:u.past;return"function"==typeof v?v(c):v.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 n=function(e){return e.$u?r.utc():r()};i.toNow=function(e){return this.to(n(this),e)},i.fromNow=function(e){return this.from(n(this),e)}};var el=es.exports,ec={exports:{}};ec.exports=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}};var ed=ec.exports;ea.extend(el),ea.extend(ed);let eu={...en,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"}};ea.locale("en-web3-modal",eu);let eh={caipNetworkIdToNumber:e=>e?Number(e.split(":")[1]):void 0,parseEvmChainId(e){return"string"==typeof e?this.caipNetworkIdToNumber(e):e},getNetworksByNamespace:(e,t)=>e?.filter(e=>e.chainNamespace===t)||[],getFirstNetworkByNamespace(e,t){return this.getNetworksByNamespace(e,t)[0]}};var ep="[big.js] ",eg=ep+"Invalid ",ef=eg+"decimal places",ew=eg+"rounding mode",em=ep+"Division by zero",ev={},eb=void 0,ey=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function eC(e,t,r,i){var a=e.c;if(r===eb&&(r=e.constructor.RM),0!==r&&1!==r&&2!==r&&3!==r)throw Error(ew);if(t<1)i=3===r&&(i||!!a[0])||0===t&&(1===r&&a[0]>=5||2===r&&(a[0]>5||5===a[0]&&(i||a[1]!==eb))),a.length=1,i?(e.e=e.e-t+1,a[0]=1):a[0]=e.e=0;else if(t<a.length){if(i=1===r&&a[t]>=5||2===r&&(a[t]>
35||5===a[t]&&(i||a[t+1]!==eb||1&a[t-1]))||3===r&&(i||!!a[0]),a.length=t,i){for(;++a[--t]>9;)if(a[t]=0,0===t){++e.e,a.unshift(1);break}}for(t=a.length;!a[--t];)a.pop()}return e}function ex(e,t,r){var i=e.e,a=e.c.join(""),o=a.length;if(t)a=a.charAt(0)+(o>1?"."+a.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)a="0"+a;a="0."+a}else if(i>0)if(++i>o)for(i-=o;i--;)a+="0";else i<o&&(a=a.slice(0,i)+"."+a.slice(i));else o>1&&(a=a.charAt(0)+"."+a.slice(1));return e.s<0&&r?"-"+a:a}ev.abs=function(){var e=new this.constructor(this);return e.s=1,e},ev.cmp=function(e){var t,r=this.c,i=(e=new this.constructor(e)).c,a=this.s,o=e.s,n=this.e,s=e.e;if(!r[0]||!i[0])return r[0]?a:i[0]?-o:0;if(a!=o)return a;if(t=a<0,n!=s)return n>s^t?1:-1;for(o=(n=r.length)<(s=i.length)?n:s,a=-1;++a<o;)if(r[a]!=i[a])return r[a]>i[a]^t?1:-1;return n==s?0:n>s^t?1:-1},ev.div=function(e){var t=this.constructor,r=this.c,i=(e=new t(e)).c,a=this.s==e.s?1:-1,o=t.DP;if(o!==~~o||o<0||o>1e6)throw Error(ef);if(!i[0])throw Error(em);if(!r[0])return e.s=a,e.c=[e.e=0],e;var n,s,l,c,d,u=i.slice(),h=n=i.length,p=r.length,g=r.slice(0,n),f=g.length,w=e,m=w.c=[],v=0,b=o+(w.e=this.e-e.e)+1;for(w.s=a,a=b<0?0:b,u.unshift(0);f++<n;)g.push(0);do{for(l=0;l<10;l++){if(n!=(f=g.length))c=n>f?1:-1;else for(d=-1,c=0;++d<n;)if(i[d]!=g[d]){c=i[d]>g[d]?1:-1;break}if(c<0){for(s=f==n?i:u;f;){if(g[--f]<s[f]){for(d=f;d&&!g[--d];)g[d]=9;--g[d],g[f]+=10}g[f]-=s[f]}for(;!g[0];)g.shift()}else break}m[v++]=c?l:++l,g[0]&&c?g[f]=r[h]||0:g=[r[h]]}while((h++<p||g[0]!==eb)&&a--);return!m[0]&&1!=v&&(m.shift(),w.e--,b--),v>b&&eC(w,b,t.RM,g[0]!==eb),w},ev.eq=function(e){return 0===this.cmp(e)},ev.gt=function(e){return this.cmp(e)>0},ev.gte=function(e){return this.cmp(e)>-1},ev.lt=function(e){return 0>this.cmp(e)},ev.lte=function(e){return 1>this.cmp(e)},ev.minus=ev.sub=function(e){var t,r,i,a,o=this.constructor,n=this.s,s=(e=new o(e)).s;if(n!=s)return e.s=-s,this.plus(e);var l=this.c.slice(),c=this.e,d=e.c,u=e.e;if(!l[0]||!d[0])return d[0]?e.s=-s:l[0]?e=new o(this):e.s=1,e;if(n=c-u){for((a=n<0)?(n=-n,i=l):(u=c,i=d),i.reverse(),s=n;s--;)i.push(0);i.reverse()}else for(r=((a=l.length<d.length)?l:d).length,n=s=0;s<r;s++)if(l[s]!=d[s]){a=l[s]<d[s];break}if(a&&(i=l,l=d,d=i,e.s=-e.s),(s=(r=d.length)-(t=l.length))>0)for(;s--;)l[t++]=0;for(s=t;r>n;){if(l[--r]<d[r]){for(t=r;t&&!l[--t];)l[t]=9;--l[t],l[r]+=10}l[r]-=d[r]}for(;0===l[--s];)l.pop();for(;0===l[0];)l.shift(),--u;return l[0]||(e.s=1,l=[u=0]),e.c=l,e.e=u,e},ev.mod=function(e){var t,r=this,i=r.constructor,a=r.s,o=(e=new i(e)).s;if(!e.c[0])throw Error(em);return r.s=e.s=1,t=1==e.cmp(r),r.s=a,e.s=o,t?new i(r):(a=i.DP,o=i.RM,i.DP=i.RM=0,r=r.div(e),i.DP=a,i.RM=o,this.minus(r.times(e)))},ev.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e},ev.plus=ev.add=function(e){var t,r,i,a=this.constructor;if(e=new a(e),this.s!=e.s)return e.s=-e.s,this.minus(e);var o=this.e,n=this.c,s=e.e,l=e.c;if(!n[0]||!l[0])return l[0]||(n[0]?e=new a(this):e.s=this.s),e;if(n=n.slice(),t=o-s){for(t>0?(s=o,i=l):(t=-t,i=n),i.reverse();t--;)i.push(0);i.reverse()}for(n.length-l.length<0&&(i=l,l=n,n=i),t=l.length,r=0;t;n[t]%=10)r=(n[--t]=n[t]+l[t]+r)/10|0;for(r&&(n.unshift(r),++s),t=n.length;0===n[--t];)n.pop();return e.c=n,e.e=s,e},ev.pow=function(e){var t=this,r=new t.constructor("1"),i=r,a=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(eg+"exponent");for(a&&(e=-e);1&e&&(i=i.times(t)),e>>=1;)t=t.times(t);return a?r.div(i):i},ev.prec=function(e,t){if(e!==~~e||e<1||e>1e6)throw Error(eg+"precision");return eC(new this.constructor(this),e,t)},ev.round=function(e,t){if(e===eb)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(ef);return eC(new this.constructor(this),e+this.e+1,t)},ev.sqrt=function(){var e,t,r,i=this.constructor,a=this.s,o=this.e,n=new i("0.5");if(!this.c[0])return new i(this);if(a<0)throw Error(ep+"No square root");0===(a=Math.sqrt(+ex(this,!0,!0)))||a===1/0?((t=this.c.join("")).length+o&1||(t+="0"),o=((o+1)/2|0)-(o<0||1&o),e=new i(((a=Math.sqrt(t))==1/0?"5e":(a=a.toExponential()).slice(0,a.indexOf("e")+1))+o)):e=new i(a+""),o=e.e+(i.DP+=4);do r=e,e=n.times(r.plus(this.div(r)));while(r.c.slice(0,o).join("")!==e.c.slice(0,o).join(""));return eC(e,(i.DP-=4)+e.e+1,i.RM)},ev.times=ev.mul=function(e){var t,r=this.constructor,i=this.c,a=(e=new r(e)).c,o=i.length,n=a.length,s=this.e,l=e.e;if(e.s=this.s==e.s?1:-1,!i[0]||!a[0])return e.c=[e.e=0],e;
3for(e.e=s+l,o<n&&(t=i,i=a,a=t,l=o,o=n,n=l),t=Array(l=o+n);l--;)t[l]=0;for(s=n;s--;){for(n=0,l=o+s;l>s;)n=t[l]+a[s]*i[l-s-1]+n,t[l--]=n%10,n=n/10|0;t[l]=n}for(n?++e.e:t.shift(),s=t.length;!t[--s];)t.pop();return e.c=t,e},ev.toExponential=function(e,t){var r=this,i=r.c[0];if(e!==eb){if(e!==~~e||e<0||e>1e6)throw Error(ef);for(r=eC(new r.constructor(r),++e,t);r.c.length<e;)r.c.push(0)}return ex(r,!0,!!i)},ev.toFixed=function(e,t){var r=this,i=r.c[0];if(e!==eb){if(e!==~~e||e<0||e>1e6)throw Error(ef);for(r=eC(new r.constructor(r),e+r.e+1,t),e=e+r.e+1;r.c.length<e;)r.c.push(0)}return ex(r,!1,!!i)},ev[Symbol.for("nodejs.util.inspect.custom")]=ev.toJSON=ev.toString=function(){var e=this.constructor;return ex(this,this.e<=e.NE||this.e>=e.PE,!!this.c[0])},ev.toNumber=function(){var e=+ex(this,!0,!0);if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(ep+"Imprecise conversion");return e},ev.toPrecision=function(e,t){var r=this,i=r.constructor,a=r.c[0];if(e!==eb){if(e!==~~e||e<1||e>1e6)throw Error(eg+"precision");for(r=eC(new i(r),e,t);r.c.length<e;)r.c.push(0)}return ex(r,e<=r.e||r.e<=i.NE||r.e>=i.PE,!!a)},ev.valueOf=function(){var e=this.constructor;if(!0===e.strict)throw Error(ep+"valueOf disallowed");return ex(this,this.e<=e.NE||this.e>=e.PE,!0)};var ek=function e(){function t(r){if(!(this instanceof t))return r===eb?e():new t(r);if(r instanceof t)this.s=r.s,this.e=r.e,this.c=r.c.slice();else{if("string"!=typeof r){if(!0===t.strict&&"bigint"!=typeof r)throw TypeError(eg+"value");r=0===r&&1/r<0?"-0":String(r)}!function(e,t){var r,i,a;if(!ey.test(t))throw Error(eg+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(r<0&&(r=i),r+=+t.slice(i+1),t=t.substring(0,i)):r<0&&(r=t.length),a=t.length,i=0;i<a&&"0"==t.charAt(i);)++i;if(i==a)e.c=[e.e=0];else{for(;a>0&&"0"==t.charAt(--a););for(e.e=r-i-1,e.c=[],r=0;i<=a;)e.c[r++]=+t.charAt(i++)}}(this,r)}this.constructor=t}return t.prototype=ev,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.strict=!1,t.roundDown=0,t.roundHalfUp=1,t.roundHalfEven=2,t.roundUp=3,t}();let eA={bigNumber:e=>new ek(e||0),multiply(e,t){if(void 0===e||void 0===t)return new ek(0);let r=new ek(e),i=new ek(t);return r.times(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}),parseLocalStringToNumber:e=>void 0===e?0:parseFloat(e.replace(/,/gu,""))},eI=[{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],eE=[{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],eS="walletConnect",eN="injected",eP="coinbaseWallet",e_="coinbaseWalletSDK",e$="safe",eO="ledger",eT="ID_AUTH",eR="Auth",eB=["eip155","solana"],eL="eip155",eM="solana",eU={eip155:"EVM Networks",
3solana:"Solana",polkadot:"Polkadot",bip122:"Bitcoin"},ez=["0xdac17f958d2ee523a2206206994597c13d831ec7","0xc2132d05d31c914a87c6611c10748aeb04b58e8f","0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7","0x919C1c267BC06a7039e03fcc2eF738525769109c","0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e","0x55d398326f99059fF775485246999027B3197955","0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9"],ej=403,eD="Unknown Network",eW={validateCaipAddress(e){if(e.split(":")?.length!==3)throw Error("Invalid CAIP Address");return e},parseCaipAddress(e){let t=e.split(":");if(3!==t.length)throw Error(`Invalid CAIP-10 address: ${e}`);let[r,i,a]=t;if(!r||!i||!a)throw Error(`Invalid CAIP-10 address: ${e}`);return{chainNamespace:r,chainId:i,address:a}},parseCaipNetworkId(e){let t=e.split(":");if(2!==t.length)throw Error(`Invalid CAIP-2 network id: ${e}`);let[r,i]=t;if(!r||!i)throw Error(`Invalid CAIP-2 network id: ${e}`);return{chainNamespace:r,chainId:i}}},eH="@appkit/active_caip_network_id",eF="@appkit/connected_social",eV="@appkit/recent_wallets",eZ="WALLETCONNECT_DEEPLINK_CHOICE",eq="@appkit/active_namespace",eG="@appkit/connected_namespaces",eK="@appkit/connection_status",eY="@appkit/social_provider",eX="@appkit/native_balance_cache",eJ="@appkit/portfolio_cache",eQ="@appkit/ens_cache",e0="@appkit/identity_cache",e1="@appkit/preferred_account_types";function e2(e){if(!e)throw Error("Namespace is required for CONNECTED_CONNECTOR_ID");return`@appkit/${e}:connected_connector_id`}let e3={setItem(e,t){e5()&&void 0!==t&&localStorage.setItem(e,t)},getItem(e){if(e5())return localStorage.getItem(e)||void 0},removeItem(e){e5()&&localStorage.removeItem(e)},clear(){e5()&&localStorage.clear()}};function e5(){return"u">typeof window&&"u">typeof localStorage}function e4(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"}}let e6=Symbol(),e8=Object.getPrototypeOf,e7=new WeakMap,e9=e=>e&&(e7.has(e)?e7.get(e):e8(e)===Object.prototype||e8(e)===Array.prototype)&&e[e6]||null,te=(e,t=!0)=>{e7.set(e,t)},tt=e=>"object"==typeof e&&null!==e,tr=new WeakMap,ti=new WeakSet,[ta]=((e=Object.is,t=(e,t)=>new Proxy(e,t),r=e=>tt(e)&&!ti.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}},a=new WeakMap,o=(e,t,r=i)=>{let n=a.get(e);if(n?.[0]===t)return n[1];let s=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return te(s,!0),a.set(e,[t,s]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(s,t))return;let i=Reflect.get(e,t),{enumerable:a}=Reflect.getOwnPropertyDescriptor(e,t),n={value:i,enumerable:a,configurable:!0};if(ti.has(i))te(i,!1);else if(i instanceof Promise)delete n.value,n.get=()=>r(i);else if(tr.has(i)){let[e,t]=tr.get(i);n.value=o(e,t(),r)}Object.defineProperty(s,t,n)}),Object.preventExtensions(s)},n=new WeakMap,s=[1,1],l=i=>{if(!tt(i))throw Error("object required");let a=n.get(i);if(a)return a;let c=s[0],d=new Set,u=(e,t=++s[0])=>{c!==t&&(c=t,d.forEach(r=>r(e,t)))},h=s[1],p=(e=++s[1])=>(h===e||d.size||(h=e,f.forEach(([t])=>{let r=t[1](e);r>c&&(c=r)})),c),g=e=>(t,r)=>{let i=[...t];i[1]=[e,...i[1]],u(i,r)},f=new Map,w=(e,t)=>{if(f.has(e))throw Error("prop listener already exists");if(d.size){let r=t[3](g(e));f.set(e,[t,r])}else f.set(e,[t])},m=e=>{var t;let r=f.get(e);r&&(f.delete(e),null==(t=r[1])||t.call(r))},v=e=>(d.add(e),1===d.size&&f.forEach(([e,t],r)=>{if(t)throw Error("remove already exists");let i=e[3](g(r));f.set(r,[e,i])}),()=>{d.delete(e),0===d.size&&f.forEach(([e,t],r)=>{t&&(t(),f.set(r,[e]))})}),b=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),y=t(b,{deleteProperty(e,t){let r=Reflect.get(e,t);m(t);let i=Reflect.deleteProperty(e,t);return i&&u(["delete",[t],r]),i},set(t,i,a,o){let s=Reflect.has(t,i),c=Reflect.get(t,i,o);if(s&&(e(c,a)||n.has(a)&&e(c,n.get(a))))return!0;m(i),tt(a)&&(a=e9(a)||a);let d=a;if(a instanceof Promise)a.then(e=>{a.status="fulfilled",a.value=e,u(["resolve",[i],e])}).catch(e=>{a.status="rejected",a.reason=e,u(["reject",[i],e])});else{!tr.has(a)&&r(a)&&(d=l(a));let e=!ti.has(d)&&tr.get(d);e&&w(i,e)}return Reflect.set(t,i,d,o),u(["set",[i],a,c]),!0}});n.set(i,y);let C=[b,p,o,v];
3return tr.set(y,C),Reflect.ownKeys(i).forEach(e=>{let t=Object.getOwnPropertyDescriptor(i,e);"value"in t&&(y[e]=i[e],delete t.value,delete t.writable),Object.defineProperty(b,e,t)}),y})=>[l,tr,ti,e,t,r,i,a,o,n,s])();function to(e={}){return ta(e)}function tn(e,t,r){let i,a=tr.get(e);a||console.warn("Please use proxy object");let o=[],n=a[3],s=!1,l=n(e=>{(o.push(e),r)?t(o.splice(0)):i||(i=Promise.resolve().then(()=>{i=void 0,s&&t(o.splice(0))}))});return s=!0,()=>{s=!1,l()}}function ts(e,t){let r=tr.get(e);r||console.warn("Please use proxy object");let[i,a,o]=r;return o(i,a(),t)}function tl(e){return ti.add(e),e}function tc(e,t,r,i){let a=e[t];return tn(e,()=>{let i=e[t];Object.is(a,i)||r(a=i)},i)}let td=("u">typeof z&&"u">typeof z.env?z.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",tu={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,FIVE_SEC_MS:5e3,THREE_SEC_MS:3e3,ONE_SEC_MS:1e3,SECURE_SITE:td,SECURE_SITE_DASHBOARD:`${td}/dashboard`,SECURE_SITE_FAVICON:`${td}/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","berachain","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",Berachain:"berachain",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"],BALANCE_SUPPORTED_CHAINS:["eip155","solana"],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"],NAMES_SUPPORTED_CHAIN_NAMESPACES:["eip155"],ONRAMP_SUPPORTED_CHAIN_NAMESPACES:["eip155","solana"],ACTIVITY_ENABLED_CHAIN_NAMESPACES:["eip155"],NATIVE_TOKEN_ADDRESS:{eip155:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",solana:"So11111111111111111111111111111111111111111",polkadot:"0x",bip122:"0x"},CONVERT_SLIPPAGE_TOLERANCE:1,CONNECT_LABELS:{MOBILE:"Open and continue in a new browser tab"},DEFAULT_FEATURES:{swaps:!0,onramp:!0,receive:!0,send:!0,email:!0,emailShowWallets:!0,socials:["google","x","discord","farcaster","github","apple","facebook"],connectorTypeOrder:["walletConnect","recent","injected","featured","custom","external","recommended"],history:!0,analytics:!0,allWallets:!0,legalCheckbox:!1,smartSessions:!1,collapseWallets:!1,walletFeaturesOrder:["onramp","swaps","receive","send"],connectMethodsOrder:void 0},DEFAULT_ACCOUNT_TYPES:{bip122:"payment",eip155:"smartAccount",polkadot:"eoa",solana:"eoa"},ADAPTER_TYPES:{UNIVERSAL:"universal",SOLANA:"solana",WAGMI:"wagmi",ETHERS:"ethers",ETHERS5:"ethers5",BITCOIN:"bitcoin"}},th={cacheExpiry:{portfolio:3e4,nativeBalance:3e4,ens:3e5,identity:3e5},isCacheExpired:(e,t)=>Date.now()-e>t,getActiveNetworkProps(){let e=th.getActiveNamespace(),t=th.getActiveCaipNetworkId(),r=t?t.split(":")[1]:void 0;return{namespace:e,caipNetworkId:t,chainId:r?isNaN(Number(r))?r:Number(r):void 0}},setWalletConnectDeepLink({name:e,href:t}){try{e3.setItem(eZ,JSON.stringify({href:t,name:e}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{let e=e3.getItem(eZ);if(e)return JSON.parse(e)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{e3.removeItem(eZ)}catch{console.info("Unable to delete WalletConnect deep link")}},setActiveNamespace(e){try{e3.setItem(eq,e)}catch{console.info("Unable to set active namespace")}},setActiveCaipNetworkId(e){try{e3.setItem(eH,e),th.setActiveNamespace(e.split(":")[0])}catch{console.info("Unable to set active caip network id")}},getActiveCaipNetworkId(){try{return e3.getItem(eH)}catch{console.info("Unable to get active caip network id");return}},deleteActiveCaipNetworkId(){try{e3.removeItem(eH)}catch{console.info("Unable to delete active caip network id")}},deleteConnectedConnectorId(e){try{let t=e2(e);e3.removeItem(t)}catch{console.info("Unable to delete connected connector id")}},setAppKitRecent(e){try{let t=th.getRecentWallets();t.find(t=>
3t.id===e.id)||(t.unshift(e),t.length>2&&t.pop(),e3.setItem(eV,JSON.stringify(t)))}catch{console.info("Unable to set AppKit recent")}},getRecentWallets(){try{let e=e3.getItem(eV);return e?JSON.parse(e):[]}catch{console.info("Unable to get AppKit recent")}return[]},setConnectedConnectorId(e,t){try{let r=e2(e);e3.setItem(r,t)}catch{console.info("Unable to set Connected Connector Id")}},getActiveNamespace(){try{return e3.getItem(eq)}catch{console.info("Unable to get active namespace")}},getConnectedConnectorId(e){if(e)try{let t=e2(e);return e3.getItem(t)}catch{console.info("Unable to get connected connector id in namespace ",e)}},setConnectedSocialProvider(e){try{e3.setItem(eF,e)}catch{console.info("Unable to set connected social provider")}},getConnectedSocialProvider(){try{return e3.getItem(eF)}catch{console.info("Unable to get connected social provider")}},deleteConnectedSocialProvider(){try{e3.removeItem(eF)}catch{console.info("Unable to delete connected social provider")}},getConnectedSocialUsername(){try{return e3.getItem("@appkit-wallet/SOCIAL_USERNAME")}catch{console.info("Unable to get connected social username")}},getStoredActiveCaipNetworkId:()=>e3.getItem(eH)?.split(":")?.[1],setConnectionStatus(e){try{e3.setItem(eK,e)}catch{console.info("Unable to set connection status")}},getConnectionStatus(){try{return e3.getItem(eK)}catch{return}},getConnectedNamespaces(){try{let e=e3.getItem(eG);return e?.length?e.split(","):[]}catch{return[]}},setConnectedNamespaces(e){try{let t=Array.from(new Set(e));e3.setItem(eG,t.join(","))}catch{console.info("Unable to set namespaces in storage")}},addConnectedNamespace(e){try{let t=th.getConnectedNamespaces();t.includes(e)||(t.push(e),th.setConnectedNamespaces(t))}catch{console.info("Unable to add connected namespace")}},removeConnectedNamespace(e){try{let t=th.getConnectedNamespaces(),r=t.indexOf(e);r>-1&&(t.splice(r,1),th.setConnectedNamespaces(t))}catch{console.info("Unable to remove connected namespace")}},getTelegramSocialProvider(){try{return e3.getItem(eY)}catch{return console.info("Unable to get telegram social provider"),null}},setTelegramSocialProvider(e){try{e3.setItem(eY,e)}catch{console.info("Unable to set telegram social provider")}},removeTelegramSocialProvider(){try{e3.removeItem(eY)}catch{console.info("Unable to remove telegram social provider")}},getBalanceCache(){let e={};try{let t=e3.getItem(eJ);e=t?JSON.parse(t):{}}catch{console.info("Unable to get balance cache")}return e},removeAddressFromBalanceCache(e){try{let t=th.getBalanceCache();e3.setItem(eJ,JSON.stringify({...t,[e]:void 0}))}catch{console.info("Unable to remove address from balance cache",e)}},getBalanceCacheForCaipAddress(e){try{let t=th.getBalanceCache()[e];if(t&&!this.isCacheExpired(t.timestamp,this.cacheExpiry.portfolio))return t.balance;th.removeAddressFromBalanceCache(e)}catch{console.info("Unable to get balance cache for address",e)}},updateBalanceCache(e){try{let t=th.getBalanceCache();t[e.caipAddress]=e,e3.setItem(eJ,JSON.stringify(t))}catch{console.info("Unable to update balance cache",e)}},getNativeBalanceCache(){let e={};try{let t=e3.getItem(eX);e=t?JSON.parse(t):{}}catch{console.info("Unable to get balance cache")}return e},removeAddressFromNativeBalanceCache(e){try{let t=th.getBalanceCache();e3.setItem(eX,JSON.stringify({...t,[e]:void 0}))}catch{console.info("Unable to remove address from balance cache",e)}},getNativeBalanceCacheForCaipAddress(e){try{let t=th.getNativeBalanceCache()[e];if(t&&!this.isCacheExpired(t.timestamp,this.cacheExpiry.nativeBalance))return t;console.info("Discarding cache for address",e),th.removeAddressFromBalanceCache(e)}catch{console.info("Unable to get balance cache for address",e)}},updateNativeBalanceCache(e){try{let t=th.getNativeBalanceCache();t[e.caipAddress]=e,e3.setItem(eX,JSON.stringify(t))}catch{console.info("Unable to update balance cache",e)}},getEnsCache(){let e={};try{let t=e3.getItem(eQ);e=t?JSON.parse(t):{}}catch{console.info("Unable to get ens name cache")}return e},getEnsFromCacheForAddress(e){try{let t=th.getEnsCache()[e];if(t&&!this.isCacheExpired(t.timestamp,this.cacheExpiry.ens))return t.ens;
3th.removeEnsFromCache(e)}catch{console.info("Unable to get ens name from cache",e)}},updateEnsCache(e){try{let t=th.getEnsCache();t[e.address]=e,e3.setItem(eQ,JSON.stringify(t))}catch{console.info("Unable to update ens name cache",e)}},removeEnsFromCache(e){try{let t=th.getEnsCache();e3.setItem(eQ,JSON.stringify({...t,[e]:void 0}))}catch{console.info("Unable to remove ens name from cache",e)}},getIdentityCache(){let e={};try{let t=e3.getItem(e0);e=t?JSON.parse(t):{}}catch{console.info("Unable to get identity cache")}return e},getIdentityFromCacheForAddress(e){try{let t=th.getIdentityCache()[e];if(t&&!this.isCacheExpired(t.timestamp,this.cacheExpiry.identity))return t.identity;th.removeIdentityFromCache(e)}catch{console.info("Unable to get identity from cache",e)}},updateIdentityCache(e){try{let t=th.getIdentityCache();t[e.address]={identity:e.identity,timestamp:e.timestamp},e3.setItem(e0,JSON.stringify(t))}catch{console.info("Unable to update identity cache",e)}},removeIdentityFromCache(e){try{let t=th.getIdentityCache();e3.setItem(e0,JSON.stringify({...t,[e]:void 0}))}catch{console.info("Unable to remove identity from cache",e)}},clearAddressCache(){try{e3.removeItem(eJ),e3.removeItem(eX),e3.removeItem(eQ),e3.removeItem(e0)}catch{console.info("Unable to clear address cache")}},setPreferredAccountTypes(e){try{e3.setItem(e1,JSON.stringify(e))}catch{console.info("Unable to set preferred account types",e)}},getPreferredAccountTypes(){try{let e=e3.getItem(e1);return JSON.parse(e)}catch{console.info("Unable to get preferred account types")}}},tp={isMobile(){return!!this.isClient()&&!!(window?.matchMedia("(pointer:coarse)")?.matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent))},checkCaipNetwork:(e,t="")=>e?.caipNetworkId.toLocaleLowerCase().includes(t.toLowerCase()),isAndroid(){if(!this.isMobile())return!1;let e=window?.navigator.userAgent.toLowerCase();return tp.isMobile()&&e.includes("android")},isIos(){if(!this.isMobile())return!1;let e=window?.navigator.userAgent.toLowerCase();return e.includes("iphone")||e.includes("ipad")},isSafari(){return!!this.isClient()&&(window?.navigator.userAgent.toLowerCase()).includes("safari")},isClient:()=>"u">typeof window,isPairingExpired:e=>!e||e-Date.now()<=tu.TEN_SEC_MS,isAllowedRetry:(e,t=tu.ONE_SEC_MS)=>Date.now()-e>=t,copyToClopboard(e){navigator.clipboard.writeText(e)},isIframe(){try{return window?.self!==window?.top}catch{return!1}},getPairingExpiry:()=>Date.now()+tu.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)=>{r&&clearTimeout(r),r=setTimeout(function(){e(...i)},t)}},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),formatNativeUrl(e,t){if(tp.isHttpUrl(e))return this.formatUniversalUrl(e,t);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.isTelegram()&&this.isAndroid()&&(t=encodeURIComponent(t));let i=encodeURIComponent(t);return{redirect:`${r}wc?uri=${i}`,href:r}},formatUniversalUrl(e,t){if(!tp.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}},getOpenTargetForPlatform(e){return"popupWindow"===e?e:this.isTelegram()?th.getTelegramSocialProvider()?"_top":"_blank":e},openHref(e,t,r){window?.open(e,this.getOpenTargetForPlatform(t),r||"noreferrer noopener")},returnOpenHref(e,t,r){return window?.open(e,this.getOpenTargetForPlatform(t),r||"noreferrer noopener")},isTelegram:()=>"u">typeof window&&(!!window.TelegramWebviewProxy||!!window.Telegram||!!window.TelegramWebviewProxyProto),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}),tp.wait(2e3)]),formatBalance(e,t){let r="0.000";if("string"==typeof e){let t=Number(e);if(t){let e=Math.floor(1e3*t)/1e3;e&&(r=e.toString())}}return`${r}${t?` ${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])}
3return{value:r??"0",rest:"0"===r?"000":"",symbol:t}},getApiUrl:()=>"https://api.web3modal.org",getBlockchainApiUrl:()=>"https://rpc.walletconnect.org",getAnalyticsUrl:()=>"https://pulse.walletconnect.org",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],a=r[t.id];return void 0!==i&&void 0!==a?i-a:void 0!==i?-1:+(void 0!==a)})),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,t="eip155"){switch(t){case"eip155":if(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)&&(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)||/^(?:0x)?[0-9A-F]{40}$/iu.test(e)))return!0;return!1;case"solana":return/[1-9A-HJ-NP-Za-km-z]{32,44}$/iu.test(e);default:return!1}},uniqueBy(e,t){let r=new Set;return e.filter(e=>{let i=e[t];return!r.has(i)&&(r.add(i),!0)})},generateSdkVersion(e,t,r){let i=0===e.length?tu.ADAPTER_TYPES.UNIVERSAL:e.map(e=>e.adapterType).join(",");return`${t}-${i}-${r}`},createAccount:(e,t,r,i,a)=>({namespace:e,address:t,type:r,publicKey:i,path:a}),isCaipAddress(e){if("string"!=typeof e)return!1;let t=e.split(":"),r=t[0];return 3===t.filter(Boolean).length&&r in eU},isMac(){let e=window?.navigator.userAgent.toLowerCase();return e.includes("macintosh")&&!e.includes("safari")},formatTelegramSocialLoginUrl(e){let t=`--${encodeURIComponent(window?.location.href)}`,r="state=";if("auth.magic.link"===new URL(e).host){let i="provider_authorization_url=",a=e.substring(e.indexOf(i)+i.length),o=this.injectIntoUrl(decodeURIComponent(a),r,t);return e.replace(a,encodeURIComponent(o))}return this.injectIntoUrl(e,r,t)},injectIntoUrl(e,t,r){let i=e.indexOf(t);if(-1===i)throw Error(`${t} parameter not found in the URL: ${e}`);let a=e.indexOf("&",i),o=t.length,n=-1!==a?a:e.length;return e.substring(0,i+o)+(e.substring(i+o,n)+r)+e.substring(a)}};async function tg(...e){let t=await fetch(...e);if(!t.ok)throw Error(`HTTP status code: ${t.status}`,{cause:t});return t}class tf{constructor({baseUrl:e,clientId:t}){this.baseUrl=e,this.clientId=t}async get({headers:e,signal:t,cache:r,...i}){let a=this.createUrl(i);return(await tg(a,{method:"GET",headers:e,signal:t,cache:r})).json()}async getBlob({headers:e,signal:t,...r}){let i=this.createUrl(r);return(await tg(i,{method:"GET",headers:e,signal:t})).blob()}async post({body:e,headers:t,signal:r,...i}){let a=this.createUrl(i);return(await tg(a,{method:"POST",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async put({body:e,headers:t,signal:r,...i}){let a=this.createUrl(i);return(await tg(a,{method:"PUT",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async delete({body:e,headers:t,signal:r,...i}){let a=this.createUrl(i);return(await tg(a,{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)}),this.clientId&&r.searchParams.append("clientId",this.clientId),r}}let tw={handleSolanaDeeplinkRedirect(e){if(o8.state.activeChain===eM){let t=window.location.href,r=encodeURIComponent(t);if("Phantom"===e&&!("phantom"in window)){let e=t.startsWith("https")?"https":"http",i=t.split("/")[2],a=encodeURIComponent(`${e}://${i}`);window.location.href=`https://phantom.app/ul/browse/${r}?ref=${a}`}"Coinbase Wallet"!==e||"coinbaseSolana"in window||(window.location.href=`https://go.cb-w.com/dapp?cb_url=${r}`)}}},tm=to({walletImages:{},networkImages:{},chainImages:{},connectorImages:{},tokenImages:{},currencyImages:{}}),tv={state:tm,subscribeNetworkImages:e=>tn(tm.networkImages,()=>e(tm.networkImages)),subscribeKey:(e,t)=>tc(tm,e,t),subscribe:e=>tn(tm,()=>e(tm)),setWalletImage(e,t){tm.walletImages[e]=t},setNetworkImage(e,t){tm.networkImages[e]=t},setChainImage(e,t){tm.chainImages[e]=t},setConnectorImage(e,t){tm.connectorImages={...tm.connectorImages,[e]:t}},setTokenImage(e,t){tm.tokenImages[e]=t},setCurrencyImage(e,t){tm.currencyImages[e]=t}},tb={eip155:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",solana:"a1b58899-f671-4276-6a5e-56ca5bd59700",polkadot:"",bip122:"0b4838db-0161-4ffe-022d-532bf03dba00"},ty=to({networkImagePromises:{}}),tC={async fetchWalletImage(e){if(e)return await tR._fetchWalletImage(e),this.getWalletImageById(e)},async fetchNetworkImage(e){if(e)return this.getNetworkImageById(e)||(ty.networkImagePromises[e]||(ty.networkImagePromises[e]=tR._fetchNetworkImage(e)),await ty.networkImagePromises[e],this.getNetworkImageById(e))},getWalletImageById(e){if(e)return tv.state.walletImages[e]},getWalletImage:e=>e?.image_url?e?.image_url:e?.image_id?tv.state.walletImages[e.image_id]:void 0,getNetworkImage:e=>e?.assets?.imageUrl?e?.assets?.imageUrl:e?.assets?.imageId?tv.state.networkImages[e.assets.imageId]:void 0,getNetworkImageById(e){if(e)return tv.state.networkImages[e]},getConnectorImage:e=>e?.imageUrl?e.imageUrl:e?.imageId?tv.state.connectorImages[e.imageId]:void 0,getChainImage:e=>tv.state.networkImages[tb[e]]},tx={getFeatureValue(e,t){let r=t?.[e];return void 0===r?tu.DEFAULT_FEATURES[e]:r}
3,filterSocialsByPlatform(e){if(!e||!e.length)return e;if(tp.isTelegram()){if(tp.isIos())return e.filter(e=>"google"!==e);if(tp.isMac())return e.filter(e=>"x"!==e);if(tp.isAndroid())return e.filter(e=>!["facebook","x"].includes(e))}return e}},tk=to({features:tu.DEFAULT_FEATURES,projectId:"",sdkType:"appkit",sdkVersion:"html-wagmi-undefined",defaultAccountTypes:{solana:"eoa",bip122:"payment",polkadot:"eoa",eip155:"smartAccount"},enableNetworkSwitch:!0}),tA={state:tk,subscribeKey:(e,t)=>tc(tk,e,t),setOptions(e){Object.assign(tk,e)},setFeatures(e){if(!e)return;tk.features||(tk.features=tu.DEFAULT_FEATURES);let t={...tk.features,...e};tk.features=t,tk.features.socials&&(tk.features.socials=tx.filterSocialsByPlatform(tk.features.socials))},setProjectId(e){tk.projectId=e},setCustomRpcUrls(e){tk.customRpcUrls=e},setAllWallets(e){tk.allWallets=e},setIncludeWalletIds(e){tk.includeWalletIds=e},setExcludeWalletIds(e){tk.excludeWalletIds=e},setFeaturedWalletIds(e){tk.featuredWalletIds=e},setTokens(e){tk.tokens=e},setTermsConditionsUrl(e){tk.termsConditionsUrl=e},setPrivacyPolicyUrl(e){tk.privacyPolicyUrl=e},setCustomWallets(e){tk.customWallets=e},setIsSiweEnabled(e){tk.isSiweEnabled=e},setIsUniversalProvider(e){tk.isUniversalProvider=e},setSdkVersion(e){tk.sdkVersion=e},setMetadata(e){tk.metadata=e},setDisableAppend(e){tk.disableAppend=e},setEIP6963Enabled(e){tk.enableEIP6963=e},setDebug(e){tk.debug=e},setEnableWalletConnect(e){tk.enableWalletConnect=e},setEnableWalletGuide(e){tk.enableWalletGuide=e},setEnableAuthLogger(e){tk.enableAuthLogger=e},setEnableWallets(e){tk.enableWallets=e},setHasMultipleAddresses(e){tk.hasMultipleAddresses=e},setSIWX(e){tk.siwx=e},setConnectMethodsOrder(e){tk.features={...tk.features,connectMethodsOrder:e}},setWalletFeaturesOrder(e){tk.features={...tk.features,walletFeaturesOrder:e}},setSocialsOrder(e){tk.features={...tk.features,socials:e}},setCollapseWallets(e){tk.features={...tk.features,collapseWallets:e}},setEnableEmbedded(e){tk.enableEmbedded=e},setAllowUnsupportedChain(e){tk.allowUnsupportedChain=e},setManualWCControl(e){tk.manualWCControl=e},setEnableNetworkSwitch(e){tk.enableNetworkSwitch=e},setDefaultAccountTypes(e={}){Object.entries(e).forEach(([e,t])=>{t&&(tk.defaultAccountTypes[e]=t)})},setUniversalProviderConfigOverride(e){tk.universalProviderConfigOverride=e},getUniversalProviderConfigOverride:()=>tk.universalProviderConfigOverride,getSnapshot:()=>ts(tk)},tI=to({message:"",variant:"info",open:!1}),tE={state:tI,subscribeKey:(e,t)=>tc(tI,e,t),open(e,t){let{debug:r}=tA.state,{shortMessage:i,longMessage:a}=e;r&&(tI.message=i,tI.variant=t,tI.open=!0),a&&console.error("function"==typeof a?a():a)},close(){tI.open=!1,tI.message="",tI.variant="info"}},tS=new tf({baseUrl:tp.getAnalyticsUrl(),clientId:null}),tN=["MODAL_CREATED"],tP=to({timestamp:Date.now(),reportedErrors:{},data:{type:"track",event:"MODAL_CREATED"}}),t_={state:tP,subscribe:e=>tn(tP,()=>e(tP)),getSdkProperties(){let{projectId:e,sdkType:t,sdkVersion:r}=tA.state;return{projectId:e,st:t,sv:r||"html-wagmi-4.2.2"}},async _sendAnalyticsEvent(e){try{let t=ni.state.address;if(tN.includes(e.data.event)||typeof window>"u")return;await tS.post({path:"/e",params:t_.getSdkProperties(),body:{eventId:tp.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:e.timestamp,props:{...e.data,address:t}}}),tP.reportedErrors.FORBIDDEN=!1}catch(e){e instanceof Error&&e.cause instanceof Response&&e.cause.status===ej&&!tP.reportedErrors.FORBIDDEN&&(tE.open({shortMessage:"Invalid App Configuration",longMessage:`Origin ${e5()?window.origin:"uknown"} not found on Allowlist - update configuration on cloud.reown.com`},"error"),tP.reportedErrors.FORBIDDEN=!0)}},sendEvent(e){tP.timestamp=Date.now(),tP.data=e,tA.state.features?.anal
3ytics&&t_._sendAnalyticsEvent(tP)}},t$=["1ca0bdd4747578705b1939af023d120677c64fe6ca76add81fda36e350605e79","fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa","a797aa35c0fadbfc1a53e7f675162ed5226968b44a19ee3d24385c64d1d3c393"],tO=new tf({baseUrl:tp.getApiUrl(),clientId:null}),tT=to({promises:{},page:1,count:0,featured:[],allFeatured:[],recommended:[],allRecommended:[],wallets:[],search:[],isAnalyticsEnabled:!1,excludedWallets:[],isFetchingRecommendedWallets:!1}),tR={state:tT,subscribeKey:(e,t)=>tc(tT,e,t),_getSdkProperties(){let{projectId:e,sdkType:t,sdkVersion:r}=tA.state;return{projectId:e,st:t||"appkit",sv:r||"html-wagmi-4.2.2"}},_filterOutExtensions:e=>tA.state.isUniversalProvider?e.filter(e=>!!(e.mobile_link||e.desktop_link||e.webapp_link)):e,async _fetchWalletImage(e){let t=`${tO.baseUrl}/getWalletImage/${e}`,r=await tO.getBlob({path:t,params:tR._getSdkProperties()});tv.setWalletImage(e,URL.createObjectURL(r))},async _fetchNetworkImage(e){let t=`${tO.baseUrl}/public/getAssetImage/${e}`,r=await tO.getBlob({path:t,params:tR._getSdkProperties()});tv.setNetworkImage(e,URL.createObjectURL(r))},async _fetchConnectorImage(e){let t=`${tO.baseUrl}/public/getAssetImage/${e}`,r=await tO.getBlob({path:t,params:tR._getSdkProperties()});tv.setConnectorImage(e,URL.createObjectURL(r))},async _fetchCurrencyImage(e){let t=`${tO.baseUrl}/public/getCurrencyImage/${e}`,r=await tO.getBlob({path:t,params:tR._getSdkProperties()});tv.setCurrencyImage(e,URL.createObjectURL(r))},async _fetchTokenImage(e){let t=`${tO.baseUrl}/public/getTokenImage/${e}`,r=await tO.getBlob({path:t,params:tR._getSdkProperties()});tv.setTokenImage(e,URL.createObjectURL(r))},async fetchNetworkImages(){let e=o8.getAllRequestedCaipNetworks()?.map(({assets:e})=>e?.imageId).filter(Boolean).filter(e=>!tC.getNetworkImageById(e));e&&await Promise.allSettled(e.map(e=>tR._fetchNetworkImage(e)))},async fetchConnectorImages(){let{connectors:e}=tD.state,t=e.map(({imageId:e})=>
3e).filter(Boolean);await Promise.allSettled(t.map(e=>tR._fetchConnectorImage(e)))},async fetchCurrencyImages(e=[]){await Promise.allSettled(e.map(e=>tR._fetchCurrencyImage(e)))},async fetchTokenImages(e=[]){await Promise.allSettled(e.map(e=>tR._fetchTokenImage(e)))},async fetchWallets(e){let t=e.exclude??[];return tR._getSdkProperties().sv.startsWith("html-core-")&&t.push(...t$),await tO.get({path:"/getWallets",params:{...tR._getSdkProperties(),...e,page:String(e.page),entries:String(e.entries),include:e.include?.join(","),exclude:e.exclude?.join(",")}})},async fetchFeaturedWallets(){let{featuredWalletIds:e}=tA.state;if(e?.length){let t={...tR._getSdkProperties(),page:1,entries:e?.length??4,include:e},{data:r}=await tR.fetchWallets(t);r.sort((t,r)=>e.indexOf(t.id)-e.indexOf(r.id));let i=r.map(e=>e.image_id).filter(Boolean);await Promise.allSettled(i.map(e=>tR._fetchWalletImage(e))),tT.featured=r,tT.allFeatured=r}},async fetchRecommendedWallets(){try{tT.isFetchingRecommendedWallets=!0;let{includeWalletIds:e,excludeWalletIds:t,featuredWalletIds:r}=tA.state,i=[...t??[],...r??[]].filter(Boolean),a=o8.getRequestedCaipNetworkIds().join(","),{data:o,count:n}=await tR.fetchWallets({page:1,entries:4,include:e,exclude:i,chains:a}),s=th.getRecentWallets(),l=o.map(e=>e.image_id).filter(Boolean),c=s.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...l,...c].map(e=>tR._fetchWalletImage(e))),tT.recommended=o,tT.allRecommended=o,tT.count=n??0}catch{}finally{tT.isFetchingRecommendedWallets=!1}},async fetchWalletsByPage({page:e}){let{includeWalletIds:t,excludeWalletIds:r,featuredWalletIds:i}=tA.state,a=o8.getRequestedCaipNetworkIds().join(","),o=[...tT.recommended.map(({id:e})=>e),...r??[],...i??[]].filter(Boolean),{data:n,count:s}=await tR.fetchWallets({page:e,entries:40,include:t,exclude:o,chains:a}),l=n.slice(0,20).map(e=>e.image_id).filter(Boolean);await Promise.allSettled(l.map(e=>tR._fetchWalletImage(e))),tT.wallets=tp.uniqueBy([...tT.wallets,...tR._filterOutExtensions(n)],"id"),tT.count=s>tT.count?s:tT.count,tT.page=e},async initializeExcludedWallets({ids:e}){let t=o8.getRequestedCaipNetworkIds().join(","),r={page:1,entries:e.length,include:e,chains:t},{data:i}=await tR.fetchWallets(r);i&&i.forEach(e=>{tT.excludedWallets.push({rdns:e.rdns,name:e.name})})},async searchWallet({search:e,badge:t}){let{includeWalletIds:r,excludeWalletIds:i}=tA.state,a=o8.getRequestedCaipNetworkIds().join(",");tT.search=[];let o={page:1,entries:100,search:e?.trim(),badge_type:t,include:r,exclude:i,chains:a},{data:n}=await tR.fetchWallets(o);t_.sendEvent({type:"track",event:"SEARCH_WALLET",properties:{badge:t??"",search:e??""}});let s=n.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...s.map(e=>tR._fetchWalletImage(e)),tp.wait(300)]),tT.search=tR._filterOutExtensions(n)},initPromise:(e,t)=>tT.promises[e]||(tT.promises[e]=t()),prefetch:({fetchConnectorImages:e=!0,fetchFeaturedWallets:t=!0,fetchRecommendedWallets:r=!0,fetchNetworkImages:i=!0}={})=>Promise.allSettled([e&&tR.initPromise("connectorImages",tR.fetchConnectorImages),t&&tR.initPromise("featuredWallets",tR.fetchFeaturedWallets),r&&tR.initPromise("recommendedWallets",tR.fetchRecommendedWallets),i&&tR.initPromise("networkImages",tR.fetchNetworkImages)].filter(Boolean)),prefetchAnalyticsConfig(){tA.state.features?.anal
3ytics&&tR.fetchAnalyticsConfig()},async fetchAnalyticsConfig(){try{let{isAnalyticsEnabled:e}=await tO.get({path:"/getAnalyticsConfig",params:tR._getSdkProperties()});tA.setFeatures({analytics:e})}catch{tA.setFeatures({analytics:!1})}},setFilterByNamespace(e){if(!e){tT.featured=tT.allFeatured,tT.recommended=tT.allRecommended;return}let t=o8.getRequestedCaipNetworkIds().join(",");tT.featured=tT.allFeatured.filter(e=>e.chains?.some(e=>t.includes(e))),tT.recommended=tT.allRecommended.filter(e=>e.chains?.some(e=>t.includes(e)))}},tB=to({view:"Connect",history:["Connect"],transactionStack:[]}),tL={state:tB,subscribeKey:(e,t)=>tc(tB,e,t),pushTransactionStack(e){tB.transactionStack.push(e)},popTransactionStack(e){let t=tB.transactionStack.pop();if(t)if(e)this.goBack(),t?.onCancel?.();else{if(t.goBack)this.goBack();else if(t.replace){let e=tB.history.indexOf("ConnectingSiwe");e>0?this.goBackToIndex(e-1):(no.close(),tB.history=[])}else t.view&&this.reset(t.view);t?.onSuccess?.()}},push(e,t){e!==tB.view&&(tB.view=e,tB.history.push(e),tB.data=t)},reset(e,t){tB.view=e,tB.history=[e],tB.data=t},replace(e,t){tB.history.at(-1)===e||(tB.view=e,tB.history[tB.history.length-1]=e,tB.data=t)},goBack(){let e=!o8.state.activeCaipAddress&&"ConnectingFarcaster"===this.state.view;if(tB.history.length>1&&!tB.history.includes("UnsupportedChain")){tB.history.pop();let[e]=tB.history.slice(-1);e&&(tB.view=e)}else no.close();tB.data?.wallet&&(tB.data.wallet=void 0),setTimeout(()=>{if(e){ni.setFarcasterUrl(void 0,o8.state.activeChain);let e=tD.getAuthConnector();e?.provider?.reload();let t=ts(tA.state);e?.provider?.syncDappData?.({metadata:t.metadata,sdkVersion:t.sdkVersion,projectId:t.projectId,sdkType:t.sdkType})}},100)},goBackToIndex(e){if(tB.history.length>1){tB.history=tB.history.slice(0,e+1);let[t]=tB.history.slice(-1);t&&(tB.view=t)}}},tM=to({themeMode:"dark",themeVariables:{},w3mThemeVariables:void 0}),tU={state:tM,subscribe:e=>tn(tM,()=>e(tM)),setThemeMode(e){tM.themeMode=e;try{let t=tD.getAuthConnector();if(t){let r=tU.getSnapshot().themeVariables;t.provider.syncTheme({themeMode:e,themeVariables:r,w3mThemeVariables:e4(r,e)})}}catch{console.info("Unable to sync theme to auth connector")}},setThemeVariables(e){tM.themeVariables={...tM.themeVariables,...e};try{let e=tD.getAuthConnector();if(e){let t=tU.getSnapshot().themeVariables;e.provider.syncTheme({themeVariables:t,w3mThemeVariables:e4(tM.themeVariables,tM.themeMode)})}}catch{console.info("Unable to sync theme to auth connector")}},getSnapshot:()=>ts(tM)},tz={eip155:void 0,solana:void 0,polkadot:void 0,bip122:void 0},tj=to({allConnectors:[],connectors:[],activeConnector:void 0,filterByNamespace:void 0,activeConnectorIds:{...tz}}),tD={state:tj,subscribe:e=>tn(tj,()=>{e(tj)}),subscribeKey:(e,t)=>tc(tj,e,t),initialize(e){e.forEach(e=>{let t=th.getConnectedConnectorId(e);t&&this.setConnectorId(t,e)})},setActiveConnector(e){e&&(tj.activeConnector=tl(e))},setConnectors(e){e.filter(e=>!tj.allConnectors.some(t=>t.id===e.id&&this.getConnectorName(t.name)===this.getConnectorName(e.name)&&t.chain===e.chain)).forEach(e=>{"MULTI_CHAIN"!==e.type&&tj.allConnectors.push(tl(e))}),tj.connectors=this.mergeMultiChainConnectors(tj.allConnectors)},removeAdapter(e){tj.allConnectors=tj.allConnectors.filter(t=>t.chain!==e),tj.connectors=this.mergeMultiChainConnectors(tj.allConnectors)},mergeMultiChainConnectors(e){let t=this.generateConnectorMapByName(e),r=[];return t.forEach(e=>{let t=e[0],i=t?.id===eT;e.length>1&&t?r.push({name:t.name,imageUrl:t.imageUrl,imageId:t.imageId,connectors:[...e],type:i?"AUTH":"MULTI_CHAIN",chain:"eip155",id:t?.id||""}):t&&r.push(t)}),r},generateConnectorMapByName(e){let t=new Map;return e.forEach(e=>{let{name:r}=e,i=this.getConnectorName(r);if(!i)return;let a=t.get(i)||[];a.find(t=>t.chain===e.chain)||a.push(e),t.set(i,a)}),t},getConnectorName:e=>e&&(({"Trust Wallet":"Trust"})[e]||e),getUniqueConnectorsByName(e){let t=[];return e.forEach(e=>{t.find(t=>t.chain===e.chain)||t.push(e)}),t},addConnector(e){if(e.id===eT){let t=ts(tA.state),r=tU.getSnapshot().themeMode,i=tU.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:t.metadata,sdkVersion:t.sdkVersion,projectId:t.projectId,sdkType:t.sdkType}),e?.provider?.syncTheme({themeMode:r,themeVariables:i,w3mThemeVariables:e4(i,r)}),this.setConnectors([e])}else this.setConnectors([e])},getAuthConnector(e){let t=e||o8.state.activeChain,r=tj.connectors.find(e=>e.id===eT);if(r)return r?.connectors?.length?r.connectors.find(e=>e.chain===t):r},getAnnouncedConnectorRdns:()=>tj.connectors.filter(e=>"ANNOUNCED"===e.type).map(e=>e.info?.rdns),getConnectorById:e=>tj.allConnectors.find(t=>
3t.id===e),getConnector:(e,t)=>tj.allConnectors.filter(e=>e.chain===o8.state.activeChain).find(r=>r.explorerId===e||r.info?.rdns===t),syncIfAuthConnector(e){if("ID_AUTH"!==e.id)return;let t=ts(tA.state),r=tU.getSnapshot().themeMode,i=tU.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:t.metadata,sdkVersion:t.sdkVersion,sdkType:t.sdkType,projectId:t.projectId}),e.provider.syncTheme({themeMode:r,themeVariables:i,w3mThemeVariables:e4(i,r)})},getConnectorsByNamespace(e){let t=tj.allConnectors.filter(t=>t.chain===e);return this.mergeMultiChainConnectors(t)},selectWalletConnector(e){let t=tD.getConnector(e.id,e.rdns);o8.state.activeChain===eM&&tw.handleSolanaDeeplinkRedirect(t?.name||e.name||""),t?tL.push("ConnectingExternal",{connector:t}):tL.push("ConnectingWalletConnect",{wallet:e})},getConnectors(e){return e?this.getConnectorsByNamespace(e):this.mergeMultiChainConnectors(tj.allConnectors)},setFilterByNamespace(e){tj.filterByNamespace=e,tj.connectors=this.getConnectors(e),tR.setFilterByNamespace(e)},setConnectorId(e,t){e&&(tj.activeConnectorIds={...tj.activeConnectorIds,[t]:e},th.setConnectedConnectorId(t,e))},removeConnectorId(e){tj.activeConnectorIds={...tj.activeConnectorIds,[e]:void 0},th.deleteConnectedConnectorId(e)},getConnectorId(e){if(e)return tj.activeConnectorIds[e]},isConnected:e=>e?!!tj.activeConnectorIds[e]:Object.values(tj.activeConnectorIds).some(e=>!!e),resetConnectorIds(){tj.activeConnectorIds={...tz}}};function tW(e,t){return tD.getConnectorId(e)===t}"u">typeof z&&"u">typeof z.env&&z.env.NEXT_PUBLIC_SECURE_SITE_SDK_URL,"u">typeof z&&"u">typeof z.env&&z.env.NEXT_PUBLIC_DEFAULT_LOG_LEVEL,"u">typeof z&&"u">typeof z.env&&z.env.NEXT_PUBLIC_SECURE_SITE_SDK_VERSION;let tH="smartAccount",tF=Object.freeze({message:"",variant:"success",svg:void 0,open:!1,autoClose:!0}),tV=to({...tF}),tZ={state:tV,subscribeKey:(e,t)=>tc(tV,e,t),showLoading(e,t={}){this._showMessage({message:e,variant:"loading",...t})},showSuccess(e){this._showMessage({message:e,variant:"success"})},showSvg(e,t){this._showMessage({message:e,svg:t})},showError(e){let t=tp.parseError(e);this._showMessage({message:t,variant:"error"})},hide(){tV.message=tF.message,tV.variant=tF.variant,tV.svg=tF.svg,tV.open=tF.open,tV.autoClose=tF.autoClose},_showMessage({message:e,svg:t,variant:r="success",autoClose:i=tF.autoClose}){tV.open?(tV.open=!1,setTimeout(()=>{tV.message=e,tV.variant=r,tV.svg=t,tV.open=!0,tV.autoClose=i},150)):(tV.message=e,tV.variant=r,tV.svg=t,tV.open=!0,tV.autoClose=i)}},tq={getSIWX:()=>tA.state.siwx,async initializeIfEnabled(){let e=tA.state.siwx,t=o8.getActiveCaipAddress();if(!(e&&t))return;let[r,i,a]=t.split(":");if(o8.checkIfSupportedNetwork(r))try{if((await e.getSessions(`${r}:${i}`,a)).length)return;await no.open({view:"SIWXSignMessage"})}catch(e){console.error("SIWXUtil:initializeIfEnabled",e),t_.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:this.getSIWXEventProperties()}),await tX._getClient()?.disconnect().catch(console.error),tL.reset("Connect"),tZ.showError("A problem occurred while trying initialize authentication")}},async requestSignMessage(){let e=tA.state.siwx,t=tp.getPlainAddress(o8.getActiveCaipAddress()),r=o8.getActiveCaipNetwork(),i=tX._getClient();if(!e)throw Error("SIWX is not enabled");if(!t)throw Error("No ActiveCaipAddress found");if(!r)throw Error("No ActiveCaipNetwork or client found");if(!i)throw Error("No ConnectionController client found");try{let a=await e.createMessage({chainId:r.caipNetworkId,accountAddress:t}),o=a.toString();tD.getConnectorId(r.chainNamespace)===eT&&tL.pushTransactionStack({view:null,goBack:!1,replace:!0});let n=await i.signMessage(o);await e.addSession({data:a,message:o,signature:n}),no.close(),t_.sendEvent({type:"track",event:"SIWX_AUTH_SUCCESS",properties:this.getSIWXEventProperties()})}catch(t){let e=this.getSIWXEventProperties();no.state.open&&"ApproveTransaction"!==tL.state.view||await no.open({view:"SIWXSignMessage"}),e.isSmartAccount?tZ.showError("This application might not support Smart Accounts"):tZ.showError("Signature declined"),t_.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:e}),console.error("SWIXUtil:requestSignMessage",t)}}
3,async cancelSignMessage(){try{this.getSIWX()?.getRequired?.()?await tX.disconnect():no.close(),tL.reset("Connect"),t_.sendEvent({event:"CLICK_CANCEL_SIWX",type:"track",properties:this.getSIWXEventProperties()})}catch(e){console.error("SIWXUtil:cancelSignMessage",e)}},async getSessions(){let e=tA.state.siwx,t=tp.getPlainAddress(o8.getActiveCaipAddress()),r=o8.getActiveCaipNetwork();return e&&t&&r?e.getSessions(r.caipNetworkId,t):[]},async isSIWXCloseDisabled(){let e=this.getSIWX();if(e){let t="ApproveTransaction"===tL.state.view,r="SIWXSignMessage"===tL.state.view;if(t||r)return e.getRequired?.()&&0===(await this.getSessions()).length}return!1},async universalProviderAuthenticate({universalProvider:e,chains:t,methods:r}){let i=tq.getSIWX(),a=new Set(t.map(e=>e.split(":")[0]));if(!i||1!==a.size||!a.has("eip155"))return!1;let o=await i.createMessage({chainId:o8.getActiveCaipNetwork()?.caipNetworkId||"",accountAddress:""}),n=await e.authenticate({nonce:o.nonce,domain:o.domain,uri:o.uri,exp:o.expirationTime,iat:o.issuedAt,nbf:o.notBefore,requestId:o.requestId,version:o.version,resources:o.resources,statement:o.statement,chainId:o.chainId,methods:r,chains:[o.chainId,...t.filter(e=>e!==o.chainId)]});if(tZ.showLoading("Authenticating...",{autoClose:!1}),ni.setConnectedWalletInfo({...n.session.peer.metadata,name:n.session.peer.metadata.name,icon:n.session.peer.metadata.icons?.[0],type:"WALLET_CONNECT"},Array.from(a)[0]),n?.auths?.length){let t=n.auths.map(t=>{let r=e.client.formatAuthMessage({request:t.p,iss:t.p.iss});return{data:{...t.p,accountAddress:t.p.iss.split(":").slice(-1).join(""),chainId:t.p.iss.split(":").slice(2,4).join(":"),uri:t.p.aud,version:t.p.version||o.version,expirationTime:t.p.exp,issuedAt:t.p.iat,notBefore:t.p.nbf},message:r,signature:t.s.s,cacao:t}});try{await i.setSessions(t),t_.sendEvent({type:"track",event:"SIWX_AUTH_SUCCESS",properties:tq.getSIWXEventProperties()})}catch(t){throw console.error("SIWX:universalProviderAuth - failed to set sessions",t),t_.sendEvent({type:"track",event:"SIWX_AUTH_ERROR",properties:tq.getSIWXEventProperties()}),await e.disconnect().catch(console.error),t}finally{tZ.hide()}}return!0},getSIWXEventProperties(){let e=o8.state.activeChain;return{network:o8.state.activeCaipNetwork?.caipNetworkId||"",isSmartAccount:ni.state.preferredAccountTypes?.[e]===tH}},async clearSessions(){let e=this.getSIWX();e&&await e.setSessions([])}},tG=to({transactions:[],coinbaseTransactions:{},transactionsByYear:{},lastNetworkInView:void 0,loading:!1,empty:!1,next:void 0}),tK={state:tG,subscribe:e=>tn(tG,()=>e(tG)),setLastNetworkInView(e){tG.lastNetworkInView=e},async fetchTransactions(e,t){if(!e)throw Error("Transactions can't be fetched without an accountAddress");tG.loading=!0;try{let r=await nt.fetchTransactions({account:e,cursor:tG.next,onramp:t,cache:"coinbase"===t?"no-cache":void 0,chainId:o8.state.activeCaipNetwork?.caipNetworkId}),i=this.filterSpamTransactions(r.data),a=this.filterByConnectedChain(i),o=[...tG.transactions,...a];tG.loading=!1,"coinbase"===t?tG.coinbaseTransactions=this.groupTransactionsByYearAndMonth(tG.coinbaseTransactions,r.data):(tG.transactions=o,tG.transactionsByYear=this.groupTransactionsByYearAndMonth(tG.transactionsByYear,a)),tG.empty=0===o.length,tG.next=r.next?r.next:void 0}catch{let t=o8.state.activeChain;t_.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:e,projectId:tA.state.projectId,cursor:tG.next,isSmartAccount:ni.state.preferredAccountTypes?.[t]===tH}}),tZ.showError("Failed to fetch transactions"),tG.loading=!1,tG.empty=!0,tG.next=void 0}},groupTransactionsByYearAndMonth:(e={},t=[])=>(t.forEach(t=>{let r=new Date(t.metadata.minedAt).getFullYear(),i=new Date(t.metadata.minedAt).getMonth(),a=e[r]??{},o=(a[i]??[]).filter(e=>e.id!==t.id);e[r]={...a,[i]:[...o,t].sort((e,t)=>new Date(t.metadata.minedAt).getTime()-new Date(e.metadata.minedAt).getTime())}}),e),filterSpamTransactions:e=>e.filter(e=>!e.transfers.every(e=>e.nft_info?.flags.is_spam===!0)),filterByConnectedChain(e){let t=o8.state.activeCaipNetwork?.caipNetworkId;return e.filter(e=>e.metadata.chain===t)}
3,clearCursor(){tG.next=void 0},resetTransactions(){tG.transactions=[],tG.transactionsByYear={},tG.lastNetworkInView=void 0,tG.loading=!1,tG.empty=!1,tG.next=void 0}},tY=to({wcError:!1,buffering:!1,status:"disconnected"}),tX={state:tY,subscribeKey:(e,t)=>tc(tY,e,t),_getClient:()=>tY._client,setClient(e){tY._client=tl(e)},async connectWalletConnect(){if(tp.isTelegram()||tp.isSafari()&&tp.isIos()){if(i){await i,i=void 0;return}if(!tp.isPairingExpired(tY?.wcPairingExpiry)){let e=tY.wcUri;tY.wcUri=e;return}i=this._getClient()?.connectWalletConnect?.().catch(()=>{}),this.state.status="connecting",await i,i=void 0,tY.wcPairingExpiry=void 0,this.state.status="connected"}else await this._getClient()?.connectWalletConnect?.()},async connectExternal(e,t,r=!0){await this._getClient()?.connectExternal?.(e),r&&o8.setActiveNamespace(t)},async reconnectExternal(e){await this._getClient()?.reconnectExternal?.(e);let t=e.chain||o8.state.activeChain;t&&tD.setConnectorId(e.id,t)},async setPreferredAccountType(e,t){no.setLoading(!0,o8.state.activeChain);let r=tD.getAuthConnector();r&&(ni.setPreferredAccountType(e,t),await r.provider.setPreferredAccount(e),th.setPreferredAccountTypes(ni.state.preferredAccountTypes??{[t]:e}),await this.reconnectExternal(r),no.setLoading(!1,o8.state.activeChain),t_.sendEvent({type:"track",event:"SET_PREFERRED_ACCOUNT_TYPE",properties:{accountType:e,network:o8.state.activeCaipNetwork?.caipNetworkId||""}}))},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 getCapabilities(e){return this._getClient()?.getCapabilities(e)},async grantPermissions(e){return this._getClient()?.grantPermissions(e)},async walletGetAssets(e){return this._getClient()?.walletGetAssets(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)||!1},resetWcConnection(){tY.wcUri=void 0,tY.wcPairingExpiry=void 0,tY.wcLinking=void 0,tY.recentWallet=void 0,tY.status="disconnected",tK.resetTransactions(),th.deleteWalletConnectDeepLink()},resetUri(){tY.wcUri=void 0,tY.wcPairingExpiry=void 0},finalizeWcConnection(){let{wcLinking:e,recentWallet:t}=tX.state;e&&th.setWalletConnectDeepLink(e),t&&th.setAppKitRecent(t),t_.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:e?"mobile":"qrcode",name:tL.state.data?.wallet?.name||"Unknown"}})},setWcBasic(e){tY.wcBasic=e},setUri(e){tY.wcUri=e,tY.wcPairingExpiry=tp.getPairingExpiry()},setWcLinking(e){tY.wcLinking=e},setWcError(e){tY.wcError=e,tY.buffering=!1},setRecentWallet(e){tY.recentWallet=e},setBuffering(e){tY.buffering=e},setStatus(e){tY.status=e},async disconnect(e){try{no.setLoading(!0,e),await tq.clearSessions(),await o8.disconnect(e),no.setLoading(!1,e),tD.setFilterByNamespace(void 0)}catch{throw Error("Failed to disconnect")}}},tJ=to({loading:!1,open:!1,selectedNetworkId:void 0,activeChain:void 0,initialized:!1}),tQ={state:tJ,subscribe:e=>tn(tJ,()=>e(tJ)),subscribeOpen:e=>tc(tJ,"open",e),set(e){Object.assign(tJ,{...tJ,...e})}};function t0(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function t1(e){return t0(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}let t2="2.27.0",t3={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t2}`};class t5 extends Error{constructor(e,t={}){const r=t.cause instanceof t5?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof t5&&t.cause.docsPath||t.docsPath,a=t3.getDocsUrl?.({...t,docsPath:i});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...r?[`Details: ${r}`]:[],...t3.version?[`Version: ${t3.version}`]:[]].join(`
4`),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=t2}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?e(t.cause,r):r?null:t}(this,e)}}class t4 extends t5{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class t6 extends t5{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}function t8(e,{dir:t,size:r=32}={}){return"string"==typeof e?function(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new t6({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new t6({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let a=0;a<r;a++){let o="right"===t;i[o?a:r-a-1]=e[o?a:e.length-a-1]}return i}(e,{dir:t,size:r})}class t7 extends t5{constructor({max:e,min:t,signed:r,size:i,value:a}){super(`Number "${a}" is not in safe ${i?`${8*i}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class t9 extends t5{constructor({givenSize:e,maxSize:t}
4){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function re(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)i++;return r="left"===t?r.slice(i):r.slice(0,r.length-i),"string"==typeof e?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}function rt(e,{size:t}){if(t1(e)>t)throw new t9({givenSize:t1(e),maxSize:t})}function rr(e,t={}){let{signed:r}=t;t.size&&rt(e,{size:t.size});let i=BigInt(e);if(!r)return i;let a=(e.length-2)/2;return i<=(1n<<8n*BigInt(a)-1n)-1n?i:i-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function ri(e,t={}){return Number(rr(e,t))}let ra=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ro(e,t={}){return"number"==typeof e||"bigint"==typeof e?rs(e,t):"string"==typeof e?rc(e,t):"boolean"==typeof e?function(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(rt(r,{size:t.size}),t8(r,{size:t.size})):r}(e,t):rn(e,t)}function rn(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=ra[e[t]];let i=`0x${r}`;return"number"==typeof t.size?(rt(i,{size:t.size}),t8(i,{dir:"right",size:t.size})):i}function rs(e,t={}){let r,{signed:i,size:a}=t,o=BigInt(e);a?r=i?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let n="bigint"==typeof r&&i?-r-1n:0;if(r&&o>r||o<n){let t="bigint"==typeof e?"n":"";throw new t7({max:r?`${r}${t}`:void 0,min:`${n}${t}`,signed:i,size:a,value:`${e}${t}`})}let s=`0x${(i&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16)}`;return a?t8(s,{size:a}):s}let rl=new TextEncoder;function rc(e,t={}){return rn(rl.encode(e),t)}let rd=new TextEncoder;function ru(e,t={}){return"number"==typeof e||"bigint"==typeof e?rp(rs(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return r[0]=Number(e),"number"==typeof t.size?(rt(r,{size:t.size}),t8(r,{size:t.size})):r}(e,t):t0(e)?rp(e,t):rg(e,t)}function rh(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function rp(e,t={}){let r=e;t.size&&(rt(r,{size:t.size}),r=t8(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,o=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let r=rh(i.charCodeAt(t++)),a=rh(i.charCodeAt(t++));if(void 0===r||void 0===a)throw new t5(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);o[e]=16*r+a}return o}function rg(e,t={}){let r=rd.encode(e);return"number"==typeof t.size?(rt(r,{size:t.size}),t8(r,{dir:"right",size:t.size})):r}function rf(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function rw(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}
4function rm(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 rv(e,t){rw(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)}let rb=BigInt(0x100000000-1),ry=BigInt(32),rC="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function rx(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function rk(e,t){return e<<32-t|e>>>t}let rA=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0];function rI(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}}function rE(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}(e)),rw(e),e}class rS{clone(){return this._cloneInto()}}function rN(e){let t=t=>e().update(rE(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function rP(e=32){if(rC&&"function"==typeof rC.getRandomValues)return rC.getRandomValues(new Uint8Array(e));if(rC&&"function"==typeof rC.randomBytes)return rC.randomBytes(e);throw Error("crypto.getRandomValues must be defined")}let r_=[],r$=[],rO=[],rT=BigInt(0),rR=BigInt(1),rB=BigInt(2),rL=BigInt(7),rM=BigInt(256),rU=BigInt(113);for(let e=0,t=rR,r=1,i=0;e<24;e++){[r,i]=[i,(2*r+3*i)%5],r_.push(2*(5*i+r)),r$.push((e+1)*(e+2)/2%64);let a=rT;for(let e=0;e<7;e++)(t=(t<<rR^(t>>rL)*rU)%rM)&rB&&(a^=rR<<(rR<<BigInt(e))-rR);rO.push(a)}let[rz,rj]=function(e,t=!1){let r=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let a=0;a<e.length;a++){let{h:o,l:n}=function(e,t=!1){return t?{h:Number(e&rb),l:Number(e>>ry&rb)}:{h:0|Number(e>>ry&rb),l:0|Number(e&rb)}}(e[a],t);[r[a],i[a]]=[o,n]}return[r,i]}(rO,!0),rD=(e,t,r)=>r>32?t<<r-32|e>>>64-r:e<<r|t>>>32-r,rW=(e,t,r)=>r>32?e<<r-32|t>>>64-r:t<<r|e>>>32-r;class rH extends rS{constructor(e,t,r,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,rf(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}(this.state)}keccak(){rA||rI(this.state32),function(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,a=(t+2)%10,o=r[a],n=r[a+1],s=rD(o,n,1)^r[i],l=rW(o,n,1)^r[i+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=l}let t=e[2],a=e[3];for(let r=0;r<24;r++){let i=r$[r],o=rD(t,a,i),n=rW(t,a,i),s=r_[r];t=e[s],a=e[s+1],e[s]=o,e[s+1]=n}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]^=rz[i],e[1]^=rj[i]}r.fill(0)}(this.state32,this.rounds),rA||rI(this.state32),this.posOut=0,this.pos=0}update(e){rm(this);let{blockLen:t,state:r}=this,i=(e=rE(e)).length;for(let a=0;a<i;){let o=Math.min(t-this.pos,i-a);for(let t=0;t<o;t++)r[this.pos++]^=e[a++];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){rm(this,!1),rw(e),this.finish();let t=this.state,{blockLen:r}=this;for(let i=0,a=e.length;i<a;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,a-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 rf(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(rv(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:a,enableXOF:o}=this;return e||(e=new rH(t,r,i,o,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=i,e.enableXOF=o,e.destroyed=this.destroyed,e}}let rF=rN(()=>new rH(136,1,32));class rV extends t5{constructor({address:e}){super(`Address "${e}
4" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class rZ extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let rq=new rZ(8192),rG=/^0x[a-fA-F0-9]{40}$/,rK=new rZ(8192);function rY(e,t){let{strict:r=!0}=t??{},i=`${e}.${r}`;if(rK.has(i))return rK.get(i);let a=!!rG.test(e)&&(e.toLowerCase()===e||!r||function(e){var t;if(rq.has(`${e}.undefined`))return rq.get(`${e}.undefined`);let r=e.substring(2).toLowerCase(),i=rF(t0(t=rg(r),{strict:!1})?ru(t):t),a=r.split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&i[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let o=`0x${a.join("")}`;return rq.set(`${e}.undefined`,o),o}(e)===e);return rK.set(i,a),a}function rX(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function rJ(e,t){if("number"==typeof t&&t>0&&t>t1(e)-1)throw new t4({offset:t,position:"start",size:t1(e)})}function rQ(e,t,r){if("number"==typeof t&&"number"==typeof r&&t1(e)!==r-t)throw new t4({offset:r,position:"end",size:t1(e)})}class r0 extends t5{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class r1 extends t5{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class r2 extends t5{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}let r3={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r2({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r1({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r0({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r0({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function r5(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(r3);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}let r4=(e,t,r)=>
vendor: 9,482 bytes, lines 4-7
4JSON.stringify(e,(e,r)=>{let i="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,i):i},r),r6={ether:-9,wei:9};function r8(e,t){let r=e.toString(),i=r.startsWith("-");i&&(r=r.slice(1));let[a,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${i?"-":""}${a||"0"}${o?`.${o}`:""}`}function r7(e,t="wei"){return r8(e,r6[t])}class r9 extends t5{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class ie extends t5{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",function(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join(`
5`)}(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class it extends t5{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class ir extends t5{constructor({body:e,cause:t,details:r,headers:i,status:a,url:o}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${(e=>e)(o)}`,e&&`Request body: ${r4(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=a,this.url=o}}class ii extends t5{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(e=>e)(r)}`,`Request body: ${r4(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data}}class ia extends t5{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(e=>e)(t)}`,`Request body: ${r4(e)}`],name:"TimeoutError"})}}class io extends t5{constructor(e,{code:t,docsPath:r,metaMessages:i,name:a,shortMessage:o}){super(o,{cause:e,docsPath:r,metaMessages:i||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof ii?e.code:t??-1}}class is extends io{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class il extends io{constructor(e){super(e,{code:il.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(il,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class ic extends io{constructor(e){super(e,{code:ic.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class id extends io{constructor(e,{method:t}={}){super(e,{code:id.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(id,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class iu extends io{constructor(e){super(e,{code:iu.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
6`)})}}Object.defineProperty(iu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class ih extends io{constructor(e){super(e,{code:ih.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(ih,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ip extends io{constructor(e){super(e,{code:ip.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
7`)})}}Object.defineProperty(ip,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ig extends io{constructor(e){super(e,{code:ig.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ig,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class iw extends io{constructor(e){super(e,{code:iw.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(iw,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class im extends io{constructor(e){super(e,{code:im.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(im,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class iv extends io{constructor(e,{method:t}={}){super(e,{code:iv.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(iv,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class ib extends io{constructor(e){super(e,{code:ib.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(ib,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class iy extends io{constructor(e){super(e,{code:iy.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(iy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class iC extends is{constructor(e){super(e,{code:iC.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(iC,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class ix extends is{constructor(e){super(e,{code:ix.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(ix,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class ik extends is{constructor(e,{method:t}={}){super(e,{code:ik.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(ik,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class iA extends is{constructor(e){super(e,{code:iA.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(iA,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class iI extends is{constructor(e){super(e,{code:iI.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(iI,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class iE extends is{constructor(e){super(e,{code:iE.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(iE,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class iS extends is{constructor(e){super(e,{code:iS.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(iS,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class iN extends is{constructor(e){super(e,{code:iN.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(iN,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class iP extends is{constructor(e){super(e,{code:iP.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(iP,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class i_ extends is{constructor(e){super(e,{code:i_.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(i_,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class i$ extends is{constructor(e){super(e,{code:i$.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(i$,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class iO extends is{constructor(e){super(e,{code:iO.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(iO,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
7);class iT extends is{constructor(e){super(e,{code:iT.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(iT,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class iR extends io{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}function iB(e,t="hex"){let r=function e(t){var r,i;let a,o,n,s;return Array.isArray(t)?(o=iL(a=(r=t.map(t=>e(t))).reduce((e,t)=>e+t.length,0)),{length:a<=55?1+a:1+o+a,encode(e){for(let{encode:t}of(a<=55?e.pushByte(192+a):(e.pushByte(247+o),1===o?e.pushUint8(a):2===o?e.pushUint16(a):3===o?e.pushUint24(a):e.pushUint32(a)),r))t(e)}}):(s=iL((n="string"==typeof(i=t)?rp(i):i).length),{length:1===n.length&&n[0]<128?1:n.length<=55?1+n.length:1+s+n.length,encode(e){1===n.length&&n[0]<128||(n.length<=55?e.pushByte(128+n.length):(e.pushByte(183+s),1===s?e.pushUint8(n.length):2===s?e.pushUint16(n.length):3===s?e.pushUint24(n.length):e.pushUint32(n.length))),e.pushBytes(n)}})}(e),i=r5(new Uint8Array(r.length));return r.encode(i),"hex"===t?rn(i.bytes):i.bytes}function iL(e){if(e<256)return 1;if(e<65536)return 2;if(e<0x1000000)return 3;if(e<0x100000000)return 4;throw new t5("Length is too large.")}class iM extends t5{constructor({cause:e,message:t}={}){const r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(iM,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(iM,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class iU extends t5{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${r7(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(iU,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class iz extends t5{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${r7(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${r7(r)} gwei`:""}).`].join(`
8`),{cause:e,name:"TipAboveFeeCapError"})}}function ij(e,t){return({exclude:r,format:i})=>({exclude:r,format:e=>{let a=t(e);if(r)for(let e of r)delete a[e];return{...a,...i(e)}},type:e})}Object.defineProperty(iz,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});let iD={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},iW=ij("transactionRequest",function(e){let t={};return"u">typeof e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?rs(BigInt(e.r)):e.r,s:e.s?rs(BigInt(e.s)):e.s,chainId:rs(e.chainId),nonce:rs(e.nonce),..."u">typeof e.yParity?{yParity:rs(e.yParity)}:{},..."u">typeof e.v&&typeof e.yParity>"u"?{v:rs(e.v)}:{}}))),"u">typeof e.accessList&&(t.accessList=e.accessList),"u">typeof e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),"u">typeof e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>rn(e)):t.blobs=e.blobs),"u">typeof e.data&&(t.data=e.data),"u">typeof e.from&&(t.from=e.from),"u">typeof e.gas&&(t.gas=rs(e.gas)),"u">typeof e.gasPrice&&(t.gasPrice=rs(e.gasPrice)),"u">typeof e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=rs(e.maxFeePerBlobGas)),"u">typeof e.maxFeePerGas&&(t.maxFeePerGas=rs(e.maxFeePerGas)),"u">typeof e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=rs(e.maxPriorityFeePerGas)),"u">typeof e.nonce&&(t.nonce=rs(e.nonce)),"u">typeof e.to&&(t.to=e.to),"u">typeof e.type&&(t.type=iD[e.type]),"u">typeof e.value&&(t.value=rs(e.value)),t}),iH=2n**256n-1n,iF={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function iV(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?ri(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?ri(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?iF[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),t.yParity=(()=>
8{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return+(t.v%2n===0n)}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let iZ=ij("transaction",iV),iq=ij("block",function(e){let t=(e.transactions??[]).map(e=>"string"==typeof e?e:iV(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}});function iG(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),i="string"==typeof e.blobs[0]?e.blobs.map(e=>rp(e)):e.blobs,a=[];for(let e of i)a.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?a:a.map(e=>rn(e))}function iK(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),i="string"==typeof e.blobs[0]?e.blobs.map(e=>rp(e)):e.blobs,a="string"==typeof e.commitments[0]?e.commitments.map(e=>rp(e)):e.commitments,o=[];for(let e=0;e<i.length;e++){let r=i[e],n=a[e];o.push(Uint8Array.from(t.computeBlobKzgProof(r,n)))}return"bytes"===r?o:o.map(e=>rn(e))}
8class iY extends rS{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=rx(this.buffer)}update(e){rm(this);let{view:t,buffer:r,blockLen:i}=this,a=(e=rE(e)).length;for(let o=0;o<a;){let n=Math.min(i-this.pos,a-o);if(n===i){let t=rx(e);for(;i<=a-o;o+=i)this.process(t,o);continue}r.set(e.subarray(o,o+n),this.pos),this.pos+=n,o+=n,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){rm(this),rv(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:i,isLE:a}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>i-o&&(this.process(r,0),o=0);for(let e=o;e<i;e++)t[e]=0;(function(e,t,r,i){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,i);let a=BigInt(32),o=BigInt(0xffffffff),n=Number(r>>a&o),s=Number(r&o),l=4*!!i,c=4*!i;e.setUint32(t+l,n,i),e.setUint32(t+c,s,i)})(r,i-8,BigInt(8*this.length),a),this.process(r,0);let n=rx(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=s/4,c=this.get();if(l>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)n.setUint32(4*e,c[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:a,destroyed:o,pos:n}=this;return e.length=i,e.pos=n,e.finished=a,e.destroyed=o,i%t&&e.buffer.set(r),e}}let iX=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),iJ=new Uint32Array([0x6a09e66
87,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),iQ=new Uint32Array(64);class i0 extends iY{constructor(){super(64,32,8,!1),this.A=0|iJ[0],this.B=0|iJ[1],this.C=0|iJ[2],this.D=0|iJ[3],this.E=0|iJ[4],this.F=0|iJ[5],this.G=0|iJ[6],this.H=0|iJ[7]}get(){let{A:e,B:t,C:r,D:i,E:a,F:o,G:n,H:s}=this;return[e,t,r,i,a,o,n,s]}set(e,t,r,i,a,o,n,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|i,this.E=0|a,this.F=0|o,this.G=0|n,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)iQ[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=iQ[e-15],r=iQ[e-2],i=rk(t,7)^rk(t,18)^t>>>3,a=rk(r,17)^rk(r,19)^r>>>10;iQ[e]=a+iQ[e-7]+i+iQ[e-16]|0}let{A:r,B:i,C:a,D:o,E:n,F:s,G:l,H:c}=this;for(let e=0;e<64;e++){var d,u,h,p;let t=c+(rk(n,6)^rk(n,11)^rk(n,25))+((d=n)&s^~d&l)+iX[e]+iQ[e]|0,g=(rk(r,2)^rk(r,13)^rk(r,22))+((u=r)&(h=i)^u&(p=a)^h&p)|0;c=l,l=s,s=n,n=o+t|0,o=a,a=i,i=r,r=t+g|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,o=o+this.D|0,n=n+this.E|0,s=s+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(r,i,a,o,n,s,l,c)}roundClean(){iQ.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let i1=rN(()=>new i0);class i2 extends t5{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class i3 extends t5{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class i5 extends t5{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class i4 extends t5{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}class i6 extends t5{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
8" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}let i8=new Map;async function i7(e){return new Promise(t=>setTimeout(t,e))}new rZ(128);let i9=256,ae,at=new rZ(8192);function ar({key:e,methods:t,name:r,request:i,retryCount:a=3,retryDelay:o=150,timeout:n,type:s},l){return{config:{key:e,methods:t,name:r,request:i,retryCount:a,retryDelay:o,timeout:n,type:s},request:function(e,t={}){return async(r,i={})=>{let{dedupe:a=!1,methods:o,retryDelay:n=150,retryCount:s=3,uid:l}={...t,...i},{method:c}=r;if(o?.exclude?.includes(c)||o?.include&&!o.include.includes(c))throw new iv(Error("method not supported"),{method:c});let d=a?rc(`${l}.${r4(r)}`):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(at.get(r))return at.get(r);let i=e().finally(()=>at.delete(r));return at.set(r,i),i}(()=>(function(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((a,o)=>{let n=async({count:s=0}={})=>{let l=async({error:e})=>{let r="function"==typeof t?t({count:s,error:e}):t;r&&await i7(r),n({count:s+1})};try{let t=await e();a(t)}catch(e){if(s<r&&await i({count:s,error:e}))return l({error:e});o(e)}};n()})})(async()=>{try{return await e(r)}catch(e){switch(e.code){case il.code:throw new il(e);case ic.code:throw new ic(e);case id.code:throw new id(e,{method:r.method});case iu.code:throw new iu(e);case ih.code:throw new ih(e);case ip.code:throw new ip(e);case ig.code:throw new ig(e);case iw.code:throw new iw(e);case im.code:throw new im(e);case iv.code:throw new iv(e,{method:r.method});case ib.code:throw new ib(e);case iy.code:throw new iy(e);case iC.code:throw new iC(e);case ix.code:throw new ix(e);case ik.code:throw new ik(e);case iA.code:throw new iA(e);case iI.code:throw new iI(e);case iE.code:throw new iE(e);case iS.code:throw new iS(e);case iN.code:throw new iN(e);case iP.code:throw new iP(e);case i_.code:throw new i_(e);case i$.code:throw new i$(e);case iO.code:throw new iO(e);case iT.code:throw new iT(e);case 5e3:throw new iC(e);default:throw e instanceof t5?e:new iR(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof ir){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*n},retryCount:s,shouldRetry:({error:e})=>{var t;return"code"in(t=e)&&"number"==typeof t.code?-1===t.code||t.code===ib.code||t.code===ih.code:!(t instanceof ir)||!t.status||403===t.status||408===t.status||413===t.status||429===t.status||500===t.status||502===t.status||503===t.status||504===t.status}}),{enabled:a,id:d})}}(i,{methods:t,retryCount:a,retryDelay:o,uid:function(e=11){if(!ae||i9+e>512){ae="",i9=0;for(let e=0;e<256;e++)ae+=(256+256*Math.random()|0).toString(16).substring(1)}return ae.substring(i9,i9+++e)}()}),value:l}}function ai(e,t={}){let{key:r="fallback",name:i="Fallback",rank:a=!1,shouldThrow:o=aa,retryCount:n,retryDelay:s}=t;return({chain:t,pollingInterval:l=4e3,timeout:c,...d})=>{let u=e,h=()=>{},p=ar({key:r,name:i,async request({method:e,params:r}){let i,a=async(n=0)=>{let s=u[n]({...d,chain:t,retryCount:0,timeout:c});try{let t=await s.request({method:e,params:r});return h({method:e,params:r,response:t,transport:s,status:"success"}),t}catch(l){if(h({error:l,method:e,params:r,transport:s,status:"error"}),o(l)||n===u.length-1||!(i??=u.slice(n+1).some(r=>{let{include:i,exclude:a}=r({chain:t}).config.methods||{};return i?i.includes(e):!a||!a.includes(e)})))throw l;return a(n+1)}};return a()},retryCount:n,retryDelay:s,type:"fallback"},{onResponse:e=>h=e,transports:u.map(e=>e({chain:t,retryCount:0}))});if(a){let e="object"==typeof a?a:{};!function({chain:e,interval:t=4e3,onTransports:r,ping:i,sampleCount:a=10,timeout:o=1e3,transports:n,weights:s={}}){let{stability:l=.7,latency:c=.3}=s,d=[],u=async()=>{let s=await Promise.all(n.map(async t=>{let r,a,n=t({chain:e,retryCount:0,timeout:o}),s=Date.now();try{await (i?i({transport:n}):n.request({method:"net_listening"})),a=1}catch{a=0}finally{r=Date.now()}return{latency:r-s,success:a}}));d.push(s),d.length>a&&d.shift();let h=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));r(n.map((e,t)=>{let r=d.map(e=>e[t].latency),i=1-r.reduce((e,t)=>
8e+t,0)/r.length/h,a=d.map(e=>e[t].success),o=a.reduce((e,t)=>e+t,0)/a.length;return 0===o?[0,t]:[c*i+l*o,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>n[e])),await i7(t),u()};u()}({chain:t,interval:e.interval??l,onTransports:e=>u=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:u,weights:e.weights})}return p}}function aa(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===im.code||e.code===iC.code||iM.nodeMessage.test(e.message)||5e3===e.code))}class ao extends t5{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}let an={current:0,take(){return this.current++},reset(){this.current=0}};function as(e,t={}){let{batch:r,fetchOptions:i,key:a="http",methods:o,name:n="HTTP JSON-RPC",onFetchRequest:s,onFetchResponse:l,retryDelay:c,raw:d}=t;return({chain:u,retryCount:h,timeout:p})=>{let{batchSize:g=1e3,wait:f=0}="object"==typeof r?r:{},w=t.retryCount??h,m=p??t.timeout??1e4,v=e||u?.rpcUrls.default.http[0];if(!v)throw new ao;let b=function(e,t={}){return{async request(r){let{body:i,onRequest:a=t.onRequest,onResponse:o=t.onResponse,timeout:n=t.timeout??1e4}=r,s={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:l,method:c,signal:d}=s;try{let t,r=await function(e,{errorInstance:t=Error("timed out"),timeout:r,signal:i}){return new Promise((a,o)=>{(async()=>{let n;try{let s=new AbortController;r>0&&(n=setTimeout(()=>{i?s.abort():o(t)},r)),a(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(n)}})()})}(async({signal:t})=>{let r={...s,body:Array.isArray(i)?r4(i.map(e=>({jsonrpc:"2.0",id:e.id??an.take(),...e}))):r4({jsonrpc:"2.0",id:i.id??an.take(),...i}),headers:{"Content-Type":"application/json",...l},method:c||"POST",signal:d||(n>0?t:null)},o=new Request(e,r),u=await a?.(o,r)??{...r,url:e};return await fetch(u.url??e,u)},{errorInstance:new ia({body:i,url:e}),timeout:n,signal:!0});if(o&&await o(r),r.headers.get("Content-Type")?.startsWith("application/json"))t=await r.json();else{t=await r.text();try{t=JSON.parse(t||"{}")}catch(e){if(r.ok)throw e;t={error:t}}}if(!r.ok)throw new ir({body:i,details:r4(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){throw t instanceof ir||t instanceof ia?t:new ir({body:i,cause:t,url:e})}}}}(v,{fetchOptions:i,onRequest:s,onResponse:l,timeout:m});return ar({key:a,methods:o,name:n,async request({method:e,params:t}){let i={method:e,params:t},{schedule:a}
8=function({fn:e,id:t,shouldSplitBatch:r,wait:i=0,sort:a}){let o=async()=>{let t=s();n();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{a&&Array.isArray(e)&&e.sort(a);for(let r=0;r<t.length;r++){let{resolve:i}=t[r];i?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:i}=t[r];i?.(e)}})},n=()=>i8.delete(t),s=()=>i8.get(t)||[],l=e=>i8.set(t,[...s(),e]);return{flush:n,async schedule(e){let t,a,{promise:n,resolve:c,reject:d}=(t=()=>{},a=()=>{},{promise:new Promise((e,r)=>{t=e,a=r}),resolve:t,reject:a});return r?.([...s().map(({args:e})=>e),e])&&o(),s().length>0?l({args:e,resolve:c,reject:d}):(l({args:e,resolve:c,reject:d}),setTimeout(o,i)),n}}}({id:v,wait:f,shouldSplitBatch:e=>e.length>g,fn:e=>b.request({body:e}),sort:(e,t)=>e.id-t.id}),o=async e=>r?a(e):[await b.request({body:e})],[{error:n,result:s}]=await o(i);if(d)return{error:n,result:s};if(n)throw new ii({body:i,error:n,url:v});return s},retryCount:w,retryDelay:c,timeout:m,type:"http"},{fetchOptions:i,url:v})}}function al(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function ac(e){let{chainId:t,maxPriorityFeePerGas:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new i6({chainId:t});if(a&&!rY(a))throw new rV({address:a});if(i&&i>iH)throw new iU({maxFeePerGas:i});if(r&&i&&r>i)throw new iz({maxFeePerGas:i,maxPriorityFeePerGas:r})}function ad(e){if(!e||0===e.length)return[];let t=[];for(let r=0;r<e.length;r++){let{address:i,storageKeys:a}=e[r];for(let e=0;e<a.length;e++)if(a[e].length-2!=64)throw new it({storageKey:a[e]});if(!rY(i,{strict:!1}))throw new rV({address:i});t.push([i,a])}return t}function au(e,t){let r=t??e,{v:i,yParity:a}=r;if(typeof r.r>"u"||typeof r.s>"u"||typeof i>"u"&&typeof a>"u")return[];let o=re(r.r),n=re(r.s);return["number"==typeof a?a?ro(1):"0x":0n===i?"0x":1n===i?ro(1):27n===i?"0x":ro(1),"0x00"===o?"0x":o,"0x00"===n?"0x":n]}let ah={"0x0":"reverted","0x1":"success"},ap=ij("transactionReceipt",function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}})(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?ri(e.transactionIndex):null,status:e.status?ah[e.status]:null,type:e.type?iF[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}),ag=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),af=new Uint8Array(Array(16).fill(0).map((e,t)=>t)),aw=af.map(e=>(9*e+5)%16),am=[af],av=[aw];for(let e=0;e<4;e++)for(let t of[am,av])t.push(t[e].map(e=>ag[e]));let ab=BigInt(0),ay=BigInt(1),aC=BigInt(2);function ax(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function ak(e){if(!ax(e))throw Error("Uint8Array expected")}function aA(e,t){if("boolean"!=typeof t)throw Error(e+" boolean expected, got "+t)}let aI=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function aE(e){ak(e);let t="";for(let r=0;r<e.length;r++)t+=aI[e[r]];return t}function aS(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function aN(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?ab:BigInt("0x"+e)}function aP(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function a_(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("hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(r);for(let t=0,a=0;t<r;t++,a+=2){let r=aP(e.charCodeAt(a)),o=aP(e.charCodeAt(a+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(e[a]+e[a+1])+'" at index '+a);i[t]=16*r+o}return i}function a$(e){return aN(aE(e))}function aO(e){return ak(e),aN(aE(Uint8Array.from(e).reverse()))}function aT(e,t){return a_(e.toString(16).padStart(2*t,"0"))}function aR(e,t){return aT(e,t).reverse()}function aB(e,t,r){let i;if("string"==typeof t)try{i=a_(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if(ax(t))i=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let a=i.length;if("number"==typeof r&&a!==r)throw Error(e+" of length "+r+" expected, got "+a);return i}function aL(...e){let t=0;for(let r=0;r<e.length;r++){let i=e[r];ak(i),t+=i.length}let r=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){let a=e[t];r.set(a,i),i+=a.length}return r}let aM=e=>"bigint"==typeof e&&ab<=e;function aU(e,t,r){return aM(e)&&aM(t)&&aM(r)&&t<=e&&e<r}
8function az(e,t,r,i){if(!aU(t,r,i))throw Error("expected valid "+e+": "+r+" <= n < "+i+", got "+t)}function aj(e){let t;for(t=0;e>ab;e>>=ay,t+=1);return t}let aD=e=>(aC<<BigInt(e-1))-ay,aW=e=>new Uint8Array(e);function aH(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=aW(e),a=aW(e),o=0,n=()=>{i.fill(1),a.fill(0),o=0},s=(...e)=>r(a,i,...e),l=(e=aW())=>{let t,r;a=s((t=[0],Uint8Array.from(t)),e),i=s(),0!==e.length&&(a=s((r=[1],Uint8Array.from(r)),e),i=s())},c=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(i=s()).slice();r.push(t),e+=i.length}return aL(...r)};return(e,t)=>{let r;for(n(),l(e);!(r=t(c()));)l();return n(),r}}let aF={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||ax(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 aV(e,t,r={}){let i=(t,r,i)=>{let a=aF[r];if("function"!=typeof a)throw Error("invalid validator function");let o=e[t];if(!(i&&void 0===o)&&!a(o,e))throw Error("param "+String(t)+" is invalid. Expected "+r+", got "+o)};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}function aZ(e){let t=new WeakMap;return(r,...i)=>{let a=t.get(r);if(void 0!==a)return a;let o=e(r,...i);return t.set(r,o),o}}var aq=Object.freeze({__proto__:null,isBytes:ax,abytes:ak,abool:aA,bytesToHex:aE,numberToHexUnpadded:aS,hexToNumber:aN,hexToBytes:a_,bytesToNumberBE:a$,bytesToNumberLE:aO,numberToBytesBE:aT,numberToBytesLE:aR,numberToVarBytesBE:function(e){return a_(aS(e))},ensureBytes:aB,concatBytes:aL,equalBytes:function(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},utf8ToBytes:function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))},inRange:aU,aInRange:az,bitLen:aj,bitGet:function(e,t){return e>>BigInt(t)&ay},bitSet:function(e,t,r){return e|(r?ay:ab)<<BigInt(t)},bitMask:aD,createHmacDrbg:aH,validateObject:aV,notImplemented:()=>{throw Error("not implemented")},memoized:aZ});class aG extends Error{constructor(e,t={}){const r=(()=>{if(t.cause instanceof aG){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof aG&&t.cause.docsPath||t.docsPath,a=`https://oxlib.sh${i??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`:void 0,i?`See: ${a}`:void 0]:[]].filter(e=>"string"==typeof e).join(`
9`),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=r,this.docs=a,this.docsPath=i,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}function aK(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function aY(e,t){if(a8(e)>t)throw new a9({givenSize:a8(e),maxSize:t})}function aX(e,t={}){let{dir:r,size:i=32}=t;if(0===i)return e;let a=e.replace("0x","");if(a.length>2*i)throw new oe({size:Math.ceil(a.length/2),targetSize:i,type:"Hex"});return`0x${a["right"===r?"padEnd":"padStart"](2*i,"0")}`}let aJ=new TextEncoder;class aQ extends aG{constructor({givenSize:e,maxSize:t}
9){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class a0 extends aG{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}let a1=new TextEncoder,a2=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a3(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function a5(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=a2[e[t]];let i=`0x${r}`;return"number"==typeof t.size?(aY(i,t.size),a6(i,t.size)):i}function a4(e,t){return aX(e,{dir:"left",size:t})}function a6(e,t){return aX(e,{dir:"right",size:t})}function a8(e){return Math.ceil((e.length-2)/2)}class a7 extends aG{constructor({max:e,min:t,signed:r,size:i,value:a}){super(`Number \`${a}\` is not in safe${i?` ${8*i}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class a9 extends aG{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class oe extends aG{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}class ot extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}let or={checksum:new ot(8192)}.checksum,oi=/^0x[a-fA-F0-9]{40}$/;class oa extends aG{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class oo extends aG{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class on extends aG{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}let os=/^(.*)\[([0-9]*)\]$/,ol=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,oc=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function od(e,t){if(e.length!==t.length)throw new oh({expectedLength:e.length,givenLength:t.length});let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=t[i];r.push(od.encode(a,o))}return a3(...r)}(od||(od={})).encode=function e(t,r,i=!1){if("address"===t)return function e(t,r={}){let{strict:i=!0}=r;if(!oi.test(t))throw new oa({address:t,cause:new oo});if(i){if(t.toLowerCase()===t)return;if(function(t){if(or.has(t))return or.get(t);e(t,{strict:!1});let r=t.substring(2).toLowerCase(),i=function(e,t={}){var r;let{as:i="string"==typeof e?"Hex":"Bytes"}=t,a=rF(e instanceof Uint8Array?e:"string"==typeof e?function(e,t={}){let{size:r}=t,i=e;r&&(aY(e,r),i=a6(e,r));let a=i.slice(2);a.length%2&&(a=`0${a}`);let o=a.length/2,n=new Uint8Array(o);for(let e=0,t=0;e<o;e++){let r=aK(a.charCodeAt(t++)),i=aK(a.charCodeAt(t++));if(void 0===r||void 0===i)throw new aG(`Invalid byte sequence ("${a[t-2]}${a[t-1]}" in "${a}").`);n[e]=16*r+i}return n}(e):(r=e)instanceof Uint8Array?r:new Uint8Array(r));return"Bytes"===i?a:a5(a)}(function(e,t={}){let{size:r}=t,i=aJ.encode(e);return"number"==typeof r?(function(e,t){if(e.length>
9t)throw new aQ({givenSize:e.length,maxSize:t})}(i,r),function(e,t={}){let{dir:r,size:i=32}=t;if(0===i)return e;if(e.length>i)throw new a0({size:e.length,targetSize:i,type:"Bytes"});let a=new Uint8Array(i);for(let t=0;t<i;t++){let o="right"===r;a[o?t:i-t-1]=e[o?t:e.length-t-1]}return a}(i,{dir:"right",size:r})):i}(r),{as:"Bytes"}),a=r.split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&i[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let o=`0x${a.join("")}`;return or.set(t,o),o}(t)!==t)throw new oa({address:t,cause:new on})}}(r),a4(r.toLowerCase(),32*!!i);if("string"===t)return function(e,t={}){return a5(a1.encode(e),t)}(r);if("bytes"===t)return r;if("bool"===t)return a4(function(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(aY(r,t.size),a4(r,t.size)):r}(r),i?32:1);let a=t.match(oc);if(a){let[e,t,o="256"]=a,n=Number.parseInt(o)/8;return function(e,t={}){let r,{signed:i,size:a}=t,o=BigInt(e);a?r=i?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let n="bigint"==typeof r&&i?-r-1n:0;if(r&&o>r||o<n){let t="bigint"==typeof e?"n":"";throw new a7({max:r?`${r}${t}`:void 0,min:`${n}${t}`,signed:i,size:a,value:`${e}${t}`})}let s=`0x${(i&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16)}`;return a?a4(s,a):s}(r,{size:i?32:n,signed:"int"===t})}let o=t.match(ol);if(o){let[e,t]=o;if(Number.parseInt(t)!==(r.length-2)/2)throw new ou({expectedSize:Number.parseInt(t),value:r});return a6(r,32*!!i)}let n=t.match(os);if(n&&Array.isArray(r)){let[t,i]=n,a=[];for(let t=0;t<r.length;t++)a.push(e(i,r[t],!0));return 0===a.length?"0x":a3(...a)}throw new op(t)};class ou extends aG{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${a8(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class oh extends aG{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${t}`].join(`
10`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class op extends aG{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}class og extends rS{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");rf(e.outputLen),rf(e.blockLen)}(e);const r=rE(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;const i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<a.length;e++)a[e]^=54;this.iHash.update(a),this.oHash=e.create();for(let e=0;e<a.length;e++)a[e]^=106;this.oHash.update(a),a.fill(0)}update(e){return rm(this),this.iHash.update(e),this}digestInto(e){rm(this),rw(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:a,blockLen:o,outputLen:n}=this;return e.finished=i,e.destroyed=a,e.blockLen=o,e.outputLen=n,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let of=(e,t,r)=>new og(e,t).update(r).digest();of.create=(e,t)=>new og(e,t);let ow=BigInt(0),om=BigInt(1),ov=BigInt(2),ob=BigInt(3),oy=BigInt(4),oC=BigInt(5),ox=BigInt(8);function ok(e,t){let r=e%t;return r>=ow?r:t+r}function oA(e,t,r){let i=e;for(;t-- >ow;)i*=i,i%=r;return i}function oI(e,t){if(e===ow)throw Error("invert: expected non-zero number");if(t<=ow)throw Error("invert: expected positive modulus, got "+t);let r=ok(e,t),i=t,a=ow,o=om;for(;r!==ow;){let e=i/r,t=i%r,n=a-o*e;i=r,r=t,a=o,o=n}if(i!==om)throw Error("invert: does not exist");return ok(a,t)}let oE=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function oS(e,t){let r=void 0!==t?t:e.toString(2).length,i=Math.ceil(r/8);return{nBitLength:r,nByteLength:i}}function oN(e,t,r=!1,i={}){let a;if(e<=ow)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:o,nByteLength:n}=oS(e,t);if(n>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let s=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:n,MASK:aD(o),ZERO:ow,ONE:om,create:t=>ok(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return ow<=t&&t<e},is0:e=>e===ow,isOdd:e=>(e&om)===om,neg:t=>ok(-t,e),eql:(e,t)=>
10e===t,sqr:t=>ok(t*t,e),add:(t,r)=>ok(t+r,e),sub:(t,r)=>ok(t-r,e),mul:(t,r)=>ok(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<ow)throw Error("invalid exponent, negatives unsupported");if(r===ow)return e.ONE;if(r===om)return t;let i=e.ONE,a=t;for(;r>ow;)r&om&&(i=e.mul(i,a)),a=e.sqr(a),r>>=om;return i})(s,e,t),div:(t,r)=>ok(t*oI(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>oI(t,e),sqrt:i.sqrt||(t=>(a||(a=function(e){if(e%oy===ob){let t=(e+om)/oy;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%ox===oC){let t=(e-oC)/ox;return function(e,r){let i=e.mul(r,ov),a=e.pow(i,t),o=e.mul(r,a),n=e.mul(e.mul(o,ov),a),s=e.mul(o,e.sub(n,e.ONE));if(!e.eql(e.sqr(s),r))throw Error("Cannot find square root");return s}}return function(e){let t,r,i,a=(e-om)/ov;for(t=e-om,r=0;t%ov===ow;t/=ov,r++);for(i=ov;i<e&&function(e,t,r){if(t<ow)throw Error("invalid exponent, negatives unsupported");if(r<=ow)throw Error("invalid modulus");if(r===om)return ow;let i=om;for(;t>ow;)t&om&&(i=i*e%r),e=e*e%r,t>>=om;return i}(i,a,e)!==e-om;i++)if(i>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===r){let t=(e+om)/oy;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 o=(t+om)/ov;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),c=e.pow(n,o),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,om<<BigInt(s-t-1));l=e.sqr(r),c=e.mul(c,r),d=e.mul(d,l),s=t}return c}}(e)}(e)),a(s,t))),invertBatch:e=>{let t,r,i;return t=Array(e.length),r=e.reduce((e,r,i)=>s.is0(r)?e:(t[i]=e,s.mul(e,r)),s.ONE),i=s.inv(r),e.reduceRight((e,r,i)=>s.is0(r)?e:(t[i]=s.mul(e,t[i]),s.mul(e,r)),i),t},cmov:(e,t,r)=>r?t:e,toBytes:e=>r?aR(e,n):aT(e,n),fromBytes:e=>{if(e.length!==n)throw Error("Field.fromBytes: expected "+n+" bytes, got "+e.length);return r?aO(e):a$(e)}});return Object.freeze(s)}function oP(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function o_(e){let t=oP(e);return t+Math.ceil(t/2)}let o$=BigInt(0),oO=BigInt(1);function oT(e,t){let r=t.negate();return e?r:t}function oR(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function oB(e,t){return oR(e,t),{windows:Math.ceil(t/e)+1,windowSize:2**(e-1)}}let oL=new WeakMap,oM=new WeakMap;function oU(e){return oM.get(e)||1}function oz(e){return aV(e.Fp,oE.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),aV(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...oS(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function oj(e){void 0!==e.lowS&&aA("lowS",e.lowS),void 0!==e.prehash&&aA("prehash",e.prehash)}let{bytesToNumberBE:oD,hexToBytes:oW}=aq;class oH extends Error{constructor(e=""){super(e)}}let oF={Err:oH,_tlv:{encode:(e,t)=>{let{Err:r}=oF;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");let i=t.length/2,a=aS(i);if(a.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?aS(a.length/2|128):"";return aS(e)+o+a+t},decode(e,t){let{Err:r}=oF,i=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let a=t[i++],o=0;if(128&a){let e=127&a;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");let n=t.subarray(i,i+e);if(n.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===n[0])throw new r("tlv.decode(long): zero leftmost byte");for(let e of n)o=o<<8|e;if(i+=e,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=a;let n=t.subarray(i,i+o);if(n.length!==o)throw new r("tlv.decode: wrong value length");return{v:n,l:t.subarray(i+o)}}},_int:{encode(e){let{Err:t}=oF;if(e<oV)throw new t("integer: negative integers are not allowed");let r=aS(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=oF;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return oD(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=oF,a="string"==typeof e?oW(e):e;ak(a);let{v:o,l:n}=i.decode(48,a);if(n.length)throw new t("invalid signature: left bytes after parsing");let{v:s,l:l}=i.decode(2,o),{v:c,l:d}=i.decode(2,l);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(s),s:r.decode(c)}},hexFromSig(e){let{_tlv:t,_int:r}=oF,i=t.encode(2,r.encode(e.r)),a=t.encode(2,r.encode(e.s));return t.encode(48,i+a)}},oV=BigInt(0),oZ=BigInt(1);BigInt(2);let oq=BigInt(3);BigInt(4);let oG=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),oK=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),oY=BigInt(1),oX=BigInt(2),oJ=(e,t)=>(e+t/oX)/t,oQ=oN(oG,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),o=BigInt(23),n=BigInt(44),s=BigInt(88),l=e*e*e%oG,c=l*l*e%oG,d=oA(c,t,oG)*c%oG,u=oA(d,t,oG)*c%oG,h=oA(u,oX,oG)*l%oG,p=oA(h,i,oG)*h%oG,g=oA(p,a,oG)*p%oG,f=oA(g,n,oG)*g%oG,w=oA(f,s,oG)*f%oG,m=oA(w,n,oG)*g%oG,v=oA(m,t,oG)*c%oG,b=oA(v,o,oG)*p%oG,y=oA(b,r,oG)*l%oG,C=oA(y,oX,oG);if(!oQ.eql(oQ.sqr(C),e))throw Error("Cannot find square root");return C}});O={a:BigInt(0),b:BigInt(7),Fp:oQ,n:oK,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-oY*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),o=oJ(t*e,oK),n=oJ(-r*e,oK),s=ok(e-o*t-n*i,oK),l=ok(-o*r-n*t,oK),c=s>a,d=l>a;if(c&&(s=oK-s),d&&(l=oK-l),s>a||l>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:c,k1:s,k2neg:d,k2:l}}}},(e=>(function(e){let t,r=(aV(t=oz(e),{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})),{Fp:i,n:a}=r,o=i.BYTES+1,n=2*i.BYTES+1;function s(e){return ok(e,a)}let{ProjectivePoint:l,normPrivateKeyToScalar:c,weierstrassEquation:d,isWithinCurveOrder:u}=function(e){var t;let r=function(e){let t=oz(e);aV(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:a}=t;if(r){if(!i.eql(a,i.ZERO))throw Error("invalid 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("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:i}=r,a=oN(r.n,r.nBitLength),o=r.toBytes||((e,t,r)=>{let a=t.toAffine();return aL(Uint8Array.from([4]),i.toBytes(a.x),i.toBytes(a.y))}),n=r.fromBytes||(e=>{let t=e.subarray(1);return{x:i.fromBytes(t.subarray(0,i.BYTES)),y:i.fromBytes(t.subarray(i.BYTES,2*i.BYTES))}});function s(e){let{a:t,b:a}=r,o=i.sqr(e),n=i.mul(o,e);return i.add(i.add(n,i.mul(e,t)),a)}if(!i.eql(i.sqr(r.Gy),s(r.Gx)))throw Error("bad generator point: equation left != right");function l(e){let t,{allowedPrivateKeyLengths:i,nByteLength:a,wrapPrivateKey:o,n:n}=r;if(i&&"bigint"!=typeof e){if(ax(e)&&(e=aE(e)),"string"!=typeof e||!i.includes(e.length))throw Error("invalid private key");e=e.padStart(2*a,"0")}try{t="bigint"==typeof e?e:a$(aB("private key",e,a))}catch{throw Error("invalid private key, expected hex or "+a+" bytes, got "+typeof e)}return o&&(t=ok(t,n)),az("private key",t,oZ,n),t}function c(e){if(!(e instanceof h))throw Error("ProjectivePoint expected")}let d=aZ((e,t)=>{let{px:r,py:a,pz:o}=e;if(i.eql(o,i.ONE))return{x:r,y:a};let n=e.is0();null==t&&(t=n?i.ONE:i.inv(o));let s=i.mul(r,t),l=i.mul(a,t),c=i.mul(o,t);if(n)return{x:i.ZERO,y:i.ZERO};
10if(!i.eql(c,i.ONE))throw Error("invZ was invalid");return{x:s,y:l}}),u=aZ(e=>{if(e.is0()){if(r.allowInfinityPoint&&!i.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:a}=e.toAffine();if(!i.isValid(t)||!i.isValid(a))throw Error("bad point: x or y not FE");let o=i.sqr(a),n=s(t);if(!i.eql(o,n))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class h{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!i.isValid(e))throw Error("x required");if(null==t||!i.isValid(t))throw Error("y required");if(null==r||!i.isValid(r))throw Error("z required");Object.freeze(this)}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!i.isValid(t)||!i.isValid(r))throw Error("invalid affine point");if(e instanceof h)throw Error("projective point not allowed");let a=e=>i.eql(e,i.ZERO);return a(t)&&a(r)?h.ZERO:new h(t,r,i.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=i.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(h.fromAffine)}static fromHex(e){let t=h.fromAffine(n(aB("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return h.BASE.multiply(l(e))}static msm(e,t){return function(e,t,r,i){if(function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})}(r,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}(i,t),r.length!==i.length)throw Error("arrays of points and scalars must have equal length");let a=e.ZERO,o=aj(BigInt(r.length)),n=o>12?o-3:o>4?o-2:o?2:1,s=(1<<n)-1,l=Array(s+1).fill(a),c=Math.floor((t.BITS-1)/n)*n,d=a;for(let e=c;e>=0;e-=n){l.fill(a);for(let t=0;t<i.length;t++){let a=Number(i[t]>>BigInt(e)&BigInt(s));l[a]=l[a].add(r[t])}let t=a;for(let e=l.length-1,r=a;e>0;e--)r=r.add(l[e]),t=t.add(r);if(d=d.add(t),0!==e)for(let e=0;e<n;e++)d=d.double()}return d}(h,a,e,t)}_setWindowSize(e){g.setWindowSize(this,e)}assertValidity(){u(this)}hasEvenY(){let{y:e}=this.toAffine();if(i.isOdd)return!i.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){c(e);let{px:t,py:r,pz:a}=this,{px:o,py:n,pz:s}=e,l=i.eql(i.mul(t,s),i.mul(o,a)),d=i.eql(i.mul(r,s),i.mul(n,a));return l&&d}negate(){return new h(this.px,i.neg(this.py),this.pz)}double(){let{a:e,b:t}=r,a=i.mul(t,oq),{px:o,py:n,pz:s}=this,l=i.ZERO,c=i.ZERO,d=i.ZERO,u=i.mul(o,o),p=i.mul(n,n),g=i.mul(s,s),f=i.mul(o,n);return f=i.add(f,f),d=i.mul(o,s),d=i.add(d,d),l=i.mul(e,d),c=i.mul(a,g),c=i.add(l,c),l=i.sub(p,c),c=i.add(p,c),c=i.mul(l,c),l=i.mul(f,l),d=i.mul(a,d),g=i.mul(e,g),f=i.sub(u,g),f=i.mul(e,f),f=i.add(f,d),d=i.add(u,u),u=i.add(d,u),u=i.add(u,g),u=i.mul(u,f),c=i.add(c,u),g=i.mul(n,s),g=i.add(g,g),u=i.mul(g,f),l=i.sub(l,u),d=i.mul(g,p),d=i.add(d,d),new h(l,c,d=i.add(d,d))}add(e){c(e);let{px:t,py:a,pz:o}=this,{px:n,py:s,pz:l}=e,d=i.ZERO,u=i.ZERO,p=i.ZERO,g=r.a,f=i.mul(r.b,oq),w=i.mul(t,n),m=i.mul(a,s),v=i.mul(o,l),b=i.add(t,a),y=i.add(n,s);b=i.mul(b,y),y=i.add(w,m),b=i.sub(b,y),y=i.add(t,o);let C=i.add(n,l);return y=i.mul(y,C),C=i.add(w,v),y=i.sub(y,C),C=i.add(a,o),d=i.add(s,l),C=i.mul(C,d),d=i.add(m,v),C=i.sub(C,d),p=i.mul(g,y),d=i.mul(f,v),p=i.add(d,p),d=i.sub(m,p),p=i.add(m,p),u=i.mul(d,p),m=i.add(w,w),m=i.add(m,w),v=i.mul(g,v),y=i.mul(f,y),m=i.add(m,v),v=i.sub(w,v),v=i.mul(g,v),y=i.add(y,v),w=i.mul(m,y),u=i.add(u,w),w=i.mul(C,y),d=i.mul(b,d),d=i.sub(d,w),w=i.mul(b,m),p=i.mul(C,p),new h(d,u,p=i.add(p,w))}subtract(e){return this.add(e.negate())}is0(){return this.equals(h.ZERO)}wNAF(e){return g.wNAFCached(this,e,h.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:a}=r;az("scalar",e,oV,a);let o=h.ZERO;if(e===oV)return o;if(this.is0()||e===oZ)return this;if(!t||g.hasPrecomputes(this))return g.wNAFCachedUnsafe(this,e,h.normalizeZ);let{k1neg:n,k1:s,k2neg:l,k2:c}=t.splitScalar(e),d=o,u=o,p=this;for(;s>oV||c>oV;)s&oZ&&(d=d.add(p)),c&oZ&&(u=u.add(p)),p=p.double(),s>>=oZ,c>>=oZ;return n&&(d=d.negate()),l&&(u=u.negate()),u=new h(i.mul(u.px,t.beta),u.py,u.pz),d.add(u)}multiply(e){let t,a,{endo:o,n:n}=r;
10if(az("scalar",e,oZ,n),o){let{k1neg:r,k1:n,k2neg:s,k2:l}=o.splitScalar(e),{p:c,f:d}=this.wNAF(n),{p:u,f:p}=this.wNAF(l);c=g.constTimeNegate(r,c),u=g.constTimeNegate(s,u),u=new h(i.mul(u.px,o.beta),u.py,u.pz),t=c.add(u),a=d.add(p)}else{let{p:r,f:i}=this.wNAF(e);t=r,a=i}return h.normalizeZ([t,a])[0]}multiplyAndAddUnsafe(e,t,r){let i=h.BASE,a=(e,t)=>t!==oV&&t!==oZ&&e.equals(i)?e.multiply(t):e.multiplyUnsafe(t),o=a(this,t).add(a(e,r));return o.is0()?void 0:o}toAffine(e){return d(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=r;if(e===oZ)return!0;if(t)return t(h,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=r;return e===oZ?this:t?t(h,this):this.multiplyUnsafe(r.h)}toRawBytes(e=!0){return aA("isCompressed",e),this.assertValidity(),o(h,this,e)}toHex(e=!0){return aA("isCompressed",e),aE(this.toRawBytes(e))}}h.BASE=new h(r.Gx,r.Gy,i.ONE),h.ZERO=new h(i.ZERO,i.ONE,i.ZERO);let p=r.nBitLength,g=(t=r.endo?Math.ceil(p/2):p,{constTimeNegate:oT,hasPrecomputes:e=>1!==oU(e),unsafeLadder(e,t,r=h.ZERO){let i=e;for(;t>o$;)t&oO&&(r=r.add(i)),i=i.double(),t>>=oO;return r},precomputeWindow(e,r){let{windows:i,windowSize:a}=oB(r,t),o=[],n=e,s=n;for(let e=0;e<i;e++){s=n,o.push(s);for(let e=1;e<a;e++)s=s.add(n),o.push(s);n=s.double()}return o},wNAF(e,r,i){let{windows:a,windowSize:o}=oB(e,t),n=h.ZERO,s=h.BASE,l=BigInt(2**e-1),c=2**e,d=BigInt(e);for(let e=0;e<a;e++){let t=e*o,a=Number(i&l);i>>=d,a>o&&(a-=c,i+=oO);let u=t+Math.abs(a)-1,h=e%2!=0,p=a<0;0===a?s=s.add(oT(h,r[t])):n=n.add(oT(p,r[u]))}return{p:n,f:s}},wNAFUnsafe(e,r,i,a=h.ZERO){let{windows:o,windowSize:n}=oB(e,t),s=BigInt(2**e-1),l=2**e,c=BigInt(e);for(let e=0;e<o;e++){let t=e*n;if(i===o$)break;let o=Number(i&s);if(i>>=c,o>n&&(o-=l,i+=oO),0===o)continue;let d=r[t+Math.abs(o)-1];o<0&&(d=d.negate()),a=a.add(d)}return a},getPrecomputes(e,t,r){let i=oL.get(t);return i||(i=this.precomputeWindow(t,e),1!==e&&oL.set(t,r(i))),i},wNAFCached(e,t,r){let i=oU(e);return this.wNAF(i,this.getPrecomputes(i,e,r),t)},wNAFCachedUnsafe(e,t,r,i){let a=oU(e);return 1===a?this.unsafeLadder(e,t,i):this.wNAFUnsafe(a,this.getPrecomputes(a,e,r),t,i)},setWindowSize(e,r){oR(r,t),oM.set(e,r),oL.delete(e)}});return{CURVE:r,ProjectivePoint:h,normPrivateKeyToScalar:l,weierstrassEquation:s,isWithinCurveOrder:function(e){return aU(e,oZ,r.n)}}}({...r,toBytes(e,t,r){let a=t.toAffine(),o=i.toBytes(a.x);return aA("isCompressed",r),r?aL(Uint8Array.from([t.hasEvenY()?2:3]),o):aL(Uint8Array.from([4]),o,i.toBytes(a.y))},fromBytes(e){let t=e.length,r=e[0],a=e.subarray(1);if(t===o&&(2===r||3===r)){let e,t=a$(a);if(!aU(t,oZ,i.ORDER))throw Error("Point is not on curve");let o=d(t);try{e=i.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&oZ)===oZ)&&(e=i.neg(e)),{x:t,y:e}}if(t===n&&4===r)return{x:i.fromBytes(a.subarray(0,i.BYTES)),y:i.fromBytes(a.subarray(i.BYTES,2*i.BYTES))};throw Error("invalid Point, expected length of "+o+", or uncompressed "+n+", got "+t)}}),h=e=>aE(aT(e,r.nByteLength)),p=(e,t,r)=>a$(e.slice(t,r));class g{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let t=r.nByteLength;return new g(p(e=aB("compactSignature",e,2*t),0,t),p(e,t,2*t))}static fromDER(e){let{r:t,s:r}=oF.toSig(aB("DER",e));return new g(t,r)}assertValidity(){az("r",this.r,oZ,a),az("s",this.s,oZ,a)}addRecoveryBit(e){return new g(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:o,recovery:n}=this,c=m(aB("msgHash",e));if(null==n||![0,1,2,3].includes(n))throw Error("recovery id invalid");let d=2===n||3===n?t+r.n:t;if(d>=i.ORDER)throw Error("recovery id 2 or 3 invalid");let u=(1&n)==0?"02":"03",p=l.fromHex(u+h(d)),g=oI(d,a),f=s(-c*g),w=s(o*g),v=l.BASE.multiplyAndAddUnsafe(p,f,w);if(!v)throw Error("point at infinify");return v.assertValidity(),v}hasHighS(){return this.s>a>>oZ}normalizeS(){return this.hasHighS()?new g(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return a_(this.toDERHex())}toDERHex(){return oF.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return a_(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}function f(e){let t=ax(e),r="string"==typeof e,i=(t||r)&&e.length;return t?i===o||i===n:r?i===2*o||i===2*n:e instanceof l}let w=r.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=a$(e),i=8*e.length-r.nBitLength;return i>0?t>>BigInt(i):t},m=r.bits2int_modN||function(e){return s(w(e))},v=aD(r.nBitLength);function b(e){return az("num < 2^"+r.nBitLength,e,oV,v),aT(e,r.nByteLength)}let y={lowS:r.lowS,prehash:!1},C={lowS:r.lowS,prehash:!1};l.BASE._setWindowSize(8)})({...O,hash:e,hmac:(t,...r)=>of(e,t,function(...e){let t=0;for(let r=0;r<e.length;r++){let i=e[r];rw(i),t+=i.length}let r=new Uint8Array(t);for(let t=0,i=0;t<e.length;t++){let a=e[t];r.set(a,i),i+=a.length}return r}(...r)),randomBytes:rP}))(i1),BigInt(0);let o0={createBalance(e,t){let r={name:e.metadata.name||"",symbol
10:e.metadata.symbol||"",decimals:e.metadata.decimals||0,value:e.metadata.value||0,price:e.metadata.price||0,iconUrl:e.metadata.iconUrl||""};return{name:r.name,symbol:r.symbol,chainId:t,address:"native"===e.address?void 0:this.convertAddressToCAIP10Address(e.address,t),value:r.value,price:r.price,quantity:{decimals:r.decimals.toString(),numeric:this.convertHexToBalance({hex:e.balance,decimals:r.decimals})},iconUrl:r.iconUrl}},convertHexToBalance:({hex:e,decimals:t})=>r8(BigInt(e),t),convertAddressToCAIP10Address:(e,t)=>`${t}:${e}`,createCAIP2ChainId:(e,t)=>`${t}:${parseInt(e,16)}`,getChainIdHexFromCAIP2ChainId(e){let t=e.split(":");if(t.length<2||!t[1])return"0x0";let r=parseInt(t[1],10);return isNaN(r)?"0x0":`0x${r.toString(16)}`},isWalletGetAssetsResponse(e){return"object"==typeof e&&null!==e&&Object.values(e).every(e=>Array.isArray(e)&&e.every(e=>this.isValidAsset(e)))},isValidAsset:e=>"object"==typeof e&&null!==e&&"string"==typeof e.address&&"string"==typeof e.balance&&("ERC20"===e.type||"NATIVE"===e.type)&&"object"==typeof e.metadata&&null!==e.metadata&&"string"==typeof e.metadata.name&&"string"==typeof e.metadata.symbol&&"number"==typeof e.metadata.decimals&&"number"==typeof e.metadata.price&&"string"==typeof e.metadata.iconUrl},o1={async getMyTokensWithBalance(e){let t=ni.state.address,r=o8.state.activeCaipNetwork;if(!t||!r)return[];if("eip155"===r.chainNamespace){let e=await this.getEIP155Balances(t,r);if(e)return this.filterLowQualityTokens(e)}let i=await nt.getBalance(t,r.caipNetworkId,e);return this.filterLowQualityTokens(i.balances)},async getEIP155Balances(e,t){try{let r=o0.getChainIdHexFromCAIP2ChainId(t.caipNetworkId);if(!(await tX.getCapabilities(e))?.[r]?.assetDiscovery?.supported)return null;let i=await tX.walletGetAssets({account:e,chainFilter:[r]});return o0.isWalletGetAssetsResponse(i)?(i[r]||[]).map(e=>o0.createBalance(e,t.caipNetworkId)):null}catch{return null}},filterLowQualityTokens:e=>e.filter(e=>"0"!==e.quantity.decimals),mapBalancesToSwapTokens:e=>e?.map(e=>({...e,address:e?.address?e.address:o8.getActiveNetworkTokenAddress(),decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1}))||[]},o2=to({tokenBalances:[],loading:!1}),o3={state:o2,subscribe:e=>tn(o2,()=>e(o2)),subscribeKey:(e,t)=>tc(o2,e,t),setToken(e){e&&(o2.token=tl(e))},setTokenAmount(e){o2.sendTokenAmount=e},setReceiverAddress(e){o2.receiverAddress=e},setReceiverProfileImageUrl(e){o2.receiverProfileImageUrl=e},setReceiverProfileName(e){o2.receiverProfileName=e},setGasPrice(e){o2.gasPrice=e},setGasPriceInUsd(e){o2.gasPriceInUSD=e},setNetworkBalanceInUsd(e){o2.networkBalanceInUSD=e},setLoading(e){o2.loading=e},sendToken(){switch(o8.state.activeCaipNetwork?.chainNamespace){case"eip155":this.sendEvmToken();return;case"solana":this.sendSolanaToken();return;default:throw Error("Unsupported chain")}},sendEvmToken(){let e=o8.state.activeChain,t=ni.state.preferredAccountTypes?.[e];this.state.token?.address&&this.state.sendTokenAmount&&this.state.receiverAddress?(t_.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:t===tH,token:this.state.token.address,amount:this.state.sendTokenAmount,network:o8.state.activeCaipNetwork?.caipNetworkId||""}}),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&&(t_.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:t===tH,token:this.state.token?.symbol,amount:this.state.sendTokenAmount,network:o8.state.activeCaipNetwork?.caipNetworkId||""}}),this.sendNativeToken({receiverAddress:this.state.receiverAddress,sendTokenAmount:this.state.sendTokenAmount,gasPrice:this.state.gasPrice,decimals:this.state.token.quantity.decimals}))},async fetchTokenBalance(e){o2.loading=!0;let t=o8.state.activeCaipNetwork?.caipNetworkId,r=o8.state.activeCaipNetwork?.chainNamespace,i=o8.state.activeCaipAddress,a=i?tp.getPlainAddress(i):void 0;if(o2.lastRetry&&!tp.isAllowedRetry(o2.lastRetry,30*tu.ONE_SEC_MS))return o2.loading=!1,[];try{if(a&&t&&r){let e=await o1.getMyTokensWithBalance();return o2.tokenBalances=e,o2.lastRetry=void 0,e}}catch(t){o2.lastRetry=Date.now(),e?.(t),tZ.showError("Token Balance Unavailable")}finally{o2.loading=!1}return[]},fetchNetworkBalance(){if(0===o2.tokenBalances.length)return;let e=o1.mapBalancesToSwapTokens(o2.tokenBalances);if(!e)return;let t=e.find(e=>e.address===o8.getActiveNetworkTokenAddress());t&&(o2.networkBalanceInUSD=t?eA.multiply(t.quantity.numeric,t.price).toString():"0")},isInsufficientNetworkTokenForGas:(e,t)=>!!eA.bigNumber(e).eq(0)||eA.bigNumber(eA.bigNumber(t||"0")).gt(e),hasInsufficientGasFunds(){let e=o8.state.activeChain,t=!0;return ni.state.preferredAccountTypes?.[e]===tH?t=!1:o2.networkBalanceInUSD&&(t=this.isInsufficientNetworkTokenForGas(o2.networkBalanceInUSD,o2.gasPriceInUSD)),t},async sendNativeToken(e){let t=o8.state.activeChain;tL.pushTransactionStack({view:"Account",goBack:!1});let r=e.receiverAddress,i=ni.state.address,a=tX.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{await tX.sendTransaction({chainNamespace:"eip155",to:r,address:i,data:"0x",value:a??BigInt(0),gasPrice:e.gasPrice}),tZ.showSuccess("Transaction started"),t_.sendEvent({type:"track",event:"SEND_SUCCESS",properties:{isSmartAccount:ni.state.preferredAccountTypes?.[t]===tH,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:o8.state.activeCaipNetwork?.caipNetworkId||""}}),this.resetSend()}catch(i){console.error("SendController:sendERC20Token - failed to send native token",
10i);let r=i instanceof Error?i.message:"Unknown error";t_.sendEvent({type:"track",event:"SEND_ERROR",properties:{message:r,isSmartAccount:ni.state.preferredAccountTypes?.[t]===tH,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:o8.state.activeCaipNetwork?.caipNetworkId||""}}),tZ.showError("Something went wrong")}},async sendERC20Token(e){tL.pushTransactionStack({view:"Account",goBack:!1});let t=tX.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{if(ni.state.address&&e.sendTokenAmount&&e.receiverAddress&&e.tokenAddress){let r,i=tp.getPlainAddress(e.tokenAddress);await tX.writeContract({fromAddress:ni.state.address,tokenAddress:i,args:[e.receiverAddress,t??BigInt(0)],method:"transfer",abi:(r=i,ez.includes(r)?eE:eI),chainNamespace:"eip155"}),tZ.showSuccess("Transaction started"),this.resetSend()}}catch(r){console.error("SendController:sendERC20Token - failed to send erc20 token",r);let t=r instanceof Error?r.message:"Unknown error";t_.sendEvent({type:"track",event:"SEND_ERROR",properties:{message:t,isSmartAccount:ni.state.preferredAccountTypes?.eip155===tH,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:o8.state.activeCaipNetwork?.caipNetworkId||""}}),tZ.showError("Something went wrong")}},sendSolanaToken(){this.state.sendTokenAmount&&this.state.receiverAddress?(tL.pushTransactionStack({view:"Account",goBack:!1}),tX.sendTransaction({chainNamespace:"solana",to:this.state.receiverAddress,value:this.state.sendTokenAmount}).then(()=>{this.resetSend(),ni.fetchTokenBalance()}).catch(e=>{tZ.showError("Failed to send transaction. Please try again."),console.error("SendController:sendToken - failed to send solana transaction",e)})):tZ.showError("Please enter a valid amount and receiver address")},resetSend(){o2.token=void 0,o2.sendTokenAmount=void 0,o2.receiverAddress=void 0,o2.receiverProfileImageUrl=void 0,o2.receiverProfileName=void 0,o2.loading=!1,o2.tokenBalances=[]}},o5={currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[],user:void 0},o4={caipNetwork:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]},o6=to({chains:(Object.defineProperties(l=to({data:Array.from([]),has(e){return this.data.some(t=>t[0]===e)},set(e,t){let r=this.data.find(t=>t[0]===e);return r?r[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find(t=>t[0]===e))?void 0:t[1]},delete(e){let t=this.data.findIndex(t=>t[0]===e);return -1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(e){this.data.forEach(t=>{e(t[1],t[0],this)})},keys(){return this.data.map(e=>e[0]).values()},values(){return this.data.map(e=>e[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}}),{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(l),l),activeCaipAddress:void 0,activeChain:void 0,activeCaipNetwork:void 0,noAdapters:!1,universalAdapter:{networkControllerClient:void 0,connectionControllerClient:void 0},isSwitchingNamespace:!1}),o8={state:o6,subscribe:e=>tn(o6,()=>{e(o6)}),subscribeKey:(e,t)=>tc(o6,e,t),subscribeChainProp(e,t,r){let i;return tn(o6.chains,()=>{let a=r||o6.activeChain;if(a){let r=o6.chains.get(a)?.[e];i!==r&&(i=r,t(r))}})},initialize(e,t,r){let{chainId:i,namespace:a}=th.getActiveNetworkProps(),o=t?.find(e=>e.id.toString()===i?.toString()),n=e.find(e=>e?.namespace===a)||e?.[0],s=new Set([...t?.map(e=>e.chainNamespace)??[]]);e?.length!==0&&n||(o6.noAdapters=!0),o6.noAdapters||(o6.activeChain=n?.namespace,o6.activeCaipNetwork=o,this.setChainNetworkData(n?.namespace,{caipNetwork:o}),o6.activeChain&&tQ.set({activeChain:n?.namespace})),s.forEach(e=>{let i=t?.filter(t=>t.chainNamespace===e);o8.state.chains.set(e,{namespace:e,networkState:to({...o4,caipNetwork:i?.[0]}),accountState:to(o5),caipNetworks:i??[],...r}),this.setRequestedCaipNetworks(i??[],e)})},removeAdapter(e){if(o6.activeChain===e){let t=Array.from(o6.chains.entries()).find(([t])=>t!==e);if(t){let e=t[1]?.caipNetworks?.[0];e&&this.setActiveCaipNetwork(e)}}o6.chains.delete(e)},addAdapter(e,{networkControllerClient:t,connectionControllerClient:r},i){o6.chains.set(e.namespace,{namespace:e.namespace,networkState:{...o4,caipNetwork:i[0]},accountState:o5,caipNetworks:i,connectionControllerClient:r,networkControllerClient:t}),this.setRequestedCaipNetworks(i?.filter(t=>t.chainNamespace===e.namespace)??[],e.namespace)},addNetwork(e){let t=o6.chains.get(e.chainNamespace);if(t){let r=[...t.caipNetworks||[]];t.caipNetworks?.find(t=>
10t.id===e.id)||r.push(e),o6.chains.set(e.chainNamespace,{...t,caipNetworks:r}),this.setRequestedCaipNetworks(r,e.chainNamespace)}},removeNetwork(e,t){let r=o6.chains.get(e);if(r){let i=o6.activeCaipNetwork?.id===t,a=[...r.caipNetworks?.filter(e=>e.id!==t)||[]];i&&r?.caipNetworks?.[0]&&this.setActiveCaipNetwork(r.caipNetworks[0]),o6.chains.set(e,{...r,caipNetworks:a}),this.setRequestedCaipNetworks(a||[],e)}},setAdapterNetworkState(e,t){let r=o6.chains.get(e);r&&(r.networkState={...r.networkState||o4,...t},o6.chains.set(e,r))},setChainAccountData(e,t,r=!0){if(!e)throw Error("Chain is required to update chain account data");let i=o6.chains.get(e);if(i){let r={...i.accountState||o5,...t};o6.chains.set(e,{...i,accountState:r}),(1===o6.chains.size||o6.activeChain===e)&&(t.caipAddress&&(o6.activeCaipAddress=t.caipAddress),ni.replaceState(r))}},setChainNetworkData(e,t){if(!e)return;let r=o6.chains.get(e);if(r){let i={...r.networkState||o4,...t};o6.chains.set(e,{...r,networkState:i})}},setAccountProp(e,t,r,i=!0){this.setChainAccountData(r,{[e]:t},i),"status"===e&&"disconnected"===t&&r&&tD.removeConnectorId(r)},setActiveNamespace(e){o6.activeChain=e;let t=e?o6.chains.get(e):void 0,r=t?.networkState?.caipNetwork;r?.id&&e&&(o6.activeCaipAddress=t?.accountState?.caipAddress,o6.activeCaipNetwork=r,this.setChainNetworkData(e,{caipNetwork:r}),th.setActiveCaipNetworkId(r?.caipNetworkId),tQ.set({activeChain:e,selectedNetworkId:r?.caipNetworkId}))},setActiveCaipNetwork(e){if(!e)return;o6.activeChain!==e.chainNamespace&&this.setIsSwitchingNamespace(!0);let t=o6.chains.get(e.chainNamespace);o6.activeChain=e.chainNamespace,o6.activeCaipNetwork=e,this.setChainNetworkData(e.chainNamespace,{caipNetwork:e}),t?.accountState?.address?o6.activeCaipAddress=`${e.chainNamespace}:${e.id}:${t?.accountState?.address}`:o6.activeCaipAddress=void 0,this.setAccountProp("caipAddress",o6.activeCaipAddress,e.chainNamespace),t&&ni.replaceState(t.accountState),o3.resetSend(),tQ.set({activeChain:o6.activeChain,selectedNetworkId:o6.activeCaipNetwork?.caipNetworkId}),th.setActiveCaipNetworkId(e.caipNetworkId),this.checkIfSupportedNetwork(e.chainNamespace)||!tA.state.enableNetworkSwitch||tA.state.allowUnsupportedChain||tX.state.wcBasic||this.showUnsupportedChainUI()},addCaipNetwork(e){if(!e)return;let t=o6.chains.get(e.chainNamespace);t&&t?.caipNetworks?.push(e)},async switchActiveNamespace(e){if(!e)return;let t=e!==o8.state.activeChain,r=o8.getNetworkData(e)?.caipNetwork,i=o8.getCaipNetworkByNamespace(e,r?.id);t&&i&&await o8.switchActiveNetwork(i)},async switchActiveNetwork(e){o8.state.chains.get(o8.state.activeChain)?.caipNetworks?.some(e=>e.id===o6.activeCaipNetwork?.id)||tL.goBack();let t=this.getNetworkControllerClient(e.chainNamespace);t&&(await t.switchCaipNetwork(e),t_.sendEvent({type:"track",event:"SWITCH_NETWORK",properties:{network:e.caipNetworkId}}))},getNetworkControllerClient(e){let t=e||o6.activeChain,r=o6.chains.get(t);if(!r)throw Error("Chain adapter not found");if(!r.networkControllerClient)throw Error("NetworkController client not set");return r.networkControllerClient},getConnectionControllerClient(e){let t=e||o6.activeChain;if(!t)throw Error("Chain is required to get connection controller client");let r=o6.chains.get(t);if(!r?.connectionControllerClient)throw Error("ConnectionController client not set");return r.connectionControllerClient},getAccountProp(e,t){let r=o6.activeChain;if(t&&(r=t),!r)return;let i=o6.chains.get(r)?.accountState;if(i)return i[e]},getNetworkProp(e,t){let r=o6.chains.get(t)?.networkState;if(r)return r[e]},getRequestedCaipNetworks(e){let t=o6.chains.get(e),{approvedCaipNetworkIds:r=[],requestedCaipNetworks:i=[]}=t?.networkState||{};return tp.sortRequestedNetworks(r,i)},getAllRequestedCaipNetworks(){let e=[];return o6.chains.forEach(t=>{let r=this.getRequestedCaipNetworks(t.namespace);e.push(...r)}),e},setRequestedCaipNetworks(e,t){this.setAdapterNetworkState(t,{requestedCaipNetworks:e})},getAllApprovedCaipNetworkIds(){let e=[];return o6.chains.forEach(t=>{let r=this.getApprovedCaipNetworkIds(t.namespace);e.push(...r)}),e},getActiveCaipNetwork:()=>o6.activeCaipNetwork,getActiveCaipAddress:()=>o6.activeCaipAddress,getApprovedCaipNetworkIds:e=>o6.chains.get(e)?.networkState?.approvedCaipNetworkIds||[],async setApprovedCaipNetworksData(e){let t=await this.getNetworkControllerClient()?.getApprovedCaipNetworksData();this.setAdapterNetworkState(e,{approvedCaipNetworkIds:t?.approvedCaipNetworkIds,supportsAllNetworks:t?.supportsAllNetworks})},checkIfSupportedNetwork(e,t){let r=t||o6.activeCaipNetwork,i=this.getRequestedCaipNetworks(e);return!i.length||i?.some(e=>e.id===r?.id)},checkIfSupportedChainId(e){return!o6.activeChain||this.getRequestedCaipNetworks(o6.activeChain)?.some(t=>t.id===e)},setSmartAccountEnabledNetworks(e,t){this.setAdapterNetworkState(t,{smartAccountEnabledNetworks:e})},checkIfSmartAccountEnabled(){let e=eh.caipNetworkIdToNumber(o6.activeCaipNetwork?.caipNetworkId),t=o6.activeChain;return!!t&&!!e&&!!this.getNetworkProp("smartAccountEnabledNetworks",t)?.includes(Number(e))},getActiveNetworkTokenAddress(){let e=o6.activeCaipNetwork?.chainNamespace||"eip155",t=o6.activeCaipNetwork?.id||1,r=tu.NATIVE_TOKEN_ADDRESS[e];return`${e}:${t}:${r}`},showUnsupportedChainUI(){no.open({view:"UnsupportedChain"})},checkIfNamesSupported(){let e=o6.activeCaipNetwork;return!!(e?.chainNamespace&&tu.NAMES_SUPPORTED_CHAIN_NAMESPACES.includes(e.chainNamespace))},resetNetwork(e){this.setAdapterNetworkState(e,{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]})},resetAccount(e){if(!e)throw Error("Chain is required to set account prop");o6.activeCaipAddress=void 0,this.setChainAccountData(e,{smartAccountDeployed:!1,currentTab:0,caipAddress:void 0,address:void 0,balance:void 0,balanceSymbol
10:void 0,profileName:void 0,profileImage:void 0,addressExplorerUrl:void 0,tokenBalance:[],connectedWalletInfo:void 0,preferredAccountTypes:void 0,socialProvider:void 0,socialWindow:void 0,farcasterUrl:void 0,allAccounts:[],user:void 0,status:"disconnected"}),tD.removeConnectorId(e)},async disconnect(e){let t,r,i=(t=Array.from(o8.state.chains.keys()),r=[],e?(r.push([e,o8.state.chains.get(e)]),tW(e,eS)?t.forEach(t=>{t!==e&&tW(t,eS)&&r.push([t,o8.state.chains.get(t)])}):tW(e,eT)&&t.forEach(t=>{t!==e&&tW(t,eT)&&r.push([t,o8.state.chains.get(t)])})):r=Array.from(o8.state.chains.entries()),r);try{o3.resetSend();let t=await Promise.allSettled(i.map(async([e,t])=>{try{let{caipAddress:r}=this.getAccountData(e)||{};r&&t.connectionControllerClient?.disconnect&&await t.connectionControllerClient.disconnect(e),this.resetAccount(e),this.resetNetwork(e)}catch(t){throw Error(`Failed to disconnect chain ${e}: ${t.message}`)}}));tX.resetWcConnection();let r=t.filter(e=>"rejected"===e.status);if(r.length>0)throw Error(r.map(e=>e.reason.message).join(", "));th.deleteConnectedSocialProvider(),e?tD.removeConnectorId(e):tD.resetConnectorIds(),t_.sendEvent({type:"track",event:"DISCONNECT_SUCCESS",properties:{namespace:e||"all"}})}catch(e){console.error(e.message||"Failed to disconnect chains"),t_.sendEvent({type:"track",event:"DISCONNECT_ERROR",properties:{message:e.message||"Failed to disconnect chains"}})}},setIsSwitchingNamespace(e){o6.isSwitchingNamespace=e},getFirstCaipNetworkSupportsAuthConnector(){let e=[];
10if(o6.chains.forEach(t=>{eB.find(e=>e===t.namespace)&&t.namespace&&e.push(t.namespace)}),e.length>0){let t=e[0];return t?o6.chains.get(t)?.caipNetworks?.[0]:void 0}},getAccountData:e=>e?o8.state.chains.get(e)?.accountState:ni.state,getNetworkData(e){let t=e||o6.activeChain;if(t)return o8.state.chains.get(t)?.networkState},getCaipNetworkByNamespace(e,t){if(!e)return;let r=o8.state.chains.get(e);return r?.caipNetworks?.find(e=>e.id===t)||r?.networkState?.caipNetwork||r?.caipNetworks?.[0]},getRequestedCaipNetworkIds(){let e=tD.state.filterByNamespace;return(e?[o6.chains.get(e)]:Array.from(o6.chains.values())).flatMap(e=>e?.caipNetworks||[]).map(e=>e.caipNetworkId)},getCaipNetworks:e=>e?o8.getRequestedCaipNetworks(e):o8.getAllRequestedCaipNetworks()},o7={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"}]}]},o9=tp.getBlockchainApiUrl(),ne=to({clientId:null,api:new tf({baseUrl:o9,clientId:null}),supportedChains:{http:[],ws:[]}}),nt={state:ne,async get(e){let{st:t,sv:r}=nt.getSdkProperties(),i=tA.state.projectId,a={...e.params||{},st:t,sv:r,projectId:i};return ne.api.get({...e,params:a})},getSdkProperties(){let{sdkType:e,sdkVersion:t}=tA.state;return{st:e||"unknown",sv:t||"unknown"}},async isNetworkSupported(e){if(!e)return!1;try{ne.supportedChains.http.length||await nt.getSupportedNetworks()}catch{return!1}return ne.supportedChains.http.includes(e)},async getSupportedNetworks(){let e=await nt.get({path:"v1/supported-chains"});return ne.supportedChains=e,e},async fetchIdentity({address:e,caipNetworkId:t}){if(!await nt.isNetworkSupported(t))return{avatar:"",name:""};let r=th.getIdentityFromCacheForAddress(e);if(r)return r;let i=await nt.get({path:`/v1/identity/${e}`,params:{sender:o8.state.activeCaipAddress?tp.getPlainAddress(o8.state.activeCaipAddress):void 0}});return th.updateIdentityCache({address:e,identity:i,timestamp:Date.now()}),i},fetchTransactions:async({account:e,cursor:t,onramp:r,signal:i,cache:a,chainId:o})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:`/v1/account/${e}/history`,params:{cursor:t,onramp:r,chainId:o},signal:i,cache:a}):{data:[],next:void 0},fetchSwapQuote:async({amount:e,userAddress:t,from:r,to:i,gasPrice:a})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:"/v1/convert/quotes",headers:{"Content-Type":"application/json"},params:{amount:e,userAddress:t,from:r,to:i,gasPrice:a}}):{quotes:[]},fetchSwapTokens:async({chainId:e})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:"/v1/convert/tokens",params:{chainId:e}}):{tokens:[]},fetchTokenPrice:async({addresses:e})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?ne.api.post({path:"/v1/fungible/price",body:{currency:"usd",addresses:e,projectId:tA.state.projectId},headers:{"Content-Type":"application/json"}}):{fungibles:[]},fetchSwapAllowance:async({tokenAddress:e,userAddress:t})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:"/v1/convert/allowance",params:{tokenAddress:e,userAddress:t},headers:{"Content-Type":"application/json"}}):{allowance:"0"},async fetchGasPrice({chainId:e}){let{st:t,sv:r}=nt.getSdkProperties();if(!await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId))throw Error("Network not supported for Gas Price");return nt.get({path:"/v1/convert/gas-price",headers:{"Content-Type":"application/json"},params:{chainId:e,st:t,sv:r}})},async generateSwapCalldata({amount:e,from:t,to:r,userAddress:i,disableEstimate:a}){if(!await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId))throw Error("Network not supported for Swaps");return ne.api.post({path:"/v1/convert/build-transaction",headers:{"Content-Type":"application/json"},body:{amount:e,eip155:{slippage:tu.CONVERT_SLIPPAGE_TOLERANCE},projectId:tA.state.projectId,from:t,to:r,userAddress:i,disableEstimate:a}})},async generateApproveCalldata({from:e,to:t,userAddress:r}){let{st:i,sv:a}=nt.getSdkProperties();if(!await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId))throw Error("Network not supported for Swaps");return nt.get({path:"/v1/convert/build-approve",headers:{"Content-Type":"application/json"}
10,params:{userAddress:r,from:e,to:t,st:i,sv:a}})},async getBalance(e,t,r){let{st:i,sv:a}=nt.getSdkProperties();if(!await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId))return tZ.showError("Token Balance Unavailable"),{balances:[]};let o=`${t}:${e}`,n=th.getBalanceCacheForCaipAddress(o);if(n)return n;let s=await nt.get({path:`/v1/account/${e}/balance`,params:{currency:"usd",chainId:t,forceUpdate:r,st:i,sv:a}});return th.updateBalanceCache({caipAddress:o,balance:s,timestamp:Date.now()}),s},lookupEnsName:async e=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:`/v1/profile/account/${e}`,params:{apiVersion:"2"}}):{addresses:{},attributes:[]},reverseLookupEnsName:async({address:e})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:`/v1/profile/reverse/${e}`,params:{sender:ni.state.address,apiVersion:"2"}}):[],getEnsNameSuggestions:async e=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:`/v1/profile/suggestions/${e}`,params:{zone:"reown.id"}}):{suggestions:[]},registerEnsName:async({coinType:e,address:t,message:r,signature:i})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?ne.api.post({path:"/v1/profile/account",body:{coin_type:e,address:t,message:r,signature:i},headers:{"Content-Type":"application/json"}}):{success:!1},generateOnRampURL:async({destinationWallets:e,partnerUserId:t,defaultNetwork:r,purchaseAmount:i,paymentAmount:a})=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?(await ne.api.post({path:"/v1/generators/onrampurl",params:{projectId:tA.state.projectId},body:{destinationWallets:e,defaultNetwork:r,partnerUserId:t,defaultExperience:"buy",presetCryptoAmount:i,presetFiatAmount:a}})).url:"",async getOnrampOptions(){if(!await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId))return{paymentCurrencies:[],purchaseCurrencies:[]};try{return await nt.get({path:"/v1/onramp/options"})}catch{return o7}},async getOnrampQuote({purchaseCurrency:e,paymentCurrency:t,amount:r,network:i}){try{return await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?await ne.api.post({path:"/v1/onramp/quote",params:{projectId:tA.state.projectId},body:{purchaseCurrency:e,paymentCurrency:t,amount:r,network:i}}):null}catch{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"}}},getSmartSessions:async e=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?nt.get({path:`/v1/sessions/${e}`}):[],revokeSmartSession:async(e,t,r)=>await nt.isNetworkSupported(o8.state.activeCaipNetwork?.caipNetworkId)?ne.api.post({path:`/v1/sessions/${e}/revoke`,params:{projectId:tA.state.projectId},body:{pci:t,signature:r}}):{success:!1},setClientId(e){ne.clientId=e,ne.api=new tf({baseUrl:o9,clientId:e})}},nr=to({currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]}),ni={state:nr,replaceState(e){e&&Object.assign(nr,tl(e))},subscribe:e=>o8.subscribeChainProp("accountState",t=>{if(t)return e(t)}),subscribeKey(e,t,r){let i;return o8.subscribeChainProp("accountState",r=>{if(r){let a=r[e];i!==a&&(i=a,t(a))}},r)},setStatus(e,t){o8.setAccountProp("status",e,t)},getCaipAddress:e=>o8.getAccountProp("caipAddress",e),setCaipAddress(e,t){let r=e?tp.getPlainAddress(e):void 0;t===o8.state.activeChain&&(o8.state.activeCaipAddress=e),o8.setAccountProp("caipAddress",e,t),o8.setAccountProp("address",r,t)},setBalance(e,t,r){o8.setAccountProp("balance",e,r),o8.setAccountProp("balanceSymbol",t,r)},setProfileName(e,t){o8.setAccountProp("profileName",e,t)},setProfileImage(e,t){o8.setAccountProp("profileImage",e,t)},setUser(e,t){o8.setAccountProp("user",e,t)},setAddressExplorerUrl(e,t){o8.setAccountProp("addressExplorerUrl",e,t)},setSmartAccountDeployed(e,t){o8.setAccountProp("smartAccountDeployed",e,t)},setCurrentTab(e){o8.setAccountProp("currentTab",e,o8.state.activeChain)},setTokenBalance(e,t){e&&o8.setAccountProp("tokenBalance",e,t)},setShouldUpdateToAddress(e,t){o8.setAccountProp("shouldUpdateToAddress",e,t)},setAllAccounts(e,t){o8.setAccountProp("allAccounts",e,t)},addAddressLabel(e,t,r){let i=o8.getAccountProp("addressLabels",r)||new Map;i.set(e,t),o8.setAccountProp("addressLabels",i,r)},removeAddressLabel(e,t){let r=o8.getAccountProp("addressLabels",t)||new Map;r.delete(e),o8.setAccountProp("addressLabels",r,t)},setConnectedWalletInfo(e,t){o8.setAccountProp("connectedWalletInfo",e,t,!1)},setPreferredAccountType(e,t){o8.setAccountProp("preferredAccountTypes",{...nr.preferredAccountTypes,[t]:e},t)},setPreferredAccountTypes(e){nr.preferredAccountTypes=e},setSocialProvider(e,t){e&&o8.setAccountProp("socialProvider",e,t)},setSocialWindow(e,t){o8.setAccountProp("socialWindow",e?tl(e):void 0,t)},setFarcasterUrl(e,t){o8.setAccountProp("farcasterUrl",e,t)},async fetchTokenBalance(e){nr.balanceLoading=!0;
10let t=o8.state.activeCaipNetwork?.caipNetworkId,r=o8.state.activeCaipNetwork?.chainNamespace,i=o8.state.activeCaipAddress,a=i?tp.getPlainAddress(i):void 0;if(nr.lastRetry&&!tp.isAllowedRetry(nr.lastRetry,30*tu.ONE_SEC_MS))return nr.balanceLoading=!1,[];try{if(a&&t&&r){let e=(await nt.getBalance(a,t)).balances.filter(e=>"0"!==e.quantity.decimals);return this.setTokenBalance(e,r),nr.lastRetry=void 0,nr.balanceLoading=!1,e}}catch(t){nr.lastRetry=Date.now(),e?.(t),tZ.showError("Token Balance Unavailable")}finally{nr.balanceLoading=!1}return[]},resetAccount(e){o8.resetAccount(e)}},na=to({loading:!1,loadingNamespaceMap:new Map,open:!1,shake:!1,namespace:void 0}),no={state:na,subscribe:e=>tn(na,()=>e(na)),subscribeKey:(e,t)=>tc(na,e,t),async open(e){let t="connected"===ni.state.status;tX.state.wcBasic?tR.prefetch({fetchNetworkImages:!1,fetchConnectorImages:!1}):await tR.prefetch({fetchConnectorImages:!t,fetchFeaturedWallets:!t,fetchRecommendedWallets:!t}),e?.namespace?(await o8.switchActiveNamespace(e.namespace),no.setLoading(!0,e.namespace)):no.setLoading(!0),tD.setFilterByNamespace(e?.namespace);let r=o8.getAccountData(e?.namespace)?.caipAddress;o8.state.noAdapters&&!r?tp.isMobile()?tL.reset("AllWallets"):tL.reset("ConnectingWalletConnectBasic"):e?.view?tL.reset(e.view,e.data):r?tL.reset("Account"):tL.reset("Connect"),na.open=!0,tQ.set({open:!0}),t_.sendEvent({type:"track",event:"MODAL_OPEN",properties:{connected:!!r}})},close(){let e=tA.state.enableEmbedded,t=!!o8.state.activeCaipAddress;na.open&&t_.sendEvent({type:"track",event:"MODAL_CLOSE",properties:{connected:t}}),na.open=!1,no.clearLoading(),e?t?tL.replace("Account"):tL.push("Connect"):tQ.set({open:!1}),tX.resetUri()},setLoading(e,t){t&&na.loadingNamespaceMap.set(t,e),na.loading=e,tQ.set({loading:e})},clearLoading(){na.loadingNamespaceMap.clear(),na.loading=!1},shake(){na.shake||(na.shake=!0,setTimeout(()=>{na.shake=!1},500))}},nn={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"}]};to({providers:[{label:"Coinbase",name:"coinbase",feeRange:"1-2%",url:"",supportedChains:["eip155"]},{label:"Meld.io",name:"meld",feeRange:"1-2%",url:"https://meldcrypto.com",supportedChains:["eip155","solana"]}],selectedProvider:null,error:null,purchaseCurrency:nn,paymentCurrency:{id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},purchaseCurrencies:[nn],paymentCurrencies:[],quotesLoading:!1}),to({initializing:!1,initialized:!1,loadingPrices:!1,loadingQuote:!1,loadingApprovalTransaction:!1,loadingBuildTransaction:!1,loadingTransaction:!1,fetchError:!1,approvalTransaction:void 0,swapTransaction:void 0,transactionError:void 0,sourceToken:void 0,sourceTokenAmount:"",sourceTokenPriceInUSD:0,toToken:void 0,toTokenAmount:"",toTokenPriceInUSD:0,networkPrice:"0",networkBalanceInUSD:"0",networkTokenSymbol:"",inputError:void 0,slippage:tu.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});let ns=to({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),nl={state:ns,subscribe:e=>tn(ns,()=>e(ns)),subscribeKey:(e,t)=>tc(ns,e,t),showTooltip({message:e,triggerRect:t,variant:r}){ns.open=!0,ns.message=e,ns.triggerRect=t,ns.variant=r},hide(){ns.open=!1,ns.message="",ns.triggerRect={width:0,height:0,top:0,left:0}}},nc={convertEVMChainIdToCoinType(e){if(e>=0x80000000)throw Error("Invalid chainId");return(0x80000000|e)>>>0}},nd=to({suggestions:[],loading:!1}),nu={state:nd,subscribe:e=>tn(nd,()=>e(nd)),subscribeKey:(e,t)=>tc(nd,e,t),async resolveName(e){try{return await nt.lookupEnsName(e)}catch(e){throw Error(e?.reasons?.[0]?.description||"Error resolving name")}},async isNameRegistered(e){try{return await nt.lookupEnsName(e),!0}catch{return!1}},async getSuggestions(e){try{return nd.loading=!0,nd.suggestions=[],nd.suggestions=(await nt.getEnsNameSuggestions(e)).suggestions.map(e=>({...e,name:e.name}))||[],nd.suggestions}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching name suggestions"))}finally{nd.loading=!1}},async getNamesForAddress(e){try{if(!o8.state.activeCaipNetwork)return[];
10let t=th.getEnsFromCacheForAddress(e);if(t)return t;let r=await nt.reverseLookupEnsName({address:e});return th.updateEnsCache({address:e,ens:r,timestamp:Date.now()}),r}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching names for address"))}},async registerName(e){let t=o8.state.activeCaipNetwork;if(!t)throw Error("Network not found");let r=ni.state.address,i=tD.getAuthConnector();if(!r||!i)throw Error("Address or auth connector not found");nd.loading=!0;try{let i=JSON.stringify({name:e,attributes:{},timestamp:Math.floor(Date.now()/1e3)});tL.pushTransactionStack({view:"RegisterAccountNameSuccess",goBack:!1,replace:!0,onCancel(){nd.loading=!1}});let a=await tX.signMessage(i),o=t.id;if(!o)throw Error("Network not found");let n=nc.convertEVMChainIdToCoinType(Number(o));await nt.registerEnsName({coinType:n,address:r,signature:a,message:i}),ni.setProfileName(e,t.chainNamespace),tL.replace("RegisterAccountNameSuccess")}catch(r){let t=this.parseEnsApiError(r,`Error registering name ${e}`);throw tL.replace("RegisterAccountName"),Error(t)}finally{nd.loading=!1}},validateName:e=>/^[a-zA-Z0-9-]{4,}$/u.test(e),parseEnsApiError:(e,t)=>e?.reasons?.[0]?.description||t};to({isLegalCheckboxChecked:!1}
10);let nh="WALLET_CONNECT",np={1:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",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",5e3:"e86fae9b-b770-4eea-e520-150e12c81100",295:"6a97d510-cac8-4e58-c7ce-e8681b044c00",0xaa36a7:"e909ea0a-f92a-4512-c8fc-748044ea6800",84532:"a18a7ecd-e307-4360-4746-283182228e00",1301:"4eeea7ef-0014-4649-5d1d-07271a80f600",130:"2257980a-3463-48c6-cbac-a42d2a956e00",10143:"0a728e83-bacb-46db-7844-948f05434900",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",0x4e454152:"3ff73439-a619-4894-9262-4470c773a100",2020:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",2021:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",80094:"e329c2c9-59b0-4a02-83e4-212ff3779900",2741:"fc2427d1-5af9-4a9c-8da5-6f94627cd900","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"a1b58899-f671-4276-6a5e-56ca5bd59700","4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"a1b58899-f671-4276-6a5e-56ca5bd59700",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:"a1b58899-f671-4276-6a5e-56ca5bd59700","000000000019d6689c085ae165831e93":"0b4838db-0161-4ffe-022d-532bf03dba00","000000000933ea01ad0ee984209779ba":"39354064-d79b-420b-065d-f980c4b78200"},ng={[eP]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[e_]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[e$]:"461db637-8616-43ce-035a-d89b8a1d5800",[eO]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[eS]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[eN]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},nf={[eN]:"Browser Wallet",[eS]:"WalletConnect",[eP]:"Coinbase",[e_]:"Coinbase",[eO]:"Ledger",[e$]:"Safe"},nw={getCaipTokens(e){if(!e)return;let t={};return Object.entries(e).forEach(([e,r])=>{t[`eip155:${e}`]=r}),t},isLowerCaseMatch:(e,t)=>e?.toLowerCase()===t?.toLowerCase()},nm={UNAUTHORIZED_DOMAIN_NOT_ALLOWED:{message:"Unauthorized: origin not allowed",alertErrorKey:"INVALID_APP_CONFIGURATION"},JWT_VALIDATION_ERROR:{message:"JWT validation error: JWT Token is not yet valid",alertErrorKey:"JWT_TOKEN_NOT_VALID"},INVALID_KEY:{message:"Unauthorized: invalid key",alertErrorKey:"INVALID_PROJECT_ID"}},nv={SWITCH_NETWORK_NOT_FOUND:{shortMessage:"Network Not Found",longMessage:"Network not found - please make sure it is included in 'networks' array in createAppKit function"},INVALID_APP_CONFIGURATION:{shortMessage:"Invalid App Configuration",longMessage:()=>`Origin ${"u">typeof window?window.origin:"unknown"} not found on Allowlist - update configuration on cloud.reown.com`},SOCIALS_TIMEOUT:{shortMessage:"Invalid App Configuration",longMessage:()=>"There was an issue loading the embedded wallet. Please verify that your domain is allowed at cloud.reown.com"},JWT_TOKEN_NOT_VALID:{shortMessage:"Session Expired",longMessage:"Invalid session found on UniversalProvider - please check your time settings and connect again"},INVALID_PROJECT_ID:{shortMessage:"Invalid App Configuration",longMessage:"Invalid Project ID - update configuration"},PROJECT_ID_NOT_CONFIGURED:{shortMessage:"Project ID Not Configured",longMessage:"Project ID Not Configured - update configuration on cloud.reown.com"}};function nb(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}let ny=function(e,t,r){var i=r&&r.stringify||nb;if("object"==typeof e&&null!==e){var a=t.length+1;if(1===a)return e;var o=Array(a);o[0]=i(e);for(var n=1;n<a;n++)o[n]=i(t[n]);return o.join(" ")}if("string"!=typeof e)return e;var s=t.length;if(0===s)return e;for(var l="",c=0,d=-1,u=e&&e.length||0,h=0;h<u;){if(37===e.charCodeAt(h)&&h+1<u){switch(d=d>-1?d:0,e.charCodeAt(h+1)){case 100:case 102:if(c>=s||null==t[c])break;d<h&&(l+=e.slice(d,h)),l+=Number(t[c]),d=h+2,h++;break;case 105:if(c>=s||null==t[c])break;
10d<h&&(l+=e.slice(d,h)),l+=Math.floor(Number(t[c])),d=h+2,h++;break;case 79:case 111:case 106:if(c>=s||void 0===t[c])break;d<h&&(l+=e.slice(d,h));var p=typeof t[c];if("string"===p){l+="'"+t[c]+"'",d=h+2,h++;break}if("function"===p){l+=t[c].name||"<anonymous>",d=h+2,h++;break}l+=i(t[c]),d=h+2,h++;break;case 115:if(c>=s)break;d<h&&(l+=e.slice(d,h)),l+=String(t[c]),d=h+2,h++;break;case 37:d<h&&(l+=e.slice(d,h)),l+="%",d=h+2,h++,c--}++c}++h}return -1===d?e:(d<u&&(l+=e.slice(d)),l)};var nC=nk;let nx=function(){function e(e){return"u">typeof e&&e}try{return"u">typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}().console||{};function nk(e){var t,r;(e=e||{}).browser=e.browser||{};let i=e.browser.transmit;if(i&&"function"!=typeof i.send)throw Error("pino: transmit option must have a send function");let a=e.browser.write||nx;e.browser.write&&(e.browser.asObject=!0);let o=e.serializers||{},n=(t=e.browser.serialize,Array.isArray(t)?t.filter(function(e){return"!stdSerializers.err"!==e}):!0===t&&Object.keys(o)),s=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(s=!1),"function"==typeof a&&(a.error=a.fatal=a.warn=a.info=a.debug=a.trace=a),!1===e.enabled&&(e.level="silent");let l=e.level||"info",c=Object.create(a);c.log||(c.log=n_),Object.defineProperty(c,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(c,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,nA(d,c,"error","log"),nA(d,c,"fatal","error"),nA(d,c,"warn","error"),nA(d,c,"info","log"),nA(d,c,"debug","log"),nA(d,c,"trace","log")}});let d={transmit:i,serialize:n,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:"function"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?n$:nO};return c.levels=nk.levels,c.level=l,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=n_,c.serializers=o,c._serialize=n,c._stdErrSerialize=s,c.child=function(t,r){if(!t)throw Error("missing bindings for child Pino");r=r||{},n&&t.serializers&&(r.serializers=t.serializers);let a=r.serializers;if(n&&a){var s=Object.assign({},o,a),l=!0===e.browser.serialize?Object.keys(s):n;delete t.serializers,nI([t],l,s,this._stdErrSerialize)}function c(e){this._childLevel=(0|e._childLevel)+1,this.error=nE(e,t,"error"),this.fatal=nE(e,t,"fatal"),this.warn=nE(e,t,"warn"),this.info=nE(e,t,"info"),this.debug=nE(e,t,"debug"),this.trace=nE(e,t,"trace"),s&&(this.serializers=s,this._serialize=l),i&&(this._logEvent=nS([].concat(e._logEvent.bindings,t)))}return c.prototype=this,new c(this)},i&&(c._logEvent=nS()),c}function nA(e,t,r,i){var a,o,n,s;let l=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?n_:l[r]?l[r]:nx[r]||nx[i]||n_,a=e,o=t,n=r,(a.transmit||o[n]!==n_)&&(o[n]=(s=o[n],function(){let e=a.timestamp(),t=Array(arguments.length),r=Object.getPrototypeOf&&Object.getPrototypeOf(this)===nx?nx:this;for(var i,l,c,d=0;d<t.length;d++)t[d]=arguments[d];if(a.serialize&&!a.asObject&&nI(t,this._serialize,this.serializers,this._stdErrSerialize),a.asObject?s.call(r,function(e,t,r,i){e._serialize&&nI(r,e._serialize,e.serializers,e._stdErrSerialize);let a=r.slice(),o=a[0],n={};i&&(n.time=i),n.level=nk.levels.values[t];let s=(0|e._childLevel)+1;if(s<1&&(s=1),null!==o&&"object"==typeof o){for(;s--&&"object"==typeof a[0];)Object.assign(n,a.shift());o=a.length?ny(a.shift(),a):void 0}else"string"==typeof o&&(o=ny(a.shift(),a));return void 0!==o&&(n.msg=o),n}(this,n,t,e)):s.apply(r,t),a.transmit){let r,s,d,u,h,p,g=a.transmit.level||o.level,f=nk.levels.values[g],w=nk.levels.values[n];if(w<f)return;i=this,l={ts:e,methodLevel:n,methodValue:w,transmitLevel:g,transmitValue:nk.levels.values[a.transmit.level||o.level],send:a.transmit.send,val:o.levelVal},c=t,r=l.send,s=l.ts,d=l.methodLevel,u=l.methodValue,h=l.val,p=i._logEvent.bindings,nI(c,i._serialize||Object.keys(i.serializers),i.serializers,void 0===i._stdErrSerialize||i._stdErrSerialize),i._logEvent.ts=s,i._logEvent.messages=c.filter(function(e){return -1===p.indexOf(e)}),i._logEvent.level.label=d,i._logEvent.level.value=u,r(d,i._logEvent,h),i._logEvent=nS(p)}}))}function nI(e,t,r,i){for(let a in e)if(i&&e[a]instanceof Error)e[a]=nk.stdSerializers.err(e[a]);else if("object"==typeof e[a]&&!Array.isArray(e[a]))for(let i in e[a])t&&t.indexOf(i)>-1&&i in r&&(e[a][i]=r[i](e[a][i]))}function nE(e,t,r){return function(){let i=Array(1+arguments.length);i[0]=t;for(var a=1;a<i.length;a++)i[a]=arguments[a-1];return e[r].apply(this,i)}}function nS(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function nN(){return{}}function nP(e){return e}function n_(){}function n$(){return!1}function nO(){return Date.now()}function nT(e){return"string"==typeof e?e:JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t)||""}nk.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"}},nk.stdSerializers={mapHttpRequest:nN,mapHttpResponse:nN,wrapRequestSerializer:nP,wrapResponseSerializer:nP,wrapErrorSerializer:nP,req:nN,res:nN,err:function(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}},nk.stdTimeFunctions=Object.assign({},{nullTime:n$,epochTime:nO,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}});
10class nR{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 nB{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let t=new nR(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 nL{constructor(e,t=1024e3){this.level=e??"error",this.levelValue=nC.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new nB(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===nC.levels.values.error?console.error(e):t===nC.levels.values.warn?console.warn(e):t===nC.levels.values.debug?console.debug(e):t===nC.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append(nT({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 nB(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let t=this.getLogArray();return t.push(nT({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class nM{constructor(e,t=1024e3){this.baseChunkLogger=new nL(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 nU{constructor(e,t=1024e3){this.baseChunkLogger=new nL(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 nz=Object.defineProperty,nj=Object.defineProperties,nD=Object.getOwnPropertyDescriptors,nW=Object.getOwnPropertySymbols,nH=Object.prototype.hasOwnProperty,nF=Object.prototype.propertyIsEnumerable,nV=(e,t,r)=>t in e?nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nZ=(e,t)=>{for(var r in t||(t={}))nH.call(t,r)&&nV(e,r,t[r]);if(nW)for(var r of nW(t))nF.call(t,r)&&nV(e,r,t[r]);return e};let nq={createLogger(e,t="error"){var r,i,a,o,n,s;let l,c,d,u,{logger:h}="u">typeof(i={opts:nj(nZ({},r={level:t}),nD({level:r?.level||"info"}))}).loggerOverride&&"string"!=typeof i.loggerOverride?{logger:i.loggerOverride,chunkLoggerController:null}:"u">typeof window?(d=new nM(null==(n=(o=i).opts)?void 0:n.level,o.maxSizeInBytes),{logger:nC((l=nZ({},o.opts),c={level:"trace",browser:nj(nZ({},null==(s=o.opts)?void 0:s.browser),nD({write:e=>d.write(e)}))},nj(l,nD(c)))),chunkLoggerController:d}):(u=new nU(null==(a=i.opts)?void 0:a.level,i.maxSizeInBytes),{logger:nC(nj(nZ({},i.opts),nD({level:"trace"}))),chunkLoggerController:u});return h.error=(...t)=>{for(let r of t)if(r instanceof Error)return void e(r,...t);e(void 0,...t)},h}};function nG(e,t){let r=new URL("https://rpc.walletconnect.org/v1/");return r.searchParams.set("chainId",e),r.searchParams.set("projectId",t),r.toString()}let nK=["near:mainnet","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","eip155:1101","eip155:
1056","eip155:42161","eip155:7777777","eip155:59144","eip155:324","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1","eip155:5000","solana:4sgjmw1sunhzsxgspuhpqldx6wiyjntz","eip155:80084","eip155:5003","eip155:100","eip155:8453","eip155:42220","eip155:1313161555","eip155:17000","eip155:1","eip155:300","eip155:1313161554","eip155:1329","eip155:84532","eip155:421614","eip155:11155111","eip155:8217","eip155:43114","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","eip155:999999999","eip155:11155420","eip155:80002","eip155:97","eip155:43113","eip155:137","eip155:10","eip155:1301","bip122:000000000019d6689c085ae165831e93","bip122:000000000933ea01ad0ee984209779ba"],nY={extendRpcUrlWithProjectId(e,t){let r=!1;try{r="rpc.walletconnect.org"===new URL(e).host}catch{r=!1}if(r){let r=new URL(e);return r.searchParams.has("projectId")||r.searchParams.set("projectId",t),r.toString()}return e},isCaipNetwork:e=>"chainNamespace"in e&&"caipNetworkId"in e,getChainNamespace(e){return this.isCaipNetwork(e)?e.chainNamespace:eL},getCaipNetworkId(e){return this.isCaipNetwork(e)?e.caipNetworkId:`${eL}:${e.id}`},getDefaultRpcUrl(e,t,r){let i=e.rpcUrls?.default?.http?.[0];return nK.includes(t)?nG(t,r):i||""},extendCaipNetwork(e,{customNetworkImageUrls:t,projectId:r,customRpcUrls:i}){let a=this.getChainNamespace(e),o=this.getCaipNetworkId(e),n=e.rpcUrls.default.http?.[0],s=this.getDefaultRpcUrl(e,o,r),l=e?.rpcUrls?.chainDefault?.http?.[0]||n,c=i?.[o]?.map(e=>e.url)||[],d=[...c,s],u=[...c];return l&&!u.includes(l)&&u.push(l),{...e,chainNamespace:a,caipNetworkId:o,assets:{imageId:np[e.id],imageUrl:t?.[e.id]},rpcUrls:{...e.rpcUrls,default:{http:d},chainDefault:{http:u}}}},extendCaipNetworks:(e,{customNetworkImageUrls:t,projectId:r,customRpcUrls:i})=>e.map(e=>nY.extendCaipNetwork(e,{customNetworkImageUrls:t,customRpcUrls:i,projectId:r})),getViemTransport(e,t,r){let i=[];return r?.forEach(e=>{i.push(as(e.url,e.config))}),nK.includes(e.caipNetworkId)&&i.push(as(nG(e.caipNetworkId,t),{fetchOptions:{headers:{"Content-Type":"text/plain"}}})),e?.rpcUrls?.default?.http?.forEach(e=>{i.push(as(e))}),ai(i)},extendWagmiTransports(e,t,r){return nK.includes(e.caipNetworkId)?ai([r,as(this.getDefaultRpcUrl(e,e.caipNetworkId,t))]):r},getUnsupportedNetwork:e=>({id:e.split(":")[1],caipNetworkId:e,name:eD,chainNamespace:e.split(":")[0],nativeCurrency:{name:"",decimals:0,symbol:""},rpcUrls:{default:{http:[]}}}),getCaipNetworkFromStorage(e){let t=th.getActiveCaipNetworkId(),r=o8.getAllRequestedCaipNetworks(),i=Array.from(o8.state.chains?.keys()||[]),a=t?.split(":")[0],o=!!a&&i.includes(a),n=r?.find(e=>e.caipNetworkId===t);return o&&!n&&t?this.getUnsupportedNetwork(t):n||e||r?.[0]}},nX={eip155:void 0,solana:void 0,polkadot:void 0,bip122:void 0},nJ=to({providers:{...nX},providerIds:{...nX}}),nQ={state:nJ,subscribeKey:(e,t)=>tc(nJ,e,t),subscribe:e=>tn(nJ,()=>{e(nJ)}),subscribeProviders:e=>tn(nJ.providers,()=>e(nJ.providers)),setProvider(e,t){t&&(nJ.providers[e]=tl(t))},getProvider:e=>nJ.providers[e],setProviderId(e,t){t&&(nJ.providerIds[e]=t)},getProviderId(e){if(e)return nJ.providerIds[e]},reset(){nJ.providers={...nX},nJ.providerIds={...nX}},resetChain(e){nJ.providers[e]=void 0,nJ.providerIds[e]=void 0}};(T=B||(B={})).Google="google",T.Github="github",T.Apple="apple",T.Facebook="facebook",T.X="x",T.Discord="discord",T.Farcaster="farcaster";let n0={ACCOUNT_TABS:[{label:"Tokens"},{label:"NFTs"},{label:"Activity"}],SECURE_SITE_ORIGIN:("u">typeof z&&"u">typeof z.env?z.env.NEXT_PUBLIC_SECURE_SITE_ORIGIN:void 0)||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},DEFAULT_CONNECT_METHOD_ORDER:["email","social","wallet"],ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150}},n1={filterOutDuplicatesByRDNS(e){let t=tA.state.enableEIP6963?tD.state.connectors:[],r=th.getRecentWallets(),i=t.map(e=>e.info?.rdns).filter(Boolean),a=r.map(e=>e.rdns).filter(Boolean),o=i.concat(a);if(o.includes("io.metamask.mobile")&&tp.isMobile()){let e=o.indexOf("io.metamask.mobile");o[e]="io.metamask"}return e.filter(e=>!o.includes(String(e?.rdns)))},filterOutDuplicatesByIds(e){let t=tD.state.connectors.filter(e=>"ANNOUNCED"===e.type||"INJECTED"===e.type),r=th.getRecentWallets(),i=t.map(e=>e.explorerId),a=r.map(e=>e.id),o=i.concat(a);return e.filter(e=>
10!o.includes(e?.id))},filterOutDuplicateWallets(e){let t=this.filterOutDuplicatesByRDNS(e);return this.filterOutDuplicatesByIds(t)},markWalletsAsInstalled(e){let{connectors:t}=tD.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))},getConnectOrderMethod(e,t){let r=e?.connectMethodsOrder||tA.state.features?.connectMethodsOrder,i=t||tD.state.connectors;if(r)return r;let{injected:a,announced:o}=n2.getConnectorsByType(i,tR.state.recommended,tR.state.featured),n=a.filter(n2.showConnector),s=o.filter(n2.showConnector);return n.length||s.length?["wallet","email","social"]:n0.DEFAULT_CONNECT_METHOD_ORDER},isExcluded(e){let t=!!e.rdns&&tR.state.excludedWallets.some(t=>t.rdns===e.rdns),r=!!e.name&&tR.state.excludedWallets.some(t=>nw.isLowerCaseMatch(t.name,e.name));return t||r}},n2={getConnectorsByType(e,t,r){let{customWallets:i}=tA.state,a=th.getRecentWallets(),o=n1.filterOutDuplicateWallets(t),n=n1.filterOutDuplicateWallets(r),s=e.filter(e=>"MULTI_CHAIN"===e.type),l=e.filter(e=>"ANNOUNCED"===e.type),c=e.filter(e=>"INJECTED"===e.type);return{custom:i,recent:a,external:e.filter(e=>"EXTERNAL"===e.type),multiChain:s,announced:l,injected:c,recommended:o,featured:n}},showConnector(e){let t=e.info?.rdns,r=!!t&&tR.state.excludedWallets.some(e=>!!e.rdns&&e.rdns===t),i=!!e.name&&tR.state.excludedWallets.some(t=>nw.isLowerCaseMatch(t.name,e.name));return!("INJECTED"===e.type&&(!tp.isMobile()&&"Browser Wallet"===e.name||!t&&!tX.checkInstalled()||r||i)||("ANNOUNCED"===e.type||"EXTERNAL"===e.type)&&(r||i))},getIsConnectedWithWC:()=>Array.from(o8.state.chains.values()).some(e=>tD.getConnectorId(e.namespace)===eS),getConnectorTypeOrder({recommended:e,featured:t,custom:r,recent:i,announced:a,injected:o,multiChain:n,external:s,overriddenConnectors:l=tA.state.features?.connectorTypeOrder??[]}){let c=n2.getIsConnectedWithWC(),d=[{type:"walletConnect",isEnabled:tA.state.enableWalletConnect&&!c},{type:"recent",isEnabled:i.length>0},{type:"injected",isEnabled:[...o,...a,...n].length>0},{type:"featured",isEnabled:t.length>0},{type:"custom",isEnabled:r&&r.length>0},{type:"external",isEnabled:s.length>0},{type:"recommended",isEnabled:e.length>0}].filter(e=>e.isEnabled),u=new Set(d.map(e=>e.type)),h=l.filter(e=>u.has(e)).map(e=>({type:e,isEnabled:!0})),p=d.filter(({type:e})=>!h.some(({type:t})=>t===e));return Array.from(new Set([...h,...p].map(({type:e})=>e)))}},n3=globalThis,n5=n3.ShadowRoot&&(void 0===n3.ShadyCSS||n3.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n4=Symbol(),n6=new WeakMap;class n8{constructor(e,t,r){if(this._$cssResult$=!0,r!==n4)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(n5&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=n6.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&n6.set(t,e))}return e}toString(){return this.cssText}}let n7=e=>new n8("string"==typeof e?e:e+"",void 0,n4),n9=(e,...t)=>new n8(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,n4),se=n5?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return n7(t)})(e):e,{is:st,defineProperty:sr,getOwnPropertyDescriptor:si,getOwnPropertyNames:sa,getOwnPropertySymbols:so,getPrototypeOf:sn}=Object,ss=globalThis,sl=ss.trustedTypes,sc=sl?sl.emptyScript:"",sd=ss.reactiveElementPolyfillSupport,su={toAttribute(e,t){switch(t){case Boolean:e=e?sc: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{r=null}}return r}},sh=(e,t)=>!st(e,t),sp={attribute:!0,type:String,converter:su,reflect:!1,useDefault:!1,hasChanged:sh};Symbol.metadata??=Symbol("metadata"),ss.litPropertyMetadata??=new WeakMap;class sg 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=sp){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),i=this.getPropertyDescriptor(e,r,t);void 0!==i&&sr(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){let{get:i,set:a}=si(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:i,set(t){let o=i?.call(this);a?.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??sp}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=sn(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...sa(e),...so(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(se(r));else void 0!==e&&t.push(se(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
10=>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((e,t)=>{if(n5)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),i=n3.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=r.cssText,e.appendChild(t)}})(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)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,r);if(void 0!==i&&!0===r.reflect){let a=(r.converter?.toAttribute!==void 0?r.converter:su).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(i):this.setAttribute(i,a),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),a="function"==typeof e.converter?{fromAttribute:e.converter}:e.converter?.fromAttribute!==void 0?e.converter:su;this._$Em=i,this[i]=a.fromAttribute(t,e.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(e,t,r){if(void 0!==e){let i=this.constructor,a=this[e];if(!(((r??=i.getPropertyOptions(e)).hasChanged??sh)(a,t)||r.useDefault&&r.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:i,wrapped:a},o){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==a||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),!0===i&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){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){let{wrapped:e}=r,i=this[t];!0!==e||this._$AL.has(t)||void 0===i||this.C(t,void 0,r,i)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),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)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}sg.elementStyles=[],sg.shadowRootOptions={mode:"open"},sg.elementProperties=new Map,sg.finalized=new Map,sd?.({ReactiveElement:sg}),(ss.reactiveElementVersions??=[]).push("2.1.0");let sf=globalThis,sw=sf.trustedTypes,sm=sw?sw.createPolicy("lit-html",{createHTML:e=>e}):void 0,sv="$lit$",sb=`lit$${Math.random().toFixed(9).slice(2)}$`,sy="?"+sb,sC=`<${sy}>`,sx=document,sk=()=>sx.createComment(""),sA=e=>null===e||"object"!=typeof e&&"function"!=typeof e,sI=Array.isArray,sE=`[ 	
11\f\r]`,sS=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sN=/-->/g,sP=/>/g,s_=RegExp(`>|${sE}(?:([^\\s"'>=/]+)(${sE}*=${sE}*(?:[^ 	
12\f\r"'\`<>=]|("|')|))|$)`,"g"),s$=/'/g,sO=/"/g,sT=/^(?:script|style|textarea|title)$/i,sR=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),sB=sR(1),sL=sR(2),sM=Symbol.for("lit-noChange"),sU=Symbol.for("lit-nothing"),sz=new WeakMap,sj=sx.createTreeWalker(sx,129);function sD(e,t){if(!sI(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==sm?sm.createHTML(t):t}class sW{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let a=0,o=0;const n=e.length-1,s=this.parts,[l,c]=((e,t)=>{let r=e.length-1,i=[],a,o=2===t?"<svg>":3===t?"<math>":"",n=sS;for(let t=0;t<r;t++){let r=e[t],s,l,c=-1,d=0;for(;d<r.length&&(n.lastIndex=d,null!==(l=n.exec(r)));)d=n.lastIndex,n===sS?"!--"===l[1]?n=sN:void 0!==l[1]?n=sP:void 0!==l[2]?(sT.test(l[2])&&(a=RegExp("</"+l[2],"g")),n=s_):void 0!==l[3]&&(n=s_):n===s_?">"===l[0]?(n=a??sS,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?s_:'"'
vendor: 2,290 bytes, line 12
12===l[3]?sO:s$):n===sO||n===s$?n=s_:n===sN||n===sP?n=sS:(n=s_,a=void 0);let u=n===s_&&e[t+1].startsWith("/>")?" ":"";o+=n===sS?r+sC:c>=0?(i.push(s),r.slice(0,c)+sv+r.slice(c)+sb+u):r+sb+(-2===c?t:u)}return[sD(e,o+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]})(e,t);if(this.el=sW.createElement(l,r),sj.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(i=sj.nextNode())&&s.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const e of i.getAttributeNames())if(e.endsWith(sv)){const t=c[o++],r=i.getAttribute(e).split(sb),n=/([.?@])?(.*)/.exec(t);s.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?sq:"?"===n[1]?sG:"@"===n[1]?sK:sZ}),i.removeAttribute(e)}else e.startsWith(sb)&&(s.push({type:6,index:a}),i.removeAttribute(e));if(sT.test(i.tagName)){const e=i.textContent.split(sb),t=e.length-1;if(t>0){i.textContent=sw?sw.emptyScript:"";for(let r=0;r<t;r++)i.append(e[r],sk()),sj.nextNode(),s.push({type:2,index:++a});i.append(e[t],sk())}}}else if(8===i.nodeType)if(i.data===sy)s.push({type:2,index:a});else{let e=-1;for(;-1!==(e=i.data.indexOf(sb,e+1));)s.push({type:7,index:a}),e+=sb.length-1}a++}}static createElement(e,t){let r=sx.createElement("template");return r.innerHTML=e,r}}function sH(e,t,r=e,i){if(t===sM)return t;let a=void 0!==i?r._$Co?.[i]:r._$Cl,o=sA(t)?void 0:t._$litDirective$;return a?.constructor!==o&&(a?._$AO?.(!1),void 0===o?a=void 0:(a=new o(e))._$AT(e,r,i),void 0!==i?(r._$Co??=[])[i]=a:r._$Cl=a),void 0!==a&&(t=sH(e,a._$AS(e,t.values),a,i)),t}class sF{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??sx).importNode(t,!0);sj.currentNode=i;let a=sj.nextNode(),o=0,n=0,s=r[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new sV(a,a.nextSibling,this,e):1===s.type?t=new s.ctor(a,s.name,s.strings,this,e):6===s.type&&(t=new sY(a,this,e)),this._$AV.push(t),s=r[++n]}o!==s?.index&&(a=sj.nextNode(),o++)}return sj.currentNode=sx,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 sV{get _$AU(){return this._$AM?._$AU??this._$Cv}
12constructor(e,t,r,i){this.type=2,this._$AH=sU,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&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){let r;sA(e=sH(this,e,t))?e===sU||null==e||""===e?(this._$AH!==sU&&this._$AR(),this._$AH=sU):e!==this._$AH&&e!==sM&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):sI(r=e)||"function"==typeof r?.[Symbol.iterator]?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==sU&&sA(this._$AH)?this._$AA.nextSibling.data=e:this.T(sx.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=sW.createElement(sD(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===i)this._$AH.p(t);else{let e=new sF(i,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=sz.get(e.strings);return void 0===t&&sz.set(e.strings,t=new sW(e)),t}k(e){sI(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,i=0;for(let a of e)i===t.length?t.push(r=new sV(this.O(sk()),this.O(sk()),this,this.options)):r=t[i],r._$AI(a),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 sZ{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,i,a){this.type=1,this._$AH=sU,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=sU}_$AI(e,t=this,r,i){let a=this.strings,o=!1;if(void 0===a)(o=!sA(e=sH(this,e,t,0))||e!==this._$AH&&e!==sM)&&(this._$AH=e);else{let i,n,s=e;for(e=a[0],i=0;i<a.length-1;i++)(n=sH(this,s[r+i],t,i))===sM&&(n=this._$AH[i]),o||=!sA(n)||n!==this._$AH[i],n===sU?e=sU:e!==sU&&(e+=(n??"")+a[i+1]),this._$AH[i]=n}o&&!i&&this.j(e)}j(e){e===sU?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class sq extends sZ{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===sU?void 0:e}}class sG extends sZ{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==sU)}}class sK extends sZ{constructor(e,t,r,i,a){super(e,t,r,i,a),this.type=5}
12_$AI(e,t=this){if((e=sH(this,e,t,0)??sU)===sM)return;let r=this._$AH,i=e===sU&&r!==sU||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==sU&&(r===sU||i);i&&this.element.removeEventListener(this.name,this,r),a&&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 sY{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){sH(this,e)}}let sX=sf.litHtmlPolyfillSupport;sX?.(sW,sV),(sf.litHtmlVersions??=[]).push("3.3.0");let sJ=globalThis;class sQ extends sg{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=((e,t,r)=>{let i=r?.renderBefore??t,a=i._$litPart$;if(void 0===a){let e=r?.renderBefore??null;i._$litPart$=a=new sV(t.insertBefore(sk(),e),e,void 0,r??{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return sM}}sQ._$litElement$=!0,sQ.finalized=!0,sJ.litElementHydrateSupport?.({LitElement:sQ});let s0=sJ.litElementPolyfillSupport;function s1(e){o&&n&&("light"===e?(o.removeAttribute("media"),n.media="enabled"):(n.removeAttribute("media"),o.media="enabled"))}function s2(e){return{core:n9`
13      @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
14      @keyframes w3m-shake {
15        0% {
16          transform: scale(1) rotate(0deg);
17        }
18        20% {
19          transform: scale(1) rotate(-1deg);
20        }
21        40% {
22          transform: scale(1) rotate(1.5deg);
23        }
24        60% {
25          transform: scale(1) rotate(-1.5deg);
26        }
27        80% {
28          transform: scale(1) rotate(1deg);
29        }
30        100% {
31          transform: scale(1) rotate(0deg);
32        }
33      }
34      @keyframes w3m-iframe-fade-out {
35        0% {
36          opacity: 1;
37        }
38        100% {
39          opacity: 0;
40        }
41      }
42      @keyframes w3m-iframe-zoom-in {
43        0% {
44          transform: translateY(50px);
45          opacity: 0;
46        }
47        100% {
48          transform: translateY(0px);
49          opacity: 1;
50        }
51      }
52      @keyframes w3m-iframe-zoom-in-mobile {
53        0% {
54          transform: scale(0.95);
55          opacity: 0;
56        }
57        100% {
58          transform: scale(1);
59          opacity: 1;
60        }
61      }
62      :root {
63        --w3m-modal-width: 360px;
64        --w3m-color-mix-strength: ${n7(e?.["--w3m-color-mix-strength"]?`${e["--w3m-color-mix-strength"]}%`:"0%")};
65        --w3m-font-family: ${n7(e?.["--w3m-font-family"]||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")};
66        --w3m-font-size-master: ${n7(e?.["--w3m-font-size-master"]||"10px")};
67        --w3m-border-radius-master: ${n7(e?.["--w3m-border-radius-master"]||"4px")};
68        --w3m-z-index: ${n7(e?.["--w3m-z-index"]||
vendor: 15,824 bytes, lines 68-494
68999)};
69
70        --wui-font-family: var(--w3m-font-family);
71
72        --wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8);
73        --wui-font-size-micro: var(--w3m-font-size-master);
74        --wui-font-size-tiny: calc(var(--w3m-font-size-master) * 1.2);
75        --wui-font-size-small: calc(var(--w3m-font-size-master) * 1.4);
76        --wui-font-size-paragraph: calc(var(--w3m-font-size-master) * 1.6);
77        --wui-font-size-medium: calc(var(--w3m-font-size-master) * 1.8);
78        --wui-font-size-large: calc(var(--w3m-font-size-master) * 2);
79        --wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2);
80        --wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4);
81        --wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4);
82
83        --wui-border-radius-5xs: var(--w3m-border-radius-master);
84        --wui-border-radius-4xs: calc(var(--w3m-border-radius-master) * 1.5);
85        --wui-border-radius-3xs: calc(var(--w3m-border-radius-master) * 2);
86        --wui-border-radius-xxs: calc(var(--w3m-border-radius-master) * 3);
87        --wui-border-radius-xs: calc(var(--w3m-border-radius-master) * 4);
88        --wui-border-radius-s: calc(var(--w3m-border-radius-master) * 5);
89        --wui-border-radius-m: calc(var(--w3m-border-radius-master) * 7);
90        --wui-border-radius-l: calc(var(--w3m-border-radius-master) * 9);
91        --wui-border-radius-3xl: calc(var(--w3m-border-radius-master) * 20);
92
93        --wui-font-weight-light: 400;
94        --wui-font-weight-regular: 500;
95        --wui-font-weight-medium: 600;
96        --wui-font-weight-bold: 700;
97
98        --wui-letter-spacing-2xl: -1.6px;
99        --wui-letter-spacing-medium-title: -0.96px;
100        --wui-letter-spacing-title-6: -0.88px;
101        --wui-letter-spacing-large: -0.8px;
102        --wui-letter-spacing-medium: -0.72px;
103        --wui-letter-spacing-paragraph: -0.64px;
104        --wui-letter-spacing-small: -0.56px;
105        --wui-letter-spacing-tiny: -0.48px;
106        --wui-letter-spacing-micro: -0.2px;
107        --wui-letter-spacing-mini: -0.16px;
108
109        --wui-spacing-0: 0px;
110        --wui-spacing-4xs: 2px;
111        --wui-spacing-3xs: 4px;
112        --wui-spacing-xxs: 6px;
113        --wui-spacing-2xs: 7px;
114        --wui-spacing-xs: 8px;
115        --wui-spacing-1xs: 10px;
116        --wui-spacing-s: 12px;
117        --wui-spacing-m: 14px;
118        --wui-spacing-l: 16px;
119        --wui-spacing-2l: 18px;
120        --wui-spacing-xl: 20px;
121        --wui-spacing-xxl: 24px;
122        --wui-spacing-2xl: 32px;
123        --wui-spacing-3xl: 40px;
124        --wui-spacing-4xl: 90px;
125        --wui-spacing-5xl: 95px;
126
127        --wui-icon-box-size-xxs: 14px;
128        --wui-icon-box-size-xs: 20px;
129        --wui-icon-box-size-sm: 24px;
130        --wui-icon-box-size-md: 32px;
131        --wui-icon-box-size-mdl: 36px;
132        --wui-icon-box-size-lg: 40px;
133        --wui-icon-box-size-2lg: 48px;
134        --wui-icon-box-size-xl: 64px;
135
136        --wui-icon-size-inherit: inherit;
137        --wui-icon-size-xxs: 10px;
138        --wui-icon-size-xs: 12px;
139        --wui-icon-size-sm: 14px;
140        --wui-icon-size-md: 16px;
141        --wui-icon-size-mdl: 18px;
142        --wui-icon-size-lg: 20px;
143        --wui-icon-size-xl: 24px;
144        --wui-icon-size-xxl: 28px;
145
146        --wui-wallet-image-size-inherit: inherit;
147        --wui-wallet-image-size-sm: 40px;
148        --wui-wallet-image-size-md: 56px;
149        --wui-wallet-image-size-lg: 80px;
150
151        --wui-visual-size-size-inherit: inherit;
152        --wui-visual-size-sm: 40px;
153        --wui-visual-size-md: 55px;
154        --wui-visual-size-lg: 80px;
155
156        --wui-box-size-md: 100px;
157        --wui-box-size-lg: 120px;
158
159        --wui-ease-out-power-2: cubic-bezier(0, 0, 0.22, 1);
160        --wui-ease-out-power-1: cubic-bezier(0, 0, 0.55, 1);
161
162        --wui-ease-in-power-3: cubic-bezier(0.66, 0, 1, 1);
163        --wui-ease-in-power-2: cubic-bezier(0.45, 0, 1, 1);
164        --wui-ease-in-power-1: cubic-bezier(0.3, 0, 1, 1);
165
166        --wui-ease-inout-power-1: cubic-bezier(0.45, 0, 0.55, 1);
167
168        --wui-duration-lg: 200ms;
169        --wui-duration-md: 125ms;
170        --wui-duration-sm: 75ms;
171
172        --wui-path-network-sm: path(
173          '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'
174        );
175
176        --wui-path-network-md: path(
177          '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'
178        );
179
180        --wui-path-network-lg: path(
181          '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'
182        );
183
184        --wui-width-network-sm: 36px;
185        --wui-width-network-md: 48px;
186        --wui-width-network-lg: 86px;
187
188        --wui-height-network-sm: 40px;
189        --wui-height-network-md: 54px;
190        --wui-height-network-lg: 96px;
191
192        --wui-icon-size-network-xs: 12px;
193        --wui-icon-size-network-sm: 16px;
194        --wui-icon-size-network-md: 24px;
195        --wui-icon-size-network-lg: 42px;
196
197        --wui-color-inherit: inherit;
198
199        --wui-color-inverse-100: #fff;
200        --wui-color-inverse-000: #000;
201
202        --wui-cover: rgba(20, 20, 20, 0.8);
203
204        --wui-color-modal-bg: var(--wui-color-modal-bg-base);
205
206        --wui-color-accent-100: var(--wui-color-accent-base-100);
207        --wui-color-accent-090: var(--wui-color-accent-base-090);
208        --wui-color-accent-080: var(--wui-color-accent-base-080);
209
210        --wui-color-success-100: var(--wui-color-success-base-100);
211        --wui-color-success-125: var(--wui-color-success-base-125);
212
213        --wui-color-warning-100: var(--wui-color-warning-base-100);
214
215        --wui-color-error-100: var(--wui-color-error-base-100);
216        --wui-color-error-125: var(--wui-color-error-base-125);
217
218        --wui-color-blue-100: var(--wui-color-blue-base-100);
219        --wui-color-blue-90: var(--wui-color-blue-base-90);
220
221        --wui-icon-box-bg-error-100: var(--wui-icon-box-bg-error-base-100);
222        --wui-icon-box-bg-blue-100: var(--wui-icon-box-bg-blue-base-100);
223        --wui-icon-box-bg-success-100: var(--wui-icon-box-bg-success-base-100);
224        --wui-icon-box-bg-inverse-100: var(--wui-icon-box-bg-inverse-base-100);
225
226        --wui-all-wallets-bg-100: var(--wui-all-wallets-bg-100);
227
228        --wui-avatar-border: var(--wui-avatar-border-base);
229
230        --wui-thumbnail-border: var(--wui-thumbnail-border-base);
231
232        --wui-wallet-button-bg: var(--wui-wallet-button-bg-base);
233
234        --wui-box-shadow-blue: var(--wui-color-accent-glass-020);
235      }
236
237      @supports (background: color-mix(in srgb, white 50%, black)) {
238        :root {
239          --wui-color-modal-bg: color-mix(
240            in srgb,
241            var(--w3m-color-mix) var(--w3m-color-mix-strength),
242            var(--wui-color-modal-bg-base)
243          );
244
245          --wui-box-shadow-blue: color-mix(in srgb, var(--wui-color-accent-100) 20%, transparent);
246
247          --wui-color-accent-100: color-mix(
248            in srgb,
249            var(--wui-color-accent-base-100) 100%,
250            transparent
251          );
252          --wui-color-accent-090: color-mix(
253            in srgb,
254            var(--wui-color-accent-base-100) 90%,
255            transparent
256          );
257          --wui-color-accent-080: color-mix(
258            in srgb,
259            var(--wui-color-accent-base-100) 80%,
260            transparent
261          );
262          --wui-color-accent-glass-090: color-mix(
263            in srgb,
264            var(--wui-color-accent-base-100) 90%,
265            transparent
266          );
267          --wui-color-accent-glass-080: color-mix(
268            in srgb,
269            var(--wui-color-accent-base-100) 80%,
270            transparent
271          );
272          --wui-color-accent-glass-020: color-mix(
273            in srgb,
274            var(--wui-color-accent-base-100) 20%,
275            transparent
276          );
277          --wui-color-accent-glass-015: color-mix(
278            in srgb,
279            var(--wui-color-accent-base-100) 15%,
280            transparent
281          );
282          --wui-color-accent-glass-010: color-mix(
283            in srgb,
284            var(--wui-color-accent-base-100) 10%,
285            transparent
286          );
287          --wui-color-accent-glass-005: color-mix(
288            in srgb,
289            var(--wui-color-accent-base-100) 5%,
290            transparent
291          );
292          --wui-color-accent-002: color-mix(
293            in srgb,
294            var(--wui-color-accent-base-100) 2%,
295            transparent
296          );
297
298          --wui-color-fg-100: color-mix(
299            in srgb,
300            var(--w3m-color-mix) var(--w3m-color-mix-strength),
301            var(--wui-color-fg-100)
302          );
303          --wui-color-fg-125: color-mix(
304            in srgb,
305            var(--w3m-color-mix) var(--w3m-color-mix-strength),
306            var(--wui-color-fg-125)
307          );
308          --wui-color-fg-150: color-mix(
309            in srgb,
310            var(--w3m-color-mix) var(--w3m-color-mix-strength),
311            var(--wui-color-fg-150)
312          );
313          --wui-color-fg-175: color-mix(
314            in srgb,
315            var(--w3m-color-mix) var(--w3m-color-mix-strength),
316            var(--wui-color-fg-175)
317          );
318          --wui-color-fg-200: color-mix(
319            in srgb,
320            var(--w3m-color-mix) var(--w3m-color-mix-strength),
321            var(--wui-color-fg-200)
322          );
323          --wui-color-fg-225: color-mix(
324            in srgb,
325            var(--w3m-color-mix) var(--w3m-color-mix-strength),
326            var(--wui-color-fg-225)
327          );
328          --wui-color-fg-250: color-mix(
329            in srgb,
330            var(--w3m-color-mix) var(--w3m-color-mix-strength),
331            var(--wui-color-fg-250)
332          );
333          --wui-color-fg-275: color-mix(
334            in srgb,
335            var(--w3m-color-mix) var(--w3m-color-mix-strength),
336            var(--wui-color-fg-275)
337          );
338          --wui-color-fg-300: color-mix(
339            in srgb,
340            var(--w3m-color-mix) var(--w3m-color-mix-strength),
341            var(--wui-color-fg-300)
342          );
343          --wui-color-fg-325: color-mix(
344            in srgb,
345            var(--w3m-color-mix) var(--w3m-color-mix-strength),
346            var(--wui-color-fg-325)
347          );
348          --wui-color-fg-350: color-mix(
349            in srgb,
350            var(--w3m-color-mix) var(--w3m-color-mix-strength),
351            var(--wui-color-fg-350)
352          );
353
354          --wui-color-bg-100: color-mix(
355            in srgb,
356            var(--w3m-color-mix) var(--w3m-color-mix-strength),
357            var(--wui-color-bg-100)
358          );
359          --wui-color-bg-125: color-mix(
360            in srgb,
361            var(--w3m-color-mix) var(--w3m-color-mix-strength),
362            var(--wui-color-bg-125)
363          );
364          --wui-color-bg-150: color-mix(
365            in srgb,
366            var(--w3m-color-mix) var(--w3m-color-mix-strength),
367            var(--wui-color-bg-150)
368          );
369          --wui-color-bg-175: color-mix(
370            in srgb,
371            var(--w3m-color-mix) var(--w3m-color-mix-strength),
372            var(--wui-color-bg-175)
373          );
374          --wui-color-bg-200: color-mix(
375            in srgb,
376            var(--w3m-color-mix) var(--w3m-color-mix-strength),
377            var(--wui-color-bg-200)
378          );
379          --wui-color-bg-225: color-mix(
380            in srgb,
381            var(--w3m-color-mix) var(--w3m-color-mix-strength),
382            var(--wui-color-bg-225)
383          );
384          --wui-color-bg-250: color-mix(
385            in srgb,
386            var(--w3m-color-mix) var(--w3m-color-mix-strength),
387            var(--wui-color-bg-250)
388          );
389          --wui-color-bg-275: color-mix(
390            in srgb,
391            var(--w3m-color-mix) var(--w3m-color-mix-strength),
392            var(--wui-color-bg-275)
393          );
394          --wui-color-bg-300: color-mix(
395            in srgb,
396            var(--w3m-color-mix) var(--w3m-color-mix-strength),
397            var(--wui-color-bg-300)
398          );
399          --wui-color-bg-325: color-mix(
400            in srgb,
401            var(--w3m-color-mix) var(--w3m-color-mix-strength),
402            var(--wui-color-bg-325)
403          );
404          --wui-color-bg-350: color-mix(
405            in srgb,
406            var(--w3m-color-mix) var(--w3m-color-mix-strength),
407            var(--wui-color-bg-350)
408          );
409
410          --wui-color-success-100: color-mix(
411            in srgb,
412            var(--w3m-color-mix) var(--w3m-color-mix-strength),
413            var(--wui-color-success-base-100)
414          );
415          --wui-color-success-125: color-mix(
416            in srgb,
417            var(--w3m-color-mix) var(--w3m-color-mix-strength),
418            var(--wui-color-success-base-125)
419          );
420
421          --wui-color-warning-100: color-mix(
422            in srgb,
423            var(--w3m-color-mix) var(--w3m-color-mix-strength),
424            var(--wui-color-warning-base-100)
425          );
426
427          --wui-color-error-100: color-mix(
428            in srgb,
429            var(--w3m-color-mix) var(--w3m-color-mix-strength),
430            var(--wui-color-error-base-100)
431          );
432          --wui-color-blue-100: color-mix(
433            in srgb,
434            var(--w3m-color-mix) var(--w3m-color-mix-strength),
435            var(--wui-color-blue-base-100)
436          );
437          --wui-color-blue-90: color-mix(
438            in srgb,
439            var(--w3m-color-mix) var(--w3m-color-mix-strength),
440            var(--wui-color-blue-base-90)
441          );
442          --wui-color-error-125: color-mix(
443            in srgb,
444            var(--w3m-color-mix) var(--w3m-color-mix-strength),
445            var(--wui-color-error-base-125)
446          );
447
448          --wui-icon-box-bg-error-100: color-mix(
449            in srgb,
450            var(--w3m-color-mix) var(--w3m-color-mix-strength),
451            var(--wui-icon-box-bg-error-base-100)
452          );
453          --wui-icon-box-bg-accent-100: color-mix(
454            in srgb,
455            var(--w3m-color-mix) var(--w3m-color-mix-strength),
456            var(--wui-icon-box-bg-blue-base-100)
457          );
458          --wui-icon-box-bg-success-100: color-mix(
459            in srgb,
460            var(--w3m-color-mix) var(--w3m-color-mix-strength),
461            var(--wui-icon-box-bg-success-base-100)
462          );
463          --wui-icon-box-bg-inverse-100: color-mix(
464            in srgb,
465            var(--w3m-color-mix) var(--w3m-color-mix-strength),
466            var(--wui-icon-box-bg-inverse-base-100)
467          );
468
469          --wui-all-wallets-bg-100: color-mix(
470            in srgb,
471            var(--w3m-color-mix) var(--w3m-color-mix-strength),
472            var(--wui-all-wallets-bg-100)
473          );
474
475          --wui-avatar-border: color-mix(
476            in srgb,
477            var(--w3m-color-mix) var(--w3m-color-mix-strength),
478            var(--wui-avatar-border-base)
479          );
480
481          --wui-thumbnail-border: color-mix(
482            in srgb,
483            var(--w3m-color-mix) var(--w3m-color-mix-strength),
484            var(--wui-thumbnail-border-base)
485          );
486
487          --wui-wallet-button-bg: color-mix(
488            in srgb,
489            var(--w3m-color-mix) var(--w3m-color-mix-strength),
490            var(--wui-wallet-button-bg-base)
491          );
492        }
493      }
494    `,
494light:n9`
495      :root {
496        --w3m-color-mix: ${n7(e?.["--w3m-color-mix"]||"#fff")};
497        --w3m-accent: ${n7(e4(e,"dark")["--w3m-accent"])};
498        --w3m-default: #fff;
499
500        --wui-color-modal-bg-base: ${n7(e4(e,"dark")["--w3m-background"])};
501        --wui-color-accent-base-100: var(--w3m-accent);
502
503        --wui-color-blueberry-100: hsla(230, 100%, 67%, 1);
504        --wui-color-blueberry-090: hsla(231, 76%, 61%, 1);
505        --wui-color-blueberry-080: hsla(230, 59%, 55%, 1);
506        --wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1);
507
508        --wui-color-fg-100: #e4e7e7;
509        --wui-color-fg-125: #d0d5d5;
510        --wui-color-fg-150: #a8b1b1;
511        --wui-color-fg-175: #a8b0b0;
512        --wui-color-fg-200: #949e9e;
513        --wui-color-fg-225: #868f8f;
514        --wui-color-fg-250: #788080;
515        --wui-color-fg-275: #788181;
516        --wui-color-fg-300: #6e7777;
517        --wui-color-fg-325: #9a9a9a;
518        --wui-color-fg-350: #363636;
519
520        --wui-color-bg-100: #141414;
521        --wui-color-bg-125: #191a1a;
522        --wui-color-bg-150: #1e1f1f;
523        --wui-color-bg-175: #222525;
524        --wui-color-bg-200: #272a2a;
525        --wui-color-bg-225: #2c3030;
526        --wui-color-bg-250: #313535;
527        --wui-color-bg-275: #363b3b;
528        --wui-color-bg-300: #3b4040;
529        --wui-color-bg-325: #252525;
530        --wui-color-bg-350: #ffffff;
531
532        --wui-color-success-base-100: #26d962;
533        --wui-color-success-base-125: #30a46b;
534
535        --wui-color-warning-base-100: #f3a13f;
536
537        --wui-color-error-base-100: #f25a67;
538        --wui-color-error-base-125: #df4a34;
539
540        --wui-color-blue-base-100: rgba(102, 125, 255, 1);
541        --wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
542
543        --wui-color-success-glass-001: rgba(38, 217, 98, 0.01);
544        --wui-color-success-glass-002: rgba(38, 217, 98, 0.02);
545        --wui-color-success-glass-005: rgba(38, 217, 98, 0.05);
546        --wui-color-success-glass-010: rgba(38, 217, 98, 0.1);
547        --wui-color-success-glass-015: rgba(38, 217, 98, 0.15);
548        --wui-color-success-glass-020: rgba(38, 217, 98, 0.2);
549        --wui-color-success-glass-025: rgba(38, 217, 98, 0.25);
550        --wui-color-success-glass-030: rgba(38, 217, 98, 0.3);
551        --wui-color-success-glass-060: rgba(38, 217, 98, 0.6);
552        --wui-color-success-glass-080: rgba(38, 217, 98, 0.8);
553
554        --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
555
556        --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
557
558        --wui-color-error-glass-001: rgba(242, 90, 103, 0.01);
559        --wui-color-error-glass-002: rgba(242, 90, 103, 0.02);
560        --wui-color-error-glass-005: rgba(242, 90, 103, 0.05);
561        --wui-color-error-glass-010: rgba(242, 90, 103, 0.1);
562        --wui-color-error-glass-015: rgba(242, 90, 103, 0.15);
563        --wui-color-error-glass-020: rgba(242, 90, 103, 0.2);
564        --wui-color-error-glass-025: rgba(242, 90, 103, 0.25);
565        --wui-color-error-glass-030: rgba(242, 90, 103, 0.3);
566        --wui-color-error-glass-060: rgba(242, 90, 103, 0.6);
567        --wui-color-error-glass-080: rgba(242, 90, 103, 0.8);
568
569        --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
570
571        --wui-color-gray-glass-001: rgba(255, 255, 255, 0.01);
572        --wui-color-gray-glass-002: rgba(255, 255, 255, 0.02);
573        --wui-color-gray-glass-005: rgba(255, 255, 255, 0.05);
574        --wui-color-gray-glass-010: rgba(255, 255, 255, 0.1);
575        --wui-color-gray-glass-015: rgba(255, 255, 255, 0.15);
576        --wui-color-gray-glass-020: rgba(255, 255, 255, 0.2);
577        --wui-color-gray-glass-025: rgba(255, 255, 255, 0.25);
578        --wui-color-gray-glass-030: rgba(255, 255, 255, 0.3);
579        --wui-color-gray-glass-060: rgba(255, 255, 255, 0.6);
580        --wui-color-gray-glass-080: rgba(255, 255, 255, 0.8);
581        --wui-color-gray-glass-090: rgba(255, 255, 255, 0.9);
582
583        --wui-color-dark-glass-100: rgba(42, 42, 42, 1);
584
585        --wui-icon-box-bg-error-base-100: #3c2426;
586        --wui-icon-box-bg-blue-base-100: #20303f;
587        --wui-icon-box-bg-success-base-100: #1f3a28;
588        --wui-icon-box-bg-inverse-base-100: #243240;
589
590        --wui-all-wallets-bg-100: #222b35;
591
592        --wui-avatar-border-base: #252525;
593
594        --wui-thumbnail-border-base: #252525;
595
596        --wui-wallet-button-bg-base: var(--wui-color-bg-125);
597
598        --w3m-card-embedded-shadow-color: rgb(17 17 18 / 25%);
599      }
600    `,dark:n9`
601      :root {
602        --w3m-color-mix: ${n7(e?.["--w3m-color-mix"]||"#000")};
603        --w3m-accent: ${n7(e4(e,"light")["--w3m-accent"])};
604        --w3m-default: #000;
605
606        --wui-color-modal-bg-base: ${n7(e4(e,"light")["--w3m-background"])};
607        --wui-color-accent-base-100: var(--w3m-accent);
608
609        --wui-color-blueberry-100: hsla(231, 100%, 70%, 1);
610        --wui-color-blueberry-090: hsla(231, 97%, 72%, 1);
611        --wui-color-blueberry-080: hsla(231, 92%, 74%, 1);
612
613        --wui-color-fg-100: #141414;
614        --wui-color-fg-125: #2d3131;
615        --wui-color-fg-150: #474d4d;
616        --wui-color-fg-175: #636d6d;
617        --wui-color-fg-200: #798686;
618        --wui-color-fg-225: #828f8f;
619        --wui-color-fg-250: #8b9797;
620        --wui-color-fg-275: #95a0a0;
621        --wui-color-fg-300: #9ea9a9;
622        --wui-color-fg-325: #9a9a9a;
623        --wui-color-fg-350: #d0d0d0;
624
625        --wui-color-bg-100: #ffffff;
626        --wui-color-bg-125: #f5fafa;
627        --wui-color-bg-150: #f3f8f8;
628        --wui-color-bg-175: #eef4f4;
629        --wui-color-bg-200: #eaf1f1;
630        --wui-color-bg-225: #e5eded;
631        --wui-color-bg-250: #e1e9e9;
632        --wui-color-bg-275: #dce7e7;
633        --wui-color-bg-300: #d8e3e3;
634        --wui-color-bg-325: #f3f3f3;
635        --wui-color-bg-350: #202020;
636
637        --wui-color-success-base-100: #26b562;
638        --wui-color-success-base-125: #30a46b;
639
640        --wui-color-warning-base-100: #f3a13f;
641
642        --wui-color-error-base-100: #f05142;
643        --wui-color-error-base-125: #df4a34;
644
645        --wui-color-blue-base-100: rgba(102, 125, 255, 1);
646        --wui-color-blue-base-90: rgba(102, 125, 255, 0.9);
647
648        --wui-color-success-glass-001: rgba(38, 181, 98, 0.01);
649        --wui-color-success-glass-002: rgba(38, 181, 98, 0.02);
650        --wui-color-success-glass-005: rgba(38, 181, 98, 0.05);
651        --wui-color-success-glass-010: rgba(38, 181, 98, 0.1);
652        --wui-color-success-glass-015: rgba(38, 181, 98, 0.15);
653        --wui-color-success-glass-020: rgba(38, 181, 98, 0.2);
654        --wui-color-success-glass-025: rgba(38, 181, 98, 0.25);
655        --wui-color-success-glass-030: rgba(38, 181, 98, 0.3);
656        --wui-color-success-glass-060: rgba(38, 181, 98, 0.6);
657        --wui-color-success-glass-080: rgba(38, 181, 98, 0.8);
658
659        --wui-color-success-glass-reown-020: rgba(48, 164, 107, 0.2);
660
661        --wui-color-warning-glass-reown-020: rgba(243, 161, 63, 0.2);
662
663        --wui-color-error-glass-001: rgba(240, 81, 66, 0.01);
664        --wui-color-error-glass-002: rgba(240, 81, 66, 0.02);
665        --wui-color-error-glass-005: rgba(240, 81, 66, 0.05);
666        --wui-color-error-glass-010: rgba(240, 81, 66, 0.1);
667        --wui-color-error-glass-015: rgba(240, 81, 66, 0.15);
668        --wui-color-error-glass-020: rgba(240, 81, 66, 0.2);
669        --wui-color-error-glass-025: rgba(240, 81, 66, 0.25);
670        --wui-color-error-glass-030: rgba(240, 81, 66, 0.3);
671        --wui-color-error-glass-060: rgba(240, 81, 66, 0.6);
672        --wui-color-error-glass-080: rgba(240, 81, 66, 0.8);
673
674        --wui-color-error-glass-reown-020: rgba(223, 74, 52, 0.2);
675
676        --wui-icon-box-bg-error-base-100: #f4dfdd;
677        --wui-icon-box-bg-blue-base-100: #d9ecfb;
678        --wui-icon-box-bg-success-base-100: #daf0e4;
679        --wui-icon-box-bg-inverse-base-100: #dcecfc;
680
681        --wui-all-wallets-bg-100: #e8f1fa;
682
683        --wui-avatar-border-base: #f3f4f4;
684
685        --wui-thumbnail-border-base: #eaefef;
686
687        --wui-wallet-button-bg-base: var(--wui-color-bg-125);
688
689        --wui-color-gray-glass-001: rgba(0, 0, 0, 0.01);
690        --wui-color-gray-glass-002: rgba(0, 0, 0, 0.02);
691        --wui-color-gray-glass-005: rgba(0, 0, 0, 0.05);
692        --wui-color-gray-glass-010: rgba(0, 0, 0, 0.1);
693        --wui-color-gray-glass-015: rgba(0, 0, 0, 0.15);
694        --wui-color-gray-glass-020: rgba(0, 0, 0, 0.2);
695        --wui-color-gray-glass-025: rgba(0, 0, 0, 0.25);
696        --wui-color-gray-glass-030: rgba(0, 0, 0, 0.3);
697        --wui-color-gray-glass-060: rgba(0, 0, 0, 0.6);
698        --wui-color-gray-glass-080: rgba(0, 0, 0, 0.8);
699        --wui-color-gray-glass-090: rgba(0, 0, 0, 0.9);
700
701        --wui-color-dark-glass-100: rgba(233, 233, 233, 1);
702
703        --w3m-card-embedded-shadow-color: rgb(224 225 233 / 25%);
704      }
705    `}}s0?.({LitElement:sQ}),(sJ.litElementVersions??=[]).push("4.2.0");let s3=n9`
706  *,
707  *::after,
708  *::before,
709  :host {
710    margin: 0;
711    padding: 0;
712    box-sizing: border-box;
713    font-style: normal;
714    text-rendering: optimizeSpeed;
715    -webkit-font-smoothing: antialiased;
716    -moz-osx-font-smoothing: grayscale;
717    -webkit-tap-highlight-color: transparent;
718    font-family: var(--wui-font-family);
719    backface-visibility: hidden;
720  }
721`,s5=n9`
722  button,
723  a {
724    cursor: pointer;
725    display: flex;
726    justify-content: center;
727    align-items: center;
728    position: relative;
729    transition:
730      color var(--wui-duration-lg) var(--wui-ease-out-power-1),
731      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
732      border var(--wui-duration-lg) var(--wui-ease-out-power-1),
733      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
734      box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1);
735    will-change: background-color, color, border, box-shadow, border-radius;
736    outline: none;
737    border: none;
738    column-gap: var(--wui-spacing-3xs);
739    background-color: transparent;
740    text-decoration: none;
741  }
742
743  wui-flex {
744    transition: border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);
745    will-change: border-radius;
746  }
747
748  button:disabled > wui-wallet-image,
749  button:disabled > wui-all-wallets-image,
750  button:disabled > wui-network-image,
751  button:disabled > wui-image,
752  button:disabled > wui-transaction-visual,
753  button:disabled > wui-logo {
754    filter: grayscale(1);
755  }
756
757  @media (hover: hover) and (pointer: fine) {
758    button:hover:enabled {
759      background-color: var(--wui-color-gray-glass-005);
760    }
761
762    button:active:enabled {
763      background-color: var(--wui-color-gray-glass-010);
764    }
765  }
766
767  button:disabled > wui-icon-box {
768    opacity: 0.5;
769  }
770
771  input {
772    border: none;
773    outline: none;
774    appearance: none;
775  }
776`,s4=n9`
777  .wui-color-inherit {
778    color: var(--wui-color-inherit);
779  }
780
781  .wui-color-accent-100 {
782    color: var(--wui-color-accent-100);
783  }
784
785  .wui-color-error-100 {
786    color: var(--wui-color-error-100);
787  }
788
789  .wui-color-blue-100 {
790    color: var(--wui-color-blue-100);
791  }
792
793  .wui-color-blue-90 {
794    color: var(--wui-color-blue-90);
795  }
796
797  .wui-color-error-125 {
798    color: var(--wui-color-error-125);
799  }
800
801  .wui-color-success-100 {
802    color: var(--wui-color-success-100);
803  }
804
805  .wui-color-success-125 {
806    color: var(--wui-color-success-125);
807  }
808
809  .wui-color-inverse-100 {
810    color: var(--wui-color-inverse-100);
811  }
812
813  .wui-color-inverse-000 {
814    color: var(--wui-color-inverse-000);
815  }
816
817  .wui-color-fg-100 {
818    color: var(--wui-color-fg-100);
819  }
820
821  .wui-color-fg-200 {
822    color: var(--wui-color-fg-200);
823  }
824
825  .wui-color-fg-300 {
826    color: var(--wui-color-fg-300);
827  }
828
829  .wui-color-fg-325 {
830    color: var(--wui-color-fg-325);
831  }
832
833  .wui-color-fg-350 {
834    color: var(--wui-color-fg-350);
835  }
836
837  .wui-bg-color-inherit {
838    background-color: var(--wui-color-inherit);
839  }
840
841  .wui-bg-color-blue-100 {
842    background-color: var(--wui-color-accent-100);
843  }
844
845  .wui-bg-color-error-100 {
846    background-color: var(--wui-color-error-100);
847  }
848
849  .wui-bg-color-error-125 {
850    background-color: var(--wui-color-error-125);
851  }
852
853  .wui-bg-color-success-100 {
854    background-color: var(--wui-color-success-100);
855  }
856
857  .wui-bg-color-success-125 {
858    background-color: var(--wui-color-success-100);
859  }
860
861  .wui-bg-color-inverse-100 {
862    background-color: var(--wui-color-inverse-100);
863  }
864
865  .wui-bg-color-inverse-000 {
866    background-color: var(--wui-color-inverse-000);
867  }
868
869  .wui-bg-color-fg-100 {
870    background-color: var(--wui-color-fg-100);
871  }
872
873  .wui-bg-color-fg-200 {
874    background-color: var(--wui-color-fg-200);
875  }
876
877  .wui-bg-color-fg-300 {
878    background-color: var(--wui-color-fg-300);
879  }
880
881  .wui-color-fg-325 {
882    background-color: var(--wui-color-fg-325);
883  }
884
885  .wui-color-fg-350 {
886    background-color: var(--wui-color-fg-350);
887  }
888`,s6={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{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,"").replace(/[^a-f0-9]/gu,"").substring(0,6).padEnd(6,"0"),r=this.hexToRgb(t),i=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),a=100-3*Number(i?.replace("px","")),o=`${a}% ${a}% at 65% 40%`,n=[];for(let e=0;e<5;e+=1){let t=this.tintColor(r,.15*e);n.push(`rgb(${t[0]}, ${t[1]}, ${t[2]})`)}return`
889    --local-color-1: ${n[0]};
890    --local-color-2: ${n[1]};
891    --local-color-3: ${n[2]};
892    --local-color-4: ${n[3]};
893    --local-color-5: ${n[4]};
894    --local-radial-circle: ${o}
895   `},hexToRgb(e){let t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},tintColor(e,t){let[r,i,a]=e;return[Math.round(r+(255-r)*t),Math.round(i+(255-i)*t),Math.round(a+(255-a)*t)]},isNumber:e=>/^[0-9]+$/u.test(e),getColorTheme:e=>e||("u">typeof window&&window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)")?.matches?"dar
895k":"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})};function s8(e){return function(t){return"function"==typeof t?(customElements.get(e)||customElements.define(e,t),t):function(e,t){let{kind:r,elements:i}=t;return{kind:r,elements:i,finisher(t){customElements.get(e)||customElements.define(e,t)}}}(e,t)}}var s7=function(e){if(e.length>=255)throw TypeError("Alphabet too long");let t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let r=0;r<e.length;r++){let i=e.charAt(r),a=i.charCodeAt(0);if(255!==t[a])throw TypeError(i+" is ambiguous");t[a]=r}let r=e.length,i=e.charAt(0),a=Math.log(r)/Math.log(256),o=Math.log(256)/Math.log(r);function n(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;let o=0,n=0,s=0;for(;e[o]===i;)n++,o++;let l=(e.length-o)*a+1>>>0,c=new Uint8Array(l);for(;o<e.length;){let i=e.charCodeAt(o);if(i>255)return;let a=t[i];if(255===a)return;let n=0;for(let e=l-1;(0!==a||n<s)&&-1!==e;e--,n++)a+=r*c[e]>>>0,c[e]=a%256>>>0,a=a/256>>>0;if(0!==a)throw Error("Non-zero carry");s=n,o++}let d=l-s;for(;d!==l&&0===c[d];)d++;let u=new Uint8Array(n+(l-d)),h=n;for(;d!==l;)u[h++]=c[d++];return u}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"";let a=0,n=0,s=0,l=t.length;for(;s!==l&&0===t[s];)s++,a++;let c=(l-s)*o+1>>>0,d=new Uint8Array(c);for(;s!==l;){let e=t[s],i=0;for(let t=c-1;(0!==e||i<n)&&-1!==t;t--,i++)e+=256*d[t]>>>0,d[t]=e%r>>>0,e=e/r>>>0;if(0!==e)throw Error("Non-zero carry");n=i,s++}let u=c-n;for(;u!==c&&0===d[u];)u++;let h=i.repeat(a);for(;u<c;++u)h+=e.charAt(d[u]);return h},decodeUnsafe:n,decode:function(e){let t=n(e);if(t)return t;throw Error("Non-base"+r+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");let s9={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}};function le(e,t){var r;let i;return"deposit"===(r=e).type||"u">typeof r.sourceHash?function(e){!function(e){let{from:t,to:r}=e;if(t&&!rY(t))throw new rV({address:t});if(r&&!rY(r))throw new rV({address:r})}(e);let{sourceHash:t,data:r,from:i,gas:a,isSystemTx:o,mint:n,to:s,value:l}=e;return rX(["0x7e",iB([t,i,s??"0x",n?ro(n):"0x",l?ro(l):"0x",a?ro(a):"0x",o?"0x1":"0x",r??"0x"])])}(e):"eip1559"===(i=function(e){if(e.type)return e.type;if("u">typeof e.authorizationList)return"eip7702";if("u">typeof e.blobs||"u">typeof e.blobVersionedHashes||"u">typeof e.maxFeePerBlobGas||"u">typeof e.sidecars)return"eip4844";if("u">typeof e.maxFeePerGas||"u">typeof e.maxPriorityFeePerGas)return"eip1559";if("u">typeof e.gasPrice)return"u">typeof e.accessList?"eip2930":"legacy";throw new ie({transaction:e})}(e))?function(e,t){let{chainId:r,gas:i,nonce:a,to:o,value:n,maxFeePerGas:s,maxPriorityFeePerGas:l,accessList:c,data:d}=e;ac(e);let u=ad(c);return rX(["0x02",iB([ro(r),a?ro(a):"0x",l?ro(l):"0x",s?ro(s):"0x",i?ro(i):"0x",o??"0x",n?ro(n):"0x",d??"0x",u,...au(e,t)])])}(e,t):"eip2930"===i?function(e,t){let{chainId:r,gas:i,data:a,nonce:o,to:n,value:s,accessList:l,gasPrice:c}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:i,maxFeePerGas:a,to:o}=e;if(t<=0)throw new i6({chainId:t});if(o&&!rY(o))throw new rV({address:o});if(r||a)throw new t5("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(i&&i>iH)throw new iU({maxFeePerGas:i})}(e);let d=ad(l);return rX(["0x01",iB([ro(r),o?ro(o):"0x",c?ro(c):"0x",i?ro(i):"0x",n??"0x",s?ro(s):"0x",a??"0x",d,...au(e,t)])])}(e,t):"eip4844"===i?function(e,t){let{chainId:r,gas:i,nonce:a,to:o,value:n,maxFeePerBlobGas:s,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:d,data:u}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new i3;for(let e of t){let t=t1(e),r=ri(function(e,{strict:t}={}){return t0(e,{strict:!1})?function(e,{strict:t}={}){rJ(e,0);let r=`0x${e.replace("0x","").slice(0,2)}`;return t&&rQ(r,0,1),r}(e,{strict:t}):function(e,{strict:t}={}){rJ(e,0);let r=e.slice(0,1);return t&&rQ(r,0,1),r}(e,{strict:t})}(e));if(32!==t)throw new i5({hash:e,size:t});if(1!==r)throw new i4({hash:e,version:r})}}ac(e)}(e);let h=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(typeof h>"u"||typeof p>"u")){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>rn(e)),r=e.kzg,i=iG({blobs:t,kzg:r});if(typeof h>
895"u"&&(h=function(e){let{commitments:t,version:r}=e,i=e.to??("string"==typeof t[0]?"hex":"bytes"),a=[];for(let e of t)a.push(function(e){let{commitment:t,version:r=1}=e,i=e.to??("string"==typeof t?"hex":"bytes"),a=i1(t0(t,{strict:!1})?ru(t):t);return a.set([r],0),"bytes"===i?a:rn(a)}({commitment:e,to:i,version:r}));return a}({commitments:i})),typeof p>"u"){let e=iK({blobs:t,commitments:i,kzg:r});p=function(e){let{data:t,kzg:r,to:i}=e,a=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?rp(e.data):e.data,i=t1(r);if(!i)throw new i3;if(i>761855)throw new i2({maxSize:761855,size:i});let a=[],o=!0,n=0;for(;o;){let e=r5(new Uint8Array(131072)),t=0;for(;t<4096;){let i=r.slice(n,n+31);if(e.pushByte(0),e.pushBytes(i),i.length<31){e.pushByte(128),o=!1;break}t++,n+=31}a.push(e)}return"bytes"===t?a.map(e=>e.bytes):a.map(e=>rn(e.bytes))}({data:t,to:i}),o=e.commitments??iG({blobs:a,kzg:r,to:i}),n=e.proofs??iK({blobs:a,commitments:o,kzg:r,to:i}),s=[];for(let e=0;e<a.length;e++)s.push({blob:a[e],commitment:o[e],proof:n[e]});return s}({blobs:t,commitments:i,proofs:e})}}let g=ad(d),f=[ro(r),a?ro(a):"0x",c?ro(c):"0x",l?ro(l):"0x",i?ro(i):"0x",o??"0x",n?ro(n):"0x",u??"0x",g,s?ro(s):"0x",h??[],...au(e,t)],w=[],m=[],v=[];if(p)for(let e=0;e<p.length;e++){let{blob:t,commitment:r,proof:i}=p[e];w.push(t),m.push(r),v.push(i)}return rX(["0x03",iB(p?[f,w,m,v]:f)])}(e,t):"eip7702"===i?function(e,t){let{authorizationList:r,chainId:i,gas:a,nonce:o,to:n,value:s,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:d,data:u}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{chainId:t}=e,r=e.address;if(!rY(r))throw new rV({address:r});if(t<0)throw new i6({chainId:t})}ac(e)}(e);let h=ad(d),p=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e){let{chainId:e,nonce:i,...a}=r,o=r.address;t.push([e?ro(e):"0x",o,i?ro(i):"0x",...au({},a)])}return t}(r);return rX(["0x04",iB([ro(i),o?ro(o):"0x",c?ro(c):"0x",l?ro(l):"0x",a?ro(a):"0x",n??"0x",s?ro(s):"0x",u??"0x",h,p,...au(e,t)])])}(e,t):function(e,t){let{chainId:r=0,gas:i,data:a,nonce:o,to:n,value:s,gasPrice:l}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:r,gasPrice:i,maxFeePerGas:a,to:o}=e;if(o&&!rY(o))throw new rV({address:o});if("u">typeof t&&t<=0)throw new i6({chainId:t});if(r||a)throw new t5("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(i&&i>iH)throw new iU({maxFeePerGas:i})}(e);let c=[o?ro(o):"0x",l?ro(l):"0x",i?ro(i):"0x",n??"0x",s?ro(s):"0x",a??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(r>0)return BigInt(2*r)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new r9({v:t.v});return e})(),i=re(t.r),a=re(t.s);c=[...c,ro(e),"0x00"===i?"0x":i,"0x00"===a?"0x":a]}else r>0&&(c=[...c,ro(r),"0x","0x"]);return iB(c)}(e,t)}let lt={contracts:s9,formatters:{block:iq({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=iV(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?rr(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:iZ({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?rr(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:ap({format:e=>({l1GasPrice:e.l1GasPrice?rr(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?rr(e.l1GasUsed):null,l1Fee:e.l1Fee?rr(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},serializers:{transaction:le}};function lr(e){return 0===e||0n===e||null==e||"0"===e||""===e||"string"==typeof e&&("0x"===re(e).toLowerCase()||"0x00"===re(e).toLowerCase())}({...lt,contracts:{...lt.contracts,l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"5",portal:"5",l1StandardBridge:"5"}}),lt.contracts,al({id:53456,name:"BirdLayer",nativeCurrency:{decimals:18,name:"Ether",symbol
895:"ETH"},rpcUrls:{default:{http:["https://rpc.birdlayer.xyz","https://rpc1.birdlayer.xyz"],webSocket:["wss://rpc.birdlayer.xyz/ws"]}},blockExplorers:{default:{name:"BirdLayer Explorer",url:"https://scan.birdlayer.xyz"}}}),lt.contracts,al({...lt,id:60808,name:"BOB",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.gobob.xyz"],webSocket:["wss://rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Explorer",url:"https://explorer.gobob.xyz"}},contracts:{...lt.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:23131},l2OutputOracle:{1:{address:"0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",blockCreated:4462615}},portal:{1:{address:"0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",blockCreated:4462615}}},sourceId:1}),al({...lt,id:808813,name:"BOB Sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://bob-sepolia.rpc.gobob.xyz"],webSocket:["wss://bob-sepolia.rpc.gobob.xyz"]}},blockExplorers:{default:{name:"BOB Sepolia Explorer",url:"https://bob-sepolia.explorer.gobob.xyz"}},contracts:{...lt.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:35677},l2OutputOracle:{0xaa36a7:{address:"0x14D0069452b4AE2b250B395b8adAb771E4267d2f",blockCreated:4462615}},portal:{0xaa36a7:{address:"0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",blockCreated:4462615}}},testnet:!0,sourceId:0xaa36a7});function li(e){return"cip64"===e.type||"u">typeof e.maxFeePerGas&&"u">typeof e.maxPriorityFeePerGas&&!lr(e.feeCurrency)}iq({format:e=>({transactions:e.transactions?.map(e=>"string"==typeof e?e:{...iV(e),...e.gatewayFee?{gatewayFee:rr(e.gatewayFee),gatewayFeeRecipient:e.gatewayFeeRecipient}:{},feeCurrency:e.feeCurrency}),...e.randomness?{randomness:e.randomness}:{}})}),iZ({format(e){if("0x7e"===e.type)return{isSystemTx:e.isSystemTx,mint:e.mint?rr(e.mint):void 0,sourceHash:e.sourceHash,type:"deposit"};let t={feeCurrency:e.feeCurrency};return"0x7b"===e.type?t.type="cip64":("0x7c"===e.type&&(t.type="cip42"),t.gatewayFee=e.gatewayFee?rr(e.gatewayFee):null,t.gatewayFeeRecipient=e.gatewayFeeRecipient),t}}),iW({format(e){let t={};return e.feeCurrency&&(t.feeCurrency=e.feeCurrency),li(e)&&(t.type="0x7b"),t}});function la(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}al({id:44,name:"Crab Network",nativeCurrency:{decimals:18,name:"Crab Network Native Token",symbol:"CRAB"},rpcUrls:{default:{http:["https://crab-rpc.darwinia.network"],webSocket:["wss://crab-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://crab-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3032593}}}),al({id:66665,name:"Creator",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.creatorchain.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.creatorchain.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"}},testnet:!0}),lt.contracts,lt.contracts,al({id:53457,name:"DODOchain Testnet",nativeCurrency:{decimals:18,name:"DODO",symbol:"DODO"},rpcUrls:{default:{http:["https://dodochain-testnet.alt.technology"],webSocket:["wss://dodochain-testnet.alt.technology/ws"]}},blockExplorers:{default:{name:"DODOchain Testnet (Sepolia) Explorer",url:"https://testnet-scan.dodochain.com"}},testnet:!0}),({...lt.contracts,addressManager:"1",l1CrossDomainMessenger:"1",l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}),({...lt.contracts,addressManager:"11155111",l1CrossDomainMessenger:"11155111",l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),lt.contracts,lt.contracts,al({...lt,id:3397901,network:"funkiSepolia",name:"Funki Sepolia Sandbox",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://funki-testnet.alt.technology"]}},blockExplorers:{default:{name:"Funki Sepolia Sandbox Explorer",url:"https://sepolia-sandbox.funkichain.com/"}},testnet:!0,contracts:{...lt.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204}},sourceId:0xaa36a7}),al({...lt,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,nativeCurrency:{name:"Ether",symbol
895:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...lt.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",portal:"1",l1StandardBridge:"1"}}),lt.contracts,al({id:701,name:"Koi Network",nativeCurrency:{decimals:18,name:"Koi Network Native Token",symbol:"KRING"},rpcUrls:{default:{http:["https://koi-rpc.darwinia.network"],webSocket:["wss://koi-rpc.darwinia.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://koi-scan.darwinia.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:180001}},testnet:!0}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),({...lt.contracts,l2OutputOracle:"56",portal:"56",l1StandardBridge:"56"}),({...lt.contracts,l2OutputOracle:"97",portal:"97",l1StandardBridge:"97"}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"5",portal:"5",l1StandardBridge:"5"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"11155111",l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),al({...lt,name:"Pyrope Testnet",testnet:!0,id:695569,sourceId:0xaa36a7,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.pyropechain.com"],webSocket:["wss://rpc.pyropechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://pyrope.blockscout.com"}},contracts:{...lt.contracts,l1StandardBridge:{0xaa36a7:{address:"0xC24932c31D9621aE9e792576152B7ef010cFC2F8"}}}}),al({...lt,name:"Redstone",id:690,sourceId:1,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...lt.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:0x12abdd9}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:0x12abde1}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:0x12abddb}}}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),lt.contracts,lt.contracts,({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"11155111",l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"11155111",l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),lt.contracts,lt.contracts,lt.contracts,({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,portal:"11155111",l1StandardBridge:"11155111",disputeGameFactory:"11155111"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"1",l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,disputeGameFactory:"11155111",l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"1",portal:"1",l1StandardBridge:"1"}}),({...lt,contracts:{...lt.contracts,l2OutputOracle:"11155111",portal:"11155111",l1StandardBridge:"11155111"}}),{...lt,contracts:{...lt.contracts,portal:"5"}};let lo=la({id:"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",name:"Solana",network:"solana-mainnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!1,chainNamespace:"solana",caipNetworkId:"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",deprecatedCaipNetworkId:"solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ"}
895),ln=la({id:"EtWTRABZaYq6iMfeYKouRu166VU2xqa1",name:"Solana Devnet",network:"solana-devnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",deprecatedCaipNetworkId:"solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K"});la({id:"4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",name:"Solana Testnet",network:"solana-testnet",nativeCurrency:{name:"Solana",symbol:"SOL",decimals:9},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},blockExplorers:{default:{name:"Solscan",url:"https://solscan.io"}},testnet:!0,chainNamespace:"solana",caipNetworkId:"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z"}),la({id:"000000000019d6689c085ae165831e93",caipNetworkId:"bip122:000000000019d6689c085ae165831e93",chainNamespace:"bip122",name:"Bitcoin",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}}),la({id:"000000000933ea01ad0ee984209779ba",caipNetworkId:"bip122:000000000933ea01ad0ee984209779ba",chainNamespace:"bip122",name:"Bitcoin Testnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}},testnet:!0});let ls={solana:["solana_signMessage","solana_signTransaction","solana_requestAccounts","solana_getAccounts","solana_signAllTransactions","solana_signAndSendTransaction"],eip155:["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_getCallsStatus","wallet_showCallsStatus","wallet_sendCalls","wallet_getCapabilities","wallet_grantPermissions","wallet_revokePermissions","wallet_getAssets"],bip122:["sendTransfer","signMessage","signPsbt","getAccountAddresses"]},ll={getMethodsByChainNamespace:e=>ls[e]||[],createDefaultNamespace(e){return{methods:this.getMethodsByChainNamespace(e),events:["accountsChanged","chainChanged"],chains:[],rpcMap:{}}},applyNamespaceOverrides(e,t){if(!t)return{...e};let r={...e},i=new Set;if(t.methods&&Object.keys(t.methods).forEach(e=>i.add(e)),t.chains&&Object.keys(t.chains).forEach(e=>i.add(e)),t.events&&Object.keys(t.events).forEach(e=>i.add(e)),t.rpcMap&&Object.keys(t.rpcMap).forEach(e=>{let[t]=e.split(":");t&&i.add(t)}),i.forEach(e=>{r[e]||(r[e]=this.createDefaultNamespace(e))}),t.methods&&Object.entries(t.methods).forEach(([e,t])=>{r[e]&&(r[e].methods=t)}),t.chains&&Object.entries(t.chains).forEach(([e,t])=>{r[e]&&(r[e].chains=t)}),t.events&&Object.entries(t.events).forEach(([e,t])=>{r[e]&&(r[e].events=t)}),t.rpcMap){let e=new Set;Object.entries(t.rpcMap).forEach(([t,i])=>{let[a,o]=t.split(":");a&&o&&r[a]&&(r[a].rpcMap||(r[a].rpcMap={}),e.has(a)||(r[a].rpcMap={},e.add(a)),r[a].rpcMap[o]=i)})}return r},createNamespaces(e,t){let r=e.reduce((e,t)=>{let{id:r,chainNamespace:i,rpcUrls:a}=t,o=a.default.http[0];e[i]||(e[i]=this.createDefaultNamespace(i));let n=`${i}:${r}`,s=e[i];switch(s.chains.push(n),n){case lo.caipNetworkId:s.chains.push(lo.deprecatedCaipNetworkId);break;case ln.caipNetworkId:s.chains.push(ln.deprecatedCaipNetworkId)}return s?.rpcMap&&o&&(s.rpcMap[r]=o),e},{});return this.applyNamespaceOverrides(r,t)},resolveReownName:async e=>{let t=await nu.resolveName(e);return(Object.values(t?.addresses)||[])[0]?.address||!1},getChainsFromNamespaces:(e={})=>Object.values(e).flatMap(e=>Array.from(new Set([...e.chains||[],...e.accounts.map(e=>{let[t,r]=e.split(":");return`${t}:${r}`})]))),isSessionEventData:e=>"object"==typeof e&&null!==e&&"id"in e&&"topic"in e&&"params"in e&&"object"==typeof e.params&&null!==e.params&&"chainId"in e.params&&"event"in e.params&&"object"==typeof e.params.event&&null!==e.params.event};class lc{constructor({provider:e,namespace:t}){this.id=eS,this.name=nf[eS],this.type="WALLET_CONNECT",this.imageId=ng[eS],this.getCaipNetworks=o8.getCaipNetworks.bind(o8),this.caipNetworks=this.getCaipNetworks(),this.provider=e,this.chain=t}get chains(){return this.getCaipNetworks()}async connectWalletConnect(){if(!await this.authenticate()){let e=this.getCaipNetworks(),t=tA.state.universalProviderConfigOverride,r=ll.createNamespaces(e,t);await this.provider.connect({optionalNamespaces:r})}return{clientId:await this.provider.client.core.crypto.getClientId(),session:this.provider.session}}async disconnect(){await this.provider.disconnect()}async authenticate(){let e=this.chains.map(e=>e.caipNetworkId);return tq.universalProviderAuthenticate({universalProvider:this.provider,chains:e,methods:ld})}}let ld=["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_getCallsStatus","wallet_sendCalls","wallet_getCapabilities","wallet_grantPermissions","wallet_revokePermissions","wallet_getAssets"];class lu{constructor(e){this.availableConnectors=[],this.eventListeners=new Map,this.getCaipNetworks=e=>o8.getCaipNetworks(e),e&&this.construct(e)}construct(e){this.projectId=e.projectId,this.namespace=e.namespace,this.adapterType=e.adapterType}get connectors(){return this.availableConnectors}get networks(){return this.getCaipNetworks(this.namespace)}
895setAuthProvider(e){this.addConnector({id:eT,type:"AUTH",name:eR,provider:e,imageId:ng[eT],chain:this.namespace,chains:[]})}addConnector(...e){let t=new Set;this.availableConnectors=[...e,...this.availableConnectors].filter(e=>!t.has(e.id)&&(t.add(e.id),!0)),this.emit("connectors",this.availableConnectors)}setStatus(e,t){ni.setStatus(e,t)}on(e,t){this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e)?.add(t)}off(e,t){let r=this.eventListeners.get(e);r&&r.delete(t)}removeAllEventListeners(){this.eventListeners.forEach(e=>{e.clear()})}emit(e,t){let r=this.eventListeners.get(e);r&&r.forEach(e=>e(t))}async connectWalletConnect(e){return{clientId:(await this.getWalletConnectConnector().connectWalletConnect()).clientId}}async switchNetwork(e){let{caipNetwork:t,providerType:r}=e;if(!e.provider)return;let i="provider"in e.provider?e.provider.provider:e.provider;if("WALLET_CONNECT"===r)return void i.setDefaultChain(t.caipNetworkId);if(i&&"AUTH"===r){let e=ni.state.preferredAccountTypes?.[t.chainNamespace];await i.switchNetwork(t.caipNetworkId);let r=await i.getUser({chainId:t.caipNetworkId,preferredAccountType:e});this.emit("switchNetwork",r)}}getWalletConnectConnector(){let e=this.connectors.find(e=>e instanceof lc);if(!e)throw Error("WalletConnectConnector not found");return e}}class lh extends lu{setUniversalProvider(e){this.addConnector(new lc({provider:e,caipNetworks:this.getCaipNetworks(),namespace:this.namespace}))}async connect(e){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:Number(e.chainId),provider:this.provider,address:""})}async disconnect(){try{await this.getWalletConnectConnector().disconnect()}catch(e){console.warn("UniversalAdapter:disconnect - error",e)}}async getAccounts({namespace:e}){return Promise.resolve({accounts:(this.provider?.session?.namespaces?.[e]?.accounts?.map(e=>{let[,,t]=e.split(":");return t}).filter((e,t,r)=>r.indexOf(e)===t)||[]).map(t=>tp.createAccount(e,t,"bip122"===e?"payment":"eoa"))})}async syncConnectors(){return Promise.resolve()}async getBalance(e){if(!(e.caipNetwork&&tu.BALANCE_SUPPORTED_CHAINS.includes(e.caipNetwork?.chainNamespace))||e.caipNetwork?.testnet)return{balance:"0.00",symbol:e.caipNetwork?.nativeCurrency.symbol||""};if(ni.state.balanceLoading&&e.chainId===o8.state.activeCaipNetwork?.id)return{balance:ni.state.balance||"0.00",symbol:ni.state.balanceSymbol||""};let t=(await ni.fetchTokenBalance()).find(t=>t.chainId===`${e.caipNetwork?.chainNamespace}:${e.chainId}`&&t.symbol===e.caipNetwork?.nativeCurrency.symbol);return{balance:t?.quantity.numeric||"0.00",symbol:t?.symbol||e.caipNetwork?.nativeCurrency.symbol||""}}async signMessage(e){let{provider:t,message:r,address:i}=e;if(!t)throw Error("UniversalAdapter:signMessage - provider is undefined");return{signature:o8.state.activeCaipNetwork?.chainNamespace===eM?(await t.request({method:"solana_signMessage",params:{message:s7.encode(new TextEncoder().encode(r)),pubkey:i}},o8.state.activeCaipNetwork?.caipNetworkId)).signature:await t.request({method:"personal_sign",params:[r,i]},o8.state.activeCaipNetwork?.caipNetworkId)}}async estimateGas(){return Promise.resolve({gas:BigInt(0)})}async getProfile(){return Promise.resolve({profileImage:"",profileName:""})}async sendTransaction(){return Promise.resolve({hash:""})}walletGetAssets(e){return Promise.resolve({})}async writeContract(){return Promise.resolve({hash:""})}async getEnsAddress(){return Promise.resolve({address:!1})}parseUnits(){return 0n}formatUnits(){return"0"}async getCapabilities(){return Promise.resolve({})}async grantPermissions(){return Promise.resolve({})}async revokePermissions(){return Promise.resolve("0x")}async syncConnection(){return Promise.resolve({id:"WALLET_CONNECT",type:"WALLET_CONNECT",chainId:1,provider:this.provider,address:""})}async switchNetwork(e){let{caipNetwork:t}=e,r=this.getWalletConnectConnector();if(t.chainNamespace===eL)try{await r.provider?.request({method:"wallet_switchEthereumChain",params:[{chainId:ro(t.id)}]})}catch(e){if(4902===e.code||32603===e.code||5e3===e.code||e?.data?.originalError?.code===4902)try{await r.provider?.request({method:"wallet_addEthereumChain",params:[{chainId:ro(t.id),rpcUrls:[t?.rpcUrls.chainDefault?.http],chainName:t.name,nativeCurrency:t.nativeCurrency,blockExplorerUrls:[t.blockExplorers?.default.url]}]})}catch{throw Error("Chain is not supported")}}r.provider.setDefaultChain(t.caipNetworkId)}getWalletConnectProvider(){return this.connectors.find(e=>"WALLET_CONNECT"===e.type)?.provider}}class lp{constructor(e){this.chainNamespaces=[],this.reportedAlertErrors={},this.getCaipNetwork=(e,t)=>{if(e){let r=o8.getNetworkData(e)?.requestedCaipNetworks?.find(e=>e.id===t);return r||o8.getNetworkData(e)?.caipNetwork||o8.getRequestedCaipNetworks(e).filter(t=>t.chainNamespace===e)?.[0]}return o8.state.activeCaipNetwork||this.defaultCaipNetwork},this.getCaipNetworkId=()=>{let e=this.getCaipNetwork();if(e)return e.id},this.getCaipNetworks=e=>o8.getCaipNetworks(e),this.getActiveChainNamespace=()=>o8.state.activeChain,this.setRequestedCaipNetworks=(e,t)=>{o8.setRequestedCaipNetworks(e,t)},this.getApprovedCaipNetworkIds=()=>o8.getAllApprovedCaipNetworkIds(),this.getCaipAddress=e=>o8.state.activeChain!==e&&e?o8.getAccountProp("caipAddress",e):o8.state.activeCaipAddress,this.setClientId=e=>{nt.setClientId(e)},this.getProvider=e=>nQ.getProvider(e),this.getProviderType=e=>nQ.getProviderId(e),this.getPreferredAccountType=e=>ni.state.preferredAccountTypes?.[e],this.setCaipAddress=(e,t)=>{ni.setCaipAddress(e,t)},this.setBalance=(e,t,r)=>{ni.setBalance(e,t,r)},this.setProfileName=(e,t)=>
895{ni.setProfileName(e,t)},this.setProfileImage=(e,t)=>{ni.setProfileImage(e,t)},this.setUser=(e,t)=>{ni.setUser(e,t),tA.state.enableEmbedded&&no.close()},this.resetAccount=e=>{ni.resetAccount(e)},this.setCaipNetwork=e=>{o8.setActiveCaipNetwork(e)},this.setCaipNetworkOfNamespace=(e,t)=>{o8.setChainNetworkData(t,{caipNetwork:e})},this.setAllAccounts=(e,t)=>{ni.setAllAccounts(e,t),tA.setHasMultipleAddresses(e?.length>1)},this.setStatus=(e,t)=>{ni.setStatus(e,t),tD.isConnected()?th.setConnectionStatus("connected"):th.setConnectionStatus("disconnected")},this.getAddressByChainNamespace=e=>o8.getAccountProp("address",e),this.setConnectors=e=>{let t=[...tD.state.allConnectors,...e];tD.setConnectors(t)},this.fetchIdentity=e=>nt.fetchIdentity(e),this.getReownName=e=>nu.getNamesForAddress(e),this.getConnectors=()=>tD.getConnectors(),this.getConnectorImage=e=>tC.getConnectorImage(e),this.setConnectedWalletInfo=(e,t)=>{let r=nQ.getProviderId(t),i=e?{...e,type:r}:void 0;ni.setConnectedWalletInfo(i,t)},this.getIsConnectedState=()=>!!o8.state.activeCaipAddress,this.addAddressLabel=(e,t,r)=>{ni.addAddressLabel(e,t,r)},this.removeAddressLabel=(e,t)=>
895{ni.removeAddressLabel(e,t)},this.getAddress=e=>o8.state.activeChain!==e&&e?o8.getAccountProp("address",e):ni.state.address,this.setApprovedCaipNetworksData=e=>o8.setApprovedCaipNetworksData(e),this.resetNetwork=e=>{o8.resetNetwork(e)},this.addConnector=e=>{tD.addConnector(e)},this.resetWcConnection=()=>{tX.resetWcConnection()},this.setAddressExplorerUrl=(e,t)=>{ni.setAddressExplorerUrl(e,t)},this.setSmartAccountDeployed=(e,t)=>{ni.setSmartAccountDeployed(e,t)},this.setSmartAccountEnabledNetworks=(e,t)=>{o8.setSmartAccountEnabledNetworks(e,t)},this.setPreferredAccountType=(e,t)=>{ni.setPreferredAccountType(e,t)},this.setEIP6963Enabled=e=>{tA.setEIP6963Enabled(e)},this.handleUnsafeRPCRequest=()=>{this.isOpen()?this.isTransactionStackEmpty()||this.redirect("ApproveTransaction"):this.open({view:"ApproveTransaction"})},this.options=e,this.version=e.sdkVersion,this.caipNetworks=this.extendCaipNetworks(e),this.chainNamespaces=this.getChainNamespacesSet(e.adapters,this.caipNetworks),this.defaultCaipNetwork=this.extendDefaultCaipNetwork(e),this.chainAdapters=this.createAdapters(e.adapters),this.initialize(e)}getChainNamespacesSet(e,t){let r=e?.map(e=>e.namespace).filter(e=>!!e);return r?.length?[...new Set(r)]:[...new Set(t?.map(e=>e.chainNamespace))]}async initialize(e){this.initControllers(e),await this.initChainAdapters(),await this.injectModalUi(),this.sendInitializeEvent(e),tQ.set({initialized:!0}),await this.syncExistingConnection()}sendInitializeEvent(e){let{...t}=e;delete t.adapters,delete t.universalProvider,t_.sendEvent({type:"track",event:"INITIALIZE",properties:{...t,networks:e.networks.map(e=>e.id),siweConfig:{options:e.siweConfig?.options||{}}}})}initControllers(e){this.initializeOptionsController(e),this.initializeChainController(e),this.initializeThemeController(e),this.initializeConnectionController(e),this.initializeConnectorController()}initializeThemeController(e){e.themeMode&&tU.setThemeMode(e.themeMode),e.themeVariables&&tU.setThemeVariables(e.themeVariables)}initializeChainController(e){if(!this.connectionControllerClient||!this.networkControllerClient)throw Error("ConnectionControllerClient and NetworkControllerClient must be set");o8.initialize(e.adapters??[],this.caipNetworks,{connectionControllerClient:this.connectionControllerClient,networkControllerClient:this.networkControllerClient});let t=this.getDefaultNetwork();t&&o8.setActiveCaipNetwork(t)}initializeConnectionController(e){tX.setWcBasic(e.basic??!1)}initializeConnectorController(){tD.initialize(this.chainNamespaces)}initializeOptionsController(e){tA.setDebug(!1!==e.debug),tA.setEnableWalletConnect(!1!==e.enableWalletConnect),tA.setEnableWalletGuide(!1!==e.enableWalletGuide),tA.setEnableWallets(!1!==e.enableWallets),tA.setEIP6963Enabled(!1!==e.enableEIP6963),tA.setEnableNetworkSwitch(!1!==e.enableNetworkSwitch),tA.setEnableAuthLogger(!1!==e.enableAuthLogger),tA.setCustomRpcUrls(e.customRpcUrls),tA.setSdkVersion(e.sdkVersion),tA.setProjectId(e.projectId),tA.setEnableEmbedded(e.enableEmbedded),tA.setAllWallets(e.allWallets),tA.setIncludeWalletIds(e.includeWalletIds),tA.setExcludeWalletIds(e.excludeWalletIds),tA.setFeaturedWalletIds(e.featuredWalletIds),tA.setTokens(e.tokens),tA.setTermsConditionsUrl(e.termsConditionsUrl),tA.setPrivacyPolicyUrl(e.privacyPolicyUrl),tA.setCustomWallets(e.customWallets),tA.setFeatures(e.features),tA.setAllowUnsupportedChain(e.allowUnsupportedChain),tA.setUniversalProviderConfigOverride(e.universalProviderConfigOverride),tA.setDefaultAccountTypes(e.defaultAccountTypes);let t=th.getPreferredAccountTypes(),r={...tA.state.defaultAccountTypes,...t};ni.setPreferredAccountTypes(r);let i=this.getDefaultMetaData();if(!e.metadata&&i&&(e.metadata=i),tA.setMetadata(e.metadata),tA.setDisableAppend(e.disableAppend),tA.setEnableEmbedded(e.enableEmbedded),tA.setSIWX(e.siwx),!e.projectId)return void tE.open(nv.PROJECT_ID_NOT_CONFIGURED,"error");if(e.adapters?.find(e=>e.namespace===eL)&&e.siweConfig){if(e.siwx)throw Error("Cannot set both `siweConfig` and `siwx` options");tA.setSIWX(e.siweConfig.mapToSIWX())}}getDefaultMetaData(){return"u">typeof window&&"u">typeof document?{name:document.getElementsByTagName("title")?.[0]?.textContent||"",description:document.querySelector('meta[property="og:description"]')?.content||"",url:window.location.origin,icons:[document.querySelector('link[rel~="icon"]')?.href||""]}:null}setUnsupportedNetwork(e){let t=this.getActiveChainNamespace();if(t){let r=nY.getUnsupportedNetwork(`${t}:${e}`);o8.setActiveCaipNetwork(r)}}getDefaultNetwork(){return nY.getCaipNetworkFromStorage(this.defaultCaipNetwork)}extendCaipNetwork(e,t){return nY.extendCaipNetwork(e,{customNetworkImageUrls:t.chainImages,projectId:t.projectId})}extendCaipNetworks(e){return nY.extendCaipNetworks(e.networks,{customNetworkImageUrls:e.chainImages,customRpcUrls:e.customRpcUrls,projectId:e.projectId})}extendDefaultCaipNetwork(e){let t=e.networks.find(t=>
895t.id===e.defaultNetwork?.id);return t?nY.extendCaipNetwork(t,{customNetworkImageUrls:e.chainImages,customRpcUrls:e.customRpcUrls,projectId:e.projectId}):void 0}createClients(){this.connectionControllerClient={connectWalletConnect:async()=>{let e=o8.state.activeChain,t=this.getAdapter(e),r=this.getCaipNetwork(e)?.id;if(!t)throw Error("Adapter not found");let i=await t.connectWalletConnect(r);this.close(),this.setClientId(i?.clientId||null),th.setConnectedNamespaces([...o8.state.chains.keys()]),this.chainNamespaces.forEach(e=>{tD.setConnectorId(nh,e)}),await this.syncWalletConnectAccount()},connectExternal:async({id:e,info:t,type:r,provider:i,chain:a,caipNetwork:o})=>{let n=o8.state.activeChain,s=a||n,l=this.getAdapter(s);if(a&&a!==n&&!o){let e=this.getCaipNetworks().find(e=>e.chainNamespace===a);e&&this.setCaipNetwork(e)}if(!l)throw Error("Adapter not found");let c=this.getCaipNetwork(s),d=await l.connect({id:e,info:t,type:r,provider:i,chainId:o?.id||c?.id,rpcUrl:o?.rpcUrls?.default?.http?.[0]||c?.rpcUrls?.default?.http?.[0]});if(!d)return;th.addConnectedNamespace(s),this.syncProvider({...d,chainNamespace:s});let{accounts:u}=await l.getAccounts({namespace:s,id:e});this.setAllAccounts(u,s),this.setStatus("connected",s)},reconnectExternal:async({id:e,info:t,type:r,provider:i})=>{let a=o8.state.activeChain,o=this.getAdapter(a);o?.reconnect&&(await o?.reconnect({id:e,info:t,type:r,provider:i,chainId:this.getCaipNetwork()?.id}),th.addConnectedNamespace(a))},disconnect:async e=>{let t=e||o8.state.activeChain,r=this.getAdapter(t),i=nQ.getProvider(t),a=nQ.getProviderId(t);await r?.disconnect({provider:i,providerType:a}),th.removeConnectedNamespace(t),nQ.resetChain(t),this.setUser(void 0,t),this.setStatus("disconnected",t)},checkInstalled:e=>e?e.some(e=>!!window.ethereum?.[String(e)]):!!window.ethereum,signMessage:async e=>(await this.getAdapter(o8.state.activeChain)?.signMessage({message:e,address:ni.state.address,provider:nQ.getProvider(o8.state.activeChain)}))?.signature||"",sendTransaction:async e=>{if(e.chainNamespace===eL){let t=this.getAdapter(o8.state.activeChain),r=nQ.getProvider(o8.state.activeChain);return(await t?.sendTransaction({...e,caipNetwork:this.getCaipNetwork(),provider:r}))?.hash||""}return""},estimateGas:async e=>{if(e.chainNamespace===eL){let t=this.getAdapter(o8.state.activeChain),r=nQ.getProvider(o8.state.activeChain),i=this.getCaipNetwork();if(!i)throw Error("CaipNetwork is undefined");return(await t?.estimateGas({...e,provider:r,caipNetwork:i}))?.gas||0n}return 0n},getEnsAvatar:async()=>(await this.getAdapter(o8.state.activeChain)?.getProfile({address:ni.state.address,chainId:Number(this.getCaipNetwork()?.id)}))?.profileImage||!1,getEnsAddress:async e=>{let t=this.getAdapter(o8.state.activeChain),r=this.getCaipNetwork();return r&&(await t?.getEnsAddress({name:e,caipNetwork:r}))?.address||!1},writeContract:async e=>{let t=this.getAdapter(o8.state.activeChain),r=this.getCaipNetwork(),i=this.getCaipAddress(),a=nQ.getProvider(o8.state.activeChain);if(!r||!i)throw Error("CaipNetwork or CaipAddress is undefined");return(await t?.writeContract({...e,caipNetwork:r,provider:a,caipAddress:i}))?.hash},parseUnits:(e,t)=>this.getAdapter(o8.state.activeChain)?.parseUnits({value:e,decimals:t})??0n,formatUnits:(e,t)=>this.getAdapter(o8.state.activeChain)?.formatUnits({value:e,decimals:t})??"0",getCapabilities:async e=>await this.getAdapter(o8.state.activeChain)?.getCapabilities(e),grantPermissions:async e=>await this.getAdapter(o8.state.activeChain)?.grantPermissions(e),revokePermissions:async e=>{let t=this.getAdapter(o8.state.activeChain);return t?.revokePermissions?await t.revokePermissions(e):"0x"},walletGetAssets:async e=>await this.getAdapter(o8.state.activeChain)?.walletGetAssets(e)??{}},this.networkControllerClient={switchCaipNetwork:async e=>await this.switchCaipNetwork(e),getApprovedCaipNetworksData:async()=>this.getApprovedCaipNetworksData()},tX.setClient(this.connectionControllerClient)}getApprovedCaipNetworksData(){if(nQ.getProviderId(o8.state.activeChain)===nh){let e=this.universalProvider?.session?.namespaces;return{supportsAllNetworks:this.universalProvider?.session?.peer?.metadata.name==="MetaMask Wallet",approvedCaipNetworkIds:this.getChainsFromNamespaces(e)}}return{supportsAllNetworks:!0,approvedCaipNetworkIds:[]}}async switchCaipNetwork(e){if(!e)return;let t=e.chainNamespace;if(this.getAddressByChainNamespace(e.chainNamespace)){let r=nQ.getProvider(t),i=nQ.getProviderId(t);if(e.chainNamespace===o8.state.activeChain)await this.getAdapter(t)?.switchNetwork({caipNetwork:e,provider:r,providerType:i});else if(this.setCaipNetwork(e),i===nh)this.syncWalletConnectAccount();else{let r=this.getAddressByChainNamespace(t);r&&this.syncAccount({address:r,chainId:e.id,chainNamespace:t})}}else this.setCaipNetwork(e)}
895getChainsFromNamespaces(e={}){return Object.values(e).flatMap(e=>Array.from(new Set([...e.chains||[],...e.accounts.map(e=>{let{chainId:t,chainNamespace:r}=eW.parseCaipAddress(e);return`${r}:${t}`})])))}createAdapters(e){return this.createClients(),this.chainNamespaces.reduce((t,r)=>{let i=e?.find(e=>e.namespace===r);return i?(i.construct({namespace:r,projectId:this.options?.projectId,networks:this.getCaipNetworks()}),t[r]=i):t[r]=new lh({namespace:r,networks:this.getCaipNetworks()}),t},{})}async initChainAdapter(e){this.onConnectors(e),this.listenAdapter(e),this.chainAdapters?.[e].syncConnectors(this.options,this),await this.createUniversalProviderForAdapter(e)}async initChainAdapters(){await Promise.all(this.chainNamespaces.map(async e=>{await this.initChainAdapter(e)}))}onConnectors(e){this.getAdapter(e)?.on("connectors",this.setConnectors.bind(this))}listenAdapter(e){let t=this.getAdapter(e);if(!t)return;let r=th.getConnectionStatus();"connected"===r?this.setStatus("connecting",e):("disconnected"===r&&th.clearAddressCache(),this.setStatus(r,e)),t.on("switchNetwork",({address:t,chainId:r})=>{let i=this.getCaipNetworks().find(e=>e.id===r||e.caipNetworkId===r),a=o8.state.activeChain===e,o=o8.getAccountProp("address",e);if(i){let r=a&&t?t:o;r&&this.syncAccount({address:r,chainId:i.id,chainNamespace:e})}else this.setUnsupportedNetwork(r)}),t.on("disconnect",this.disconnect.bind(this,e)),t.on("pendingTransactions",()=>{let e=ni.state.address,t=o8.state.activeCaipNetwork;e&&t?.id&&this.updateNativeBalance(e,t.id,t.chainNamespace)}),t.on("accountChanged",({address:t,chainId:r})=>{let i=o8.state.activeChain===e;i&&r?this.syncAccount({address:t,chainId:r,chainNamespace:e}):i&&o8.state.activeCaipNetwork?.id?this.syncAccount({address:t,chainId:o8.state.activeCaipNetwork?.id,chainNamespace:e}):this.syncAccountInfo(t,r,e)})}async createUniversalProviderForAdapter(e){await this.getUniversalProvider(),this.universalProvider&&this.chainAdapters?.[e]?.setUniversalProvider?.(this.universalProvider)}async syncExistingConnection(){await Promise.allSettled(this.chainNamespaces.map(e=>this.syncNamespaceConnection(e)))}async syncNamespaceConnection(e){try{let t=tD.getConnectorId(e);switch(this.setStatus("connecting",e),t){case eS:await this.syncWalletConnectAccount();break;case eT:break;default:await this.syncAdapterConnection(e)}}catch(t){console.warn("AppKit couldn't sync existing connection",t),this.setStatus("disconnected",e)}}async syncAdapterConnection(e){let t=this.getAdapter(e),r=tD.getConnectorId(e),i=this.getCaipNetwork(e),a=tD.getConnectors(e).find(e=>e.id===r);try{if(!t||!a)throw Error(`Adapter or connector not found for namespace ${e}`);if(!i?.id)throw Error("CaipNetwork not found");let r=await t?.syncConnection({namespace:e,id:a.id,chainId:i.id,rpcUrl:i?.rpcUrls?.default?.http?.[0]});if(r){let i=await t?.getAccounts({namespace:e,id:a.id});i&&i.accounts.length>0?this.setAllAccounts(i.accounts,e):this.setAllAccounts([tp.createAccount(e,r.address,"eoa")],e),this.syncProvider({...r,chainNamespace:e}),await this.syncAccount({...r,chainNamespace:e}),this.setStatus("connected",e)}else this.setStatus("disconnected",e)}catch{this.setStatus("disconnected",e)}}async syncWalletConnectAccount(){let e=this.chainNamespaces.map(async e=>{let t=this.getAdapter(e),r=this.universalProvider?.session?.namespaces?.[e]?.accounts||[],i=o8.state.activeCaipNetwork?.id,a=r.find(e=>{let{chainId:t}=eW.parseCaipAddress(e);return t===i?.toString()})||r[0];if(a){let r=eW.validateCaipAddress(a),{chainId:i,address:o}=eW.parseCaipAddress(r);if(nQ.setProviderId(e,nh),this.caipNetworks&&o8.state.activeCaipNetwork&&t?.namespace!==eL){let r=t?.getWalletConnectProvider({caipNetworks:this.getCaipNetworks(),provider:this.universalProvider,activeCaipNetwork:o8.state.activeCaipNetwork});nQ.setProvider(e,r)}else nQ.setProvider(e,this.universalProvider);tD.setConnectorId(eS,e),th.addConnectedNamespace(e),this.syncWalletConnectAccounts(e),await this.syncAccount({address:o,chainId:i,chainNamespace:e})}else this.setStatus("disconnected",e);await o8.setApprovedCaipNetworksData(e)});await Promise.all(e)}syncWalletConnectAccounts(e){let t=this.universalProvider?.session?.namespaces?.[e]?.accounts?.map(e=>{let{address:t}=eW.parseCaipAddress(e);return t}).filter((e,t,r)=>r.indexOf(e)===t);t&&this.setAllAccounts(t.map(t=>
895tp.createAccount(e,t,"bip122"===e?"payment":"eoa")),e)}syncProvider({type:e,provider:t,id:r,chainNamespace:i}){nQ.setProviderId(i,e),nQ.setProvider(i,t),tD.setConnectorId(r,i)}async syncAccount(e){let t=e.chainNamespace===o8.state.activeChain,r=o8.getCaipNetworkByNamespace(e.chainNamespace,e.chainId),{address:i,chainId:a,chainNamespace:o}=e,{chainId:n}=th.getActiveNetworkProps(),s=a||n,l=o8.state.activeCaipNetwork?.name===eD,c=o8.getNetworkProp("supportsAllNetworks",o);if(this.setStatus("connected",o),!(l&&!c)&&s){let e=this.getCaipNetworks().find(e=>e.id.toString()===s.toString()),a=this.getCaipNetworks().find(e=>e.chainNamespace===o);if(!c&&!e&&!a){let t=this.getApprovedCaipNetworkIds()||[],r=t.find(e=>eW.parseCaipNetworkId(e)?.chainId===s.toString()),i=t.find(e=>eW.parseCaipNetworkId(e)?.chainNamespace===o);e=this.getCaipNetworks().find(e=>e.caipNetworkId===r),a=this.getCaipNetworks().find(e=>e.caipNetworkId===i||"deprecatedCaipNetworkId"in e&&e.deprecatedCaipNetworkId===i)}let n=e||a;n?.chainNamespace===o8.state.activeChain?tA.state.enableNetworkSwitch&&!tA.state.allowUnsupportedChain&&o8.state.activeCaipNetwork?.name===eD?o8.showUnsupportedChainUI():this.setCaipNetwork(n):t||r&&this.setCaipNetworkOfNamespace(r,o),this.syncConnectedWalletInfo(o),nw.isLowerCaseMatch(i,ni.state.address)||this.syncAccountInfo(i,n?.id,o),t?await this.syncBalance({address:i,chainId:n?.id,chainNamespace:o}):await this.syncBalance({address:i,chainId:r?.id,chainNamespace:o})}}async syncAccountInfo(e,t,r){let i=this.getCaipAddress(r),a=t||i?.split(":")[1];if(!a)return;let o=`${r}:${a}:${e}`;this.setCaipAddress(o,r),await this.syncIdentity({address:e,chainId:a,chainNamespace:r})}async syncReownName(e,t){try{let r=await this.getReownName(e);if(r[0]){let e=r[0];this.setProfileName(e.name,t)}else this.setProfileName(null,t)}catch{this.setProfileName(null,t)}}syncConnectedWalletInfo(e){let t=tD.getConnectorId(e),r=nQ.getProviderId(e);if("ANNOUNCED"===r||"INJECTED"===r){if(t){let r=this.getConnectors().find(e=>e.id===t);if(r){let{info:t,name:i,imageUrl:a}=r,o=a||this.getConnectorImage(r);this.setConnectedWalletInfo({name:i,icon:o,...t},e)}}}else if(r===nh){let t=nQ.getProvider(e);t?.session&&this.setConnectedWalletInfo({...t.session.peer.metadata,name:t.session.peer.metadata.name,icon:t.session.peer.metadata.icons?.[0]},e)}else if(t)if(t===eP){let t=this.getConnectors().find(e=>e.id===eP);this.setConnectedWalletInfo({name:"Coinbase Wallet",icon:this.getConnectorImage(t)},e)}else this.setConnectedWalletInfo({name:t},e)}async syncBalance(e){eh.getNetworksByNamespace(this.getCaipNetworks(),e.chainNamespace).find(t=>t.id.toString()===e.chainId?.toString())&&e.chainId&&await this.updateNativeBalance(e.address,e.chainId,e.chainNamespace)}async updateNativeBalance(e,t,r){let i=this.getAdapter(r),a=o8.getCaipNetworkByNamespace(r,t);if(i){let o=await i.getBalance({address:e,chainId:t,caipNetwork:a,tokens:this.options.tokens});this.setBalance(o.balance,o.symbol,r)}}async initializeUniversalAdapter(){let e=nq.createLogger((e,...t)=>{e&&this.handleAlertError(e),console.error(...t)}),t={projectId:this.options?.projectId,metadata:{name:this.options?.metadata?this.options?.metadata.name:"",description:this.options?.metadata?this.options?.metadata.description:"",url:this.options?.metadata?this.options?.metadata.url:"",icons:this.options?.metadata?this.options?.metadata.icons:[""]},logger:e};tA.setManualWCControl(!!this.options?.manualWCControl),this.universalProvider=this.options.universalProvider??await U.A.init(t),this.listenWalletConnect()}listenWalletConnect(){this.universalProvider&&(this.universalProvider.on("display_uri",e=>{tX.setUri(e)}),this.universalProvider.on("connect",tX.finalizeWcConnection),this.universalProvider.on("disconnect",()=>{this.chainNamespaces.forEach(e=>{this.resetAccount(e)}),tX.resetWcConnection()}),this.universalProvider.on("chainChanged",e=>{let t=this.getCaipNetworks().find(t=>t.id==e),r=this.getCaipNetwork();t?r?.id!==t?.id&&this.setCaipNetwork(t):this.setUnsupportedNetwork(e)}),this.universalProvider.on("session_event",e=>{if(ll.isSessionEventData(e)){let{name:t,data:r}=e.params.event;"accountsChanged"===t&&Array.isArray(r)&&tp.isCaipAddress(r[0])&&this.syncAccount(eW.parseCaipAddress(r[0])
895)}}))}createUniversalProvider(){return!this.universalProviderInitPromise&&tp.isClient()&&this.options?.projectId&&(this.universalProviderInitPromise=this.initializeUniversalAdapter()),this.universalProviderInitPromise}async getUniversalProvider(){if(!this.universalProvider)try{await this.createUniversalProvider()}catch(e){t_.sendEvent({type:"error",event:"INTERNAL_SDK_ERROR",properties:{errorType:"UniversalProviderInitError",errorMessage:e instanceof Error?e.message:"Unknown",uncaught:!1}}),console.error("AppKit:getUniversalProvider - Cannot create provider",e)}return this.universalProvider}handleAlertError(e){let[t,r]=Object.entries(nm).find(([,{message:t}])=>e.message.includes(t))??[],{message:i,alertErrorKey:a}=r??{};if(t&&i&&!this.reportedAlertErrors[t]){let e=nv[a];e&&(tE.open(e,"error"),this.reportedAlertErrors[t]=!0)}}getAdapter(e){if(e)return this.chainAdapters?.[e]}createAdapter(e){if(!e)return;let t=e.namespace;t&&(this.createClients(),e.namespace=t,e.construct({namespace:t,projectId:this.options?.projectId,networks:this.getCaipNetworks()}),this.chainNamespaces.includes(t)||this.chainNamespaces.push(t),this.chainAdapters&&(this.chainAdapters[t]=e))}async open(e){return(await this.injectModalUi(),e?.uri&&tX.setUri(e.uri),e?.arguments&&e?.view==="Swap")?no.open({...e,data:{swap:e.arguments}}):no.open(e)}async close(){await this.injectModalUi(),no.close()}setLoading(e,t){no.setLoading(e,t)}async disconnect(e){await tX.disconnect(e)}getError(){return""}getChainId(){return o8.state.activeCaipNetwork?.id}async switchNetwork(e){let t=this.getCaipNetworks().find(t=>t.id===e.id);t?await o8.switchActiveNetwork(t):tE.open(nv.SWITCH_NETWORK_NOT_FOUND,"error")}getWalletProvider(){return o8.state.activeChain?nQ.state.providers[o8.state.activeChain]:null}getWalletProviderType(){return nQ.getProviderId(o8.state.activeChain)}subscribeProviders(e){return nQ.subscribeProviders(e)}getThemeMode(){return tU.state.themeMode}getThemeVariables(){return tU.state.themeVariables}setThemeMode(e){tU.setThemeMode(e),s1(tU.state.themeMode)}setTermsConditionsUrl(e){tA.setTermsConditionsUrl(e)}setPrivacyPolicyUrl(e){tA.setPrivacyPolicyUrl(e)}setThemeVariables(e){var t;tU.setThemeVariables(e),t=tU.state.themeVariables,a&&o&&n&&(a.textContent=s2(t).core.cssText,o.textContent=s2(t).dark.cssText,n.textContent=s2(t).light.cssText)}subscribeTheme(e){return tU.subscribe(e)}getWalletInfo(){return ni.state.connectedWalletInfo}getAccount(e){let t=tD.getAuthConnector(e),r=o8.getAccountData(e),i=o8.state.activeChain;if(r)return{allAccounts:r.allAccounts,caipAddress:r.caipAddress,address:tp.getPlainAddress(r.caipAddress),isConnected:!!r.caipAddress,status:r.status,embeddedWalletInfo:t?{user:r.user?{...r.user,username:th.getConnectedSocialUsername()}:void 0,authProvider:r.socialProvider||"email",accountType:r.preferredAccountTypes?.[e||i],isSmartAccountDeployed:!!r.smartAccountDeployed}:void 0}}subscribeAccount(e,t){let r=()=>{let r=this.getAccount(t);r&&e(r)};t?o8.subscribeChainProp("accountState",r,t):o8.subscribe(r),tD.subscribe(r)}subscribeNetwork(e){return o8.subscribe(({activeCaipNetwork:t})=>{e({caipNetwork:t,chainId:t?.id,caipNetworkId:t?.caipNetworkId})})}subscribeWalletInfo(e){return ni.subscribeKey("connectedWalletInfo",e)}subscribeShouldUpdateToAddress(e){ni.subscribeKey("shouldUpdateToAddress",e)}subscribeCaipNetworkChange(e){o8.subscribeKey("activeCaipNetwork",e)}getState(){return tQ.state}subscribeState(e){return tQ.subscribe(e)}showErrorMessage(e){tZ.showError(e)}showSuccessMessage(e){tZ.showSuccess(e)}getEvent(){return{...t_.state}}subscribeEvents(e){return t_.subscribe(e)}replace(e){tL.replace(e)}redirect(e){tL.push(e)}popTransactionStack(e){tL.popTransactionStack(e)}isOpen(){return no.state.open}isTransactionStackEmpty(){return 0===tL.state.transactionStack.length}isTransactionShouldReplaceView(){return tL.state.transactionStack[tL.state.transactionStack.length-1]?.replace}static getInstance(){return this.instance}updateFeatures(e){tA.setFeatures(e)}updateOptions(e){let t={...tA.state||{},...e};tA.setOptions(t)}setConnectMethodsOrder(e){tA.setConnectMethodsOrder(e)}setWalletFeaturesOrder(e){tA.setWalletFeaturesOrder(e)}setCollapseWallets(e){tA.setCollapseWallets(e)}setSocialsOrder(e){tA.setSocialsOrder(e)}getConnectMethodsOrder(){return n1.getConnectOrderMethod(tA.state.features,tD.getConnectors())}addNetwork(e,t){if(this.chainAdapters&&!this.chainAdapters[e])throw Error(`Adapter for namespace ${e} doesn't exist`);let r=this.extendCaipNetwork(t,this.options);this.getCaipNetworks().find(e=>e.id===r.id)||o8.addNetwork(r)}removeNetwork(e,t){if(this.chainAdapters&&!this.chainAdapters[e])throw Error(`Adapter for namespace ${e} doesn't exist`);this.getCaipNetworks().find(e=>e.id===t)&&o8.removeNetwork(e,t)}}let lg=!1;class lf extends lp{async open(e){tD.isConnected()||await super.open(e)}async close(){await super.close(),this.options.manualWCControl&&tX.finalizeWcConnection()}async syncIdentity(e){return Promise.resolve()}async syncBalance(e){return Promise.resolve()}
895async injectModalUi(){if(!lg&&tp.isClient()){if(await Promise.resolve().then(function(){return uG}),await Promise.resolve().then(function(){return hx}),!document.querySelector("w3m-modal")){let e=document.createElement("w3m-modal");tA.state.disableAppend||tA.state.enableEmbedded||document.body.insertAdjacentElement("beforeend",e)}lg=!0}}}var lw=Object.freeze({__proto__:null,createAppKit:function(e){return new lf({...e,basic:!0,sdkVersion:"html-core-1.7.3"})},AppKit:lf}),lm=Object.defineProperty,lv=Object.defineProperties,lb=Object.getOwnPropertyDescriptors,ly=Object.getOwnPropertySymbols,lC=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,lk=(e,t,r)=>t in e?lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let lA=e=>{let[t,r]=e.split(":");return la({id:r,caipNetworkId:e,chainNamespace:t,name:"",nativeCurrency:{name:"",symbol:"",decimals:8},rpcUrls:{default:{http:["https://rpc.walletconnect.org/v1"]}}})};var lI=Object.freeze({__proto__:null,convertWCMToAppKitOptions:function(e){var t,r,i,a,o,n,s;let l=null==(t=e.chains)?void 0:t.map(lA).filter(Boolean);if(0===l.length)throw Error("At least one chain must be specified");let c=l.find(t=>{var r;return t.id===(null==(r=e.defaultChain)?void 0:r.id)}),d={projectId:e.projectId,networks:l,themeMode:e.themeMode,themeVariables:function(e){if(e)return{"--w3m-font-family":e["--wcm-font-family"],"--w3m-accent":e["--wcm-accent-color"],"--w3m-color-mix":e["--wcm-background-color"],"--w3m-z-index":e["--wcm-z-index"]?Number(e["--wcm-z-index"]):void 0,"--w3m-qr-color":e["--wcm-accent-color"],"--w3m-font-size-master":e["--wcm-text-medium-regular-size"],"--w3m-border-radius-master":e["--wcm-container-border-radius"],"--w3m-color-mix-strength":0}}(e.themeVariables),chainImages:e.chainImages,connectorImages:e.walletImages,defaultNetwork:c,metadata:lv(((e,t)=>{for(var r in t||(t={}))lC.call(t,r)&&lk(e,r,t[r]);if(ly)for(var r of ly(t))lx.call(t,r)&&lk(e,r,t[r]);return e})({},e.metadata),lb({name:(null==(r=e.metadata)?void 0:r.name)||"WalletConnect",description:(null==(i=e.metadata)?void 0:i.description)||"Connect to WalletConnect-compatible wallets",url:(null==(a=e.metadata)?void 0:a.url)||"https://walletconnect.org",icons:(null==(o=e.metadata)?void 0:o.icons)||["https://walletconnect.org/walletconnect-logo.png"]})),showWallets:!0,featuredWalletIds:"NONE"===e.explorerRecommendedWalletIds?[]:Array.isArray(e.explorerRecommendedWalletIds)?e.explorerRecommendedWalletIds:[],excludeWalletIds:"ALL"===e.explorerExcludedWalletIds?[]:Array.isArray(e.explorerExcludedWalletIds)?e.explorerExcludedWalletIds:[],enableEIP6963:!1,enableInjected:!1,enableCoinbase:!0,enableWalletConnect:!0,features:{email:!1,socials:!1}};if(null!=(n=e.mobileWallets)&&n.length||null!=(s=e.desktopWallets)&&s.length){let t=[...(e.mobileWallets||[]).map(e=>({id:e.id,name:e.name,links:e.links})),...(e.desktopWallets||[]).map(e=>({id:e.id,name:e.name,links:{native:e.links.native,universal:e.links.universal}}))],r=[...d.featuredWalletIds||[],...d.excludeWalletIds||[]],i=t.filter(e=>!r.includes(e.id));i.length&&(d.customWallets=i)}return d}});let lE={attribute:!0,type:String,converter:su,reflect:!1,hasChanged:sh};function lS(e){return(t,r)=>{let i;return"object"==typeof r?((e=lE,t,r)=>{let{kind:i,metadata:a}=r,o=globalThis.litPropertyMetadata.get(a);if(void 0===o&&globalThis.litPropertyMetadata.set(a,o=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),o.set(r.name,e),"accessor"===i){let{name:i}=r;return{set(r){let a=t.get.call(this);t.set.call(this,r),this.requestUpdate(i,a,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){let{name:i}=r;return function(r){let a=this[i];t.call(this,r),this.requestUpdate(i,a,e)}}throw Error("Unsupported decorator location: "+i)})(e,t,r):(i=t.hasOwnProperty(r),t.constructor.createProperty(r,e),i?Object.getOwnPropertyDescriptor(t,r):void 0)}}function lN(e){return lS({...e,state:!0,attribute:!1})}var lP=n9`
896  :host {
897    display: flex;
898    width: inherit;
899    height: inherit;
900  }
901`,l_=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
901);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let l$=class extends sQ{render(){return this.style.cssText=`
902      flex-direction: ${this.flexDirection};
903      flex-wrap: ${this.flexWrap};
904      flex-basis: ${this.flexBasis};
905      flex-grow: ${this.flexGrow};
906      flex-shrink: ${this.flexShrink};
907      align-items: ${this.alignItems};
908      justify-content: ${this.justifyContent};
909      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
910      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
911      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
912      padding-top: ${this.padding&&s6.getSpacingStyles(this.padding,0)};
913      padding-right: ${this.padding&&s6.getSpacingStyles(this.padding,1)};
914      padding-bottom: ${this.padding&&s6.getSpacingStyles(this.padding,2)};
915      padding-left: ${this.padding&&s6.getSpacingStyles(this.padding,3)};
916      margin-top: ${this.margin&&s6.getSpacingStyles(this.margin,0)};
917      margin-right: ${this.margin&&s6.getSpacingStyles(this.margin,1)};
918      margin-bottom: ${this.margin&&s6.getSpacingStyles(this.margin,2)};
919      margin-left: ${this.margin&&s6.getSpacingStyles(this.margin,3)};
920    `,sB`<slot></slot>`}};l$.styles=[s3,lP],l_([lS()],l$.prototype,"flexDirection",void 0),l_([lS()],l$.prototype,"flexWrap",void 0),l_([lS()],l$.prototype,"flexBasis",void 0),l_([lS()],l$.prototype,"flexGrow",void 0),l_([lS()],l$.prototype,"flexShrink",void 0),l_([lS()],l$.prototype,"alignItems",void 0),l_([lS()],l$.prototype,"justifyContent",void 0),l_([lS()],l$.prototype,"columnGap",void 0),l_([lS()],l$.prototype,"rowGap",void 0),l_([lS()],l$.prototype,"gap",void 0),l_([lS()],l$.prototype,"padding",void 0),l_([lS()],l$.prototype,"margin",void 0),l$=l_([s8("wui-flex")],l$);let lO=e=>(...t)=>({_$litDirective$:e,values:t});class lT{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 lR=(e,t)=>{let r=e._$AN;if(void 0===r)return!1;for(let e of r)e._$AO?.(t,!1),lR(e,t);return!0},lB=e=>{let t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(r?.size===0)},lL=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),lz(t)}};function lM(e){void 0!==this._$AN?(lB(this),this._$AM=e,lL(this)):this._$AM=e}function lU(e,t=!1,r=0){let i=this._$AH,a=this._$AN;if(void 0!==a&&0!==a.size)if(t)if(Array.isArray(i))for(let e=r;e<i.length;e++)lR(i[e],!1),lB(i[e]);else null!=i&&(lR(i,!1),lB(i));else lR(this,e)}let lz=e=>{2==e.type&&(e._$AP??=lU,e._$AQ??=lM)};class lj extends lT{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),lL(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(lR(this,e),lB(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class lD{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class lW{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}let lH=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then;class lF extends lj{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new lD(this),this._$CX=new lW}render(...e){return e.find(e=>!lH(e))??sM}update(e,t){let r=this._$Cbt,i=r.length;this._$Cbt=t;let a=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){let n=t[e];if(!lH(n))return this._$Cwt=e,n;e<i&&n===r[e]||(this._$Cwt=0x3fffffff,i=0,Promise.resolve(n).then(async e=>{for(;o.get();)await o.get();let t=a.deref();if(void 0!==t){let r=t._$Cbt.indexOf(n);r>-1&&r<t._$Cwt&&(t._$Cwt=r,t.setValue(e))}}))}return sM}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}let lV=lO(lF);class lZ{constructor(){this.cache=new Map}set(e,t){this.cache.set(e,t)}get(e){return this.cache.get(e)}has(e){return this.cache.has(e)}delete(e){this.cache.delete(e)}clear(){this.cache.clear()}}let lq=new lZ;var lG=n9`
921  :host {
922    display: flex;
923    aspect-ratio: var(--local-aspect-ratio);
924    color: var(--local-color);
925    width: var(--local-width);
926  }
927
928  svg {
929    width: inherit;
930    height: inherit;
931    object-fit: contain;
932    object-position: center;
933  }
934
935  .fallback {
936    width: var(--local-width);
937    height: var(--local-height);
938  }
939`,lK=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
939);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let lY={add:async()=>(await Promise.resolve().then(function(){return hk})).addSvg,allWallets:async()=>(await Promise.resolve().then(function(){return hA})).allWalletsSvg,arrowBottomCircle:async()=>(await Promise.resolve().then(function(){return hI})).arrowBottomCircleSvg,appStore:async()=>(await Promise.resolve().then(function(){return hE})).appStoreSvg,apple:async()=>(await Promise.resolve().then(function(){return hS})).appleSvg,arrowBottom:async()=>(await Promise.resolve().then(function(){return hN})).arrowBottomSvg,arrowLeft:async()=>(await Promise.resolve().then(function(){return hP})).arrowLeftSvg,arrowRight:async()=>(await Promise.resolve().then(function(){return h_})).arrowRightSvg,arrowTop:async()=>(await Promise.resolve().then(function(){return h$})).arrowTopSvg,bank:async()=>(await Promise.resolve().then(function(){return hO})).bankSvg,browser:async()=>(await Promise.resolve().then(function(){return hT})).browserSvg,card:async()=>(await Promise.resolve().then(function(){return hR})).cardSvg,checkmark:async()=>(await Promise.resolve().then(function(){return hB})).checkmarkSvg,checkmarkBold:async()=>(await Promise.resolve().then(function(){return hL})).checkmarkBoldSvg,chevronBottom:async()=>(await Promise.resolve().then(function(){return hM})).chevronBottomSvg,chevronLeft:async()=>(await Promise.resolve().then(function(){return hU})).chevronLeftSvg,chevronRight:async()=>(await Promise.resolve().then(function(){return hz})).chevronRightSvg,chevronTop:async()=>(await Promise.resolve().then(function(){return hj})).chevronTopSvg,chromeStore:async()=>(await Promise.resolve().then(function(){return hD})).chromeStoreSvg,clock:async()=>(await Promise.resolve().then(function(){return hW})).clockSvg,close:async()=>(await Promise.resolve().then(function(){return hH})).closeSvg,compass:async()=>(await Promise.resolve().then(function(){return hF})).compassSvg,coinPlaceholder:async()=>(await Promise.resolve().then(function(){return hV})).coinPlaceholderSvg,copy:async()=>(await Promise.resolve().then(function(){return hZ})).copySvg,cursor:async()=>(await Promise.resolve().then(function(){return hq})).cursorSvg,cursorTransparent:async()=>(await Promise.resolve().then(function(){return hG})).cursorTransparentSvg,desktop:async()=>(await Promise.resolve().then(function(){return hK})).desktopSvg,disconnect:async()=>(await Promise.resolve().then(function(){return hY})).disconnectSvg,discord:async()=>(await Promise.resolve().then(function(){return hX})).discordSvg,etherscan:async()=>(await Promise.resolve().then(function(){return hJ})).etherscanSvg,extension:async()=>(await Promise.resolve().then(function(){return hQ})).extensionSvg,externalLink:async()=>(await Promise.resolve().then(function(){return h0})).externalLinkSvg,facebook:async()=>(await Promise.resolve().then(function(){return h1})).facebookSvg,farcaster:async()=>(await Promise.resolve().then(function(){return h2})).farcasterSvg,filters:async()=>(await Promise.resolve().then(function(){return h3})).filtersSvg,github:async()=>(await Promise.resolve().then(function(){return h5})).githubSvg,google:async()=>(await Promise.resolve().then(function(){return h4})).googleSvg,helpCircle:async()=>(await Promise.resolve().then(function(){return h6})).helpCircleSvg,image:async()=>(await Promise.resolve().then(function(){return h8})).imageSvg,id:async()=>(await Promise.resolve().then(function(){return h7})).idSvg,infoCircle:async()=>(await Promise.resolve().then(function(){return h9})).infoCircleSvg,lightbulb:async()=>(await Promise.resolve().then(function(){return pe})).lightbulbSvg,mail:async()=>(await Promise.resolve().then(function(){return pt})).mailSvg,mobile:async()=>(await Promise.resolve().then(function(){return pr})).mobileSvg,more:async()=>(await Promise.resolve().then(function(){return pi})).moreSvg,networkPlaceholder:async()=>(await Promise.resolve().then(function(){return pa})).networkPlaceholderSvg,nftPlaceholder:async()=>(await Promise.resolve().then(function(){return po})).nftPlaceholderSvg,off:async()=>(await Promise.resolve().then(function(){return pn})).offSvg,playStore:async()=>(await Promise.resolve().then(function(){return ps})).playStoreSvg,plus:async()=>(await Promise.resolve().then(function(){return pl})).plusSvg,qrCode:async()=>(await Promise.resolve().then(function(){return pc})).qrCodeIcon,recycleHorizontal:async()=>(await Promise.resolve().then(function(){return pd})).recycleHorizontalSvg,refresh:async()=>(await Promise.resolve().then(function(){return pu})).refreshSvg,search:async()=>(await Promise.resolve().then(function(){return ph})).searchSvg,send:async()=>(await Promise.resolve().then(function(){return pp})).sendSvg,swapHorizontal:async()=>(await Promise.resolve().then(function(){return pg})).swapHorizontalSvg,swapHorizontalMedium:async()=>(await Promise.resolve().then(function(){return pf})).swapHorizontalMediumSvg,swapHorizontalBold:async()=>(await Promise.resolve().then(function(){return pw})).swapHorizontalBoldSvg,swapHorizontalRoundedBold:async()=>(await Promise.resolve().then(function(){return pm})).swapHorizontalRoundedBoldSvg,swapVertical:async()=>(await Promise.resolve().then(function(){return pv})).swapVerticalSvg,telegram:async()=>(await Promise.resolve().then(function(){return pb})).telegramSvg,threeDots:async()=>(await Promise.resolve().then(function(){return py})).threeDotsSvg,twitch:async()=>(await Promise.resolve().then(function(){return pC})).twitchSvg,twitter:async()=>(await Promise.resolve().then(function(){return px})).xSvg,twitterIcon:async()=>(await Promise.resolve().then(function(){return pk})).twitterIconSvg,verify:async()=>(await Promise.resolve().then(function(){return pA})).verifySvg,verifyFilled:async()=>(await Promise.resolve().then(function(){return pI})).verifyFilledSvg,wallet:async()=>(await Promise.resolve().then(function(){return pE})).walletSvg,walletConnect:async()=>(await Promise.resolve().then(function(){return pS})).walletConnectSvg,walletConnectLightBrown:async()=>(await Promise.resolve().then(function(){return pS})).walletConnectLightBrownSvg,walletConnectBrown:async()=>(await Promise.resolve().then(function(){return pS})).walletConnectBrownSvg,walletPlaceholder:async()=>(await Promise.resolve().then(function(){return pN})).walletPlaceholderSvg,warningCircle:async()=>(await Promise.resolve().then(function(){return pP})).warningCircleSvg,x:async()=>(await Promise.resolve().then(function(){return px})).xSvg,info:async()=>(await Promise.resolve().then(function(){return p_})).infoSvg,exclamationTriangle:async()=>(await Promise.resolve().then(function(){return p$})).exclamationTriangleSvg,reown:async()=>(await Promise.resolve().then(function(){return pO})).reownSvg};async function lX(e){if(lq.has(e))return lq.get(e);let t=(lY[e]??lY.copy)();return lq.set(e,t),t}let lJ=class extends sQ{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300",this.aspectRatio="1 / 1"}render(){return this.style.cssText=`
940      --local-color: var(--wui-color-${this.color});
941      --local-width: var(--wui-icon-size-${this.size});
942      --local-aspect-ratio: ${this.aspectRatio}
943    `,sB`${lV(lX(this.name),sB`<div class="fallback"></div>`)}`}};lJ.styles=[s3,s4,lG],lK([lS()],lJ.prototype,"size",void 0),lK([lS()],lJ.prototype,"name",void 0),lK([lS()],lJ.prototype,"color",void 0),lK([lS()],lJ.prototype,"as
943pectRatio",void 0),lJ=lK([s8("wui-icon")],lJ);let lQ=lO(class extends lT{constructor(e){if(super(e),1!==e.type||"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(" ")+" "}update(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 sM}});var l0=n9`
944  :host {
945    display: inline-flex !important;
946  }
947
948  slot {
949    width: 100%;
950    display: inline-block;
951    font-style: normal;
952    font-family: var(--wui-font-family);
953    font-feature-settings:
954      'tnum' on,
955      'lnum' on,
956      'case' on;
957    line-height: 130%;
958    font-weight: var(--wui-font-weight-regular);
959    overflow: inherit;
960    text-overflow: inherit;
961    text-align: var(--local-align);
962    color: var(--local-color);
963  }
964
965  .wui-line-clamp-1 {
966    overflow: hidden;
967    display: -webkit-box;
968    -webkit-box-orient: vertical;
969    -webkit-line-clamp: 1;
970  }
971
972  .wui-line-clamp-2 {
973    overflow: hidden;
974    display: -webkit-box;
975    -webkit-box-orient: vertical;
976    -webkit-line-clamp: 2;
977  }
978
979  .wui-font-medium-400 {
980    font-size: var(--wui-font-size-medium);
981    font-weight: var(--wui-font-weight-light);
982    letter-spacing: var(--wui-letter-spacing-medium);
983  }
984
985  .wui-font-medium-600 {
986    font-size: var(--wui-font-size-medium);
987    letter-spacing: var(--wui-letter-spacing-medium);
988  }
989
990  .wui-font-title-600 {
991    font-size: var(--wui-font-size-title);
992    letter-spacing: var(--wui-letter-spacing-title);
993  }
994
995  .wui-font-title-6-600 {
996    font-size: var(--wui-font-size-title-6);
997    letter-spacing: var(--wui-letter-spacing-title-6);
998  }
999
1000  .wui-font-mini-700 {
1001    font-size: var(--wui-font-size-mini);
1002    letter-spacing: var(--wui-letter-spacing-mini);
1003    text-transform: uppercase;
1004  }
1005
1006  .wui-font-large-500,
1007  .wui-font-large-600,
1008  .wui-font-large-700 {
1009    font-size: var(--wui-font-size-large);
1010    letter-spacing: var(--wui-letter-spacing-large);
1011  }
1012
1013  .wui-font-2xl-500,
1014  .wui-font-2xl-600,
1015  .wui-font-2xl-700 {
1016    font-size: var(--wui-font-size-2xl);
1017    letter-spacing: var(--wui-letter-spacing-2xl);
1018  }
1019
1020  .wui-font-paragraph-400,
1021  .wui-font-paragraph-500,
1022  .wui-font-paragraph-600,
1023  .wui-font-paragraph-700 {
1024    font-size: var(--wui-font-size-paragraph);
1025    letter-spacing: var(--wui-letter-spacing-paragraph);
1026  }
1027
1028  .wui-font-small-400,
1029  .wui-font-small-500,
1030  .wui-font-small-600 {
1031    font-size: var(--wui-font-size-small);
1032    letter-spacing: var(--wui-letter-spacing-small);
1033  }
1034
1035  .wui-font-tiny-400,
1036  .wui-font-tiny-500,
1037  .wui-font-tiny-600 {
1038    font-size: var(--wui-font-size-tiny);
1039    letter-spacing: var(--wui-letter-spacing-tiny);
1040  }
1041
1042  .wui-font-micro-700,
1043  .wui-font-micro-600 {
1044    font-size: var(--wui-font-size-micro);
1045    letter-spacing: var(--wui-letter-spacing-micro);
1046    text-transform: uppercase;
1047  }
1048
1049  .wui-font-tiny-400,
1050  .wui-font-small-400,
1051  .wui-font-medium-400,
1052  .wui-font-paragraph-400 {
1053    font-weight: var(--wui-font-weight-light);
1054  }
1055
1056  .wui-font-large-700,
1057  .wui-font-paragraph-700,
1058  .wui-font-micro-700,
1059  .wui-font-mini-700 {
1060    font-weight: var(--wui-font-weight-bold);
1061  }
1062
1063  .wui-font-medium-600,
1064  .wui-font-medium-title-600,
1065  .wui-font-title-6-600,
1066  .wui-font-large-600,
1067  .wui-font-paragraph-600,
1068  .wui-font-small-600,
1069  .wui-font-tiny-600,
1070  .wui-font-micro-600 {
1071    font-weight: var(--wui-font-weight-medium);
1072  }
1073
1074  :host([disabled]) {
1075    opacity: 0.4;
1076  }
1077`,l1=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let l2=class extends sQ{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left",this.lineClamp=void 0}render(){let e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}
1077`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=`
1078      --local-align: ${this.align};
1079      --local-color: var(--wui-color-${this.color});
1080    `,sB`<slot class=${lQ(e)}></slot>`}};l2.styles=[s3,l0],l1([lS()],l2.prototype,"variant",void 0),l1([lS()],l2.prototype,"color",void 0),l1([lS()],l2.prototype,"align",void 0),l1([lS()],l2.prototype,"lineClamp",void 0),l2=l1([s8("wui-text")],l2);var l3=n9`
1081  :host {
1082    display: inline-flex;
1083    justify-content: center;
1084    align-items: center;
1085    position: relative;
1086    overflow: hidden;
1087    background-color: var(--wui-color-gray-glass-020);
1088    border-radius: var(--local-border-radius);
1089    border: var(--local-border);
1090    box-sizing: content-box;
1091    width: var(--local-size);
1092    height: var(--local-size);
1093    min-height: var(--local-size);
1094    min-width: var(--local-size);
1095  }
1096
1097  @supports (background: color-mix(in srgb, white 50%, black)) {
1098    :host {
1099      background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
1100    }
1101  }
1102`,l5=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let l4=class extends sQ{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="gray"===this.background,a="opaque"===this.background,o="accent-100"===this.backgroundColor&&a||"success-100"===this.backgroundColor&&a||"error-100"===this.backgroundColor&&a||"inverse-100"===this.backgroundColor&&a,n=`var(--wui-color-${this.backgroundColor})`;return o?n=`var(--wui-icon-box-bg-${this.backgroundColor})`:i&&(n=`var(--wui-color-gray-${this.backgroundColor})`),this.style.cssText=`
1103       --local-bg-value: ${n};
1104       --local-bg-mix: ${o||i?"100%":t?"12%":"16%"};
1105       --local-border-radius: var(--wui-border-radius-${t?"xxs":r?"s":"3xl"});
1106       --local-size: var(--wui-icon-box-size-${this.size});
1107       --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"}
1108   `,sB` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};l4.styles=[s3,s5,l3],l5([lS()],l4.prototype,"size",void 0),l5([lS()],l4.prototype,"backgroundColor",void 0),l5([lS()],l4.prototype,"iconColor",void 0),l5([lS()],l4.prototype,"iconSize",void 0),l5([lS()],l4.prototype,"background",void 0),l5([lS({type:Boolean})],l4.prototype,"border",void 0),l5([lS()],l4.prototype,"borderColor",void 0),l5([lS()],l4.prototype,"icon",void 0),l4=l5([s8("wui-icon-box")],l4);var l6=n9`
1109  :host {
1110    display: block;
1111    width: var(--local-width);
1112    height: var(--local-height);
1113  }
1114
1115  img {
1116    display: block;
1117    width: 100%;
1118    height: 100%;
1119    object-fit: cover;
1120    object-position: center center;
1121    border-radius: inherit;
1122  }
1123`,l8=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let l7=class extends sQ{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0}render(){return this.style.cssText=`
1124      --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
1125      --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
1126      `,sB`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};l7.styles=[s3,s4,l6],l8([lS()],l7.prototype,"src",void 0),l8([lS()],l7.prototype,"alt",void 0),l8([lS()],l7.prototype,"size",void 0),l7=l8([s8("wui-image")],l7);var l9=n9`
1127  :host {
1128    position: relative;
1129    background-color: var(--wui-color-gray-glass-002);
1130    display: flex;
1131    justify-content: center;
1132    align-items: center;
1133    width: var(--local-size);
1134    height: var(--local-size);
1135    border-radius: inherit;
1136    border-radius: var(--local-border-radius);
1137  }
1138
1139  :host > wui-flex {
1140    overflow: hidden;
1141    border-radius: inherit;
1142    border-radius: var(--local-border-radius);
1143  }
1144
1145  :host::after {
1146    content: '';
1147    position: absolute;
1148    top: 0;
1149    bottom: 0;
1150    left: 0;
1151    right: 0;
1152    border-radius: inherit;
1153    border: 1px solid var(--wui-color-gray-glass-010);
1154    pointer-events: none;
1155  }
1156
1157  :host([name='Extension'])::after {
1158    border: 1px solid var(--wui-color-accent-glass-010);
1159  }
1160
1161  :host([data-wallet-icon='allWallets']) {
1162    background-color: var(--wui-all-wallets-bg-100);
1163  }
1164
1165  :host([data-wallet-icon='allWallets'])::after {
1166    border: 1px solid var(--wui-color-accent-glass-010);
1167  }
1168
1169  wui-icon[data-parent-size='inherit'] {
1170    width: 75%;
1171    height: 75%;
1172    align-items: center;
1173  }
1174
1175  wui-icon[data-parent-size='sm'] {
1176    width: 18px;
1177    height: 18px;
1178  }
1179
1180  wui-icon[data-parent-size='md'] {
1181    width: 24px;
1182    height: 24px;
1183  }
1184
1185  wui-icon[data-parent-size='lg'] {
1186    width: 42px;
1187    height: 42px;
1188  }
1189
1190  wui-icon[data-parent-size='full'] {
1191    width: 100%;
1192    height: 100%;
1193  }
1194
1195  :host > wui-icon-box {
1196    position: absolute;
1197    overflow: hidden;
1198    right: -1px;
1199    bottom: -2px;
1200    z-index: 1;
1201    border: 2px solid var(--wui-color-bg-150, #1e1f1f);
1202    padding: 1px;
1203  }
1204`,ce=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let ct=class extends sQ{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=`
1205       --local-border-radius: var(--wui-border-radius-${e});
1206       --local-size: var(--wui-wallet-image-size-${this.size});
1207   `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),sB`
1208      <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
1209    `}templateVisual(){return this.imageSrc?sB`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?sB`<wui-icon
1210        data-parent-size="md"
1211        size="md"
1212        color="inherit"
1213        name=${this.walletIcon}
1214      ></wui-icon>`:sB`<wui-icon
1215      data-parent-size=${this.size}
1216      size="inherit"
1217      color="inherit"
1218      name="walletPlaceholder"
1219    ></wui-icon>`}};ct.styles=[s5,s3,l9],ce([lS()],ct.prototype,"size",void 0),ce([lS()],ct.prototype,"name",void 0),ce([lS()],ct.prototype,"imageSrc",void 0),ce([lS()],ct.prototype,"walletIcon",void 0),ce([lS({type:Boolean})],ct.prototype,"installed",void 0),ce([lS()],ct.prototype,"badgeSize",void 0),ct=ce([s8("wui-wallet-image")],ct);var cr=n9`
1220  :host {
1221    position: relative;
1222    border-radius: var(--wui-border-radius-xxs);
1223    width: 40px;
1224    height: 40px;
1225    overflow: hidden;
1226    background: var(--wui-color-gray-glass-002);
1227    display: flex;
1228    justify-content: center;
1229    align-items: center;
1230    flex-wrap: wrap;
1231    gap: var(--wui-spacing-4xs);
1232    padding: 3.75px !important;
1233  }
1234
1235  :host::after {
1236    content: '';
1237    position: absolute;
1238    top: 0;
1239    bottom: 0;
1240    left: 0;
1241    right: 0;
1242    border-radius: inherit;
1243    border: 1px solid var(--wui-color-gray-glass-010);
1244    pointer-events: none;
1245  }
1246
1247  :host > wui-wallet-image {
1248    width: 14px;
1249    height: 14px;
1250    border-radius: var(--wui-border-radius-5xs);
1251  }
1252
1253  :host > wui-flex {
1254    padding: 2px;
1255    position: fixed;
1256    overflow: hidden;
1257    left: 34px;
1258    bottom: 8px;
1259    background: var(--dark-background-150, #1e1f1f);
1260    border-radius: 50%;
1261    z-index: 2;
1262    display: flex;
1263  }
1264`,ci=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
1264);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let ca=class extends sQ{constructor(){super(...arguments),this.walletImages=[]}render(){let e=this.walletImages.length<4;return sB`${this.walletImages.slice(0,4).map(({src:e,walletName:t})=>sB`
1265            <wui-wallet-image
1266              size="inherit"
1267              imageSrc=${e}
1268              name=${t??sU}
1269            ></wui-wallet-image>
1270          `)}
1271      ${e?[...Array(4-this.walletImages.length)].map(()=>sB` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null}
1272      <wui-flex>
1273        <wui-icon-box
1274          size="xxs"
1275          iconSize="xxs"
1276          iconcolor="success-100"
1277          backgroundcolor="success-100"
1278          icon="checkmark"
1279          background="opaque"
1280        ></wui-icon-box>
1281      </wui-flex>`}};ca.styles=[s3,cr],ci([lS({type:Array})],ca.prototype,"walletImages",void 0),ca=ci([s8("wui-all-wallets-image")],ca);var co=n9`
1282  :host {
1283    display: flex;
1284    justify-content: center;
1285    align-items: center;
1286    height: var(--wui-spacing-m);
1287    padding: 0 var(--wui-spacing-3xs) !important;
1288    border-radius: var(--wui-border-radius-5xs);
1289    transition:
1290      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
1291      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
1292    will-change: border-radius, background-color;
1293  }
1294
1295  :host > wui-text {
1296    transform: translateY(5%);
1297  }
1298
1299  :host([data-variant='main']) {
1300    background-color: var(--wui-color-accent-glass-015);
1301    color: var(--wui-color-accent-100);
1302  }
1303
1304  :host([data-variant='shade']) {
1305    background-color: var(--wui-color-gray-glass-010);
1306    color: var(--wui-color-fg-200);
1307  }
1308
1309  :host([data-variant='success']) {
1310    background-color: var(--wui-icon-box-bg-success-100);
1311    color: var(--wui-color-success-100);
1312  }
1313
1314  :host([data-variant='error']) {
1315    background-color: var(--wui-icon-box-bg-error-100);
1316    color: var(--wui-color-error-100);
1317  }
1318
1319  :host([data-size='lg']) {
1320    padding: 11px 5px !important;
1321  }
1322
1323  :host([data-size='lg']) > wui-text {
1324    transform: translateY(2%);
1325  }
1326`,cn=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cs=class extends sQ{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 sB`
1327      <wui-text data-variant=${this.variant} variant=${e} color="inherit">
1328        <slot></slot>
1329      </wui-text>
1330    `}};cs.styles=[s3,co],cn([lS()],cs.prototype,"variant",void 0),cn([lS()],cs.prototype,"size",void 0),cs=cn([s8("wui-tag")],cs);var cl=n9`
1331  button {
1332    column-gap: var(--wui-spacing-s);
1333    padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
1334    width: 100%;
1335    background-color: var(--wui-color-gray-glass-002);
1336    border-radius: var(--wui-border-radius-xs);
1337    color: var(--wui-color-fg-100);
1338  }
1339
1340  button > wui-text:nth-child(2) {
1341    display: flex;
1342    flex: 1;
1343  }
1344
1345  button:disabled {
1346    background-color: var(--wui-color-gray-glass-015);
1347    color: var(--wui-color-gray-glass-015);
1348  }
1349
1350  button:disabled > wui-tag {
1351    background-color: var(--wui-color-gray-glass-010);
1352    color: var(--wui-color-fg-300);
1353  }
1354
1355  wui-icon {
1356    color: var(--wui-color-fg-200) !important;
1357  }
1358`,cc=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cd=class extends sQ{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return sB`
1359      <button ?disabled=${this.disabled} tabindex=${this.tabIdx??sU}>
1360        ${this.templateAllWallets()} ${this.templateWalletImage()}
1361        <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text>
1362        ${this.templateStatus()}
1363      </button>
1364    `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?sB` 
1364<wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?sB` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?sB`<wui-wallet-image
1365        size="sm"
1366        imageSrc=${this.imageSrc}
1367        name=${this.name}
1368        .installed=${this.installed}
1369      ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:sB`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.loading?sB`<wui-loading-spinner
1370        size="lg"
1371        color=${this.loadingSpinnerColor}
1372      ></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?sB`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?sB`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};cd.styles=[s3,s5,cl],cc([lS({type:Array})],cd.prototype,"walletImages",void 0),cc([lS()],cd.prototype,"imageSrc",void 0),cc([lS()],cd.prototype,"name",void 0),cc([lS()],cd.prototype,"tagLabel",void 0),cc([lS()],cd.prototype,"tagVariant",void 0),cc([lS()],cd.prototype,"icon",void 0),cc([lS()],cd.prototype,"walletIcon",void 0),cc([lS()],cd.prototype,"tabIdx",void 0),cc([lS({type:Boolean})],cd.prototype,"installed",void 0),cc([lS({type:Boolean})],cd.prototype,"disabled",void 0),cc([lS({type:Boolean})],cd.prototype,"showAllWallets",void 0),cc([lS({type:Boolean})],cd.prototype,"loading",void 0),cc([lS({type:String})],cd.prototype,"loadingSpinnerColor",void 0),cd=cc([s8("wui-list-wallet")],cd);var cu=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let ch=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.count=tR.state.count,this.isFetchingRecommendedWallets=tR.state.isFetchingRecommendedWallets,this.unsubscribe.push(tD.subscribeKey("connectors",e=>this.connectors=e),tR.subscribeKey("count",e=>this.count=e),tR.subscribeKey("isFetchingRecommendedWallets",e=>this.isFetchingRecommendedWallets=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"walletConnect"===e.id),{allWallets:t}=tA.state;if(!e||"HIDE"===t||"ONLY_MOBILE"===t&&!tp.isMobile())return null;let r=tR.state.featured.length,i=this.count+r,a=i<10?i:10*Math.floor(i/10),o=a<i?`${a}+`:`${a}`;return sB`
1373      <wui-list-wallet
1374        name="All Wallets"
1375        walletIcon="allWallets"
1376        showAllWallets
1377        @click=${this.onAllWallets.bind(this)}
1378        tagLabel=${o}
1379        tagVariant="shade"
1380        data-testid="all-wallets"
1381        tabIdx=${this.tabIdx??sU}
1382        .loading=${this.isFetchingRecommendedWallets}
1383        loadingSpinnerColor=${this.isFetchingRecommendedWallets?"fg-300":"accent-100"}
1384      ></wui-list-wallet>
1385    `}onAllWallets(){t_.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),tL.push("AllWallets")}};cu([lS()],ch.prototype,"tabIdx",void 0),cu([lN()],ch.prototype,"connectors",void 0),cu([lN()],ch.prototype,"count",void 0),cu([lN()],ch.prototype,"isFetchingRecommendedWallets",void 0),ch=cu([s8("w3m-all-wallets-widget")],ch);var cp=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cg=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.unsubscribe.push(tD.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?sB`
1386      <wui-flex flexDirection="column" gap="xs">
1387        ${e.filter(n2.showConnector).map(e=>sB`
1388              <wui-list-wallet
1389                imageSrc=${tC.getConnectorImage(e)??sU}
1390                name=${e.name??"Unknown"}
1391                @click=${()=>this.onConnector(e)}
1392                tagVariant="success"
1393                tagLabel="installed"
1394                data-testid=${`wallet-selector-${e.id}`}
1395                .installed=${!0}
1396                tabIdx=${this.tabIdx??sU}
1397              >
1398              </wui-list-wallet>
1399            `)}
1400      </wui-flex>
1401    `:(this.style.cssText="display: none",null)}onConnector(e){"walletConnect"===e.id?tp.isMobile()?tL.push("AllWallets"):tL.push("ConnectingWalletConnect"):tL.push("ConnectingExter
1401nal",{connector:e})}};cp([lS()],cg.prototype,"tabIdx",void 0),cp([lN()],cg.prototype,"connectors",void 0),cg=cp([s8("w3m-connect-announced-widget")],cg);var cf=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cw=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.loading=!1,this.unsubscribe.push(tD.subscribeKey("connectors",e=>this.connectors=e)),tp.isTelegram()&&tp.isIos()&&(this.loading=!tX.state.wcUri,this.unsubscribe.push(tX.subscribeKey("wcUri",e=>this.loading=!e)))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{customWallets:e}=tA.state;if(!e?.length)return this.style.cssText="display: none",null;let t=this.filterOutDuplicateWallets(e);return sB`<wui-flex flexDirection="column" gap="xs">
1402      ${t.map(e=>sB`
1403          <wui-list-wallet
1404            imageSrc=${tC.getWalletImage(e)??sU}
1405            name=${e.name??"Unknown"}
1406            @click=${()=>this.onConnectWallet(e)}
1407            data-testid=${`wallet-selector-${e.id}`}
1408            tabIdx=${this.tabIdx??sU}
1409            ?loading=${this.loading}
1410          >
1411          </wui-list-wallet>
1412        `)}
1413    </wui-flex>`}filterOutDuplicateWallets(e){let t=th.getRecentWallets(),r=this.connectors.map(e=>e.info?.rdns).filter(Boolean),i=t.map(e=>e.rdns).filter(Boolean),a=r.concat(i);if(a.includes("io.metamask.mobile")&&tp.isMobile()){let e=a.indexOf("io.metamask.mobile");a[e]="io.metamask"}return e.filter(e=>!a.includes(String(e?.rdns)))}onConnectWallet(e){this.loading||tL.push("ConnectingWalletConnect",{wallet:e})}};cf([lS()],cw.prototype,"tabIdx",void 0),cf([lN()],cw.prototype,"connectors",void 0),cf([lN()],cw.prototype,"loading",void 0),cw=cf([s8("w3m-connect-custom-widget")],cw);var cm=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cv=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.unsubscribe.push(tD.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"EXTERNAL"===e.type).filter(n2.showConnector).filter(e=>e.id!==e_);return e?.length?sB`
1414      <wui-flex flexDirection="column" gap="xs">
1415        ${e.map(e=>sB`
1416            <wui-list-wallet
1417              imageSrc=${tC.getConnectorImage(e)??sU}
1418              .installed=${!0}
1419              name=${e.name??"Unknown"}
1420              data-testid=${`wallet-selector-external-${e.id}`}
1421              @click=${()=>this.onConnector(e)}
1422              tabIdx=${this.tabIdx??sU}
1423            >
1424            </wui-list-wallet>
1425          `)}
1426      </wui-flex>
1427    `:(this.style.cssText="display: none",null)}onConnector(e){tL.push("ConnectingExternal",{connector:e})}};cm([lS()],cv.prototype,"tabIdx",void 0),cm([lN()],cv.prototype,"connectors",void 0),cv=cm([s8("w3m-connect-external-widget")],cv);var cb=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cy=class extends sQ{constructor(){super(...arguments),this.tabIdx=void 0,this.wallets=[]}render(){return this.wallets.length?sB`
1428      <wui-flex flexDirection="column" gap="xs">
1429        ${this.wallets.map(e=>sB`
1430            <wui-list-wallet
1431              data-testid=${`wallet-selector-featured-${e.id}`}
1432              imageSrc=${tC.getWalletImage(e)??sU}
1433              name=${e.name??"Unknown"}
1434              @click=${()=>this.onConnectWallet(e)}
1435              tabIdx=${this.tabIdx??sU}
1436            >
1437            </wui-list-wallet>
1438          `)}
1439      </wui-flex>
1440    `:(this.style.cssText="display: none",null)}onConnectWallet(e){tD.selectWalletConnector(e)}};cb([lS()],cy.prototype,"tabIdx",void 0),cb([lS()],cy.prototype,"wallets",void 0),cy=cb([s8("w3m-connect-featured-widget")],cy);var cC=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
1440);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cx=class extends sQ{constructor(){super(...arguments),this.tabIdx=void 0,this.connectors=[]}render(){let e=this.connectors;return e?.length&&(1!==e.length||e[0]?.name!=="Browser Wallet"||tp.isMobile())?sB`
1441      <wui-flex flexDirection="column" gap="xs">
1442        ${e.map(e=>{let t=e.info?.rdns;return tp.isMobile()||"Browser Wallet"!==e.name?t||tX.checkInstalled()?n2.showConnector(e)?sB`
1443            <wui-list-wallet
1444              imageSrc=${tC.getConnectorImage(e)??sU}
1445              .installed=${!0}
1446              name=${e.name??"Unknown"}
1447              tagVariant="success"
1448              tagLabel="installed"
1449              data-testid=${`wallet-selector-${e.id}`}
1450              @click=${()=>this.onConnector(e)}
1451              tabIdx=${this.tabIdx??sU}
1452            >
1453            </wui-list-wallet>
1454          `:null:(this.style.cssText="display: none",null):null})}
1455      </wui-flex>
1456    `:(this.style.cssText="display: none",null)}onConnector(e){tD.setActiveConnector(e),tL.push("ConnectingExternal",{connector:e})}};cC([lS()],cx.prototype,"tabIdx",void 0),cC([lS()],cx.prototype,"connectors",void 0),cx=cC([s8("w3m-connect-injected-widget")],cx);var ck=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cA=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.unsubscribe.push(tD.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"MULTI_CHAIN"===e.type&&"WalletConnect"!==e.name);return e?.length?sB`
1457      <wui-flex flexDirection="column" gap="xs">
1458        ${e.map(e=>sB`
1459            <wui-list-wallet
1460              imageSrc=${tC.getConnectorImage(e)??sU}
1461              .installed=${!0}
1462              name=${e.name??"Unknown"}
1463              tagVariant="shade"
1464              tagLabel="multichain"
1465              data-testid=${`wallet-selector-${e.id}`}
1466              @click=${()=>this.onConnector(e)}
1467              tabIdx=${this.tabIdx??sU}
1468            >
1469            </wui-list-wallet>
1470          `)}
1471      </wui-flex>
1472    `:(this.style.cssText="display: none",null)}onConnector(e){tD.setActiveConnector(e),tL.push("ConnectingMultiChain")}};ck([lS()],cA.prototype,"tabIdx",void 0),ck([lN()],cA.prototype,"connectors",void 0),cA=ck([s8("w3m-connect-multi-chain-widget")],cA);var cI=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cE=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.loading=!1,this.unsubscribe.push(tD.subscribeKey("connectors",e=>this.connectors=e)),tp.isTelegram()&&tp.isIos()&&(this.loading=!tX.state.wcUri,this.unsubscribe.push(tX.subscribeKey("wcUri",e=>this.loading=!e)))}render(){let e=th.getRecentWallets().filter(e=>!n1.isExcluded(e)).filter(e=>!this.hasWalletConnector(e)).filter(e=>this.isWalletCompatibleWithCurrentChain(e));return e.length?sB`
1473      <wui-flex flexDirection="column" gap="xs">
1474        ${e.map(e=>sB`
1475            <wui-list-wallet
1476              imageSrc=${tC.getWalletImage(e)??sU}
1477              name=${e.name??"Unknown"}
1478              @click=${()=>this.onConnectWallet(e)}
1479              tagLabel="recent"
1480              tagVariant="shade"
1481              tabIdx=${this.tabIdx??sU}
1482              ?loading=${this.loading}
1483            >
1484            </wui-list-wallet>
1485          `)}
1486      </wui-flex>
1487    `:(this.style.cssText="display: none",null)}onConnectWallet(e){this.loading||tD.selectWalletConnector(e)}hasWalletConnector(e){return this.connectors.some(t=>t.id===e.id||t.name===e.name)}isWalletCompatibleWithCurrentChain(e){let t=o8.state.activeChain;return!t||!e.chains||e.chains.some(e=>t===e.split(":")[0])}};cI([lS()],cE.prototype,"tabIdx",void 0),cI([lN()],cE.prototype,"connectors",void 0),cI([lN()],cE.prototype,"loading",void 0),cE=cI([s8("w3m-connect-recent-widget")],cE);var cS=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
1487);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cN=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.wallets=[],this.loading=!1,tp.isTelegram()&&tp.isIos()&&(this.loading=!tX.state.wcUri,this.unsubscribe.push(tX.subscribeKey("wcUri",e=>this.loading=!e)))}render(){let{connectors:e}=tD.state,{customWallets:t,featuredWalletIds:r}=tA.state,i=th.getRecentWallets(),a=e.find(e=>"walletConnect"===e.id),o=e.filter(e=>"INJECTED"===e.type||"ANNOUNCED"===e.type||"MULTI_CHAIN"===e.type).filter(e=>"Browser Wallet"!==e.name);if(!a)return null;if(r||t||!this.wallets.length)return this.style.cssText="display: none",null;let n=Math.max(0,2-(o.length+i.length)),s=n1.filterOutDuplicateWallets(this.wallets).slice(0,n);return s.length?sB`
1488      <wui-flex flexDirection="column" gap="xs">
1489        ${s.map(e=>sB`
1490            <wui-list-wallet
1491              imageSrc=${tC.getWalletImage(e)??sU}
1492              name=${e?.name??"Unknown"}
1493              @click=${()=>this.onConnectWallet(e)}
1494              tabIdx=${this.tabIdx??sU}
1495              ?loading=${this.loading}
1496            >
1497            </wui-list-wallet>
1498          `)}
1499      </wui-flex>
1500    `:(this.style.cssText="display: none",null)}onConnectWallet(e){if(this.loading)return;let t=tD.getConnector(e.id,e.rdns);t?tL.push("ConnectingExternal",{connector:t}):tL.push("ConnectingWalletConnect",{wallet:e})}};cS([lS()],cN.prototype,"tabIdx",void 0),cS([lS()],cN.prototype,"wallets",void 0),cS([lN()],cN.prototype,"loading",void 0),cN=cS([s8("w3m-connect-recommended-widget")],cN);var cP=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let c_=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.connectorImages=tv.state.connectorImages,this.unsubscribe.push(tD.subscribeKey("connectors",e=>this.connectors=e),tv.subscribeKey("connectorImages",e=>this.connectorImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(tp.isMobile())return this.style.cssText="display: none",null;let e=this.connectors.find(e=>"walletConnect"===e.id);if(!e)return this.style.cssText="display: none",null;let t=e.imageUrl||this.connectorImages[e?.imageId??""];return sB`
1501      <wui-list-wallet
1502        imageSrc=${t??sU}
1503        name=${e.name??"Unknown"}
1504        @click=${()=>this.onConnector(e)}
1505        tagLabel="qr code"
1506        tagVariant="main"
1507        tabIdx=${this.tabIdx??sU}
1508        data-testid="wallet-selector-walletconnect"
1509      >
1510      </wui-list-wallet>
1511    `}onConnector(e){tD.setActiveConnector(e),tL.push("ConnectingWalletConnect")}};cP([lS()],c_.prototype,"tabIdx",void 0),cP([lN()],c_.prototype,"connectors",void 0),cP([lN()],c_.prototype,"connectorImages",void 0),c_=cP([s8("w3m-connect-walletconnect-widget")],c_);var c$=n9`
1512  :host {
1513    margin-top: var(--wui-spacing-3xs);
1514  }
1515  wui-separator {
1516    margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
1517      calc(var(--wui-spacing-m) * -1);
1518    width: calc(100% + var(--wui-spacing-s) * 2);
1519  }
1520`,cO=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cT=class extends sQ{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=tD.state.connectors,this.recommended=tR.state.recommended,this.featured=tR.state.featured,this.unsubscribe.push(tD.subscribeKey("connectors",e=>this.connectors=e),tR.subscribeKey("recommended",e=>this.recommended=e),tR.subscribeKey("featured",e=>this.featured=e))}
1520disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return sB`
1521      <wui-flex flexDirection="column" gap="xs"> ${this.connectorListTemplate()} </wui-flex>
1522    `}connectorListTemplate(){let{custom:e,recent:t,announced:r,injected:i,multiChain:a,recommended:o,featured:n,external:s}=n2.getConnectorsByType(this.connectors,this.recommended,this.featured);return n2.getConnectorTypeOrder({custom:e,recent:t,announced:r,injected:i,multiChain:a,recommended:o,featured:n,external:s}).map(e=>{switch(e){case"injected":return sB`
1523            ${a.length?sB`<w3m-connect-multi-chain-widget
1524                  tabIdx=${this.tabIdx??sU}
1525                ></w3m-connect-multi-chain-widget>`:null}
1526            ${r.length?sB`<w3m-connect-announced-widget
1527                  tabIdx=${this.tabIdx??sU}
1528                ></w3m-connect-announced-widget>`:null}
1529            ${i.length?sB`<w3m-connect-injected-widget
1530                  .connectors=${i}
1531                  tabIdx=${this.tabIdx??sU}
1532                ></w3m-connect-injected-widget>`:null}
1533          `;case"walletConnect":return sB`<w3m-connect-walletconnect-widget
1534            tabIdx=${this.tabIdx??sU}
1535          ></w3m-connect-walletconnect-widget>`;case"recent":return sB`<w3m-connect-recent-widget
1536            tabIdx=${this.tabIdx??sU}
1537          ></w3m-connect-recent-widget>`;case"featured":return sB`<w3m-connect-featured-widget
1538            .wallets=${n}
1539            tabIdx=${this.tabIdx??sU}
1540          ></w3m-connect-featured-widget>`;case"custom":return sB`<w3m-connect-custom-widget
1541            tabIdx=${this.tabIdx??sU}
1542          ></w3m-connect-custom-widget>`;case"external":return sB`<w3m-connect-external-widget
1543            tabIdx=${this.tabIdx??sU}
1544          ></w3m-connect-external-widget>`;case"recommended":return sB`<w3m-connect-recommended-widget
1545            .wallets=${o}
1546            tabIdx=${this.tabIdx??sU}
1547          ></w3m-connect-recommended-widget>`;default:return console.warn(`Unknown connector type: ${e}`),null}})}};cT.styles=c$,cO([lS()],cT.prototype,"tabIdx",void 0),cO([lN()],cT.prototype,"connectors",void 0),cO([lN()],cT.prototype,"recommended",void 0),cO([lN()],cT.prototype,"featured",void 0),cT=cO([s8("w3m-connector-list")],cT);var cR=n9`
1548  :host {
1549    display: inline-flex;
1550    background-color: var(--wui-color-gray-glass-002);
1551    border-radius: var(--wui-border-radius-3xl);
1552    padding: var(--wui-spacing-3xs);
1553    position: relative;
1554    height: 36px;
1555    min-height: 36px;
1556    overflow: hidden;
1557  }
1558
1559  :host::before {
1560    content: '';
1561    position: absolute;
1562    pointer-events: none;
1563    top: 4px;
1564    left: 4px;
1565    display: block;
1566    width: var(--local-tab-width);
1567    height: 28px;
1568    border-radius: var(--wui-border-radius-3xl);
1569    background-color: var(--wui-color-gray-glass-002);
1570    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1571    transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));
1572    transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);
1573    will-change: background-color, opacity;
1574  }
1575
1576  :host([data-type='flex'])::before {
1577    left: 3px;
1578    transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));
1579  }
1580
1581  :host([data-type='flex']) {
1582    display: flex;
1583    padding: 0px 0px 0px 12px;
1584    gap: 4px;
1585  }
1586
1587  :host([data-type='flex']) > button > wui-text {
1588    position: absolute;
1589    left: 18px;
1590    opacity: 0;
1591  }
1592
1593  button[data-active='true'] > wui-icon,
1594  button[data-active='true'] > wui-text {
1595    color: var(--wui-color-fg-100);
1596  }
1597
1598  button[data-active='false'] > wui-icon,
1599  button[data-active='false'] > wui-text {
1600    color: var(--wui-color-fg-200);
1601  }
1602
1603  button[data-active='true']:disabled,
1604  button[data-active='false']:disabled {
1605    background-color: transparent;
1606    opacity: 0.5;
1607    cursor: not-allowed;
1608  }
1609
1610  button[data-active='true']:disabled > wui-text {
1611    color: var(--wui-color-fg-200);
1612  }
1613
1614  button[data-active='false']:disabled > wui-text {
1615    color: var(--wui-color-fg-300);
1616  }
1617
1618  button > wui-icon,
1619  button > wui-text {
1620    pointer-events: none;
1621    transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md);
1622    will-change: color;
1623  }
1624
1625  button {
1626    width: var(--local-tab-width);
1627    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
1628    will-change: background-color;
1629  }
1630
1631  :host([data-type='flex']) > button {
1632    width: 34px;
1633    position: relative;
1634    display: flex;
1635    justify-content: flex-start;
1636  }
1637
1638  button:hover:enabled,
1639  button:active:enabled {
1640    background-color: transparent !important;
1641  }
1642
1643  button:hover:enabled > wui-icon,
1644  button:active:enabled > wui-icon {
1645    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
1646    color: var(--wui-color-fg-125);
1647  }
1648
1649  button:hover:enabled > wui-text,
1650  button:active:enabled > wui-text {
1651    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
1652    color: var(--wui-color-fg-125);
1653  }
1654
1655  button {
1656    border-radius: var(--wui-border-radius-3xl);
1657  }
1658`,cB=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
1658);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cL=class extends sQ{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=`
1659      --local-tab: ${this.activeTab};
1660      --local-tab-width: ${this.localTabWidth};
1661    `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,t)=>{let r=t===this.activeTab;return sB`
1662        <button
1663          ?disabled=${this.disabled}
1664          @click=${()=>this.onTabClick(t)}
1665          data-active=${r}
1666          data-testid="tab-${e.label?.toLowerCase()}"
1667        >
1668          ${this.iconTemplate(e)}
1669          <wui-text variant="small-600" color="inherit"> ${e.label} </wui-text>
1670        </button>
1671      `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(e){return e.icon?sB`<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],a=r?.querySelector("wui-text"),o=i?.querySelector("wui-text"),n=i?.getBoundingClientRect(),s=o?.getBoundingClientRect();r&&a&&!t&&e!==this.activeTab&&(a.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),r.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),i&&n&&s&&o&&(e!==this.activeTab||t)&&(this.localTabWidth=`${Math.round(n.width+s.width)+6}px`,i.animate([{width:`${n.width+s.width}px`}],{duration:500*!t,fill:"forwards",easing:"ease"}),o.animate([{opacity:1}],{duration:125*!t,delay:200*!t,fill:"forwards",easing:"ease"}))}};cL.styles=[s3,s5,cR],cB([lS({type:Array})],cL.prototype,"tabs",void 0),cB([lS()],cL.prototype,"onTabChange",void 0),cB([lS({type:Array})],cL.prototype,"buttons",void 0),cB([lS({type:Boolean})],cL.prototype,"disabled",void 0),cB([lS()],cL.prototype,"localTabWidth",void 0),cB([lN()],cL.prototype,"activeTab",void 0),cB([lN()],cL.prototype,"isDense",void 0),cL=cB([s8("wui-tabs")],cL);var cM=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cU=class extends sQ{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(tX.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.generateTabs();return sB`
1672      <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}>
1673        <wui-tabs
1674          ?disabled=${this.buffering}
1675          .tabs=${e}
1676          .onTabChange=${this.onTabChange.bind(this)}
1677        ></wui-tabs>
1678      </wui-flex>
1679    `}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)}};cM([lS({type:Array})],cU.prototype,"platforms",void 0),cM([lS()],cU.prototype,"onSelectPlatfrom",void 0),cM([lN()],cU.prototype,"buffering",void 0),cU=cM([s8("w3m-connecting-header")],cU);var cz=n9`
1680  :host {
1681    display: flex;
1682  }
1683
1684  :host([data-size='sm']) > svg {
1685    width: 12px;
1686    height: 12px;
1687  }
1688
1689  :host([data-size='md']) > svg {
1690    width: 16px;
1691    height: 16px;
1692  }
1693
1694  :host([data-size='lg']) > svg {
1695    width: 24px;
1696    height: 24px;
1697  }
1698
1699  :host([data-size='xl']) > svg {
1700    width: 32px;
1701    height: 32px;
1702  }
1703
1704  svg {
1705    animation: rotate 2s linear infinite;
1706  }
1707
1708  circle {
1709    fill: none;
1710    stroke: var(--local-color);
1711    stroke-width: 4px;
1712    stroke-dasharray: 1, 124;
1713    stroke-dashoffset: 0;
1714    stroke-linecap: round;
1715    animation: dash 1.5s ease-in-out infinite;
1716  }
1717
1718  :host([data-size='md']) > svg > circle {
1719    stroke-width: 6px;
1720  }
1721
1722  :host([data-size='sm']) > svg > circle {
1723    stroke-width: 8px;
1724  }
1725
1726  @keyframes rotate {
1727    100% {
1728      transform: rotate(360deg);
1729    }
1730  }
1731
1732  @keyframes dash {
1733    0% {
1734      stroke-dasharray: 1, 124;
1735      stroke-dashoffset: 0;
1736    }
1737
1738    50% {
1739      stroke-dasharray: 90, 124;
1740      stroke-dashoffset: -35;
1741    }
1742
1743    100% {
1744      stroke-dashoffset: -125;
1745    }
1746  }
1747`,cj=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
1747);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cD=class extends sQ{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,sB`<svg viewBox="25 25 50 50">
1748      <circle r="20" cy="50" cx="50"></circle>
1749    </svg>`}};cD.styles=[s3,cz],cj([lS()],cD.prototype,"color",void 0),cj([lS()],cD.prototype,"size",void 0),cD=cj([s8("wui-loading-spinner")],cD);var cW=n9`
1750  :host {
1751    width: var(--local-width);
1752    position: relative;
1753  }
1754
1755  button {
1756    border: none;
1757    border-radius: var(--local-border-radius);
1758    width: var(--local-width);
1759    white-space: nowrap;
1760  }
1761
1762  /* -- Sizes --------------------------------------------------- */
1763  button[data-size='md'] {
1764    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
1765    height: 36px;
1766  }
1767
1768  button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {
1769    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
1770  }
1771
1772  button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {
1773    padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
1774  }
1775
1776  button[data-size='lg'] {
1777    padding: var(--wui-spacing-m) var(--wui-spacing-2l);
1778    height: 48px;
1779  }
1780
1781  /* -- Variants --------------------------------------------------------- */
1782  button[data-variant='main'] {
1783    background-color: var(--wui-color-accent-100);
1784    color: var(--wui-color-inverse-100);
1785    border: none;
1786    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
1787  }
1788
1789  button[data-variant='inverse'] {
1790    background-color: var(--wui-color-inverse-100);
1791    color: var(--wui-color-inverse-000);
1792    border: none;
1793    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
1794  }
1795
1796  button[data-variant='accent'] {
1797    background-color: var(--wui-color-accent-glass-010);
1798    color: var(--wui-color-accent-100);
1799    border: none;
1800    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
1801  }
1802
1803  button[data-variant='accent-error'] {
1804    background: var(--wui-color-error-glass-015);
1805    color: var(--wui-color-error-100);
1806    border: none;
1807    box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);
1808  }
1809
1810  button[data-variant='accent-success'] {
1811    background: var(--wui-color-success-glass-015);
1812    color: var(--wui-color-success-100);
1813    border: none;
1814    box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);
1815  }
1816
1817  button[data-variant='neutral'] {
1818    background: transparent;
1819    color: var(--wui-color-fg-100);
1820    border: none;
1821    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
1822  }
1823
1824  /* -- Focus states --------------------------------------------------- */
1825  button[data-variant='main']:focus-visible:enabled {
1826    background-color: var(--wui-color-accent-090);
1827    box-shadow:
1828      inset 0 0 0 1px var(--wui-color-accent-100),
1829      0 0 0 4px var(--wui-color-accent-glass-020);
1830  }
1831  button[data-variant='inverse']:focus-visible:enabled {
1832    background-color: var(--wui-color-inverse-100);
1833    box-shadow:
1834      inset 0 0 0 1px var(--wui-color-gray-glass-010),
1835      0 0 0 4px var(--wui-color-accent-glass-020);
1836  }
1837  button[data-variant='accent']:focus-visible:enabled {
1838    background-color: var(--wui-color-accent-glass-010);
1839    box-shadow:
1840      inset 0 0 0 1px var(--wui-color-accent-100),
1841      0 0 0 4px var(--wui-color-accent-glass-020);
1842  }
1843  button[data-variant='accent-error']:focus-visible:enabled {
1844    background: var(--wui-color-error-glass-015);
1845    box-shadow:
1846      inset 0 0 0 1px var(--wui-color-error-100),
1847      0 0 0 4px var(--wui-color-error-glass-020);
1848  }
1849  button[data-variant='accent-success']:focus-visible:enabled {
1850    background: var(--wui-color-success-glass-015);
1851    box-shadow:
1852      inset 0 0 0 1px var(--wui-color-success-100),
1853      0 0 0 4px var(--wui-color-success-glass-020);
1854  }
1855  button[data-variant='neutral']:focus-visible:enabled {
1856    background: var(--wui-color-gray-glass-005);
1857    box-shadow:
1858      inset 0 0 0 1px var(--wui-color-gray-glass-010),
1859      0 0 0 4px var(--wui-color-gray-glass-002);
1860  }
1861
1862  /* -- Hover & Active states ----------------------------------------------------------- */
1863  @media (hover: hover) and (pointer: fine) {
1864    button[data-variant='main']:hover:enabled {
1865      background-color: var(--wui-color-accent-090);
1866    }
1867
1868    button[data-variant='main']:active:enabled {
1869      background-color: var(--wui-color-accent-080);
1870    }
1871
1872    button[data-variant='accent']:hover:enabled {
1873      background-color: var(--wui-color-accent-glass-015);
1874    }
1875
1876    button[data-variant='accent']:active:enabled {
1877      background-color: var(--wui-color-accent-glass-020);
1878    }
1879
1880    button[data-variant='accent-error']:hover:enabled {
1881      background: var(--wui-color-error-glass-020);
1882      color: var(--wui-color-error-100);
1883    }
1884
1885    button[data-variant='accent-error']:active:enabled {
1886      background: var(--wui-color-error-glass-030);
1887      color: var(--wui-color-error-100);
1888    }
1889
1890    button[data-variant='accent-success']:hover:enabled {
1891      background: var(--wui-color-success-glass-020);
1892      color: var(--wui-color-success-100);
1893    }
1894
1895    button[data-variant='accent-success']:active:enabled {
1896      background: var(--wui-color-success-glass-030);
1897      color: var(--wui-color-success-100);
1898    }
1899
1900    button[data-variant='neutral']:hover:enabled {
1901      background: var(--wui-color-gray-glass-002);
1902    }
1903
1904    button[data-variant='neutral']:active:enabled {
1905      background: var(--wui-color-gray-glass-005);
1906    }
1907
1908    button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {
1909      padding-left: var(--wui-spacing-m);
1910    }
1911
1912    button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {
1913      padding-right: var(--wui-spacing-m);
1914    }
1915  }
1916
1917  /* -- Disabled state --------------------------------------------------- */
1918  button:disabled {
1919    background-color: var(--wui-color-gray-glass-002);
1920    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1921    color: var(--wui-color-gray-glass-020);
1922    cursor: not-allowed;
1923  }
1924
1925  button > wui-text {
1926    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
1927    will-change: opacity;
1928    opacity: var(--local-opacity-100);
1929  }
1930
1931  ::slotted(*) {
1932    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
1933    will-change: opacity;
1934    opacity: var(--local-opacity-100);
1935  }
1936
1937  wui-loading-spinner {
1938    position: absolute;
1939    left: 50%;
1940    top: 50%;
1941    transform: translate(-50%, -50%);
1942    opacity: var(--local-opacity-000);
1943  }
1944`,cH=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cF={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},cV={lg:"paragraph-600",md:"small-600"},cZ={lg:"md",md:"md"},cq=class extends sQ{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=`
1945    --local-width: ${this.fullWidth?"100%":"auto"};
1946    --local-opacity-100: ${+!this.loading};
1947    --local-opacity-000: ${+!!this.loading};
1948    --local-border-radius: var(--wui-border-radius-${this.borderRadius});
1949    `;let e=this.textVariant??cV[this.size];return sB`
1950      <button
1951        data-variant=${this.variant}
1952        data-icon-left=${this.hasIconLeft}
1953        data-icon-right=${this.hasIconRight}
1954        data-size=${this.size}
1955        ?disabled=${this.disabled}
1956      >
1957        ${this.loadingTemplate()}
1958        <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot>
1959        <wui-text variant=${e} color="inherit">
1960          <slot></slot>
1961        </wui-text>
1962        <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot>
1963      </button>
1964    `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){let e=cZ[this.size],t=this.disabled?cF.disabled:cF[this.variant];return sB`<wui-loading-spinner color=${t} size=${e}></wui-loading-spinner>`}return sB``}};cq.styles=[s3,s5,cW],cH([lS()],cq.prototype,"size",void 0),cH([lS({type:Boolean})],cq.prototype,"disabled",void 0),cH([lS({type:Boolean})],cq.prototype,"fullWidth",void 0),cH([lS({type:Boolean})],cq.prototype,"loading",void 0),cH([lS()],cq.prototype,"variant",void 0),cH([lS({type:Boolean})],cq.prototype,"hasIconLeft",void 0),cH([lS({type:Boolean})],cq.prototype,"hasIconRight",void 0),cH([lS()],cq.prototype,"borderRadius",void 0),cH([lS()],cq.prototype,"textVariant",void 0),cq=cH([s8("wui-button")],cq);var cG=n9`
1965  button {
1966    padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
1967    border-radius: var(--wui-border-radius-3xs);
1968    background-color: transparent;
1969    color: var(--wui-color-accent-100);
1970  }
1971
1972  button:disabled {
1973    background-color: transparent;
1974    color: var(--wui-color-gray-glass-015);
1975  }
1976
1977  button:hover {
1978    background-color: var(--wui-color-gray-glass-005);
1979  }
1980`,cK=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cY=class extends sQ{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return sB`
1981      <button ?disabled=${this.disabled} tabindex=${this.tabIdx??sU}>
1982        <slot name="iconLeft"></slot>
1983        <wui-text variant="small-600" color=${this.color}>
1984          <slot></slot>
1985        </wui-text>
1986        <slot name="iconRight"></slot>
1987      </button>
1988    `}};cY.styles=[s3,s5,cG],cK([lS()],cY.prototype,"tabIdx",void 0),cK([lS({type:Boolean})],cY.prototype,"disabled",void 0),cK([lS()],cY.prototype,"color",void 0),cY=cK([s8("wui-l
1988ink")],cY);var cX=n9`
1989  :host {
1990    display: block;
1991    width: var(--wui-box-size-md);
1992    height: var(--wui-box-size-md);
1993  }
1994
1995  svg {
1996    width: var(--wui-box-size-md);
1997    height: var(--wui-box-size-md);
1998  }
1999
2000  rect {
2001    fill: none;
2002    stroke: var(--wui-color-accent-100);
2003    stroke-width: 4px;
2004    stroke-linecap: round;
2005    animation: dash 1s linear infinite;
2006  }
2007
2008  @keyframes dash {
2009    to {
2010      stroke-dashoffset: 0px;
2011    }
2012  }
2013`,cJ=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let cQ=class extends sQ{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){let e=this.radius>50?50:this.radius,t=36-e;return sB`
2014      <svg viewBox="0 0 110 110" width="110" height="110">
2015        <rect
2016          x="2"
2017          y="2"
2018          width="106"
2019          height="106"
2020          rx=${e}
2021          stroke-dasharray="${116+t} ${245+t}"
2022          stroke-dashoffset=${360+1.75*t}
2023        />
2024      </svg>
2025    `}};cQ.styles=[s3,cX],cJ([lS({type:Number})],cQ.prototype,"radius",void 0),cQ=cJ([s8("wui-loading-thumbnail")],cQ);var c0=n9`
2026  button {
2027    border: none;
2028    border-radius: var(--wui-border-radius-3xl);
2029  }
2030
2031  button[data-variant='main'] {
2032    background-color: var(--wui-color-accent-100);
2033    color: var(--wui-color-inverse-100);
2034    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
2035  }
2036
2037  button[data-variant='accent'] {
2038    background-color: var(--wui-color-accent-glass-010);
2039    color: var(--wui-color-accent-100);
2040    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
2041  }
2042
2043  button[data-variant='gray'] {
2044    background-color: transparent;
2045    color: var(--wui-color-fg-200);
2046    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
2047  }
2048
2049  button[data-variant='shade'] {
2050    background-color: transparent;
2051    color: var(--wui-color-accent-100);
2052    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
2053  }
2054
2055  button[data-size='sm'] {
2056    height: 32px;
2057    padding: 0 var(--wui-spacing-s);
2058  }
2059
2060  button[data-size='md'] {
2061    height: 40px;
2062    padding: 0 var(--wui-spacing-l);
2063  }
2064
2065  button[data-size='sm'] > wui-image {
2066    width: 16px;
2067    height: 16px;
2068  }
2069
2070  button[data-size='md'] > wui-image {
2071    width: 24px;
2072    height: 24px;
2073  }
2074
2075  button[data-size='sm'] > wui-icon {
2076    width: 12px;
2077    height: 12px;
2078  }
2079
2080  button[data-size='md'] > wui-icon {
2081    width: 14px;
2082    height: 14px;
2083  }
2084
2085  wui-image {
2086    border-radius: var(--wui-border-radius-3xl);
2087    overflow: hidden;
2088  }
2089
2090  button.disabled > wui-icon,
2091  button.disabled > wui-image {
2092    filter: grayscale(1);
2093  }
2094
2095  button[data-variant='main'] > wui-image {
2096    box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
2097  }
2098
2099  button[data-variant='shade'] > wui-image,
2100  button[data-variant='gray'] > wui-image {
2101    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
2102  }
2103
2104  @media (hover: hover) and (pointer: fine) {
2105    button[data-variant='main']:focus-visible {
2106      background-color: var(--wui-color-accent-090);
2107    }
2108
2109    button[data-variant='main']:hover:enabled {
2110      background-color: var(--wui-color-accent-090);
2111    }
2112
2113    button[data-variant='main']:active:enabled {
2114      background-color: var(--wui-color-accent-080);
2115    }
2116
2117    button[data-variant='accent']:hover:enabled {
2118      background-color: var(--wui-color-accent-glass-015);
2119    }
2120
2121    button[data-variant='accent']:active:enabled {
2122      background-color: var(--wui-color-accent-glass-020);
2123    }
2124
2125    button[data-variant='shade']:focus-visible,
2126    button[data-variant='gray']:focus-visible,
2127    button[data-variant='shade']:hover,
2128    button[data-variant='gray']:hover {
2129      background-color: var(--wui-color-gray-glass-002);
2130    }
2131
2132    button[data-variant='gray']:active,
2133    button[data-variant='shade']:active {
2134      background-color: var(--wui-color-gray-glass-005);
2135    }
2136  }
2137
2138  button.disabled {
2139    color: var(--wui-color-gray-glass-020);
2140    background-color: var(--wui-color-gray-glass-002);
2141    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
2142    pointer-events: none;
2143  }
2144`,c1=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
2144);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let c2=class extends sQ{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 sB`
2145      <button
2146        class=${this.disabled?"disabled":""}
2147        data-variant=${this.variant}
2148        data-size=${this.size}
2149      >
2150        ${this.imageSrc?sB`<wui-image src=${this.imageSrc}></wui-image>`:null}
2151        <wui-text variant=${e} color="inherit"> ${this.text} </wui-text>
2152        <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
2153      </button>
2154    `}};c2.styles=[s3,s5,c0],c1([lS()],c2.prototype,"variant",void 0),c1([lS()],c2.prototype,"imageSrc",void 0),c1([lS({type:Boolean})],c2.prototype,"disabled",void 0),c1([lS()],c2.prototype,"icon",void 0),c1([lS()],c2.prototype,"size",void 0),c1([lS()],c2.prototype,"text",void 0),c2=c1([s8("wui-chip-button")],c2);var c3=n9`
2155  wui-flex {
2156    width: 100%;
2157    background-color: var(--wui-color-gray-glass-002);
2158    border-radius: var(--wui-border-radius-xs);
2159  }
2160`,c5=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let c4=class extends sQ{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return sB`
2161      <wui-flex
2162        justifyContent="space-between"
2163        alignItems="center"
2164        .padding=${["1xs","2l","1xs","2l"]}
2165      >
2166        <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text>
2167        <wui-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight">
2168        </wui-chip-button>
2169      </wui-flex>
2170    `}};c4.styles=[s3,s5,c3],c5([lS({type:Boolean})],c4.prototype,"disabled",void 0),c5([lS()],c4.prototype,"label",void 0),c5([lS()],c4.prototype,"buttonLabel",void 0),c4=c5([s8("wui-cta-button")],c4);var c6=n9`
2171  :host {
2172    display: block;
2173    padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
2174  }
2175`,c8=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let c7=class extends sQ{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:i,homepage:a}=this.wallet,o=tp.isMobile(),n=tp.isIos(),s=tp.isAndroid(),l=[t,r,a,i].filter(Boolean).length>1,c=s6.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return l&&!o?sB`
2176        <wui-cta-button
2177          label=${`Don't have ${c}?`}
2178          buttonLabel="Get"
2179          @click=${()=>tL.push("Downloads",{wallet:this.wallet})}
2180        ></wui-cta-button>
2181      `:!l&&a?sB`
2182        <wui-cta-button
2183          label=${`Don't have ${c}?`}
2184          buttonLabel="Get"
2185          @click=${this.onHomePage.bind(this)}
2186        ></wui-cta-button>
2187      `:t&&n?sB`
2188        <wui-cta-button
2189          label=${`Don't have ${c}?`}
2190          buttonLabel="Get"
2191          @click=${this.onAppStore.bind(this)}
2192        ></wui-cta-button>
2193      `:r&&s?sB`
2194        <wui-cta-button
2195          label=${`Don't have ${c}?`}
2196          buttonLabel="Get"
2197          @click=${this.onPlayStore.bind(this)}
2198        ></wui-cta-button>
2199      `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&tp.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&tp.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&tp.openHref(this.wallet.homepage,"_blank")}};c7.styles=[c6],c8([lS({type:Object})],c7.prototype,"wallet",void 0),c7=c8([s8("w3m-mobile-download-l
2199inks")],c7);var c9=n9`
2200  @keyframes shake {
2201    0% {
2202      transform: translateX(0);
2203    }
2204    25% {
2205      transform: translateX(3px);
2206    }
2207    50% {
2208      transform: translateX(-3px);
2209    }
2210    75% {
2211      transform: translateX(3px);
2212    }
2213    100% {
2214      transform: translateX(0);
2215    }
2216  }
2217
2218  wui-flex:first-child:not(:only-child) {
2219    position: relative;
2220  }
2221
2222  wui-loading-thumbnail {
2223    position: absolute;
2224  }
2225
2226  wui-icon-box {
2227    position: absolute;
2228    right: calc(var(--wui-spacing-3xs) * -1);
2229    bottom: calc(var(--wui-spacing-3xs) * -1);
2230    opacity: 0;
2231    transform: scale(0.5);
2232    transition-property: opacity, transform;
2233    transition-duration: var(--wui-duration-lg);
2234    transition-timing-function: var(--wui-ease-out-power-2);
2235    will-change: opacity, transform;
2236  }
2237
2238  wui-text[align='center'] {
2239    width: 100%;
2240    padding: 0px var(--wui-spacing-l);
2241  }
2242
2243  [data-error='true'] wui-icon-box {
2244    opacity: 1;
2245    transform: scale(1);
2246  }
2247
2248  [data-error='true'] > wui-flex:first-child {
2249    animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
2250  }
2251
2252  [data-retry='false'] wui-link {
2253    display: none;
2254  }
2255
2256  [data-retry='true'] wui-link {
2257    display: block;
2258    opacity: 1;
2259  }
2260`,de=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};class dt extends sQ{constructor(){super(),this.wallet=tL.state.data?.wallet,this.connector=tL.state.data?.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=tC.getWalletImage(this.wallet)??tC.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=tX.state.wcUri,this.error=tX.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.buffering=!1,this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(tX.subscribeKey("wcUri",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),tX.subscribeKey("wcError",e=>this.error=e),tX.subscribeKey("buffering",e=>this.buffering=e)),(tp.isTelegram()||tp.isSafari())&&tp.isIos()&&tX.state.wcUri&&this.onConnect?.()}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){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"),sB`
2261      <wui-flex
2262        data-error=${this.error??sU}
2263        data-retry=${this.showRetry}
2264        flexDirection="column"
2265        alignItems="center"
2266        .padding=${["3xl","xl","xl","xl"]}
2267        gap="xl"
2268      >
2269        <wui-flex justifyContent="center" alignItems="center">
2270          <wui-wallet-image size="lg" imageSrc=${this.imageSrc??sU}></wui-wallet-image>
2271
2272          ${this.error?null:this.loaderTemplate()}
2273
2274          <wui-icon-box
2275            backgroundColor="error-100"
2276            background="opaque"
2277            iconColor="error-100"
2278            icon="close"
2279            size="sm"
2280            border
2281            borderColor="wui-color-bg-125"
2282          ></wui-icon-box>
2283        </wui-flex>
2284
2285        <wui-flex flexDirection="column" alignItems="center" gap="xs">
2286          <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}>
2287            ${t}
2288          </wui-text>
2289          <wui-text align="center" variant="small-500" color="fg-200">${e}</wui-text>
2290        </wui-flex>
2291
2292        ${this.secondaryBtnLabel?sB`
2293              <wui-button
2294                variant="accent"
2295                size="md"
2296                ?disabled=${this.isRetrying||!this.error&&this.buffering||this.isLoading}
2297                @click=${this.onTryAgain.bind(this)}
2298                data-testid="w3m-connecting-widget-secondary-button"
2299              >
2300                <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon>
2301                ${this.secondaryBtnLabel}
2302              </wui-button>
2302
2303            `:null}
2304      </wui-flex>
2305
2306      ${this.isWalletConnect?sB`
2307            <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center">
2308              <wui-link @click=${this.onCopyUri} color="fg-200" data-testid="wui-link-copy">
2309                <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
2310                Copy link
2311              </wui-link>
2312            </wui-flex>
2313          `:null}
2314
2315      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
2316    `}onShowRetry(){this.error&&!this.showRetry&&(this.showRetry=!0,this.shadowRoot?.querySelector("wui-button")?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"}))}onTryAgain(){this.buffering||(tX.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){let e=tU.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return sB`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(tp.copyToClopboard(this.uri),tZ.showSuccess("Link copied"))}catch{tZ.showError("Failed to copy")}}}dt.styles=c9,de([lN()],dt.prototype,"isRetrying",void 0),de([lN()],dt.prototype,"uri",void 0),de([lN()],dt.prototype,"error",void 0),de([lN()],dt.prototype,"ready",void 0),de([lN()],dt.prototype,"showRetry",void 0),de([lN()],dt.prototype,"secondaryBtnLabel",void 0),de([lN()],dt.prototype,"secondaryLabel",void 0),de([lN()],dt.prototype,"buffering",void 0),de([lN()],dt.prototype,"isLoading",void 0),de([lS({type:Boolean})],dt.prototype,"isMobile",void 0),de([lS()],dt.prototype,"onRetry",void 0);let dr=class extends dt{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),t_.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;let{connectors:e}=tD.state,t=e.find(e=>"ANNOUNCED"===e.type&&e.info?.rdns===this.wallet?.rdns||"INJECTED"===e.type||e.name===this.wallet?.name);if(t)await tX.connectExternal(t,t.chain);else throw Error("w3m-connecting-wc-browser: No connector found");no.close(),t_.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown"}})}catch(e){t_.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};dr=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("w3m-connecting-wc-browser")],dr);let di=class extends dt{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),t_.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;let{desktop_link:e,name:t}=this.wallet,{redirect:r,href:i}=tp.formatNativeUrl(e,this.uri);tX.setWcLinking({name:t,href:i}),tX.setRecentWallet(this.wallet),tp.openHref(r,"_blank")}catch{this.error=!0}}};di=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("w3m-connecting-wc-desktop")],di);let da=class extends dt{constructor(){if(super(),this.btnLabelTimeout=void 0,this.labelTimeout=void 0,this.onRender=()=>{!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())},this.onConnect=()=>{if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;let{mobile_link:e,name:t}=this.wallet,{redirect:r,href:i}=tp.formatNativeUrl(e,this.uri);tX.setWcLinking({name:t,href:i}),tX.setRecentWallet(this.wallet);let a=tp.isIframe()?"_top":"_self";tp.openHref(r,a),clearTimeout(this.labelTimeout),this.secondaryLabel=tu.CONNECT_LABELS.MOBILE}catch(e){t_.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:e instanceof Error?e.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw Error("w3m-connecting-wc-mobile: No wallet provided");this.initializeStateAndTimers(),document.addEventListener("visibilitychange",this.onBuffering.bind(this)),t_.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this)),clearTimeout(this.btnLabelTimeout),clearTimeout(this.labelTimeout)}initializeStateAndTimers(){this.secondaryBtnLabel=void 0,this.secondaryLabel=tu.CONNECT_LABELS.MOBILE,this.btnLabelTimeout=setTimeout(()=>{this.secondaryBtnLabel="Try again",this.secondaryLabel=tu.CONNECT_LABELS.MOBILE},tu.FIVE_SEC_MS),this.labelTimeout=setTimeout(()=>{this.secondaryLabel="Hold tight... it's taking longer than expected"},tu.THREE_SEC_MS)}onBuffering(){let e=tp.isIos();document?.visibilityState==="visible"&&!this.error&&e&&(tX.setBuffering(!0),setTimeout(()=>{tX.setBuffering(!1)},5e3))}onTryAgain(){this.buffering||(clearTimeout(this.btnLabelTimeout),clearTimeout(this.labelTimeout),this.initializeStateAndTimers(),tX.setWcError(!1),this.onConnect())}};da=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
2316);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("w3m-connecting-wc-mobile")],da);var dn={},ds={},dl={};let dc=[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];dl.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},dl.getSymbolTotalCodewords=function(e){return dc[e]},dl.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},dl.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');s=e},dl.isKanjiModeEnabled=function(){return"u">typeof s},dl.toSJIS=function(e){return s(e)};var dd={};function du(){this.buffer=[],this.length=0}function dh(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)}dd.L={bit:1},dd.M={bit:0},dd.Q={bit:3},dd.H={bit:2},dd.isValid=function(e){return e&&"u">typeof e.bit&&e.bit>=0&&e.bit<4},dd.from=function(e,t){if(dd.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return dd.L;case"m":case"medium":return dd.M;case"q":case"quartile":return dd.Q;case"h":case"high":return dd.H;default:throw Error("Unknown EC Level: "+e)}}catch{return t}},du.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++}},dh.prototype.set=function(e,t,r,i){let a=e*this.size+t;this.data[a]=r,i&&(this.reservedBit[a]=!0)},dh.prototype.get=function(e,t){return this.data[e*this.size+t]},dh.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},dh.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var dp={};c=dl.getSymbolSize,dp.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=c(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),a=[r-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},dp.getPositions=function(e){let t=[],r=dp.getRowColCoords(e),i=r.length;for(let e=0;e<i;e++)for(let a=0;a<i;a++)0===e&&0===a||0===e&&a===i-1||e===i-1&&0===a||t.push([r[e],r[a]]);return t};var dg={};let df=dl.getSymbolSize;dg.getPositions=function(e){let t=df(e);return[[0,0],[t-7,0],[0,t-7]]};var dw={};dw.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},dw.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},dw.from=function(e){return dw.isValid(e)?parseInt(e,10):void 0},dw.getPenaltyN1=function(e){let t=e.size,r=0,i=0,a=0,o=null,n=null;for(let s=0;s<t;s++){i=a=0,o=n=null;for(let l=0;l<t;l++){let t=e.get(s,l);t===o?i++:(i>=5&&(r+=3+(i-5)),o=t,i=1),(t=e.get(l,s))===n?a++:(a>=5&&(r+=3+(a-5)),n=t,a=1)}i>=5&&(r+=3+(i-5)),a>=5&&(r+=3+(a-5))}return r},dw.getPenaltyN2=function(e){let t=e.size,r=0;for(let i=0;i<t-1;i++)for(let a=0;a<t-1;a++){let t=e.get(i,a)+e.get(i,a+1)+e.get(i+1,a)+e.get(i+1,a+1);(4===t||0===t)&&r++}return 3*r},dw.getPenaltyN3=function(e){let t=e.size,r=0,i=0,a=0;for(let o=0;o<t;o++){i=a=0;for(let n=0;n<t;n++)i=i<<1&2047|e.get(o,n),n>=10&&(1488===i||93===i)&&r++,a=a<<1&2047|e.get(n,o),n>=10&&(1488===a||93===a)&&r++}return 40*r},dw.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let i=0;i<r;i++)t+=e.data[i];return 10*Math.abs(Math.ceil(100*t/r/5)-10)},dw.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,function(e,t,r){switch(e){case dw.Patterns.PATTERN000:return(t+r)%2==0;case dw.Patterns.PATTERN001:return t%2==0;case dw.Patterns.PATTERN010:return r%3==0;case dw.Patterns.PATTERN011:return(t+r)%3==0;case dw.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case dw.Patterns.PATTERN101:return t*r%2+t*r%3==0;case dw.Patterns.PATTERN110:return(t*r%2+t*r%3)%2==0;case dw.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,a,i))},dw.getBestMask=function(e,t){let r=Object.keys(dw.Patterns).length,i=0,a=1/0;for(let o=0;o<r;
2316o++){t(o),dw.applyMask(o,e);let r=dw.getPenaltyN1(e)+dw.getPenaltyN2(e)+dw.getPenaltyN3(e)+dw.getPenaltyN4(e);dw.applyMask(o,e),r<a&&(a=r,i=o)}return i};var dm={};let dv=[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],db=[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];dm.getBlocksCount=function(e,t){switch(t){case dd.L:return dv[(e-1)*4+0];case dd.M:return dv[(e-1)*4+1];case dd.Q:return dv[(e-1)*4+2];case dd.H:return dv[(e-1)*4+3];default:return}},dm.getTotalCodewordsCount=function(e,t){switch(t){case dd.L:return db[(e-1)*4+0];case dd.M:return db[(e-1)*4+1];case dd.Q:return db[(e-1)*4+2];case dd.H:return db[(e-1)*4+3];default:return}};var dy={},dC={};let dx=new Uint8Array(512),dk=new Uint8Array(256);function dA(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}(function(){let e=1;for(let t=0;t<255;t++)dx[t]=e,dk[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)dx[e]=dx[e-255]})(),dC.log=function(e){if(e<1)throw Error("log("+e+")");return dk[e]},dC.exp=function(e){return dx[e]},dC.mul=function(e,t){return 0===e||0===t?0:dx[dk[e]+dk[t]]},dy.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<t.length;a++)r[i+a]^=dC.mul(e[i],t[a]);return r},dy.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let i=0;i<t.length;i++)r[i]^=dC.mul(t[i],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},dy.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let r=0;r<e;r++)t=dy.mul(t,new Uint8Array([1,dC.exp(r)]));return t},dA.prototype.initialize=function(e){this.degree=e,this.genPoly=dy.generateECPolynomial(this.degree)},dA.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=dy.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r};var dI={},dE={},dS={};dS.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var dN={};let dP="[0-9]+",d_="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",d$="(?:(?![A-Z0-9 $%*+\\-./:]|"+(d_=d_.replace(/u/g,"\\u"))+`)(?:.|[\r
2317]))+`;dN.KANJI=RegExp(d_,"g"),dN.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),dN.BYTE=RegExp(d$,"g"),dN.NUMERIC=RegExp(dP,"g"),dN.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let dO=RegExp("^"+d_+"$"),dT=RegExp("^"+dP+"$"),dR=RegExp("^[A-Z0-9 $%*+\\-./:]+$");dN.testKanji=function(e){return dO.test(e)},dN.testNumeric=function(e){return dT.test(e)},dN.testAlphanumeric=function(e){return dR.test(e)},dE.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},dE.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},dE.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},dE.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},dE.MIXED={bit:-1},dE.getCharCountIndicator=function(e,t){if(!e.ccBits)throw Error("Invalid mode: "+e);if(!dS.isValid(t))throw Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},dE.getBestModeForData=function(e){return dN.testNumeric(e)?dE.NUMERIC:dN.testAlphanumeric(e)?dE.ALPHANUMERIC:dN.testKanji(e)?dE.KANJI:dE.BYTE},dE.toString=function(e){if(e&&e.id)return e.id;throw Error("Invalid mode")},dE.isValid=function(e){return e&&e.bit&&e.ccBits},dE.from=function(e,t){if(dE.isValid(e))return e;try{if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return dE.NUMERIC;case"alphanumeric":return dE.ALPHANUMERIC;case"kanji":return dE.KANJI;case"byte":return dE.BYTE;default:throw Error("Unknown mode: "+e)}}catch{return t}}
2317,function(e){let t=dl.getBCHDigit(7973);function r(e,t){return dE.getCharCountIndicator(e,t)+4}e.from=function(e,t){return dS.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,t,i){if(!dS.isValid(e))throw Error("Invalid QR Code version");typeof i>"u"&&(i=dE.BYTE);let a=(dl.getSymbolTotalCodewords(e)-dm.getTotalCodewordsCount(e,t))*8;if(i===dE.MIXED)return a;let o=a-r(i,e);switch(i){case dE.NUMERIC:return Math.floor(o/10*3);case dE.ALPHANUMERIC:return Math.floor(o/11*2);case dE.KANJI:return Math.floor(o/13);case dE.BYTE:default:return Math.floor(o/8)}},e.getBestVersionForData=function(t,i){let a,o=dd.from(i,dd.M);if(Array.isArray(t)){if(t.length>1){for(let i=1;i<=40;i++)if(function(e,t){let i=0;return e.forEach(function(e){let a=r(e.mode,t);i+=a+e.getBitsLength()}),i}(t,i)<=e.getCapacity(i,o,dE.MIXED))return i;return}if(0===t.length)return 1;a=t[0]}else a=t;return function(t,r,i){for(let a=1;a<=40;a++)if(r<=e.getCapacity(a,i,t))return a}(a.mode,a.getLength(),o)},e.getEncodedBits=function(e){if(!dS.isValid(e)||e<7)throw Error("Invalid QR Code version");let r=e<<12;for(;dl.getBCHDigit(r)-t>=0;)r^=7973<<dl.getBCHDigit(r)-t;return e<<12|r}}(dI);var dB={};let dL=dl.getBCHDigit(1335);dB.getEncodedBits=function(e,t){let r=e.bit<<3|t,i=r<<10;for(;dl.getBCHDigit(i)-dL>=0;)i^=1335<<dl.getBCHDigit(i)-dL;return(r<<10|i)^21522};var dM={};function dU(e){this.mode=dE.NUMERIC,this.data=e.toString()}dU.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},dU.prototype.getLength=function(){return this.data.length},dU.prototype.getBitsLength=function(){return dU.getBitsLength(this.data.length)},dU.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let i=this.data.length-t;i>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*i+1))};let dz=["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 dj(e){this.mode=dE.ALPHANUMERIC,this.data=e}dj.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},dj.prototype.getLength=function(){return this.data.length},dj.prototype.getBitsLength=function(){return dj.getBitsLength(this.data.length)},dj.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*dz.indexOf(this.data[t]);r+=dz.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(dz.indexOf(this.data[t]),6)};let dD=function(e){for(var t=[],r=e.length,i=0;i<r;i++){var a=e.charCodeAt(i);if(a>=55296&&a<=56319&&r>i+1){var o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(a=(a-55296)*1024+o-56320+65536,i+=1)}if(a<128){t.push(a);continue}if(a<2048){t.push(a>>6|192),t.push(63&a|128);continue}if(a<55296||a>=57344&&a<65536){t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128);continue}if(a>=65536&&a<=1114111){t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};function dW(e){this.mode=dE.BYTE,"string"==typeof e&&(e=dD(e)),this.data=new Uint8Array(e)}function dH(e){this.mode=dE.KANJI,this.data=e}dW.getBitsLength=function(e){return 8*e},dW.prototype.getLength=function(){return this.data.length},dW.prototype.getBitsLength=function(){return dW.getBitsLength(this.data.length)},dW.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},dH.getBitsLength=function(e){return 13*e},dH.prototype.getLength=function(){return this.data.length},dH.prototype.getBitsLength=function(){return dH.getBitsLength(this.data.length)},dH.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=dl.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]+`
2318Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(255&r),e.put(r,13)}};var dF={exports:{}};function dV(e,t,r){let i,a,o=e.size,n=dB.getEncodedBits(t,r);for(i=0;i<15;i++)a=(n>>i&1)==1,i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(o-15+i,8,a,!0),i<8?e.set(8,o-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(o-8,8,1,!0)}dF.exports=R={single_source_shortest_paths:function(e,t,r){var i,a,o,n,s,l,c,d={},u={};u[t]=0;var h=R.PriorityQueue.make();for(h.push(t,0);!h.empty();)for(o in a=(i=h.pop()).value,n=i.cost,s=e[a]||{})s.hasOwnProperty(o)&&(l=n+s[o],c=u[o],(typeof u[o]>"u"||c>l)&&(u[o]=l,h.push(o,l),d[o]=a));if("u">typeof r&&typeof u[r]>"u")throw Error("Could not find a path from "+t+" to "+r+".");return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],i=t;i;)r.push(i),e[i],i=e[i];return r.reverse(),r},find_path:function(e,t,r){var i=R.single_source_shortest_paths(e,t,r);return R.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t,r=R.PriorityQueue,i={};for(t in e=e||{},r)r.hasOwnProperty(t)&&(i[t]=r[t]);return i.queue=[],i.sorter=e.sorter||r.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}},function(e){let t=dF.exports;function r(e){return unescape(encodeURIComponent(e)).length}function i(e,t,r){let i,a=[];for(;null!==(i=e.exec(r));)a.push({data:i[0],index:i.index,mode:t,length:i[0].length});return a}function a(e){let t,r,a=i(dN.NUMERIC,dE.NUMERIC,e),o=i(dN.ALPHANUMERIC,dE.ALPHANUMERIC,e);return dl.isKanjiModeEnabled()?(t=i(dN.BYTE,dE.BYTE,e),r=i(dN.KANJI,dE.KANJI,e)):(t=i(dN.BYTE_KANJI,dE.BYTE,e),r=[]),a.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 o(e,t){switch(t){case dE.NUMERIC:return dU.getBitsLength(e);case dE.ALPHANUMERIC:return dj.getBitsLength(e);
vendor: 5,033 bytes, lines 2318-2322
2318case dE.KANJI:return dH.getBitsLength(e);case dE.BYTE:return dW.getBitsLength(e)}}function n(e,t){let r,i=dE.getBestModeForData(e);if((r=dE.from(t,i))!==dE.BYTE&&r.bit<i.bit)throw Error('"'+e+'" cannot be encoded with mode '+dE.toString(r)+`.
2319 Suggested mode is: `+dE.toString(i));switch(r===dE.KANJI&&!dl.isKanjiModeEnabled()&&(r=dE.BYTE),r){case dE.NUMERIC:return new dU(e);case dE.ALPHANUMERIC:return new dj(e);case dE.KANJI:return new dH(e);case dE.BYTE:return new dW(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(n(t,null)):t.data&&e.push(n(t.data,t.mode)),e},[])},e.fromString=function(i,n){let s=function(e,t){let r={},i={start:{}},a=["start"];for(let n=0;n<e.length;n++){let s=e[n],l=[];for(let e=0;e<s.length;e++){let c=s[e],d=""+n+e;l.push(d),r[d]={node:c,lastCount:0},i[d]={};for(let e=0;e<a.length;e++){let n=a[e];r[n]&&r[n].node.mode===c.mode?(i[n][d]=o(r[n].lastCount+c.length,c.mode)-o(r[n].lastCount,c.mode),r[n].lastCount+=c.length):(r[n]&&(r[n].lastCount=c.length),i[n][d]=o(c.length,c.mode)+4+dE.getCharCountIndicator(c.mode,t))}}a=l}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}(function(e){let t=[];for(let i=0;i<e.length;i++){let a=e[i];switch(a.mode){case dE.NUMERIC:t.push([a,{data:a.data,mode:dE.ALPHANUMERIC,length:a.length},{data:a.data,mode:dE.BYTE,length:a.length}]);break;case dE.ALPHANUMERIC:t.push([a,{data:a.data,mode:dE.BYTE,length:a.length}]);break;case dE.KANJI:t.push([a,{data:a.data,mode:dE.BYTE,length:r(a.data)}]);break;case dE.BYTE:t.push([{data:a.data,mode:dE.BYTE,length:r(a.data)}])}}return t}(a(i,dl.isKanjiModeEnabled())),n),l=t.find_path(s.map,"start","end"),c=[];for(let e=1;e<l.length-1;e++)c.push(s.table[l[e]].node);return e.fromArray(c.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},[]))},e.rawSplit=function(t){return e.fromArray(a(t,dl.isKanjiModeEnabled()))}}(dM),ds.create=function(e,t){if(typeof e>"u"||""===e)throw Error("No input text");let r=dd.M,i,a;return"u">typeof t&&(r=dd.from(t.errorCorrectionLevel,dd.M),i=dI.from(t.version),a=dw.from(t.maskPattern),t.toSJISFunc&&dl.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let a;if(Array.isArray(e))a=dM.fromArray(e);else if("string"==typeof e){let i=t;if(!i){let t=dM.rawSplit(e);i=dI.getBestVersionForData(t,r)}a=dM.fromString(e,i||40)}else throw Error("Invalid data");let o=dI.getBestVersionForData(a,r);if(!o)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<o)throw Error(`
2320The chosen QR Code version cannot contain this amount of data.
2321Minimum version required to store current data is: `+o+`.
2322`)}else t=o;let n=function(e,t,r){let i=new du;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),dE.getCharCountIndicator(t.mode,e)),t.write(i)});let a=(dl.getSymbolTotalCodewords(e)-dm.getTotalCodewordsCount(e,t))*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let o=(a-i.getLengthInBits())/8;for(let e=0;e<o;e++)i.put(e%2?17:236,8);return function(e,t,r){let i=dl.getSymbolTotalCodewords(t),a=i-dm.getTotalCodewordsCount(t,r),o=dm.getBlocksCount(t,r),n=i%o,s=o-n,l=Math.floor(i/o),c=Math.floor(a/o),d=c+1,u=l-c,h=new dA(u),p=0,g=Array(o),f=Array(o),w=0,m=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?c:d;g[e]=m.slice(p,p+t),f[e]=h.encode(g[e]),p+=t,w=Math.max(w,t)}let v=new Uint8Array(i),b=0,y,C;for(y=0;y<w;y++)for(C=0;C<o;C++)y<g[C].length&&(v[b++]=g[C][y]);for(y=0;y<u;y++)for(C=0;C<o;C++)v[b++]=f[C][y];return v}(i,e,t)}(t,r,a),s=new dh(dl.getSymbolSize(t));return function(e,t){let r=e.size,i=dg.getPositions(t);for(let t=0;t<i.length;t++){let a=i[t][0],o=i[t][1];for(let t=-1;t<=7;t++)if(!(a+t<=-1||r<=a+t))for(let i=-1;i<=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(a+t,o+i,!0,!0):e.set(a+t,o+i,!1,!0))}}(s,t),function(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)}}(s),function(e,t){let r=dp.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=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,a+r,!0,!0):e.set(i+t,a+r,!1,!0)}}(s,t),dV(s,r,0),t>=7&&function(e,t){let r,i,a,o=e.size,n=dI.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),i=t%3+o-8-3,a=(n>>t&1)==1,e.set(r,i,a,!0),e.set(i,r,a,!0)}(s,t),function(e,t){let r=e.size,i=-1,a=r-1,o=7,n=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(a,s-r)){let i=!1;n<t.length&&(i=(t[n]>>>o&1)==1),e.set(a,s-r,i),-1==--o&&(n++,o=7)}if((a+=i)<0||r<=a){a-=i,i=-i;break}}}(s,n),isNaN(i)&&(i=dw.getBestMask(s,dV.bind(null,s,r))),dw.applyMask(i,s),dV(s,r,i),{modules:s,version:t,errorCorrectionLevel:r,maskPattern:i,segments:a}}(e,i,r,a)};var dZ={},dq={};(function(e){function t(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("");
2322if(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("")}}e.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||null===e.margin||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:i,scale:i?4:a,margin:r,color:{dark:t(e.color.dark||"#000000ff"),light:t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},e.getImageWidth=function(t,r){let i=e.getScale(t,r);return Math.floor((t+2*r.margin)*i)},e.qrToImageData=function(t,r,i){let a=r.modules.size,o=r.modules.data,n=e.getScale(a,i),s=Math.floor((a+2*i.margin)*n),l=i.margin*n,c=[i.color.light,i.color.dark];for(let e=0;e<s;e++)for(let r=0;r<s;r++){let d=(e*s+r)*4,u=i.color.light;e>=l&&r>=l&&e<s-l&&r<s-l&&(u=c[+!!o[Math.floor((e-l)/n)*a+Math.floor((r-l)/n)]]),t[d++]=u.r,t[d++]=u.g,t[d++]=u.b,t[d]=u.a}}})(dq),dZ.render=function(e,t,r){var i;let a=r,o=t;!(typeof a>"u")||t&&t.getContext||(a=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch{throw Error("You need to specify a canvas element")}}()),a=dq.getOptions(a);let n=dq.getImageWidth(e.modules.size,a),s=o.getContext("2d"),l=s.createImageData(n,n);return dq.qrToImageData(l.data,e,a),i=o,s.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=n,i.width=n,i.style.height=n+"px",i.style.width=n+"px",s.putImageData(l,0,0),o},dZ.renderToDataURL=function(e,t,r){let i=r;!(typeof i>"u")||t&&t.getContext||(i=t,t=void 0),i||(i={});let a=dZ.render(e,t,i),o=i.type||"image/png",n=i.rendererOpts||{};return a.toDataURL(o,n.quality)};var dG={};function dK(e,t){let r=e.a/255,i=t+'="'+e.hex+'"';return r<1?i+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':i}function dY(e,t,r){let i=e+t;return"u">typeof r&&(i+=" "+r),i}function dX(e,t,r,i,a){let o=[].slice.call(arguments,1),n=o.length,s="function"==typeof o[n-1];if(!s&&!("function"==typeof Promise&&Promise.prototype&&Promise.prototype.then))throw Error("Callback required as last argument");if(s){if(n<2)throw Error("Too few arguments provided");2===n?(a=r,r=t,t=i=void 0):3===n&&(t.getContext&&typeof a>"u"?(a=i,i=void 0):(a=i,i=r,r=t,t=void 0))}else{if(n<1)throw Error("Too few arguments provided");return 1===n?(r=t,t=i=void 0):2!==n||t.getContext||(i=r,r=t,t=void 0),new Promise(function(a,o){try{let o=ds.create(r,i);a(e(o,t,i))}catch(e){o(e)}})}try{let o=ds.create(r,i);a(null,e(o,t,i))}catch(e){a(e)}}function dJ(e,t,r){return e!==t&&(e-t<0?t-e:e-t)<=r+.1}dG.render=function(e,t,r){let i=dq.getOptions(t),a=e.modules.size,o=e.modules.data,n=a+2*i.margin,s=i.color.light.a?"<path "+dK(i.color.light,"fill")+' d="M0 0h'+n+"v"+n+'H0z"/>':"",l="<path "+dK(i.color.dark,"stroke")+' d="'+function(e,t,r){let i="",a=0,o=!1,n=0;for(let s=0;s<e.length;s++){let l=Math.floor(s%t),c=Math.floor(s/t);l||o||(o=!0),e[s]?(n++,s>0&&l>0&&e[s-1]||(i+=o?dY("M",l+r,.5+c+r):dY("m",a,0),a=0,o=!1),l+1<t&&e[s+1]||(i+=dY("h",n),n=0)):a++}return i}(o,a,i.margin)+'"/>',c='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+('viewBox="0 0 '+n+" ")+n+'" shape-rendering="crispEdges">'+s+l+`</svg>
2323`;return"function"==typeof r&&r(null,c),c},dn.create=ds.create,dn.toCanvas=dX.bind(null,dZ.render),dn.toDataURL=dX.bind(null,dZ.renderToDataURL),dn.toString=dX.bind(null,function(e,t,r){return dG.render(e,r)});let dQ={generate({uri:e,size:t,logoSize:r,dotColor:i="#141414"}){let a,o,n=[],s=(o=Math.sqrt((a=Array.prototype.slice.call(dn.create(e,{errorCorrectionLevel:"Q"}).modules.data,0)).length),a.reduce((e,t,r)=>(r%o==0?e.push([t]):e[e.length-1].push(t))&&e,[])),l=t/s.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x:e,y:t})=>{let r=(s.length-7)*l*e,a=(s.length-7)*l*t;for(let e=0;e<c.length;e+=1){let t=l*(7-2*e);n.push(sL`
2324            <rect
2325              fill=${2===e?i:"transparent"}
2326              width=${0===e?t-5:t}
2327              rx= ${0===e?(t-5)*.45:.45*t}
2328              ry= ${0===e?(t-5)*.45:.45*t}
2329              stroke=${i}
2330              stroke-width=${5*(0===e)}
2331              height=${0===e?t-5:t}
2332              x= ${0===e?a+l*e+2.5:a+l*e}
2333              y= ${0===e?r+l*e+2.5:r+l*e}
2334            />
2335          `)}});let d=Math.floor((r+25)/l),u=s.length/2-d/2,h=s.length/2+d/2-1,p=[];
2335s.forEach((e,t)=>{e.forEach((e,r)=>{!s[t][r]||t<7&&r<7||t>s.length-8&&r<7||t<7&&r>s.length-8||t>u&&t<h&&r>u&&r<h||p.push([t*l+l/2,r*l+l/2])})});let g={};return p.forEach(([e,t])=>{g[e]?g[e]?.push(t):g[e]=[t]}),Object.entries(g).map(([e,t])=>{let r=t.filter(e=>t.every(t=>!dJ(e,t,l)));return[Number(e),r]}).forEach(([e,t])=>{t.forEach(t=>{n.push(sL`<circle cx=${e} cy=${t} fill=${i} r=${l/2.5} />`)})}),Object.entries(g).filter(([e,t])=>t.length>1).map(([e,t])=>{let r=t.filter(e=>t.some(t=>dJ(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=>dJ(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])=>{n.push(sL`
2336              <line
2337                x1=${e}
2338                x2=${e}
2339                y1=${t}
2340                y2=${r}
2341                stroke=${i}
2342                stroke-width=${l/1.25}
2343                stroke-linecap="round"
2344              />
2345            `)})}),n}};var d0=n9`
2346  :host {
2347    position: relative;
2348    user-select: none;
2349    display: block;
2350    overflow: hidden;
2351    aspect-ratio: 1 / 1;
2352    width: var(--local-size);
2353  }
2354
2355  :host([data-theme='dark']) {
2356    border-radius: clamp(0px, var(--wui-border-radius-l), 40px);
2357    background-color: var(--wui-color-inverse-100);
2358    padding: var(--wui-spacing-l);
2359  }
2360
2361  :host([data-theme='light']) {
2362    box-shadow: 0 0 0 1px var(--wui-color-bg-125);
2363    background-color: var(--wui-color-bg-125);
2364  }
2365
2366  :host([data-clear='true']) > wui-icon {
2367    display: none;
2368  }
2369
2370  svg:first-child,
2371  wui-image,
2372  wui-icon {
2373    position: absolute;
2374    top: 50%;
2375    left: 50%;
2376    transform: translateY(-50%) translateX(-50%);
2377  }
2378
2379  wui-image {
2380    width: 25%;
2381    height: 25%;
2382    border-radius: var(--wui-border-radius-xs);
2383  }
2384
2385  wui-icon {
2386    width: 100%;
2387    height: 100%;
2388    color: var(--local-icon-color) !important;
2389    transform: translateY(-50%) translateX(-50%) scale(0.25);
2390  }
2391`,d1=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let d2=class extends sQ{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`
2392     --local-size: ${this.size}px;
2393     --local-icon-color: ${this.color??"#3396ff"}
2394    `,sB`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){let e="light"===this.theme?this.size:this.size-32;return sL`
2395      <svg height=${e} width=${e}>
2396        ${dQ.generate({uri:this.uri,size:e,logoSize:this.arenaClear?0:e/4,dotColor:this.color})}
2397      </svg>
2398    `}templateVisual(){return this.imageSrc?sB`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?sB`<wui-icon
2399        class="farcaster"
2400        size="inherit"
2401        color="inherit"
2402        name="farcaster"
2403      ></wui-icon>`:sB`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};d2.styles=[s3,d0],d1([lS()],d2.prototype,"uri",void 0),d1([lS({type:Number})],d2.prototype,"size",void 0),d1([lS()],d2.prototype,"theme",void 0),d1([lS()],d2.prototype,"imageSrc",void 0),d1([lS()],d2.prototype,"alt",void 0),d1([lS()],d2.prototype,"color",void 0),d1([lS({type:Boolean})],d2.prototype,"arenaClear",void 0),d1([lS({type:Boolean})],d2.prototype,"farcaster",void 0),d2=d1([s8("wui-qr-code")],d2);var d3=n9`
2404  :host {
2405    display: block;
2406    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
2407    background: linear-gradient(
2408      120deg,
2409      var(--wui-color-bg-200) 5%,
2410      var(--wui-color-bg-200) 48%,
2411      var(--wui-color-bg-300) 55%,
2412      var(--wui-color-bg-300) 60%,
2413      var(--wui-color-bg-300) calc(60% + 10px),
2414      var(--wui-color-bg-200) calc(60% + 12px),
2415      var(--wui-color-bg-200) 100%
2416    );
2417    background-size: 250%;
2418    animation: shimmer 3s linear infinite reverse;
2419  }
2420
2421  :host([variant='light']) {
2422    background: linear-gradient(
2423      120deg,
2424      var(--wui-color-bg-150) 5%,
2425      var(--wui-color-bg-150) 48%,
2426      var(--wui-color-bg-200) 55%,
2427      var(--wui-color-bg-200) 60%,
2428      var(--wui-color-bg-200) calc(60% + 10px),
2429      var(--wui-color-bg-150) calc(60% + 12px),
2430      var(--wui-color-bg-150) 100%
2431    );
2432    background-size: 250%;
2433  }
2434
2435  @keyframes shimmer {
2436    from {
2437      background-position: -250% 0;
2438    }
2439    to {
2440      background-position: 250% 0;
2441    }
2442  }
2443`,d5=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
2443);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let d4=class extends sQ{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=`
2444      width: ${this.width};
2445      height: ${this.height};
2446      border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);
2447    `,sB`<slot></slot>`}};d4.styles=[d3],d5([lS()],d4.prototype,"width",void 0),d5([lS()],d4.prototype,"height",void 0),d5([lS()],d4.prototype,"borderRadius",void 0),d5([lS()],d4.prototype,"variant",void 0),d4=d5([s8("wui-shimmer")],d4);var d6=n9`
2448  .reown-logo {
2449    height: var(--wui-spacing-xxl);
2450  }
2451`;let d8=class extends sQ{render(){return sB`
2452      <wui-flex
2453        justifyContent="center"
2454        alignItems="center"
2455        gap="xs"
2456        .padding=${["0","0","l","0"]}
2457      >
2458        <wui-text variant="small-500" color="fg-100"> UX by </wui-text>
2459        <wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>
2460      </wui-flex>
2461    `}};d8.styles=[s3,s5,d6],d8=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("wui-ux-by-reown")],d8);var d7=n9`
2462  @keyframes fadein {
2463    from {
2464      opacity: 0;
2465    }
2466    to {
2467      opacity: 1;
2468    }
2469  }
2470
2471  wui-shimmer {
2472    width: 100%;
2473    aspect-ratio: 1 / 1;
2474    border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
2475  }
2476
2477  wui-qr-code {
2478    opacity: 0;
2479    animation-duration: 200ms;
2480    animation-timing-function: ease;
2481    animation-name: fadein;
2482    animation-fill-mode: forwards;
2483  }
2484`;let d9=class extends dt{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),t_.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe?.forEach(e=>e()),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),sB`
2485      <wui-flex
2486        flexDirection="column"
2487        alignItems="center"
2488        .padding=${["0","xl","xl","xl"]}
2489        gap="xl"
2490      >
2491        <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>
2492
2493        <wui-text variant="paragraph-500" color="fg-100">
2494          Scan this QR Code with your phone
2495        </wui-text>
2496        ${this.copyTemplate()}
2497      </wui-flex>
2498      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
2499    `}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 tX.setWcLinking(void 0),tX.setRecentWallet(this.wallet),sB` <wui-qr-code
2500      size=${e}
2501      theme=${tU.state.themeMode}
2502      uri=${this.uri}
2503      imageSrc=${tC.getWalletImage(this.wallet)??sU}
2504      color=${tU.state.themeVariables["--w3m-qr-color"]??sU}
2505      alt=${t??sU}
2506      data-testid="wui-qr-code"
2507    ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return sB`<wui-link
2508      .disabled=${e}
2509      @click=${this.onCopyUri}
2510      color="fg-200"
2511      data-testid="copy-wc2-uri"
2512    >
2513      <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
2514      Copy link
2515    </wui-link>`}};d9.styles=d7,d9=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("w3m-connecting-wc-qrcode")],d9);let ue=class extends sQ{constructor(){if(super(),this.wallet=tL.state.data?.wallet,!this.wallet)throw Error("w3m-connecting-wc-unsupported: No wallet provided");
2515t_.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return sB`
2516      <wui-flex
2517        flexDirection="column"
2518        alignItems="center"
2519        .padding=${["3xl","xl","xl","xl"]}
2520        gap="xl"
2521      >
2522        <wui-wallet-image
2523          size="lg"
2524          imageSrc=${tC.getWalletImage(this.wallet)??sU}
2525        ></wui-wallet-image>
2526
2527        <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>
2528      </wui-flex>
2529
2530      <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
2531    `}};ue=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("w3m-connecting-wc-unsupported")],ue);var ut=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let ur=class extends dt{constructor(){if(super(),this.isLoading=!0,!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",this.updateLoadingState(),this.unsubscribe.push(tX.subscribeKey("wcUri",()=>{this.updateLoadingState()})),t_.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;let{webapp_link:e,name:t}=this.wallet,{redirect:r,href:i}=tp.formatUniversalUrl(e,this.uri);tX.setWcLinking({name:t,href:i}),tX.setRecentWallet(this.wallet),tp.openHref(r,"_blank")}catch{this.error=!0}}};ut([lN()],ur.prototype,"isLoading",void 0),ur=ut([s8("w3m-connecting-wc-web")],ur);var ui=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let ua=class extends sQ{constructor(){super(),this.wallet=tL.state.data?.wallet,this.platform=void 0,this.platforms=[],this.isSiwxEnabled=!!tA.state.siwx,this.determinePlatforms(),this.initializeConnection()}render(){return sB`
2532      ${this.headerTemplate()}
2533      <div>${this.platformTemplate()}</div>
2534      <wui-ux-by-reown></wui-ux-by-reown>
2535    `}async initializeConnection(e=!1){if(!("browser"===this.platform||tA.state.manualWCControl&&!e))try{let{wcPairingExpiry:t,status:r}=tX.state;(e||tA.state.enableEmbedded||tp.isPairingExpired(t)||"connecting"===r)&&(await tX.connectWalletConnect(),this.isSiwxEnabled||no.close())}catch(e){t_.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),tX.setWcError(!0),tZ.showError(e.message??"Connection error"),tX.resetWcConnection(),tL.goBack()}}determinePlatforms(){if(!this.wallet){this.platforms.push("qrcode"),this.platform="qrcode";return}if(this.platform)return;let{mobile_link:e,desktop_link:t,webapp_link:r,injected:i,rdns:a}=this.wallet,o=i?.map(({injected_id:e})=>
2535e).filter(Boolean),n=[...a?[a]:o??[]],s=!tA.state.isUniversalProvider&&n.length,l=tX.checkInstalled(n),c=s&&l,d=t&&!tp.isMobile();c&&!o8.state.noAdapters&&this.platforms.push("browser"),e&&this.platforms.push(tp.isMobile()?"mobile":"qrcode"),r&&this.platforms.push("web"),d&&this.platforms.push("desktop"),c||!s||o8.state.noAdapters||this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return sB`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"web":return sB`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case"desktop":return sB`
2536          <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
2537          </w3m-connecting-wc-desktop>
2538        `;case"mobile":return sB`
2539          <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>
2540          </w3m-connecting-wc-mobile>
2541        `;case"qrcode":return sB`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return sB`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?sB`
2542      <w3m-connecting-header
2543        .platforms=${this.platforms}
2544        .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
2545      >
2546      </w3m-connecting-header>
2547    `: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"}))}};ui([lN()],ua.prototype,"platform",void 0),ui([lN()],ua.prototype,"platforms",void 0),ui([lN()],ua.prototype,"isSiwxEnabled",void 0),ua=ui([s8("w3m-connecting-wc-view")],ua);var uo=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let un=class extends sQ{constructor(){super(...arguments),this.isMobile=tp.isMobile()}render(){if(this.isMobile){let{featured:e,recommended:t}=tR.state,{customWallets:r}=tA.state,i=th.getRecentWallets(),a=e.length||t.length||r?.length||i.length;return sB`<wui-flex
2548        flexDirection="column"
2549        gap="xs"
2550        .margin=${["3xs","s","s","s"]}
2551      >
2552        ${a?sB`<w3m-connector-list></w3m-connector-list>`:null}
2553        <w3m-all-wallets-widget></w3m-all-wallets-widget>
2554      </wui-flex>`}return sB`<wui-flex flexDirection="column" .padding=${["0","0","l","0"]}>
2555      <w3m-connecting-wc-view></w3m-connecting-wc-view>
2556      <wui-flex flexDirection="column" .padding=${["0","m","0","m"]}>
2557        <w3m-all-wallets-widget></w3m-all-wallets-widget> </wui-flex
2558    ></wui-flex>`}};uo([lN()],un.prototype,"isMobile",void 0),un=uo([s8("w3m-connecting-wc-basic-view")],un);let us=()=>new ul;class ul{}let uc=new WeakMap,ud=lO(class extends lj{render(e){return sU}update(e,[t]){let r=t!==this.G;return r&&void 0!==this.G&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.G=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),sU}rt(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){let t=this.ht??globalThis,r=uc.get(t);void 0===r&&(r=new WeakMap,uc.set(t,r)),void 0!==r.get(this.G)&&this.G.call(this.ht,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}get lt(){return"function"==typeof this.G?uc.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var uu=n9`
2559  :host {
2560    display: flex;
2561    align-items: center;
2562    justify-content: center;
2563  }
2564
2565  label {
2566    position: relative;
2567    display: inline-block;
2568    width: 32px;
2569    height: 22px;
2570  }
2571
2572  input {
2573    width: 0;
2574    height: 0;
2575    opacity: 0;
2576  }
2577
2578  span {
2579    position: absolute;
2580    cursor: pointer;
2581    top: 0;
2582    left: 0;
2583    right: 0;
2584    bottom: 0;
2585    background-color: var(--wui-color-blue-100);
2586    border-width: 1px;
2587    border-style: solid;
2588    border-color: var(--wui-color-gray-glass-002);
2589    border-radius: 999px;
2590    transition:
2591      background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
2592      border-color var(--wui-ease-inout-power-1) var(--wui-duration-md);
2593    will-change: background-color, border-color;
2594  }
2595
2596  span:before {
2597    position: absolute;
2598    content: '';
2599    height: 16px;
2600    width: 16px;
2601    left: 3px;
2602    top: 2px;
2603    background-color: var(--wui-color-inverse-100);
2604    transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg);
2605    will-change: transform;
2606    border-radius: 50%;
2607  }
2608
2609  input:checked + span {
2610    border-color: var(--wui-color-gray-glass-005);
2611    background-color: var(--wui-color-blue-100);
2612  }
2613
2614  input:not(:checked) + span {
2615    background-color: var(--wui-color-gray-glass-010);
2616  }
2617
2618  input:checked + span:before {
2619    transform: translateX(calc(100% - 7px));
2620  }
2621`,uh=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
2621);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let up=class extends sQ{constructor(){super(...arguments),this.inputElementRef=us(),this.checked=void 0}render(){return sB`
2622      <label>
2623        <input
2624          ${ud(this.inputElementRef)}
2625          type="checkbox"
2626          ?checked=${this.checked??sU}
2627          @change=${this.dispatchChangeEvent.bind(this)}
2628        />
2629        <span></span>
2630      </label>
2631    `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("switchChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};up.styles=[s3,s5,s4,uu],uh([lS({type:Boolean})],up.prototype,"checked",void 0),up=uh([s8("wui-switch")],up);var ug=n9`
2632  :host {
2633    height: 100%;
2634  }
2635
2636  button {
2637    display: flex;
2638    align-items: center;
2639    justify-content: center;
2640    column-gap: var(--wui-spacing-1xs);
2641    padding: var(--wui-spacing-xs) var(--wui-spacing-s);
2642    background-color: var(--wui-color-gray-glass-002);
2643    border-radius: var(--wui-border-radius-xs);
2644    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
2645    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
2646    will-change: background-color;
2647    cursor: pointer;
2648  }
2649
2650  wui-switch {
2651    pointer-events: none;
2652  }
2653`,uf=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uw=class extends sQ{constructor(){super(...arguments),this.checked=void 0}render(){return sB`
2654      <button>
2655        <wui-icon size="xl" name="walletConnectBrown"></wui-icon>
2656        <wui-switch ?checked=${this.checked??sU}></wui-switch>
2657      </button>
2658    `}};uw.styles=[s3,s5,ug],uf([lS({type:Boolean})],uw.prototype,"checked",void 0),uw=uf([s8("wui-certified-switch")],uw);var um=n9`
2659  button {
2660    background-color: var(--wui-color-fg-300);
2661    border-radius: var(--wui-border-radius-4xs);
2662    width: 16px;
2663    height: 16px;
2664  }
2665
2666  button:disabled {
2667    background-color: var(--wui-color-bg-300);
2668  }
2669
2670  wui-icon {
2671    color: var(--wui-color-bg-200) !important;
2672  }
2673
2674  button:focus-visible {
2675    background-color: var(--wui-color-fg-250);
2676    border: 1px solid var(--wui-color-accent-100);
2677  }
2678
2679  @media (hover: hover) and (pointer: fine) {
2680    button:hover:enabled {
2681      background-color: var(--wui-color-fg-250);
2682    }
2683
2684    button:active:enabled {
2685      background-color: var(--wui-color-fg-225);
2686    }
2687  }
2688`,uv=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let ub=class extends sQ{constructor(){super(...arguments),this.icon="copy"}render(){return sB`
2689      <button>
2690        <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon>
2691      </button>
2692    `}};ub.styles=[s3,s5,um],uv([lS()],ub.prototype,"icon",void 0),ub=uv([s8("wui-input-element")],ub);var uy=n9`
2693  :host {
2694    position: relative;
2695    width: 100%;
2696    display: inline-block;
2697    color: var(--wui-color-fg-275);
2698  }
2699
2700  input {
2701    width: 100%;
2702    border-radius: var(--wui-border-radius-xs);
2703    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
2704    background: var(--wui-color-gray-glass-002);
2705    font-size: var(--wui-font-size-paragraph);
2706    letter-spacing: var(--wui-letter-spacing-paragraph);
2707    color: var(--wui-color-fg-100);
2708    transition:
2709      background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
2710      border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
2711      box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
2712    will-change: background-color, border-color, box-shadow;
2713    caret-color: var(--wui-color-accent-100);
2714  }
2715
2716  input:disabled {
2717    cursor: not-allowed;
2718    border: 1px solid var(--wui-color-gray-glass-010);
2719  }
2720
2721  input:disabled::placeholder,
2722  input:disabled + wui-icon {
2723    color: var(--wui-color-fg-300);
2724  }
2725
2726  input::placeholder {
2727    color: var(--wui-color-fg-275);
2728  }
2729
2730  input:focus:enabled {
2731    background-color: var(--wui-color-gray-glass-005);
2732    -webkit-box-shadow:
2733      inset 0 0 0 1px var(--wui-color-accent-100),
2734      0px 0px 0px 4px var(--wui-box-shadow-blue);
2735    -moz-box-shadow:
2736      inset 0 0 0 1px var(--wui-color-accent-100),
2737      0px 0px 0px 4px var(--wui-box-shadow-blue);
2738    box-shadow:
2739      inset 0 0 0 1px var(--wui-color-accent-100),
2740      0px 0px 0px 4px var(--wui-box-shadow-blue);
2741  }
2742
2743  input:hover:enabled {
2744    background-color: var(--wui-color-gray-glass-005);
2745  }
2746
2747  wui-icon {
2748    position: absolute;
2749    top: 50%;
2750    transform: translateY(-50%);
2751    pointer-events: none;
2752  }
2753
2754  .wui-size-sm {
2755    padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);
2756  }
2757
2758  wui-icon + .wui-size-sm {
2759    padding: 9px var(--wui-spacing-m) 10px 36px;
2760  }
2761
2762  wui-icon[data-input='sm'] {
2763    left: var(--wui-spacing-s);
2764  }
2765
2766  .wui-size-md {
2767    padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);
2768  }
2769
2770  wui-icon + .wui-size-md,
2771  wui-loading-spinner + .wui-size-md {
2772    padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);
2773  }
2774
2775  wui-icon[data-input='md'] {
2776    left: var(--wui-spacing-l);
2777  }
2778
2779  .wui-size-lg {
2780    padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);
2781    letter-spacing: var(--wui-letter-spacing-medium-title);
2782    font-size: var(--wui-font-size-medium-title);
2783    font-weight: var(--wui-font-weight-light);
2784    line-height: 130%;
2785    color: var(--wui-color-fg-100);
2786    height: 64px;
2787  }
2788
2789  .wui-padding-right-xs {
2790    padding-right: var(--wui-spacing-xs);
2791  }
2792
2793  .wui-padding-right-s {
2794    padding-right: var(--wui-spacing-s);
2795  }
2796
2797  .wui-padding-right-m {
2798    padding-right: var(--wui-spacing-m);
2799  }
2800
2801  .wui-padding-right-l {
2802    padding-right: var(--wui-spacing-l);
2803  }
2804
2805  .wui-padding-right-xl {
2806    padding-right: var(--wui-spacing-xl);
2807  }
2808
2809  .wui-padding-right-2xl {
2810    padding-right: var(--wui-spacing-2xl);
2811  }
2812
2813  .wui-padding-right-3xl {
2814    padding-right: var(--wui-spacing-3xl);
2815  }
2816
2817  .wui-padding-right-4xl {
2818    padding-right: var(--wui-spacing-4xl);
2819  }
2820
2821  .wui-padding-right-5xl {
2822    padding-right: var(--wui-spacing-5xl);
2823  }
2824
2825  wui-icon + .wui-size-lg,
2826  wui-loading-spinner + .wui-size-lg {
2827    padding-left: 50px;
2828  }
2829
2830  wui-icon[data-input='lg'] {
2831    left: var(--wui-spacing-l);
2832  }
2833
2834  .wui-size-mdl {
2835    padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);
2836  }
2837  wui-icon + .wui-size-mdl,
2838  wui-loading-spinner + .wui-size-mdl {
2839    padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;
2840  }
2841  wui-icon[data-input='mdl'] {
2842    left: var(--wui-spacing-m);
2843  }
2844
2845  input:placeholder-shown ~ ::slotted(wui-input-element),
2846  input:placeholder-shown ~ ::slotted(wui-icon) {
2847    opacity: 0;
2848    pointer-events: none;
2849  }
2850
2851  input::-webkit-outer-spin-button,
2852  input::-webkit-inner-spin-button {
2853    -webkit-appearance: none;
2854    margin: 0;
2855  }
2856
2857  input[type='number'] {
2858    -moz-appearance: textfield;
2859  }
2860
2861  ::slotted(wui-input-element),
2862  ::slotted(wui-icon) {
2863    position: absolute;
2864    top: 50%;
2865    transform: translateY(-50%);
2866  }
2867
2868  ::slotted(wui-input-element) {
2869    right: var(--wui-spacing-m);
2870  }
2871
2872  ::slotted(wui-icon) {
2873    right: 0px;
2874  }
2875`,uC=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let ux=class extends sQ{constructor(){super(...arguments),this.inputElementRef=us(),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 sB`${this.templateIcon()}
2876      <input
2877        data-testid="wui-input-text"
2878        ${ud(this.inputElementRef)}
2879        class=${lQ(t)}
2880        type=${this.type}
2881        enterkeyhint=${this.enterKeyHint??sU}
2882        ?disabled=${this.disabled}
2883        placeholder=${this.placeholder}
2884        @input=${this.dispatchInputChangeEvent.bind(this)}
2885        .value=${this.value||""}
2886        tabindex=${this.tabIdx??sU}
2887      />
2888      <slot></slot>`}templateIcon(){return this.icon?sB`<wui-icon
2889        data-input=${this.size}
2890        size=${this.size}
2891        color="inherit"
2892        name=${this.icon}
2893      ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};ux.styles=[s3,s5,uy],uC([lS()],ux.prototype,"size",void 0),uC([lS()],ux.prototype,"icon",void 0),uC([lS({type:Boolean})],ux.prototype,"disabled",void 0),uC([lS()],ux.prototype,"placeholder",void 0),uC([lS()],ux.prototype,"type",void 0),uC([lS()],ux.prototype,"keyHint",void 0),uC([lS()],ux.prototype,"value",void 0),uC([lS()],ux.prototype,"inputRightPadding",void 0),uC([lS()],ux.prototype,"tabIdx",void 0),ux=uC([s8("wui-input-text")],ux);var uk=n9`
2894  :host {
2895    position: relative;
2896    display: inline-block;
2897    width: 100%;
2898  }
2899`;let uA=class extends sQ{constructor(){super(...arguments),this.inputComponentRef=us()}render(){return sB`
2900      <wui-input-text
2901        ${ud(this.inputComponentRef)}
2902        placeholder="Search wallet"
2903        icon="search"
2904        type="search"
2905        enterKeyHint="search"
2906        size="sm"
2907      >
2908        <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element>
2909      </wui-input-text>
2910    `}clearValue(){let e=this.inputComponentRef.value?.inputElementRef.value;e&&(e.value="",e.focus(),e.dispatchEvent(new Event("input")))}};uA.styles=[s3,uk],uA=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("wui-search-bar")],uA);let uI=sL`<svg  viewBox="0 0 48 54" fill="none">
2911  <path
2912    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"
2913  />
2914</svg>`;var uE=n9`
2915  :host {
2916    display: flex;
2917    flex-direction: column;
2918    align-items: center;
2919    width: 104px;
2920    row-gap: var(--wui-spacing-xs);
2921    padding: var(--wui-spacing-xs) 10px;
2922    background-color: var(--wui-color-gray-glass-002);
2923    border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
2924    position: relative;
2925  }
2926
2927  wui-shimmer[data-type='network'] {
2928    border: none;
2929    -webkit-clip-path: var(--wui-path-network);
2930    clip-path: var(--wui-path-network);
2931  }
2932
2933  svg {
2934    position: absolute;
2935    width: 48px;
2936    height: 54px;
2937    z-index: 1;
2938  }
2939
2940  svg > path {
2941    stroke: var(--wui-color-gray-glass-010);
2942    stroke-width: 1px;
2943  }
2944
2945  @media (max-width: 350px) {
2946    :host {
2947      width: 100%;
2948    }
2949  }
2950`,uS=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uN=class extends sQ{constructor(){super(...arguments),this.type="wallet"}render(){return sB`
2951      ${this.shimmerTemplate()}
2952      <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
2953    `}shimmerTemplate(){return"network"===this.type?sB` <wui-shimmer
2954          data-type=${this.type}
2955          width="48px"
2956          height="54px"
2957          borderRadius="xs"
2958        ></wui-shimmer>
2959        ${uI}`:sB`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};uN.styles=[s3,s5,uE],uS([lS()],uN.prototype,"type",void 0),uN=uS([s8("wui-card-select-loader")],uN);var uP=n9`
2960  :host {
2961    display: grid;
2962    width: inherit;
2963    height: inherit;
2964  }
2965`,u_=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
2965);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let u$=class extends sQ{render(){return this.style.cssText=`
2966      grid-template-rows: ${this.gridTemplateRows};
2967      grid-template-columns: ${this.gridTemplateColumns};
2968      justify-items: ${this.justifyItems};
2969      align-items: ${this.alignItems};
2970      justify-content: ${this.justifyContent};
2971      align-content: ${this.alignContent};
2972      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
2973      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
2974      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
2975      padding-top: ${this.padding&&s6.getSpacingStyles(this.padding,0)};
2976      padding-right: ${this.padding&&s6.getSpacingStyles(this.padding,1)};
2977      padding-bottom: ${this.padding&&s6.getSpacingStyles(this.padding,2)};
2978      padding-left: ${this.padding&&s6.getSpacingStyles(this.padding,3)};
2979      margin-top: ${this.margin&&s6.getSpacingStyles(this.margin,0)};
2980      margin-right: ${this.margin&&s6.getSpacingStyles(this.margin,1)};
2981      margin-bottom: ${this.margin&&s6.getSpacingStyles(this.margin,2)};
2982      margin-left: ${this.margin&&s6.getSpacingStyles(this.margin,3)};
2983    `,sB`<slot></slot>`}};u$.styles=[s3,uP],u_([lS()],u$.prototype,"gridTemplateRows",void 0),u_([lS()],u$.prototype,"gridTemplateColumns",void 0),u_([lS()],u$.prototype,"justifyItems",void 0),u_([lS()],u$.prototype,"alignItems",void 0),u_([lS()],u$.prototype,"justifyContent",void 0),u_([lS()],u$.prototype,"alignContent",void 0),u_([lS()],u$.prototype,"columnGap",void 0),u_([lS()],u$.prototype,"rowGap",void 0),u_([lS()],u$.prototype,"gap",void 0),u_([lS()],u$.prototype,"padding",void 0),u_([lS()],u$.prototype,"margin",void 0),u$=u_([s8("wui-grid")],u$);var uO=n9`
2984  button {
2985    display: flex;
2986    flex-direction: column;
2987    justify-content: center;
2988    align-items: center;
2989    cursor: pointer;
2990    width: 104px;
2991    row-gap: var(--wui-spacing-xs);
2992    padding: var(--wui-spacing-s) var(--wui-spacing-0);
2993    background-color: var(--wui-color-gray-glass-002);
2994    border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
2995    transition:
2996      color var(--wui-duration-lg) var(--wui-ease-out-power-1),
2997      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
2998      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);
2999    will-change: background-color, color, border-radius;
3000    outline: none;
3001    border: none;
3002  }
3003
3004  button > wui-flex > wui-text {
3005    color: var(--wui-color-fg-100);
3006    max-width: 86px;
3007    white-space: nowrap;
3008    overflow: hidden;
3009    text-overflow: ellipsis;
3010    justify-content: center;
3011  }
3012
3013  button > wui-flex > wui-text.certified {
3014    max-width: 66px;
3015  }
3016
3017  button:hover:enabled {
3018    background-color: var(--wui-color-gray-glass-005);
3019  }
3020
3021  button:disabled > wui-flex > wui-text {
3022    color: var(--wui-color-gray-glass-015);
3023  }
3024
3025  [data-selected='true'] {
3026    background-color: var(--wui-color-accent-glass-020);
3027  }
3028
3029  @media (hover: hover) and (pointer: fine) {
3030    [data-selected='true']:hover:enabled {
3031      background-color: var(--wui-color-accent-glass-015);
3032    }
3033  }
3034
3035  [data-selected='true']:active:enabled {
3036    background-color: var(--wui-color-accent-glass-010);
3037  }
3038
3039  @media (max-width: 350px) {
3040    button {
3041      width: 100%;
3042    }
3043  }
3044`,uT=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uR=class extends sQ{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){let e=this.wallet?.badge_type==="certified";return sB`
3045      <button>
3046        ${this.imageTemplate()}
3047        <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="3xs">
3048          <wui-text
3049            variant="tiny-500"
3050            color="inherit"
3051            class=${(e?"certified":void 0)??sU}
3052            >${this.wallet?.name}</wui-text
3053          >
3054          ${e?sB`<wui-icon size="sm" name="walletConnectBrown"></wui-icon>`:null}
3055        </wui-flex>
3056      </button>
3057    `}imageTemplate(){return(this.visible||this.imageSrc)&&!this.imageLoading?sB`
3058      <wui-wallet-image
3059        size="md"
3060        imageSrc=${this.imageSrc??sU}
3061        name=${this.wallet?.name}
3062        .installed=${this.wallet?.installed}
3063        badgeSize="sm"
3064      >
3065      </wui-wallet-image>
3066    `:this.shimmerTemplate()}shimmerTemplate(){return sB`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=tC.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await tC.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};uR.styles=uO,uT([lN()],uR.prototype,"visible",void 0),uT([lN()],uR.prototype,"imageSrc",void 0),uT([lN()],uR.prototype,"imageLoading",void 0),uT([lS()],uR.prototype,"wallet",void 0),uR=uT([s8("w3m-all-wallets-list-item")],uR);var uB=n9`
3067  wui-grid {
3068    max-height: clamp(360px, 400px, 80vh);
3069    overflow: scroll;
3070    scrollbar-width: none;
3071    grid-auto-rows: min-content;
3072    grid-template-columns: repeat(auto-fill, 104px);
3073  }
3074
3075  @media (max-width: 350px) {
3076    wui-grid {
3077      grid-template-columns: repeat(2, 1fr);
3078    }
3079  }
3080
3081  wui-grid[data-scroll='false'] {
3082    overflow: hidden;
3083  }
3084
3085  wui-grid::-webkit-scrollbar {
3086    display: none;
3087  }
3088
3089  wui-loading-spinner {
3090    padding-top: var(--wui-spacing-l);
3091    padding-bottom: var(--wui-spacing-l);
3092    justify-content: center;
3093    grid-column: 1 / span 4;
3094  }
3095`,uL=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uM="local-paginator",uU=class extends sQ{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!tR.state.wallets.length,this.wallets=tR.state.wallets,this.recommended=tR.state.recommended,this.featured=tR.state.featured,this.unsubscribe.push(tR.subscribeKey("wallets",e=>this.wallets=e),tR.subscribeKey("recommended",e=>this.recommended=e),tR.subscribeKey("featured",e=>this.featured=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return sB`
3096      <wui-grid
3097        data-scroll=${!this.loading}
3098        .padding=${["0","s","s","s"]}
3099        columnGap="xxs"
3100        rowGap="l"
3101        justifyContent="space-between"
3102      >
3103        ${this.loading?this.shimmerTemplate(16):this.walletsTemplate()}
3104        ${this.paginationLoaderTemplate()}
3105      </wui-grid>
3106    `}async initialFetch(){this.loading=!0;let e=this.shadowRoot?.querySelector("wui-grid");e&&(await tR.fetchWalletsByPage({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map(()=>sB`
3107        <wui-card-select-loader type="wallet" id=${t??sU}></wui-card-select-loader>
3108      `)}walletsTemplate(){let e=tp.uniqueBy([...this.featured,...this.recommended,...this.wallets],"id");return n1.markWalletsAsInstalled(e).map(e=>sB`
3109        <w3m-all-wallets-list-item
3110          @click=${()=>this.onConnectWallet(e)}
3111          .wallet=${e}
3112        ></w3m-all-wallets-list-item>
3113      `)}paginationLoaderTemplate(){let{wallets:e,recommended:t,featured:r,count:i}=tR.state,a=window.innerWidth<352?3:4,o=e.length+t.length,n=Math.ceil(o/a)*a-o+a;return n-=e.length?r.length%a:0,0===i&&r.length>0?null:0===i||[...r,...e,...t].length<i?this.shimmerTemplate(n,uM):null}createPaginationObserver(){let e=this.shadowRoot?.querySelector(`#${uM}`);e&&(this.paginationObserver=new IntersectionObserver(([e])=>{if(e?.isIntersecting&&!this.loading){let{page:e,count:t,wallets:r}=tR.state;r.length<t&&tR.fetchWalletsByPage({page:e+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){tD.selectWalletConnector(e)}};uU.styles=uB,uL([lN()],uU.prototype,"loading",void 0),uL([lN()],uU.prototype,"wallets",void 0),uL([lN()],uU.prototype,"recommended",void 0),uL([lN()],uU.prototype,"featured",void 0),uU=uL([s8("w3m-all-wallets-list")],uU);var uz=n9`
3114  wui-grid,
3115  wui-loading-spinner,
3116  wui-flex {
3117    height: 360px;
3118  }
3119
3120  wui-grid {
3121    overflow: scroll;
3122    scrollbar-width: none;
3123    grid-auto-rows: min-content;
3124    grid-template-columns: repeat(auto-fill, 104px);
3125  }
3126
3127  wui-grid[data-scroll='false'] {
3128    overflow: hidden;
3129  }
3130
3131  wui-grid::-webkit-scrollbar {
3132    display: none;
3133  }
3134
3135  wui-loading-spinner {
3136    justify-content: center;
3137    align-items: center;
3138  }
3139
3140  @media (max-width: 350px) {
3141    wui-grid {
3142      grid-template-columns: repeat(2, 1fr);
3143    }
3144  }
3145`,uj=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uD=class extends sQ{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?sB`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){(this.query.trim()!==this.prevQuery.trim()||this.badge!==this.prevBadge)&&(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await tR.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){let{search:e}=tR.state,t=n1.markWalletsAsInstalled(e);return e.length?sB`
3146      <wui-grid
3147        data-testid="wallet-list"
3148        .padding=${["0","s","s","s"]}
3149        rowGap="l"
3150        columnGap="xs"
3151        justifyContent="space-between"
3152      >
3153        ${t.map(e=>sB`
3154            <w3m-all-wallets-list-item
3155              @click=${()=>this.onConnectWallet(e)}
3156              .wallet=${e}
3157              data-testid="wallet-search-item-${e.id}"
3158            ></w3m-all-wallets-list-item>
3159          `)}
3160      </wui-grid>
3161    `:sB`
3162        <wui-flex
3163          data-testid="no-wallet-found"
3164          justifyContent="center"
3165          alignItems="center"
3166          gap="s"
3167          flexDirection="column"
3168        >
3169          <wui-icon-box
3170            size="lg"
3171            iconColor="fg-200"
3172            backgroundColor="fg-300"
3173            icon="wallet"
3174            background="transparent"
3175          ></wui-icon-box>
3176          <wui-text data-testid="no-wallet-found-text" color="fg-200" variant="paragraph-500">
3177            No Wallet found
3178          </wui-text>
3179        </wui-flex>
3180      `}onConnectWallet(e){tD.selectWalletConnector(e)}};uD.styles=uz,uj([lN()],uD.prototype,"loading",void 0),uj([lS()],uD.prototype,"query",void 0),uj([lS()],uD.prototype,"badge",void 0),uD=uj([s8("w3m-all-wallets-search")],uD);var uW=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uH=class extends sQ{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=tp.debounce(e=>{this.search=e})}render(){let e=this.search.length>=2;return sB`
3181      <wui-flex .padding=${["0","s","s","s"]} gap="xs">
3182        <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
3183        <wui-certified-switch
3184          ?checked=${this.badge}
3185          @click=${this.onClick.bind(this)}
3186          data-testid="wui-certified-switch"
3187        ></wui-certified-switch>
3188        ${this.qrButtonTemplate()}
3189      </wui-flex>
3190      ${e||this.badge?sB`<w3m-all-wallets-search
3191            query=${this.search}
3192            badge=${this.badge??sU}
3193          ></w3m-all-wallets-search>`:sB`<w3m-all-wallets-list badge=${this.badge??sU}></w3m-all-wallets-list>`}
3194    `}onInputChange(e){this.onDebouncedSearch(e.detail)}onClick(){if("certified"===this.badge){this.badge=void 0;return}this.badge="certified",tZ.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})}qrButtonTemplate(){return tp.isMobile()?sB`
3195        <wui-icon-box
3196          size="lg"
3197          iconSize="xl"
3198          iconColor="accent-100"
3199          backgroundColor="accent-100"
3200          icon="qrCode"
3201          background="transparent"
3202          border
3203          borderColor="wui-accent-glass-010"
3204          @click=${this.onWalletConnectQr.bind(this)}
3205        ></wui-icon-box>
3206      `:null}onWalletConnectQr(){tL.push("ConnectingWalletConnect")}};uW([lN()],uH.prototype,"search",void 0),uW([lN()],uH.prototype,"badge",void 0),uH=uW([s8("w3m-all-wallets-view")],uH);var uF=n9`
3207  button {
3208    column-gap: var(--wui-spacing-s);
3209    padding: 11px 18px 11px var(--wui-spacing-s);
3210    width: 100%;
3211    background-color: var(--wui-color-gray-glass-002);
3212    border-radius: var(--wui-border-radius-xs);
3213    color: var(--wui-color-fg-250);
3214    transition:
3215      color var(--wui-ease-out-power-1) var(--wui-duration-md),
3216      background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
3217    will-change: color, background-color;
3218  }
3219
3220  button[data-iconvariant='square'],
3221  button[data-iconvariant='square-blue'] {
3222    padding: 6px 18px 6px 9px;
3223  }
3224
3225  button > wui-flex {
3226    flex: 1;
3227  }
3228
3229  button > wui-image {
3230    width: 32px;
3231    height: 32px;
3232    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
3233    border-radius: var(--wui-border-radius-3xl);
3234  }
3235
3236  button > wui-icon {
3237    width: 36px;
3238    height: 36px;
3239    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
3240    will-change: opacity;
3241  }
3242
3243  button > wui-icon-box[data-variant='blue'] {
3244    box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
3245  }
3246
3247  button > wui-icon-box[data-variant='overlay'] {
3248    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
3249  }
3250
3251  button > wui-icon-box[data-variant='square-blue'] {
3252    border-radius: var(--wui-border-radius-3xs);
3253    position: relative;
3254    border: none;
3255    width: 36px;
3256    height: 36px;
3257  }
3258
3259  button > wui-icon-box[data-variant='square-blue']::after {
3260    content: '';
3261    position: absolute;
3262    top: 0;
3263    bottom: 0;
3264    left: 0;
3265    right: 0;
3266    border-radius: inherit;
3267    border: 1px solid var(--wui-color-accent-glass-010);
3268    pointer-events: none;
3269  }
3270
3271  button > wui-icon:last-child {
3272    width: 14px;
3273    height: 14px;
3274  }
3275
3276  button:disabled {
3277    color: var(--wui-color-gray-glass-020);
3278  }
3279
3280  button[data-loading='true'] > wui-icon {
3281    opacity: 0;
3282  }
3283
3284  wui-loading-spinner {
3285    position: absolute;
3286    right: 18px;
3287    top: 50%;
3288    transform: translateY(-50%);
3289  }
3290`,uV=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
3290);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uZ=class extends sQ{constructor(){super(...arguments),this.tabIdx=void 0,this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return sB`
3291      <button
3292        ?disabled=${!!this.loading||!!this.disabled}
3293        data-loading=${this.loading}
3294        data-iconvariant=${this.iconVariant??sU}
3295        tabindex=${this.tabIdx??sU}
3296      >
3297        ${this.loadingTemplate()} ${this.visualTemplate()}
3298        <wui-flex gap="3xs">
3299          <slot></slot>
3300        </wui-flex>
3301        ${this.chevronTemplate()}
3302      </button>
3303    `}visualTemplate(){if("image"===this.variant&&this.imageSrc)return sB`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return sB`<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 sB`
3304        <wui-icon-box
3305          data-variant=${this.iconVariant}
3306          icon=${this.icon}
3307          iconSize=${r}
3308          background="transparent"
3309          iconColor=${e}
3310          backgroundColor=${e}
3311          size=${t}
3312        ></wui-icon-box>
3313      `}return null}loadingTemplate(){return this.loading?sB`<wui-loading-spinner
3314        data-testid="wui-list-item-loading-spinner"
3315        color="fg-300"
3316      ></wui-loading-spinner>`:sB``}chevronTemplate(){return this.chevron?sB`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};uZ.styles=[s3,s5,uF],uV([lS()],uZ.prototype,"icon",void 0),uV([lS()],uZ.prototype,"iconSize",void 0),uV([lS()],uZ.prototype,"tabIdx",void 0),uV([lS()],uZ.prototype,"variant",void 0),uV([lS()],uZ.prototype,"iconVariant",void 0),uV([lS({type:Boolean})],uZ.prototype,"disabled",void 0),uV([lS()],uZ.prototype,"imageSrc",void 0),uV([lS()],uZ.prototype,"alt",void 0),uV([lS({type:Boolean})],uZ.prototype,"chevron",void 0),uV([lS({type:Boolean})],uZ.prototype,"loading",void 0),uZ=uV([s8("wui-list-item")],uZ);let uq=class extends sQ{constructor(){super(...arguments),this.wallet=tL.state.data?.wallet}render(){if(!this.wallet)throw Error("w3m-downloads-view");return sB`
3317      <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
3318        ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
3319        ${this.homepageTemplate()}
3320      </wui-flex>
3321    `}chromeTemplate(){return this.wallet?.chrome_store?sB`<wui-list-item
3322      variant="icon"
3323      icon="chromeStore"
3324      iconVariant="square"
3325      @click=${this.onChromeStore.bind(this)}
3326      chevron
3327    >
3328      <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>
3329    </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?sB`<wui-list-item
3330      variant="icon"
3331      icon="appStore"
3332      iconVariant="square"
3333      @click=${this.onAppStore.bind(this)}
3334      chevron
3335    >
3336      <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>
3337    </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?sB`<wui-list-item
3338      variant="icon"
3339      icon="playStore"
3340      iconVariant="square"
3341      @click=${this.onPlayStore.bind(this)}
3342      chevron
3343    >
3344      <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>
3345    </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?sB`
3346      <wui-list-item
3347        variant="icon"
3348        icon="browser"
3349        iconVariant="square-blue"
3350        @click=${this.onHomePage.bind(this)}
3351        chevron
3352      >
3353        <wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
3354      </wui-list-item>
3355    `:null}onChromeStore(){this.wallet?.chrome_store&&tp.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&tp.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&tp.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&tp.openHref(this.wallet.homepage,"_blank")}};uq=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
3355);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("w3m-downloads-view")],uq);var uG=Object.freeze({__proto__:null,get W3mConnectingWcBasicView(){return un},get W3mAllWalletsView(){return uH},get W3mDownloadsView(){return uq}}),uK=n9`
3356  :host {
3357    display: block;
3358    border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
3359    box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);
3360    background-color: var(--wui-color-modal-bg);
3361    overflow: hidden;
3362  }
3363
3364  :host([data-embedded='true']) {
3365    box-shadow:
3366      0 0 0 1px var(--wui-color-gray-glass-005),
3367      0px 4px 12px 4px var(--w3m-card-embedded-shadow-color);
3368  }
3369`;let uY=class extends sQ{render(){return sB`<slot></slot>`}};uY.styles=[s3,uK],uY=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n}([s8("wui-card")],uY);var uX=n9`
3370  :host {
3371    display: flex;
3372    align-items: center;
3373    justify-content: center;
3374    padding: var(--wui-spacing-s);
3375    border-radius: var(--wui-border-radius-s);
3376    border: 1px solid var(--wui-color-dark-glass-100);
3377    box-sizing: border-box;
3378    background-color: var(--wui-color-bg-325);
3379    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
3380  }
3381
3382  wui-flex {
3383    width: 100%;
3384  }
3385
3386  wui-text {
3387    word-break: break-word;
3388    flex: 1;
3389  }
3390
3391  .close {
3392    cursor: pointer;
3393  }
3394
3395  .icon-box {
3396    height: 40px;
3397    width: 40px;
3398    border-radius: var(--wui-border-radius-3xs);
3399    background-color: var(--local-icon-bg-value);
3400  }
3401`,uJ=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let uQ=class extends sQ{constructor(){super(...arguments),this.message="",this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="info"}render(){return this.style.cssText=`
3402      --local-icon-bg-value: var(--wui-color-${this.backgroundColor});
3403   `,sB`
3404      <wui-flex flexDirection="row" justifyContent="space-between" alignItems="center">
3405        <wui-flex columnGap="xs" flexDirection="row" alignItems="center">
3406          <wui-flex
3407            flexDirection="row"
3408            alignItems="center"
3409            justifyContent="center"
3410            class="icon-box"
3411          >
3412            <wui-icon color=${this.iconColor} size="md" name=${this.icon}></wui-icon>
3413          </wui-flex>
3414          <wui-text variant="small-500" color="bg-350" data-testid="wui-alertbar-text"
3415            >${this.message}</wui-text
3416          >
3417        </wui-flex>
3418        <wui-icon
3419          class="close"
3420          color="bg-350"
3421          size="sm"
3422          name="close"
3423          @click=${this.onClose}
3424        ></wui-icon>
3425      </wui-flex>
3426    `}onClose(){tE.close()}};uQ.styles=[s3,uX],uJ([lS()],uQ.prototype,"message",void 0),uJ([lS()],uQ.prototype,"backgroundColor",void 0),uJ([lS()],uQ.prototype,"iconColor",void 0),uJ([lS()],uQ.prototype,"icon",void 0),uQ=uJ([s8("wui-alertbar")],uQ);var u0=n9`
3427  :host {
3428    display: block;
3429    position: absolute;
3430    top: var(--wui-spacing-s);
3431    left: var(--wui-spacing-l);
3432    right: var(--wui-spacing-l);
3433    opacity: 0;
3434    pointer-events: none;
3435  }
3436`,u1=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let u2={info:{backgroundColor:"fg-350",iconColor:"fg-325",icon:"info"},success:{backgroundColor:"success-glass-reown-020",iconColor:"success-125",icon:"checkmark"},warning:{backgroundColor:"warning-glass-reown-020",iconColor:"warning-100",icon:"warningCircle"},error:{backgroundColor:"error-glass-reown-020",iconColor:"error-125",icon:"exclamationTriangle"}},u3=class extends sQ{constructor(){super(),this.unsubscribe=[],this.open=tE.state.open,this.onOpen(!0),this.unsubscribe.push(tE.subscribeKey("open",e=>{this.open=e,this.onOpen(!1)}))}
3436disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t}=tE.state,r=u2[t];return sB`
3437      <wui-alertbar
3438        message=${e}
3439        backgroundColor=${r?.backgroundColor}
3440        iconColor=${r?.iconColor}
3441        icon=${r?.icon}
3442      ></wui-alertbar>
3443    `}onOpen(e){this.open?(this.animate([{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: auto"):e||(this.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: none")}};u3.styles=u0,u1([lN()],u3.prototype,"open",void 0),u3=u1([s8("w3m-alertbar")],u3);var u5=n9`
3444  button {
3445    border-radius: var(--local-border-radius);
3446    color: var(--wui-color-fg-100);
3447    padding: var(--local-padding);
3448  }
3449
3450  @media (max-width: 700px) {
3451    button {
3452      padding: var(--wui-spacing-s);
3453    }
3454  }
3455
3456  button > wui-icon {
3457    pointer-events: none;
3458  }
3459
3460  button:disabled > wui-icon {
3461    color: var(--wui-color-bg-300) !important;
3462  }
3463
3464  button:disabled {
3465    background-color: transparent;
3466  }
3467`,u4=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let u6=class extends sQ{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}
3467render(){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=`
3468    --local-border-radius: var(${e});
3469    --local-padding: var(${t});
3470`,sB`
3471      <button ?disabled=${this.disabled}>
3472        <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
3473      </button>
3474    `}};u6.styles=[s3,s5,s4,u5],u4([lS()],u6.prototype,"size",void 0),u4([lS({type:Boolean})],u6.prototype,"disabled",void 0),u4([lS()],u6.prototype,"icon",void 0),u4([lS()],u6.prototype,"iconColor",void 0),u6=u4([s8("wui-icon-link")],u6);var u8=n9`
3475  button {
3476    display: block;
3477    display: flex;
3478    align-items: center;
3479    padding: var(--wui-spacing-xxs);
3480    gap: var(--wui-spacing-xxs);
3481    transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
3482    border-radius: var(--wui-border-radius-xxs);
3483  }
3484
3485  wui-image {
3486    border-radius: 100%;
3487    width: var(--wui-spacing-xl);
3488    height: var(--wui-spacing-xl);
3489  }
3490
3491  wui-icon-box {
3492    width: var(--wui-spacing-xl);
3493    height: var(--wui-spacing-xl);
3494  }
3495
3496  button:hover {
3497    background-color: var(--wui-color-gray-glass-002);
3498  }
3499
3500  button:active {
3501    background-color: var(--wui-color-gray-glass-005);
3502  }
3503`,u7=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let u9=class extends sQ{constructor(){super(...arguments),this.imageSrc=""}render(){return sB`<button>
3504      ${this.imageTemplate()}
3505      <wui-icon size="xs" color="fg-200" name="chevronBottom"></wui-icon>
3506    </button>`}imageTemplate(){return this.imageSrc?sB`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`:sB`<wui-icon-box
3507      size="xxs"
3508      iconColor="fg-200"
3509      backgroundColor="fg-100"
3510      background="opaque"
3511      icon="networkPlaceholder"
3512    ></wui-icon-box>`}};u9.styles=[s3,s5,s4,u8],u7([lS()],u9.prototype,"imageSrc",void 0),u9=u7([s8("wui-select")],u9);var he=n9`
3513  :host {
3514    height: 64px;
3515  }
3516
3517  wui-text {
3518    text-transform: capitalize;
3519  }
3520
3521  wui-flex.w3m-header-title {
3522    transform: translateY(0);
3523    opacity: 1;
3524  }
3525
3526  wui-flex.w3m-header-title[view-direction='prev'] {
3527    animation:
3528      slide-down-out 120ms forwards var(--wui-ease-out-power-2),
3529      slide-down-in 120ms forwards var(--wui-ease-out-power-2);
3530    animation-delay: 0ms, 200ms;
3531  }
3532
3533  wui-flex.w3m-header-title[view-direction='next'] {
3534    animation:
3535      slide-up-out 120ms forwards var(--wui-ease-out-power-2),
3536      slide-up-in 120ms forwards var(--wui-ease-out-power-2);
3537    animation-delay: 0ms, 200ms;
3538  }
3539
3540  wui-icon-link[data-hidden='true'] {
3541    opacity: 0 !important;
3542    pointer-events: none;
3543  }
3544
3545  @keyframes slide-up-out {
3546    from {
3547      transform: translateY(0px);
3548      opacity: 1;
3549    }
3550    to {
3551      transform: translateY(3px);
3552      opacity: 0;
3553    }
3554  }
3555
3556  @keyframes slide-up-in {
3557    from {
3558      transform: translateY(-3px);
3559      opacity: 0;
3560    }
3561    to {
3562      transform: translateY(0);
3563      opacity: 1;
3564    }
3565  }
3566
3567  @keyframes slide-down-out {
3568    from {
3569      transform: translateY(0px);
3570      opacity: 1;
3571    }
3572    to {
3573      transform: translateY(-3px);
3574      opacity: 0;
3575    }
3576  }
3577
3578  @keyframes slide-down-in {
3579    from {
3580      transform: translateY(3px);
3581      opacity: 0;
3582    }
3583    to {
3584      transform: translateY(0);
3585      opacity: 1;
3586    }
3587  }
3588`,ht=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let hr=["SmartSessionList"];function hi(){let e=tL.state.data?.connector?.name,t=tL.state.data?.wallet?.name,r=tL.state.data?.network?.name,i=t??e,a=tD.getConnectors();return{Connect:`Connect ${1===a.length&&a[0]?.id==="w3m-email"?"Email":""} Wallet`,Create:"Create Wallet",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExter
3588nal:i??"Connect Wallet",ConnectingWalletConnect:i??"WalletConnect",ConnectingWalletConnectBasic:"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:i?`Get ${i}`:"Downloads",EmailLogin:"Email Login",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Profile:void 0,SwitchNetwork:r??"Switch Network",SwitchAddress:"Switch Address",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",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",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:ni.state.socialProvider?ni.state.socialProvider:"Connect Social",ConnectingMultiChain:"Select chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch chain",SmartSessionCreated:void 0,SmartSessionList:"Smart Sessions",SIWXSignMessage:"Sign In"}}let ha=class extends sQ{constructor(){super(),this.unsubscribe=[],this.heading=hi()[tL.state.view],this.network=o8.state.activeCaipNetwork,this.networkImage=tC.getNetworkImage(this.network),this.buffering=!1,this.showBack=!1,this.prevHistoryLength=1,this.view=tL.state.view,this.viewDirection="",this.headerText=hi()[tL.state.view],this.unsubscribe.push(tv.subscribeNetworkImages(()=>{this.networkImage=tC.getNetworkImage(this.network)}),tL.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=hi()[e]},n0.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),tX.subscribeKey("buffering",e=>this.buffering=e),o8.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=tC.getNetworkImage(this.network)}))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return sB`
3589      <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
3590        ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}
3591      </wui-flex>
3592    `}onWalletHelp(){t_.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),tL.push("WhatIsAWallet")}async onClose(){"UnsupportedChain"===tL.state.view||await tq.isSIWXCloseDisabled()?no.shake():no.close()}rightHeaderTemplate(){let e=tA?.state?.features?.smartSessions;return"Account"===tL.state.view&&e?sB`<wui-flex>
3593      <wui-icon-link
3594        icon="clock"
3595        @click=${()=>tL.push("SmartSessionList")}
3596        data-testid="w3m-header-smart-sessions"
3597      ></wui-icon-link>
3598      ${this.closeButtonTemplate()}
3599    </wui-flex> `:this.closeButtonTemplate()}closeButtonTemplate(){return sB`
3600      <wui-icon-link
3601        ?disabled=${this.buffering}
3602        icon="close"
3603        @click=${this.onClose.bind(this)}
3604        data-testid="w3m-header-close"
3605      ></wui-icon-link>
3606    `}titleTemplate(){let e=hr.includes(this.view);return sB`
3607      <wui-flex
3608        view-direction="${this.viewDirection}"
3609        class="w3m-header-title"
3610        alignItems="center"
3611        gap="xs"
3612      >
3613        <wui-text variant="paragraph-700" color="fg-100" data-testid="w3m-header-text"
3614          >${this.headerText}</wui-text
3615        >
3616        ${e?sB`<wui-tag variant="main">Beta</wui-tag>`:null}
3617      </wui-flex>
3618    `}leftHeaderTemplate(){let{view:e}=tL.state,t="Connect"===e,r=tA.state.enableEmbedded,i=tA.state.enableNetworkSwitch;return"Account"===e&&i?sB`<wui-select
3619        id="dynamic"
3620        data-testid="w3m-account-select-network"
3621        active-network=${this.network?.name??sU}
3622        @click=${this.onNetworks.bind(this)}
3623        imageSrc=${this.networkImage??sU}
3624      ></wui-select>`:this.showBack&&!("ApproveTransaction"===e||"ConnectingSiwe"===e||t&&r)?sB`<wui-icon-link
3625        data-testid="header-back"
3626        id="dynamic"
3627        icon="chevronLeft"
3628        ?disabled=${this.buffering}
3629        @click=${this.onGoBack.bind(this)}
3630      ></wui-icon-link>`:sB`<wui-icon-link
3631      data-hidden=${!t}
3632      id="dynamic"
3633      icon="helpCircle"
3634      @click=${this.onWalletHelp.bind(this)}
3635    ></wui-icon-link>`}onNetworks(){this.isAllowedNetworkSwitch()&&(t_.sendEvent({type:"track",event:"CLICK_NETWORKS"}),tL.push("Networks"))}isAllowedNetworkSwitch(){let e=o8.getAllRequestedCaipNetworks(),t=!!e&&e.length>1,r=e?.find(({id:e})=>e===this.network?.id);return t||!r}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){let{history:e}=tL.state,t=n0.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(t=n0.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=t}async onHistoryChange(){let{history:e}=tL.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}
3635],{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(){tL.goBack()}};ha.styles=he,ht([lN()],ha.prototype,"heading",void 0),ht([lN()],ha.prototype,"network",void 0),ht([lN()],ha.prototype,"networkImage",void 0),ht([lN()],ha.prototype,"buffering",void 0),ht([lN()],ha.prototype,"showBack",void 0),ht([lN()],ha.prototype,"prevHistoryLength",void 0),ht([lN()],ha.prototype,"view",void 0),ht([lN()],ha.prototype,"viewDirection",void 0),ht([lN()],ha.prototype,"headerText",void 0),ha=ht([s8("w3m-header")],ha);var ho=n9`
3636  :host {
3637    display: flex;
3638    column-gap: var(--wui-spacing-s);
3639    align-items: center;
3640    padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);
3641    border-radius: var(--wui-border-radius-s);
3642    border: 1px solid var(--wui-color-gray-glass-005);
3643    box-sizing: border-box;
3644    background-color: var(--wui-color-bg-175);
3645    box-shadow:
3646      0px 14px 64px -4px rgba(0, 0, 0, 0.15),
3647      0px 8px 22px -6px rgba(0, 0, 0, 0.15);
3648
3649    max-width: 300px;
3650  }
3651
3652  :host wui-loading-spinner {
3653    margin-left: var(--wui-spacing-3xs);
3654  }
3655`,hn=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let hs=class extends sQ{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1,this.iconType="default"}render(){return sB`
3656      ${this.templateIcon()}
3657      <wui-text variant="paragraph-500" color="fg-100" data-testid="wui-snackbar-message"
3658        >${this.message}</wui-text
3659      >
3660    `}templateIcon(){return this.loading?sB`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:"default"===this.iconType?sB`<wui-icon size="xl" color=${this.iconColor} name=${this.icon}></wui-icon>`:sB`<wui-icon-box
3661      size="sm"
3662      iconSize="xs"
3663      iconColor=${this.iconColor}
3664      backgroundColor=${this.backgroundColor}
3665      icon=${this.icon}
3666      background="opaque"
3667    ></wui-icon-box>`}};hs.styles=[s3,ho],hn([lS()],hs.prototype,"backgroundColor",void 0),hn([lS()],hs.prototype,"iconColor",void 0),hn([lS()],hs.prototype,"icon",void 0),hn([lS()],hs.prototype,"message",void 0),hn([lS()],hs.prototype,"loading",void 0),hn([lS()],hs.prototype,"iconType",void 0),hs=hn([s8("wui-snackbar")],hs);var hl=n9`
3668  :host {
3669    display: block;
3670    position: absolute;
3671    opacity: 0;
3672    pointer-events: none;
3673    top: 11px;
3674    left: 50%;
3675    width: max-content;
3676  }
3677`,hc=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let hd={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}},hu=class extends sQ{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=tZ.state.open,this.unsubscribe.push(tZ.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t,svg:r}=tZ.state,i=hd[t],{icon:a,iconColor:o}=r??i??{};return sB`
3678      <wui-snackbar
3679        message=${e}
3680        backgroundColor=${i?.backgroundColor}
3681        iconColor=${o}
3682        icon=${a}
3683        .loading=${"loading"===t}
3684      ></wui-snackbar>
3685    `}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&&clearTimeout(this.timeout),tZ.state.autoClose&&(this.timeout=setTimeout(()=>tZ.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"})}};hu.styles=hl,hc([lN()],hu.prototype,"open",void 0),hu=hc([s8("w3m-snackbar")],hu);var hh=n9`
3686  :host {
3687    pointer-events: none;
3688  }
3689
3690  :host > wui-flex {
3691    display: var(--w3m-tooltip-display);
3692    opacity: var(--w3m-tooltip-opacity);
3693    padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
3694    border-radius: var(--wui-border-radius-xxs);
3695    color: var(--wui-color-bg-100);
3696    position: fixed;
3697    top: var(--w3m-tooltip-top);
3698    left: var(--w3m-tooltip-left);
3699    transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
3700    max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
3701    transition: opacity 0.2s var(--wui-ease-out-power-2);
3702    will-change: opacity;
3703  }
3704
3705  :host([data-variant='shade']) > wui-flex {
3706    background-color: var(--wui-color-bg-150);
3707    border: 1px solid var(--wui-color-gray-glass-005);
3708  }
3709
3710  :host([data-variant='shade']) > wui-flex > wui-text {
3711    color: var(--wui-color-fg-150);
3712  }
3713
3714  :host([data-variant='fill']) > wui-flex {
3715    background-color: var(--wui-color-fg-100);
3716    border: none;
3717  }
3718
3719  wui-icon {
3720    position: absolute;
3721    width: 12px !important;
3722    height: 4px !important;
3723    color: var(--wui-color-bg-150);
3724  }
3725
3726  wui-icon[data-placement='top'] {
3727    bottom: 0px;
3728    left: 50%;
3729    transform: translate(-50%, 95%);
3730  }
3731
3732  wui-icon[data-placement='bottom'] {
3733    top: 0;
3734    left: 50%;
3735    transform: translate(-50%, -95%) rotate(180deg);
3736  }
3737
3738  wui-icon[data-placement='right'] {
3739    top: 50%;
3740    left: 0;
3741    transform: translate(-65%, -50%) rotate(90deg);
3742  }
3743
3744  wui-icon[data-placement='left'] {
3745    top: 50%;
3746    right: 0%;
3747    transform: translate(65%, -50%) rotate(270deg);
3748  }
3749`,hp=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
3749);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let hg=class extends sQ{constructor(){super(),this.unsubscribe=[],this.open=nl.state.open,this.message=nl.state.message,this.triggerRect=nl.state.triggerRect,this.variant=nl.state.variant,this.unsubscribe.push(nl.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=`
3750    --w3m-tooltip-top: ${e}px;
3751    --w3m-tooltip-left: ${t}px;
3752    --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px;
3753    --w3m-tooltip-display: ${this.open?"flex":"none"};
3754    --w3m-tooltip-opacity: ${+!!this.open};
3755    `,sB`<wui-flex>
3756      <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon>
3757      <wui-text color="inherit" variant="small-500">${this.message}</wui-text>
3758    </wui-flex>`}};hg.styles=[hh],hp([lN()],hg.prototype,"open",void 0),hp([lN()],hg.prototype,"message",void 0),hp([lN()],hg.prototype,"triggerRect",void 0),hp([lN()],hg.prototype,"variant",void 0),hg=hp([s8("w3m-tooltip"),s8("w3m-tooltip")],hg);var hf=n9`
3759  :host {
3760    --prev-height: 0px;
3761    --new-height: 0px;
3762    display: block;
3763  }
3764
3765  div.w3m-router-container {
3766    transform: translateY(0);
3767    opacity: 1;
3768  }
3769
3770  div.w3m-router-container[view-direction='prev'] {
3771    animation:
3772      slide-left-out 150ms forwards ease,
3773      slide-left-in 150ms forwards ease;
3774    animation-delay: 0ms, 200ms;
3775  }
3776
3777  div.w3m-router-container[view-direction='next'] {
3778    animation:
3779      slide-right-out 150ms forwards ease,
3780      slide-right-in 150ms forwards ease;
3781    animation-delay: 0ms, 200ms;
3782  }
3783
3784  @keyframes slide-left-out {
3785    from {
3786      transform: translateX(0px);
3787      opacity: 1;
3788    }
3789    to {
3790      transform: translateX(10px);
3791      opacity: 0;
3792    }
3793  }
3794
3795  @keyframes slide-left-in {
3796    from {
3797      transform: translateX(-10px);
3798      opacity: 0;
3799    }
3800    to {
3801      transform: translateX(0);
3802      opacity: 1;
3803    }
3804  }
3805
3806  @keyframes slide-right-out {
3807    from {
3808      transform: translateX(0px);
3809      opacity: 1;
3810    }
3811    to {
3812      transform: translateX(-10px);
3813      opacity: 0;
3814    }
3815  }
3816
3817  @keyframes slide-right-in {
3818    from {
3819      transform: translateX(10px);
3820      opacity: 0;
3821    }
3822    to {
3823      transform: translateX(0);
3824      opacity: 1;
3825    }
3826  }
3827`,hw=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let hm=class extends sQ{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=tL.state.view,this.viewDirection="",this.unsubscribe.push(tL.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let t=`${e?.contentRect.height}px`;"0px"!==this.prevHeight&&(this.style.setProperty("--prev-height",this.prevHeight),this.style.setProperty("--new-height",t),this.style.animation="w3m-view-height 150ms forwards ease",this.style.height="auto"),setTimeout(()=>{this.prevHeight=t,this.style.animation="unset"},n0.ANIMATION_DURATIONS.ModalHeight)}),this.resizeObserver?.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e=>e())}render(){return sB`<div class="w3m-router-container" view-direction="${this.viewDirection}">
3828      ${this.viewTemplate()}
3829    </div>`}viewTemplate(){switch(this.view){case"AccountSettings":return sB`<w3m-account-settings-view></w3m-account-settings-view>`;case"Account":return sB`<w3m-account-view></w3m-account-view>`;case"AllWallets":return sB`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return sB`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return sB`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return sB`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return sB`<w3m-connect-view></w3m-connect-view>`;case"Create":return sB`<w3m-connect-view walletGuide="explore"></w3m-connect-view>`;case"ConnectingWalletConnect":return sB`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingWalletConnectBasic":return sB`<w3m-connecting-wc-basic-view></w3m-connecting-wc-basic-view>`;
3829case"ConnectingExternal":return sB`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return sB`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return sB`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return sB`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return sB`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"Downloads":return sB`<w3m-downloads-view></w3m-downloads-view>`;case"EmailLogin":return sB`<w3m-email-login-view></w3m-email-login-view>`;case"EmailVerifyOtp":return sB`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return sB`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"GetWallet":return sB`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Networks":return sB`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return sB`<w3m-network-switch-view></w3m-network-switch-view>`;case"Profile":return sB`<w3m-profile-view></w3m-profile-view>`;case"SwitchAddress":return sB`<w3m-switch-address-view></w3m-switch-address-view>`;case"Transactions":return sB`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return sB`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampActivity":return sB`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case"OnRampTokenSelect":return sB`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return sB`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return sB`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpdateEmailWallet":return sB`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return sB`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return sB`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return sB`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"Swap":return sB`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return sB`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return sB`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return sB`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return sB`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return sB`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WhatIsABuy":return sB`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WalletReceive":return sB`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return sB`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"WhatIsAWallet":return sB`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"ConnectingMultiChain":return sB`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;case"WhatIsANetwork":return sB`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"ConnectingFarcaster":return sB`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case"SwitchActiveChain":return sB`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;case"RegisterAccountName":return sB`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return sB`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`;case"SmartSessionCreated":return sB`<w3m-smart-session-created-view></w3m-smart-session-created-view>`;case"SmartSessionList":return sB`<w3m-smart-session-list-view></w3m-smart-session-list-view>`;case"SIWXSignMessage":return sB`<w3m-siwx-sign-message-view></w3m-siwx-sign-message-view>`}}onViewChange(e){nl.hide();let t=n0.VIEW_DIRECTION.Next,{history:r}=tL.state;r.length<this.prevHistoryLength&&(t=n0.VIEW_DIRECTION.Prev),this.prevHistoryLength=r.length,this.viewDirection=t,setTimeout(()=>{this.view=e},n0.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){return this.shadowRoot?.querySelector("div")}};hm.styles=hf,hw([lN()],hm.prototype,"view",void 0),hw([lN()],hm.prototype,"viewDirection",void 0),hm=hw([s8("w3m-router")],hm);var hv=n9`
3830  :host {
3831    z-index: var(--w3m-z-index);
3832    display: block;
3833    backface-visibility: hidden;
3834    will-change: opacity;
3835    position: fixed;
3836    top: 0;
3837    left: 0;
3838    right: 0;
3839    bottom: 0;
3840    pointer-events: none;
3841    opacity: 0;
3842    background-color: var(--wui-cover);
3843    transition: opacity 0.2s var(--wui-ease-out-power-2);
3844    will-change: opacity;
3845  }
3846
3847  :host(.open) {
3848    opacity: 1;
3849  }
3850
3851  :host(.embedded) {
3852    position: relative;
3853    pointer-events: unset;
3854    background: none;
3855    width: 100%;
3856    opacity: 1;
3857  }
3858
3859  wui-card {
3860    max-width: var(--w3m-modal-width);
3861    width: 100%;
3862    position: relative;
3863    animation: zoom-in 0.2s var(--wui-ease-out-power-2);
3864    animation-fill-mode: backwards;
3865    outline: none;
3866    transition:
3867      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
3868      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
3869    will-change: border-radius, background-color;
3870  }
3871
3872  :host(.embedded) wui-card {
3873    max-width: 400px;
3874  }
3875
3876  wui-card[shake='true'] {
3877    animation:
3878      zoom-in 0.2s var(--wui-ease-out-power-2),
3879      w3m-shake 0.5s var(--wui-ease-out-power-2);
3880  }
3881
3882  wui-flex {
3883    overflow-x: hidden;
3884    overflow-y: auto;
3885    display: flex;
3886    align-items: center;
3887    justify-content: center;
3888    width: 100%;
3889    height: 100%;
3890  }
3891
3892  @media (max-height: 700px) and (min-width: 431px) {
3893    wui-flex {
3894      align-items: flex-start;
3895    }
3896
3897    wui-card {
3898      margin: var(--wui-spacing-xxl) 0px;
3899    }
3900  }
3901
3902  @media (max-width: 430px) {
3903    wui-flex {
3904      align-items: flex-end;
3905    }
3906
3907    wui-card {
3908      max-width: 100%;
3909      border-bottom-left-radius: var(--local-border-bottom-mobile-radius);
3910      border-bottom-right-radius: var(--local-border-bottom-mobile-radius);
3911      border-bottom: none;
3912      animation: slide-in 0.2s var(--wui-ease-out-power-2);
3913    }
3914
3915    wui-card[shake='true'] {
3916      animation:
3917        slide-in 0.2s var(--wui-ease-out-power-2),
3918        w3m-shake 0.5s var(--wui-ease-out-power-2);
3919    }
3920  }
3921
3922  @keyframes zoom-in {
3923    0% {
3924      transform: scale(0.95) translateY(0);
3925    }
3926    100% {
3927      transform: scale(1) translateY(0);
3928    }
3929  }
3930
3931  @keyframes slide-in {
3932    0% {
3933      transform: scale(1) translateY(50px);
3934    }
3935    100% {
3936      transform: scale(1) translateY(0);
3937    }
3938  }
3939
3940  @keyframes w3m-shake {
3941    0% {
3942      transform: scale(1) rotate(0deg);
3943    }
3944    20% {
3945      transform: scale(1) rotate(-1deg);
3946    }
3947    40% {
3948      transform: scale(1) rotate(1.5deg);
3949    }
3950    60% {
3951      transform: scale(1) rotate(-1.5deg);
3952    }
3953    80% {
3954      transform: scale(1) rotate(1deg);
3955    }
3956    100% {
3957      transform: scale(1) rotate(0deg);
3958    }
3959  }
3960
3961  @keyframes w3m-view-height {
3962    from {
3963      height: var(--prev-height);
3964    }
3965    to {
3966      height: var(--new-height);
3967    }
3968  }
3969`,hb=function(e,t,r,i){var a,o=arguments.length,n=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i
3969);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(n=(o<3?a(n):o>3?a(t,r,n):a(t,r))||n);return o>3&&n&&Object.defineProperty(t,r,n),n};let hy="scroll-lock",hC=class extends sQ{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.hasPrefetched=!1,this.enableEmbedded=tA.state.enableEmbedded,this.open=no.state.open,this.caipAddress=o8.state.activeCaipAddress,this.caipNetwork=o8.state.activeCaipNetwork,this.shake=no.state.shake,this.filterByNamespace=tD.state.filterByNamespace,this.initializeTheming(),tR.prefetchAnalyticsConfig(),this.unsubscribe.push(no.subscribeKey("open",e=>e?this.onOpen():this.onClose()),no.subscribeKey("shake",e=>this.shake=e),o8.subscribeKey("activeCaipNetwork",e=>this.onNewNetwork(e)),o8.subscribeKey("activeCaipAddress",e=>this.onNewAddress(e)),tA.subscribeKey("enableEmbedded",e=>this.enableEmbedded=e),tD.subscribeKey("filterByNamespace",e=>{this.filterByNamespace===e||o8.getAccountData(e)?.caipAddress||(tR.fetchRecommendedWallets(),this.filterByNamespace=e)}))}firstUpdated(){if(this.caipAddress){if(this.enableEmbedded){no.close(),this.prefetch();return}this.onNewAddress(this.caipAddress)}this.open&&this.onOpen(),this.enableEmbedded&&this.prefetch()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return this.style.cssText=`
3970      --local-border-bottom-mobile-radius: ${this.enableEmbedded?"clamp(0px, var(--wui-border-radius-l), 44px)":"0px"};
3971    `,this.enableEmbedded?sB`${this.contentTemplate()}
3972        <w3m-tooltip></w3m-tooltip> `:this.open?sB`
3973          <wui-flex @click=${this.onOverlayClick.bind(this)} data-testid="w3m-modal-overlay">
3974            ${this.contentTemplate()}
3975          </wui-flex>
3976          <w3m-tooltip></w3m-tooltip>
3977        `:null}contentTemplate(){return sB` <wui-card
3978      shake="${this.shake}"
3979      data-embedded="${this.enableEmbedded??sU}"
3980      role="alertdialog"
3981      aria-modal="true"
3982      tabindex="0"
3983      data-testid="w3m-modal-card"
3984    >
3985      <w3m-header></w3m-header>
3986      <w3m-router></w3m-router>
3987      <w3m-snackbar></w3m-snackbar>
3988      <w3m-alertbar></w3m-alertbar>
3989    </wui-card>`}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){"UnsupportedChain"===tL.state.view||await tq.isSIWXCloseDisabled()?no.shake():no.close()}initializeTheming(){let{themeVariables:e,themeMode:t}=tU.state,r=s6.getColorTheme(t);a=document.createElement("style"),o=document.createElement("style"),n=document.createElement("style"),a.textContent=s2(e).core.cssText,o.textContent=s2(e).dark.cssText,n.textContent=s2(e).light.cssText,document.head.appendChild(a),document.head.appendChild(o),document.head.appendChild(n),s1(r)}onClose(){this.open=!1,this.classList.remove("open"),this.onScrollUnlock(),tZ.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add("open"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){let e=document.createElement("style");e.dataset.w3m=hy,e.textContent=`
3990      body {
3991        touch-action: none;
3992        overflow: hidden;
3993        overscroll-behavior: contain;
3994      }
3995      w3m-modal {
3996        pointer-events: auto;
3997      }
3998    `,document.head.appendChild(e)}onScrollUnlock(){let e=document.head.querySelector(`style[data-w3m="${hy}"]`);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){let t=o8.state.isSwitchingNamespace,r=tp.getPlainAddress(e);r||t?t&&r&&tL.goBack():no.close(),await tq.initializeIfEnabled(),this.caipAddress=e,o8.setIsSwitchingNamespace(!1)}onNewNetwork(e){let t=this.caipNetwork,r=t?.caipNetworkId?.toString(),i=t?.chainNamespace,a=e?.caipNetworkId?.toString(),o=e?.chainNamespace,n=r!==a,s=t?.name===eD,l="ConnectingExter
3998nal"===tL.state.view,c=!this.caipAddress,d="UnsupportedChain"===tL.state.view,u=no.state.open,h=!1;u&&!l&&(c?n&&(h=!0):(d||n&&i===o&&!s)&&(h=!0)),h&&"SIWXSignMessage"!==tL.state.view&&tL.goBack(),this.caipNetwork=e}prefetch(){this.hasPrefetched||(tR.prefetch(),tR.fetchWalletsByPage({page:1}),this.hasPrefetched=!0)}};hC.styles=hv,hb([lS({type:Boolean})],hC.prototype,"enableEmbedded",void 0),hb([lN()],hC.prototype,"open",void 0),hb([lN()],hC.prototype,"caipAddress",void 0),hb([lN()],hC.prototype,"caipNetwork",void 0),hb([lN()],hC.prototype,"shake",void 0),hb([lN()],hC.prototype,"filterByNamespace",void 0),hC=hb([s8("w3m-modal")],hC);var hx=Object.freeze({__proto__:null,get W3mModal(){return hC}}),hk=Object.freeze({__proto__:null,addSvg:sL`<svg
3999  width="14"
4000  height="14"
4001  viewBox="0 0 14 14"
4002  fill="none"
4003  xmlns="http://www.w3.org/2000/svg"
4004>
4005  <path
4006    fill="currentColor"
4007    fill-rule="evenodd"
4008    clip-rule="evenodd"
4009    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"
4010    fill="#667dff"
4011  /></svg
4012>`}),hA=Object.freeze({__proto__:null,allWalletsSvg:sL`<svg fill="none" viewBox="0 0 24 24">
4013  <path
4014    style="fill: var(--wui-color-accent-100);"
4015    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.6a3.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"
4016  />
4017</svg>`}),hI=Object.freeze({__proto__:null,arrowBottomCircleSvg:sL`<svg
4018  fill="none"
4019  viewBox="0 0 21 20"
4020>
4021  <path
4022    fill="currentColor"
4023    fill-rule="evenodd"
4024    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"
4025    clip-rule="evenodd"
4026  /></svg
4027>`}),hE=Object.freeze({__proto__:null,appStoreSvg:sL`
4028<svg width="36" height="36">
4029  <path
4030    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"
4031    fill="url(#a)"
4032  />
4033  <path
4034    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"
4035    fill="#fff"
4036  />
4037  <defs>
4038    <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse">
4039      <stop stop-color="#18BFFB" />
4040      <stop offset="1" stop-color="#2072F3" />
4041    </linearGradient>
4042  </defs>
4043</svg>`}),hS=Object.freeze({__proto__:null,appleSvg:sL`<svg fill="none" viewBox="0 0 40 40">
4044  <g clip-path="url(#a)">
4045    <g clip-path="url(#b)">
4046      <circle cx="20" cy="19.89" r="20" fill="#000" />
4047      <g clip-path="url(#c)">
4048        <path
4049          fill="#fff"
4050          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"
4051        />
4052      </g>
4053    </g>
4054  </g>
4055  <defs>
4056    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
4057    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
4058    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
4059  </defs>
4060</svg>`}),hN=Object.freeze({__proto__:null,arrowBottomSvg:sL`<svg fill="none" viewBox="0 0 14 15">
4061  <path
4062    fill="currentColor"
4063    fill-rule="evenodd"
4064    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"
4065    clip-rule="evenodd"
4066  />
4067</svg>`}),hP=Object.freeze({__proto__:null,arrowLeftSvg:sL`<svg fill="none" viewBox="0 0 14 15">
4068  <path
4069    fill="currentColor"
4070    fill-rule="evenodd"
4071    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"
4072    clip-rule="evenodd"
4073  />
4074</svg>`}),h_=Object.freeze({__proto__:null,arrowRightSvg:sL`<svg fill="none" viewBox="0 0 14 15">
4075  <path
4076    fill="currentColor"
4077    fill-rule="evenodd"
4078    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"
4079    clip-rule="evenodd"
4080  />
4081</svg>`}),h$=Object.freeze({__proto__:null,arrowTopSvg:sL`<svg fill="none" viewBox="0 0 14 15">
4082  <path
4083    fill="currentColor"
4084    fill-rule="evenodd"
4085    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"
4086    clip-rule="evenodd"
4087  />
4088</svg>`}),hO=Object.freeze({__proto__:null,bankSvg:sL`<svg
4089  xmlns="http://www.w3.org/2000/svg"
4090  width="12"
4091  height="13"
4092  viewBox="0 0 12 13"
4093  fill="none"
4094>
4095  <path
4096    fill-rule="evenodd"
4097    clip-rule="evenodd"
4098    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"
4099    fill="currentColor"
4100  /></svg
4101>`}),hT=Object.freeze({__proto__:null,browserSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4102  <path
4103    fill="currentColor"
4104    fill-rule="evenodd"
4105    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"
4106    clip-rule="evenodd"
4107  />
4108  <path
4109    fill="currentColor"
4110    fill-rule="evenodd"
4111    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"
4112    clip-rule="evenodd"
4113  />
4114</svg>`}),hR=Object.freeze({__proto__:null,cardSvg:sL`<svg
4115  xmlns="http://www.w3.org/2000/svg"
4116  width="12"
4117  height="13"
4118  viewBox="0 0 12 13"
4119  fill="none"
4120>
4121  <path
4122    fill-rule="evenodd"
4123    clip-rule="evenodd"
4124    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
41240916C2.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"
4125    fill="currentColor"
4126  /></svg
4127>`}),hB=Object.freeze({__proto__:null,checkmarkSvg:sL`<svg
4128  width="28"
4129  height="28"
4130  viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
4131  <path
4132    fill-rule="evenodd"
4133    clip-rule="evenodd"
4134    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"
4135    fill="currentColor"/>
4136</svg>
4137`}),hL=Object.freeze({__proto__:null,checkmarkBoldSvg:sL`<svg fill="none" viewBox="0 0 14 14">
4138  <path
4139    fill="currentColor"
4140    fill-rule="evenodd"
4141    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"
4142    clip-rule="evenodd"
4143  />
4144</svg>`}),hM=Object.freeze({__proto__:null,chevronBottomSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4145  <path
4146    fill="currentColor"
4147    fill-rule="evenodd"
4148    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"
4149    clip-rule="evenodd"
4150  />
4151</svg>`}),hU=Object.freeze({__proto__:null,chevronLeftSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4152  <path
4153    fill="currentColor"
4154    fill-rule="evenodd"
4155    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"
4156    clip-rule="evenodd"
4157  />
4158</svg>`}),hz=Object.freeze({__proto__:null,chevronRightSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4159  <path
4160    fill="currentColor"
4161    fill-rule="evenodd"
4162    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"
4163    clip-rule="evenodd"
4164  />
4165</svg>`}),hj=Object.freeze({__proto__:null,chevronTopSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4166  <path
4167    fill="currentColor"
4168    fill-rule="evenodd"
4169    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"
4170    clip-rule="evenodd"
4171  />
4172</svg>`}),hD=Object.freeze({__proto__:null,chromeStoreSvg:sL`<svg width="36" height="36" fill="none">
4173  <path
4174    fill="#fff"
4175    fill-opacity=".05"
4176    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"
4177  />
4178  <path
4179    stroke="#fff"
4180    stroke-opacity=".05"
4181    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"
4182  />
4183  <path
4184    fill="url(#a)"
4185    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"
4186  />
4187  <path
4188    fill="url(#b)"
4189    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"
4190  />
4191  <path
4192    fill="url(#c)"
4193    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"
4194  />
4195  <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" />
4196  <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" />
4197  <defs>
4198    <linearGradient
4199      id="a"
4200      x1="6.294"
4201      x2="41.1"
4202      y1="5.995"
4203      y2="5.995"
4204      gradientUnits="userSpaceOnUse"
4205    >
4206      <stop stop-color="#D93025" />
4207      <stop offset="1" stop-color="#EA4335" />
4208    </linearGradient>
4209    <linearGradient
4210      id="b"
4211      x1="20.953"
4212      x2="37.194"
4213      y1="32.143"
4214      y2="2.701"
4215      gradientUnits="userSpaceOnUse"
4216    >
4217      <stop stop-color="#FCC934" />
4218      <stop offset="1" stop-color="#FBBC04" />
4219    </linearGradient>
4220    <linearGradient
4221      id="c"
4222      x1="25.873"
4223      x2="9.632"
4224      y1="31.2"
4225      y2="1.759"
4226      gradientUnits="userSpaceOnUse"
4227    >
4228      <stop stop-color="#1E8E3E" />
4229      <stop offset="1" stop-color="#34A853" />
4230    </linearGradient>
4231  </defs>
4232</svg>`}),hW=Object.freeze({__proto__:null,clockSvg:sL`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
4233  <path 
4234    fill-rule="evenodd" 
4235    clip-rule="evenodd" 
4236    d="M7.00235 2C4.24 2 2.00067 4.23858 2.00067 7C2.00067 9.76142 4.24 12 7.00235 12C9.7647 12 12.004 9.76142 12.004 7C12.004 4.23858 9.7647 2 7.00235 2ZM0 7C0 3.13401 3.13506 0 7.00235 0C10.8696 0 14.0047 3.13401 14.0047 7C14.0047 10.866 10.8696 14 7.00235 14C3.13506 14 0 10.866 0 7ZM7.00235 3C7.55482 3 8.00269 3.44771 8.00269 4V6.58579L9.85327 8.43575C10.2439 8.82627 10.2439 9.45944 9.85327 9.84996C9.46262 10.2405 8.82924 10.2405 8.43858 9.84996L6.29501 7.70711C6.10741 7.51957 6.00201 7.26522 6.00201 7V4C6.00201 3.44771 6.44988 3 7.00235 3Z" 
4237    fill="currentColor"
4238  />
4239</svg>`}),hH=Object.freeze({__proto__:null,closeSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4240  <path
4241    fill="currentColor"
4242    fill-rule="evenodd"
4243    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"
4244    clip-rule="evenodd"
4245  />
4246</svg>`}),hF=Object.freeze({__proto__:null,compassSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4247  <path
4248    fill="currentColor"
4249    fill-rule="evenodd"
4250    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"
4251    clip-rule="evenodd"
4252  />
4253</svg>`}),hV=Object.freeze({__proto__:null,coinPlaceholderSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4254  <path
4255    fill="currentColor"
4256    fill-rule="evenodd"
4257    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"
4258    clip-rule="evenodd"
4259  />
4260</svg>`}),hZ=Object.freeze({__proto__:null,copySvg:sL`<svg
4261  xmlns="http://www.w3.org/2000/svg"
4262  width="16"
4263  height="16"
4264  viewBox="0 0 16 16"
4265  fill="none"
4266>
4267  <path
4268    fill="currentColor"
4269    fill-rule="evenodd"
4270    clip-rule="evenodd"
4271    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
4271C7.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"
4272    fill="#788181"
4273  /></svg
4274>`}),hq=Object.freeze({__proto__:null,cursorSvg:sL` <svg fill="none" viewBox="0 0 13 4">
4275  <path fill="currentColor" d="M.5 0h12L8.9 3.13a3.76 3.76 0 0 1-4.8 0L.5 0Z" />
4276</svg>`}),hG=Object.freeze({__proto__:null,cursorTransparentSvg:sL`<svg fill="none" viewBox="0 0 14 6">
4277  <path style="fill: var(--wui-color-bg-150);" d="M0 1h14L9.21 5.12a3.31 3.31 0 0 1-4.49 0L0 1Z" />
4278  <path
4279    style="stroke: var(--wui-color-inverse-100);"
4280    stroke-opacity=".05"
4281    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"
4282  />
4283  <path
4284    style="fill: var(--wui-color-bg-150);"
4285    d="M1.25.71h11.5L9.21 3.88a3.31 3.31 0 0 1-4.49 0L1.25.71Z"
4286  />
4287</svg> `}),hK=Object.freeze({__proto__:null,desktopSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4288  <path
4289    fill="currentColor"
4290    fill-rule="evenodd"
4291    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"
4292    clip-rule="evenodd"
4293  />
4294  <path fill="currentColor" d="M6.14 17.57a1 1 0 1 0 0 2h7.72a1 1 0 1 0 0-2H6.14Z" />
4295</svg>`}),hY=Object.freeze({__proto__:null,disconnectSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4296  <path
4297    fill="currentColor"
4298    fill-rule="evenodd"
4299    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"
4300    clip-rule="evenodd"
4301  />
4302</svg>`}),hX=Object.freeze({__proto__:null,discordSvg:sL`<svg fill="none" viewBox="0 0 40 40">
4303  <g clip-path="url(#a)">
4304    <g clip-path="url(#b)">
4305      <circle cx="20" cy="19.89" r="20" fill="#5865F2" />
4306      <path
4307        fill="#fff"
4308        fill-rule="evenodd"
4309        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"
4310        clip-rule="evenodd"
4311      />
4312    </g>
4313  </g>
4314  <defs>
4315    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
4316    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
4317  </defs>
4318</svg>`}),hJ=Object.freeze({__proto__:null,etherscanSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4319  <path
4320    fill="currentColor"
4321    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"
4322  />
4323</svg>`}),hQ=Object.freeze({__proto__:null,extensionSvg:sL`<svg fill="none" viewBox="0 0 14 15">
4324  <path
4325    fill="currentColor"
4326    fill-rule="evenodd"
4327    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"
4328    clip-rule="evenodd"
4329  />
4330</svg>`}),h0=Object.freeze({__proto__:null,externalLinkSvg:sL`<svg fill="none" viewBox="0 0 14 15">
4331  <path
4332    fill="currentColor"
4333    fill-rule="evenodd"
4334    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"
4335    clip-rule="evenodd"
4336  />
4337</svg>`}),h1=Object.freeze({__proto__:null,facebookSvg:sL`<svg fill="none" viewBox="0 0 40 40">
4338  <g clip-path="url(#a)">
4339    <g clip-path="url(#b)">
4340      <circle cx="20" cy="19.89" r="20" fill="#1877F2" />
4341      <g clip-path="url(#c)">
4342        <path
4343          fill="#fff"
4344          d="M26 12.38h-2.89c-.92 0-1.61.38-1.61 1.34v1.66H26l-.36 4.5H2
43441.5v12H17v-12h-3v-4.5h3V12.5c0-3.03 1.6-4.62 5.2-4.62H26v4.5Z"
4345        />
4346      </g>
4347    </g>
4348    <path
4349      fill="#1877F2"
4350      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"
4351    />
4352    <path
4353      fill="#fff"
4354      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"
4355    />
4356  </g>
4357  <defs>
4358    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
4359    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
4360    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
4361  </defs>
4362</svg>`}),h2=Object.freeze({__proto__:null,farcasterSvg:sL`<svg style="border-radius: 9999px; overflow: hidden;"  fill="none" viewBox="0 0 1000 1000">
4363  <rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
4364  <path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
4365  <path
4366    fill="#fff"
4367    d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z"
4368  />
4369  <path
4370    fill="#fff"
4371    d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z"
4372  />
4373</svg>`}),h3=Object.freeze({__proto__:null,filtersSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4374  <path
4375    fill="currentColor"
4376    fill-rule="evenodd"
4377    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"
4378    clip-rule="evenodd"
4379  />
4380</svg>`}),h5=Object.freeze({__proto__:null,githubSvg:sL`<svg fill="none" viewBox="0 0 40 40">
4381  <g clip-path="url(#a)">
4382    <g clip-path="url(#b)">
4383      <circle cx="20" cy="19.89" r="20" fill="#1B1F23" />
4384      <g clip-path="url(#c)">
4385        <path
4386          fill="#fff"
4387          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"
4388        />
4389      </g>
4390    </g>
4391  </g>
4392  <defs>
4393    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
4394    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
4395    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
4396  </defs>
4397</svg>`}),h4=Object.freeze({__proto__:null,googleSvg:sL`<svg fill="none" viewBox="0 0 40 40">
4398  <path
4399    fill="#4285F4"
4400    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"
4401  />
4402  <path
4403    fill="#34A853"
4404    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"
4405  />
4406  <path
4407    fill="#FBBC05"
4408    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"
4409  />
4410  <path
4411    fill="#EA4335"
4412    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"
4413  />
4414</svg>`}),h6=Object.freeze({__proto__:null,helpCircleSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4415  <path
4416    fill="currentColor"
4417    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"
4418  />
4419  <path
4420    fill="currentColor"
4421    fill-rule="evenodd"
4422    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"
4423    clip-rule="evenodd"
4424  />
4425</svg>`}),h8=Object.freeze({__proto__:null,imageSvg:sL`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
4426  <path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
4427  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472
4427C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
4428</svg>`}),h7=Object.freeze({__proto__:null,idSvg:sL`<svg
4429 xmlns="http://www.w3.org/2000/svg"
4430 width="28"
4431 height="28"
4432 viewBox="0 0 28 28"
4433 fill="none">
4434  <path
4435    fill="#949E9E"
4436    fill-rule="evenodd"
4437    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"
4438    clip-rule="evenodd"/>
4439</svg>`}),h9=Object.freeze({__proto__:null,infoCircleSvg:sL`<svg fill="none" viewBox="0 0 14 15">
4440  <path
4441    fill="currentColor"
4442    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"
4443  />
4444  <path
4445    fill="currentColor"
4446    fill-rule="evenodd"
4447    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"
4448    clip-rule="evenodd"
4449  />
4450</svg>`}),pe=Object.freeze({__proto__:null,lightbulbSvg:sL`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
4451<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.4672
44516 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
4452</svg>`}),pt=Object.freeze({__proto__:null,mailSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4453  <path
4454    fill="currentColor"
4455    fill-rule="evenodd"
4456    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"
4457    clip-rule="evenodd"
4458  />
4459</svg>`}),pr=Object.freeze({__proto__:null,mobileSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4460  <path fill="currentColor" d="M10.81 5.81a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z" />
4461  <path
4462    fill="currentColor"
4463    fill-rule="evenodd"
4464    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"
4465    clip-rule="evenodd"
4466  />
4467</svg>`}),pi=Object.freeze({__proto__:null,moreSvg:sL`<svg fill="none" viewBox="0 0 41 40">
4468  <path
4469    style="fill: var(--wui-color-fg-100);"
4470    fill-opacity=".05"
4471    d="M.6 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z"
4472  />
4473  <path
4474    fill="#949E9E"
4475    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"
4476  />
4477</svg>`}),pa=Object.freeze({__proto__:null,networkPlaceholderSvg:sL`<svg fill="none" viewBox="0 0 22 20">
4478  <path
4479    fill="currentColor"
4480    fill-rule="evenodd"
4481    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"
4482    clip-rule="evenodd"
4483  />
4484  <path
4485    fill="currentColor"
4486    fill-rule="evenodd"
4487    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"
4488    clip-rule="evenodd"
4489  />
4490</svg>`}),po=Object.freeze({__proto__:null,nftPlaceholderSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4491  <path
4492    fill="currentColor"
4493    fill-rule="evenodd"
4494    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"
4495    clip-rule="evenodd"
4496  />
4497</svg>`}),pn=Object.freeze({__proto__:null,offSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4498  <path
4499    fill="currentColor"
4500    fill-rule="evenodd"
4501    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"
4502    clip-rule="evenodd"
4503  />
4504</svg>`}),ps=Object.freeze({__proto__:null,playStoreSvg:sL` <svg
4505  width="36"
4506  height="36"
4507  fill="none"
4508>
4509  <path
4510    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"
4511    fill="#fff"
4512    fill-opacity=".05"
4513  />
4514  <path
4515    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"
4516    fill="#EA4335"
4517  />
4518  <path
4519    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"
4520    fill="#FBBC04"
4521  />
4522  <path
4523    d="M9.318 8.997c-.05.202-.084.403-.084.622V26.39c0 .218.025.42.084.621l9.246-9.247-9.246-8.768Z"
4524    fill="#4285F4"
4525  />
4526  <path
4527    d="m18.33 18 4.627-4.628-10.053-5.828a2.427 2.427 0 0 0-3.586 1.444L18.329 18Z"
4528    fill="#34A853"
4529  />
4530  <path
4531    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"
4532    stroke="#fff"
4533    stroke-opacity=".05"
4534  />
4535</svg>`}),pl=Object.freeze({__proto__:null,plusSvg:sL`<svg
4536  width="13"
4537  height="12"
4538  viewBox="0 0 13 12"
4539  fill="none"
4540>
4541  <path
4542    fill="currentColor"
4543    fill-rule="evenodd"
4544    clip-rule="evenodd"
4545    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"
4546  /></svg
4547>`}),pc=Object.freeze({__proto__:null,qrCodeIcon:sL`<svg fill="none" viewBox="0 0 20 20">
4548  <path
4549    fill="currentColor"
4550    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"
4551  />
4552</svg>`}),pd=Object.freeze({__proto__:null,recycleHorizontalSvg:sL`<svg
4553  fill="none"
4554  viewBox="0 0 21 20"
4555>
4556  <path
4557    fill="currentColor"
4558    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"
4559  /></svg
4560>`}),pu=Object.freeze({__proto__:null,refreshSvg:sL`<svg fill="none" viewBox="0 0 14 16">
4561  <path
4562    fill="currentColor"
4563    fill-rule="evenodd"
4564    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"
4565    clip-rule="evenodd"
4566  />
4567</svg>`}),ph=Object.freeze({__proto__:null,searchSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4568  <path
4569    fill="currentColor"
4570    fill-rule="evenodd"
4571    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"
4572    clip-rule="evenodd"
4573  />
4574</svg>`}),pp=Object.freeze({__proto__:null,sendSvg:sL`<svg fill="none" viewBox="0 0 21 20">
4575  <path
4576    fill="currentColor"
4577    fill-rule="evenodd"
4578    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"
4579    clip-rule="evenodd"
4580  />
4581  <svg
4582    xmlns="http://www.w3.org/2000/svg"
4583    width="21"
4584    height="20"
4585    viewBox="0 0 21 20"
4586    fill="none"
4587  ></svg></svg
4588>`}),pg=Object.freeze({__proto__:null,swapHorizontalSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4589  <path
4590    fill="currentColor"
4591    fill-rule="evenodd"
4592    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"
4593    clip-rule="evenodd"
4594  />
4595</svg>`}),pf=Object.freeze({__proto__:null,swapHorizontalMediumSvg:sL`<svg
4596  width="14"
4597  height="14"
4598  viewBox="0 0 14 14"
4599  fill="none"
4600  xmlns="http://www.w3.org/2000/svg"
4601>
4602  <path
4603    fill-rule="evenodd"
4604    clip-rule="evenodd"
4605    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"
4606    fill="currentColor"
4607  />
4608</svg>
4609
4610`}),pw=Object.freeze({__proto__:null,swapHorizontalBoldSvg:sL`<svg width="10" height="10" viewBox="0 0 10 10">
4611  <path
4612    fill="currentColor"
4613    fill-rule="evenodd"
4614    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"
4615    clip-rule="evenodd"
4616  />
4617</svg>`}),pm=Object.freeze({__proto__:null,swapHorizontalRoundedBoldSvg:sL`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
4618  <path 
4619    fill="currentColor"
4620    fill-rule="evenodd" 
4621    clip-rule="evenodd" 
4622    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" 
4623  />
4624</svg>`}),pv=Object.freeze({__proto__:null,swapVerticalSvg:sL`<svg fill="none" viewBox="0 0 14 14">
4625  <path
4626    fill="currentColor"
4627    fill-rule="evenodd"
4628    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"
4629    clip-rule="evenodd"
4630  />
4631</svg>`}),pb=Object.freeze({__proto__:null,telegramSvg:sL`<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
4632  <g clip-path="url(#a)">
4633    <path fill="url(#b)" d="M0 0h32v32H0z"/>
4634    <path fill-rule="evenodd" clip-rule="evenodd" d="M7.034 15.252c4.975-2.167 8.293-3.596 9.953-4.287 4.74-1.971 5.725-2.314 6.366-2.325.142-.002.457.033.662.198.172.14.22.33.243.463.022.132.05.435.028.671-.257 2.7-1.368 9.248-1.933 12.27-.24 1.28-.71 1.708-1.167 1.75-.99.091-1.743-.655-2.703-1.284-1.502-.985-2.351-1.598-3.81-2.558-1.684-1.11-.592-1.721.368-2.718.252-.261 4.619-4.233 4.703-4.594.01-.045.02-.213-.08-.301-.1-.09-.246-.059-.353-.035-.15.034-2.55 1.62-7.198 4.758-.682.468-1.298.696-1.851.684-.61-.013-1.782-.344-2.653-.628-1.069-.347-1.918-.53-1.845-1.12.039-.308.462-.623 1.27-.944Z" fill="#fff"/>
4635  </g>
4636  <path d="M.5 16C.5 7.44 7.44.5 16 .5 24.56.5 31.5 7.44 31.5 16c0 8.56-6.94 15.5-15.5 15.5C7.44 31.5.5 24.56.5 16Z" stroke="#141414" stroke-opacity=".05"/>
4637  <defs>
4638    <linearGradient id="b" x1="1600" y1="0" x2="1600" y2="3176.27" gradientUnits="userSpaceOnUse">
4639      <stop stop-color="#2AABEE"/>
4640      <stop offset="1" stop-color="#229ED9"/>
4641    </linearGradient>
4642    <clipPath id="a">
4643      <path d="M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16Z" fill="#fff"/>
4644    </clipPath>
4645  </defs>
4646</svg>`}),py=Object.freeze({__proto__:null,threeDotsSvg:sL`<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
4647  <path d="M7 3.71875C6.0335 3.71875 5.25 2.93525 5.25 1.96875C5.25 1.00225 6.0335 0.21875 7 0.21875C7.9665 0.21875 8.75 1.00225 8.75 1.96875C8.75 2.93525 7.9665 3.71875 7 3.71875Z" fill="#949E9E"/>
4648  <path d="M7 8.96875C6.0335 8.96875 5.25 8.18525 5.25 7.21875C5.25 6.25225 6.0335 5.46875 7 5.46875C7.9665 5.46875 8.75 6.25225 8.75 7.21875C8.75 8.18525 7.9665 8.96875 7 8.96875Z" fill="#949E9E"/>
4649  <path d="M5.25 12.4688C5.25 13.4352 6.0335 14.2187 7 14.2187C7.9665 14.2187 8.75 13.4352 8.75 12.4688C8.75 11.5023 7.9665 10.7188 7 10.7188C6.0335 10.7188 5.25 11.5023 5.25 12.4688Z" fill="#949E9E"/>
4650</svg>`}),pC=Object.freeze({__proto__:null,twitchSvg:sL`<svg fill="none" viewBox="0 0 40 40">
4651  <g clip-path="url(#a)">
4652    <g clip-path="url(#b)">
4653      <circle cx="20" cy="19.89" r="20" fill="#5A3E85" />
4654      <g clip-path="url(#c)">
4655        <path
4656          fill="#fff"
4657          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"
4658        />
4659      </g>
4660    </g>
4661  </g>
4662  <defs>
4663    <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
4664    <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
4665    <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
4666  </defs>
4667</svg>`}),px=Object.freeze({__proto__:null,xSvg:sL`<svg fill="none" viewBox="0 0 41 40">
4668  <g clip-path="url(#a)">
4669    <path fill="#000" d="M.8 0h40v40H.8z" />
4670    <path
4671      fill="#fff"
4672      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"
4673    />
4674  </g>
4675  <defs>
4676    <clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath>
4677  </defs>
4678</svg>`}),pk=Object.freeze({__proto__:null,twitterIconSvg:sL`<svg fill="none" viewBox="0 0 16 16">
4679  <path
4680    fill="currentColor"
4681    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"
4682  />
4683</svg>`}),pA=Object.freeze({__proto__:null,verifySvg:sL`<svg fill="none" viewBox="0 0 28 28">
4684  <path
4685    fill="currentColor"
4686    fill-rule="evenodd"
4687    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"
4688    clip-rule="evenodd"
4689  />
4690</svg>`}),pI=Object.freeze({__proto__:null,verifyFilledSvg:sL`<svg fill="none" viewBox="0 0 14 14">
4691  <path
4692    fill="currentColor"
4693    fill-rule="evenodd"
4694    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"
4695    clip-rule="evenodd"
4696  />
4697</svg>`}),pE=Object.freeze({__proto__:null,walletSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4698  <path
4699    fill="currentColor"
4700    fill-rule="evenodd"
4701    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"
4702    clip-rule="evenodd"
4703  />
4704</svg>`}),pS=Object.freeze({__proto__:null,walletConnectSvg:sL`<svg fill="none" viewBox="0 0 96 67">
4705  <path
4706    fill="currentColor"
4707    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"
4708  />
4709  <path
4710    stroke="#000"
4711    stroke-opacity=".1"
4712    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"
4713  />
4714</svg>`,walletConnectLightBrownSvg:sL`
4715<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
4716<g clip-path="url(#clip0_22274_4692)">
4717<path d="M0 6.64C0 4.17295 0 2.93942 0.525474 2.01817C0.880399 1.39592 1.39592 0.880399 2.01817 0.525474C2.93942 0 4.17295 0 6.64 0H9.36C11.8271 0 13.0606 0 13.9818 0.525474C14.6041 0.880399 15.1196 1.39592 15.4745 2.01817C16 2.93942 16 4.17295 16 6.64V9.36C16 11.8271 16 13.0606 15.4745 13.9818C15.1196 14.6041 14.6041 15.1196 13.9818 15.4745C13.0606 16 11.8271 16 9.36 16H6.64C4.17295 16 2.93942 16 2.01817 15.4745C1.39592 15.1196 0.880399 14.6041 0.525474 13.9818C0 13.0606 0 11.8271 0 9.36V6.64Z" fill="#C7B994"/>
4718<path d="M4.49038 5.76609C6.42869 3.86833 9.5713 3.86833 11.5096 5.76609L11.7429 5.99449C11.8398 6.08938 11.8398 6.24323 11.7429 6.33811L10.9449 7.11942C10.8964 7.16686 10.8179 7.16686 10.7694 7.11942L10.4484 6.80512C9.09617 5.48119 6.90381 5.48119 5.5516 6.80512L5.20782 7.14171C5.15936 7.18915 5.08079 7.18915 5.03234 7.14171L4.23434 6.3604C4.13742 6.26552 4.13742 6.11167 4.23434 6.01678L4.49038 5.76609ZM13.1599 7.38192L13.8702 8.07729C13.9671 8.17217 13.9671 8.32602 13.8702 8.4209L10.6677 11.5564C10.5708 11.6513 10.4137 11.6513 10.3168 11.5564L8.04388 9.33105C8.01965 9.30733 7.98037 9.30733 7.95614 9.33105L5.6833 11.5564C5.58638 11.6513 5.42925 11.6513 5.33234 11.5564L2.12982 8.42087C2.0329 8.32598 2.0329 8.17213 2.12982 8.07724L2.84004 7.38188C2.93695 7.28699 3.09408 7.28699 3.191 7.38188L5.46392 9.60726C5.48815 9.63098 5.52743 9.63098 5.55166 9.60726L7.82447 7.38188C7.92138 7.28699 8.07851 7.28699 8.17543 7.38187L10.4484 9.60726C10.4726 9.63098 10.5119 9.63098 10.5361 9.60726L12.809 7.38192C12.9059 7.28703 13.063 7.28703 13.1599 7.38192Z" fill="#202020"/>
4719</g>
4720<defs>
4721<clipPath id="clip0_22274_4692">
4722<path d="M0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8Z" fill="white"/>
4723</clipPath>
4724</defs>
4725</svg>
4726`,walletConnectBrownSvg:sL`
4727<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4728<circle cx="11" cy="11" r="11" transform="matrix(-1 0 0 1 23 1)" fill="#202020"/>
4729<circle cx="11" cy="11" r="11.5" transform="matrix(-1 0 0 1 23 1)" stroke="#C7B994" stroke-opacity="0.7"/>
4730<path d="M15.4523 11.0686L16.7472 9.78167C13.8205 6.87297 10.1838 6.87297 7.25708 9.78167L8.55201 11.0686C10.7779 8.85645 13.2279 8.85645 15.4538 11.0686H15.4523Z" fill="#C7B994"/>
4731<path d="M15.0199 14.067L12 11.0656L8.98 14.067L5.96004 11.0656L4.66663 12.3511L8.98 16.6393L12 13.638L15.0199 16.6393L19.3333 12.3511L18.0399 11.0656L15.0199 14.067Z" fill="#C7B994"/>
4732</svg>
4733`}),pN=Object.freeze({__proto__:null,walletPlaceholderSvg:sL`
4734  <svg fill="none" viewBox="0 0 48 44">
4735    <path
4736      style="fill: var(--wui-color-bg-300);"
4737      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.
473705 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"
4738    />
4739    <path
4740      style="fill: var(--wui-color-fg-200);"
4741      fill-rule="evenodd"
4742      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"
4743      clip-rule="evenodd"
4744    />
4745  </svg>
4746`}),pP=Object.freeze({__proto__:null,warningCircleSvg:sL`<svg fill="none" viewBox="0 0 20 20">
4747  <path
4748    fill="currentColor"
4749    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"
4750  />
4751  <path
4752    fill="currentColor"
4753    fill-rule="evenodd"
4754    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"
4755    clip-rule="evenodd"
4756  />
4757</svg>`}),p_=Object.freeze({__proto__:null,infoSvg:sL`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
4758<path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
4759</svg>`}),p$=Object.freeze({__proto__:null,exclamationTriangleSvg:sL`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
4760<path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
4761</svg>
4762`}),pO=Object.freeze({__proto__:null,reownSvg:sL`<svg width="60" height="16" viewB
4762ox="0 0 60 16" fill="none"">
4763  <path d="M9.3335 4.66667C9.3335 2.08934 11.4229 0 14.0002 0H20.6669C23.2442 0 25.3335 2.08934 25.3335 4.66667V11.3333C25.3335 13.9106 23.2442 16 20.6669 16H14.0002C11.4229 16 9.3335 13.9106 9.3335 11.3333V4.66667Z" fill="#363636"/>
4764  <path d="M15.6055 11.0003L17.9448 4.66699H18.6316L16.2923 11.0003H15.6055Z" fill="#F6F6F6"/>
4765  <path d="M0 4.33333C0 1.9401 1.9401 0 4.33333 0C6.72657 0 8.66669 1.9401 8.66669 4.33333V11.6667C8.66669 14.0599 6.72657 16 4.33333 16C1.9401 16 0 14.0599 0 11.6667V4.33333Z" fill="#363636"/>
4766  <path d="M3.9165 9.99934V9.16602H4.74983V9.99934H3.9165Z" fill="#F6F6F6"/>
4767  <path d="M26 8C26 3.58172 29.3517 0 33.4863 0H52.5137C56.6483 0 60 3.58172 60 8C60 12.4183 56.6483 16 52.5137 16H33.4863C29.3517 16 26 12.4183 26 8Z" fill="#363636"/>
4768  <path d="M49.3687 9.95834V6.26232H50.0213V6.81966C50.256 6.40899 50.7326 6.16699 51.2606 6.16699C52.0599 6.16699 52.6173 6.67299 52.6173 7.65566V9.95834H51.972V7.69234C51.972 7.04696 51.6053 6.70966 51.07 6.70966C50.4906 6.70966 50.0213 7.17168 50.0213 7.82433V9.95834H49.3687Z" fill="#F6F6F6"/>
4769  <path d="M45.2538 9.95773L44.5718 6.26172H45.1877L45.6717 9.31242L46.3098 7.30306H46.9184L47.5491 9.29041L48.0404 6.26172H48.6564L47.9744 9.95773H47.2411L46.6178 8.03641L45.9871 9.95773H45.2538Z" fill="#F6F6F6"/>
4770  <path d="M42.3709 10.0536C41.2489 10.0536 40.5889 9.21765 40.5889 8.1103C40.5889 7.01035 41.2489 6.16699 42.3709 6.16699C43.4929 6.16699 44.1529 7.01035 44.1529 8.1103C44.1529 9.21765 43.4929 10.0536 42.3709 10.0536ZM42.3709 9.51096C43.1775 9.51096 43.4856 8.82164 43.4856 8.10296C43.4856 7.39163 43.1775 6.70966 42.3709 6.70966C41.5642 6.70966 41.2562 7.39163 41.2562 8.10296C41.2562 8.82164 41.5642 9.51096 42.3709 9.51096Z" fill="#F6F6F6"/>
4771  <path d="M38.2805 10.0536C37.1952 10.0536 36.5132 9.22499 36.5132 8.1103C36.5132 7.00302 37.1952 6.16699 38.2805 6.16699C39.1972 6.16699 40.0038 6.68766 39.9159 8.27896H37.1805C37.2319 8.96103 37.5472 9.5183 38.2805 9.5183C38.7718 9.5183 39.0945 9.21765 39.2045 8.87299H39.8499C39.7472 9.48903 39.1679 10.0536 38.2805 10.0536ZM37.1952 7.78765H39.2852C39.2338 7.04696 38.8892 6.70232 38.2805 6.70232C37.6132 6.70232 37.2832 7.18635 37.1952 7.78765Z" fill="#F6F6F6"/>
4772  <path d="M33.3828 9.95773V6.26172H34.0501V6.88506C34.2848 6.47439 34.6882 6.26172 35.1061 6.26172H35.9935V6.88506H35.0548C34.4682 6.88506 34.0501 7.26638 34.0501 8.00706V9.95773H33.3828Z" fill="#F6F6F6"/>
4773</svg>`})}}]);
4774//# sourceMappingURL=775ca1a0.9de6873d41935e8e.js.map
4775//# debugId=432224eb-23ea-5df1-b8b1-ef72953736eb

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.