1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="ba01af30-174a-3172-5b72-898a45fc6cb7")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,478492,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,n,r,o){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new s(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=Array(o);r<o;r++)s[r]=n[r].fn;return s},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,s){var a=i?i+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,s),!0}for(l=1,c=Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var h,f=u.length;for(l=0;l<f;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(h=1,c=Array(d-1);h<d;h++)c[h-1]=arguments[h];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||c(this,o);else{for(var a=0,l=[],u=s.length;a<u;a++)(s[a].fn!==t||r&&!s[a].once||n&&s[a].context!==n)&&l.push(s[a]);l.length?this._events[o]=1===l.length?l[0]:l:c(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,t.exports=l},595932,87246,e=>{"use strict";var t=e.i(478492);t.default,e.s([],595932),e.s(["EventEmitter",()=>t.default],87246)},314274,e=>{"use strict";var t=e.i(843005),n=e.i(832607),r=e.i(363199),i=e.i(54548);function o(e){return!!("code"in e&&"number"==typeof e.code&&(e.code===n.TransactionRejectedRpcError.code||e.code===n.UserRejectedRequestError.code||e.code===n.WalletConnectSessionSettlementError.code||t.ExecutionRevertedError.nodeMessage.test(e.message)||5e3===e.code))}e.s(["fallback",0,function(e,t={}){let{key:n="fallback",name:s="Fallback",rank:a=!1,shouldThrow:c=o,retryCount:l,retryDelay:u}=t;return({chain:t,pollingInterval:o=4e3,timeout:d,...h})=>{let f=e,m=()=>{},p=(0,i.createTransport)({key:n,name:s,async request({method:e,params:n}){let r,i=async(o=0)=>{let s=f[o]({...h,chain:t,retryCount:0,timeout:d});try{let t=await s.request({method:e,params:n});return m({method:e,params:n,response:t,transport:s,status:"success"}),t}catch(a){if(m({error:a,method:e,params:n,transport:s,status:"error"}),c(a)||o===f.length-1||!(r??=f.slice(o+1).some(n=>{let{include:r,exclude:i}=n({chain:t}).config.methods||{};return r?r.includes(e):!i||!i.includes(e)})))throw a;return i(o+1)}};return i()},retryCount:l,retryDelay:u,type:"fallback"},{onResponse:e=>m=e,transports:f.map(e=>e({chain:t,retryCount:0}))});if(a){let e="object"==typeof a?a:{};!function({chain:e,interval:t=4e3,onTransports:n,ping:i,sampleCount:o=10,timeout:s=1e3,transports:a,weights:c={}}){let{stability:l=.7,latency:u=.3}=c,d=[],h=async()=>{let c=await Promise.all(a.map(async t=>{let n,r,o=t({chain:e,retryCount:0,timeout:s}
2),a=Date.now();try{await (i?i({transport:o}):o.request({method:"net_listening"})),r=1}catch{r=0}finally{n=Date.now()}return{latency:n-a,success:r}}));d.push(c),d.length>o&&d.shift();let f=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));n(a.map((e,t)=>{let n=d.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,i=d.map(e=>e[t].success),o=i.reduce((e,t)=>e+t,0)/i.length;return 0===o?[0,t]:[u*(1-r/f)+l*o,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>a[e])),await (0,r.wait)(t),h()};h()}({chain:t,interval:e.interval??o,onTransports:e=>f=e,ping:e.ping,sampleCount:e.sampleCount,timeout:e.timeout,transports:f,weights:e.weights})}return p}},"shouldThrow",0,o])},308729,128714,e=>{"use strict";var t=e.i(736618),n=e.i(544316),r=e.i(832607),i=e.i(900034),o=e.i(552672),s=e.i(618254),a=e.i(454591);function c(e){return e}function l(e={}){let h,f,m,p,{shimDisconnect:g=!0,unstable_shimAsyncInject:v}=e;function w(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...u[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return c(c=>({get icon(){return w().icon},get id(){return w().id},get name(){return w().name},get supportsSimulation(){return!0},type:l.type,async setup(){let t=await this.getProvider();t?.on&&e.target&&(m||(m=this.onConnect.bind(this),t.on("connect",m)),h||(h=this.onAccountsChanged.bind(this),t.on("accountsChanged",h)))},async connect({chainId:n,isReconnecting:i,withCapabilities:o}={}){let s=await this.getProvider();if(!s)throw new a.ProviderNotFoundError;let l=[];if(i)l=await this.getAccounts().catch(()=>[]);else if(g)try{let e=await s.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(l=e[0]?.caveats?.[0]?.value?.map(e=>(0,t.getAddress)(e))).length>0&&(l=await this.getAccounts())}catch(e){if(e.code===r.UserRejectedRequestError.code)throw new r.UserRejectedRequestError(e);if(e.code===r.ResourceUnavailableRpcError.code)throw e}try{l?.length||i||(l=(await s.request({method:"eth_requestAccounts"})).map(e=>(0,t.getAddress)(e))),m&&(s.removeListener("connect",m),m=void 0),h||(h=this.onAccountsChanged.bind(this),s.on("accountsChanged",h)),f||(f=this.onChainChanged.bind(this),s.on("chainChanged",f)),p||(p=this.onDisconnect.bind(this),s.on("disconnect",p));let a=await this.getChainId();if(n&&a!==n){let e=await this.switchChain({chainId:n}).catch(e=>{if(e.code===r.UserRejectedRequestError.code)throw e;return{id:a}});a=e?.id??a}return g&&await c.storage?.removeItem(`${this.id}.disconnected`),e.target||await c.storage?.setItem("injected.connected",!0),{accounts:o?l.map(e=>({address:e,capabilities:{}})):l,chainId:a}}catch(e){if(e.code===r.UserRejectedRequestError.code)throw new r.UserRejectedRequestError(e);if(e.code===r.ResourceUnavailableRpcError.code)throw new r.ResourceUnavailableRpcError(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new a.ProviderNotFoundError;f&&(t.removeListener("chainChanged",f),f=void 0),p&&(t.removeListener("disconnect",p),p=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m));try{await (0,o.withTimeout)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}g&&await c.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await c.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new a.ProviderNotFoundError;return(await e.request({method:"eth_accounts"})).map(e=>(0,t.getAddress)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new a.ProviderNotFoundError;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("u"<typeof window)return;let t=w();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?d(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(g&&await c.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await c.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==v&&!1!==v){let e=async()=>("u">typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof v?v:1e3;if(await Promise.race([..."u">typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new a.ProviderNotFoundError}return!!(await (0,i.withRetry)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let i=await this.getProvider();if(!i)throw new a.ProviderNotFoundError;let o=c.chains.find(e=>e.id===t);if(!o)throw new r.SwitchChainError(new s.ChainNotConfiguredError);let l=new Promise(e=>{let n=r=>{"chainId"in r&&r.chainId===t&&(c.emitter.off("change",n),e())};c.emitter.on("change",n)});try{return await Promise.all([i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,n.numberToHex)(t)}]}).then(async()=>{await this.getChainId()===t&&c.emitter.emit("change",{chainId:t})}),l]),o}
2catch(s){if(4902===s.code||s?.data?.originalError?.code===4902)try{let s,a,{default:u,...d}=o.blockExplorers??{};e?.blockExplorerUrls?s=e.blockExplorerUrls:u&&(s=[u.url,...Object.values(d).map(e=>e.url)]),a=e?.rpcUrls?.length?e.rpcUrls:[o.rpcUrls.default?.http[0]??""];let h={blockExplorerUrls:s,chainId:(0,n.numberToHex)(t),chainName:e?.chainName??o.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??o.nativeCurrency,rpcUrls:a};return await Promise.all([i.request({method:"wallet_addEthereumChain",params:[h]}).then(async()=>{if(await this.getChainId()===t)c.emitter.emit("change",{chainId:t});else throw new r.UserRejectedRequestError(Error("User rejected switch after adding network."))}),l]),o}catch(e){throw new r.UserRejectedRequestError(e)}if(s.code===r.UserRejectedRequestError.code)throw new r.UserRejectedRequestError(s);throw new r.SwitchChainError(s)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(c.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),g&&await c.storage?.removeItem(`${this.id}.disconnected`)}else c.emitter.emit("change",{accounts:e.map(e=>(0,t.getAddress)(e))})},onChainChanged(e){let t=Number(e);c.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);c.emitter.emit("connect",{accounts:t,chainId:n});let r=await this.getProvider();r&&(m&&(r.removeListener("connect",m),m=void 0),h||(h=this.onAccountsChanged.bind(this),r.on("accountsChanged",h)),f||(f=this.onChainChanged.bind(this),r.on("chainChanged",f)),p||(p=this.onDisconnect.bind(this),r.on("disconnect",p)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),t&&(f&&(t.removeListener("chainChanged",f),f=void 0),p&&(t.removeListener("disconnect",p),p=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m))))}}))}e.s(["createConnector",0,c],128714),l.type="injected";let u={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:d(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>d(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:d(e,"isPhantom")}};function d(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}e.s(["injected",0,l],308729)},268212,475828,e=>{"use strict";let t=e=>n=>{try{let r=e(n);if(r instanceof Promise)return r;return{then:e=>t(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:n=>t(n)(e)}}};e.s(["persist",0,(e,n)=>(r,i,o)=>{let s,a={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var n;let r=e=>null===e?null:JSON.parse(e,void 0),i=null!=(n=t.getItem(e))?n:null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,n)=>t.setItem(e,JSON.stringify(n,void 0)),removeItem:e=>t.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...n},c=!1,l=new Set,u=new Set,d=a.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...e)},i,o);let h=()=>{let e=a.partialize({...i()});return d.setItem(a.name,{state:e,version:a.version})},f=o.setState;o.setState=(e,t)=>{f(e,t),h()};let m=e((...e)=>{r(...e),h()},i,o);o.getInitialState=()=>m;let p=()=>{var e,n;if(!d)return;c=!1,l.forEach(e=>{var t;return e(null!=(t=i())?t:m)});let o=(null==(n=a.onRehydrateStorage)?void 0:n.call(a,null!=(e=i())?e:m))||void 0;return t(d.getItem.bind(d))(a.name).then(e=>
2{if(e)if("number"!=typeof e.version||e.version===a.version)return[!1,e.state];else{if(a.migrate)return[!0,a.migrate(e.state,e.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[n,o]=e;if(r(s=a.merge(o,null!=(t=i())?t:m),!0),n)return h()}).then(()=>{null==o||o(s,void 0),s=i(),c=!0,u.forEach(e=>e(s))}).catch(e=>{null==o||o(void 0,e)})};return o.persist={setOptions:e=>{a={...a,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>c,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},a.skipHydration||p(),s||m},"subscribeWithSelector",0,e=>(t,n,r)=>{let i=r.subscribe;return r.subscribe=(e,t,n)=>{let o=e;if(t){let i=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());o=n=>{let r=e(n);if(!i(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return i(o)},e(t,n,r)}],268212);let n=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,i,o);return o};e.s(["createStore",0,e=>e?n(e):n],475828)},650725,918049,552689,130829,911668,242416,e=>{"use strict";let t;var n=e.i(7146),r=e.i(612880),i=e.i(268212),o=e.i(475828),s=e.i(308729);e.i(595932);var a=e.i(87246);class c{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new a.EventEmitter})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function l(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function u(e,t){return e.slice(0,t).join(".")||"."}function d(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function h(e,t,n,r){var i;let o,s,a,c;return JSON.stringify(e,(i=(e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},o=true,s="function"==typeof r,a=[],c=[],function(e,t){if("object"==typeof t)if(a.length){let n=d(a,this);0===n?a[a.length]=this:(a.splice(n),c.splice(n)),c[c.length]=e;let i=d(a,t);if(0!==i)return s?r.call(this,e,t,u(c,i)):`[ref=${u(c,i)}]`}else a[0]=t,c[0]=e;return o?i.call(this,e,t):t}),n??void 0)}function f(e){let{deserialize:t=l,key:n="wagmi",serialize:r=h,storage:i=m}=e;function o(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...i,key:n,async getItem(e,r){let s=i.getItem(`${n}.${e}`),a=await o(s);return a?t(a)??null:r??null},async setItem(e,t){let s=`${n}.${e}`;null===t?await o(i.removeItem(s)):await o(i.setItem(s,r(t)))},async removeItem(e){await o(i.removeItem(`${n}.${e}`))}}}e.s(["deserialize",0,l],918049),e.s(["serialize",0,h],552689);let m={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function p(){let e="u">typeof window&&window.localStorage?window.localStorage:m;return{getItem:t=>e.getItem(t),removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}e.s(["createStorage",0,f,"getDefaultStorage",0,p,"noopStorage",0,m],130829);var g=e.i(618254);let v=256;var w=e.i(785998);e.s(["createConfig",0,function(e){let a,{multiInjectedProviderDiscovery:l=!0,storage:u=f({storage:p()}),syncConnectedChain:d=!0,ssr:h=!1,...m}=e,y="u">typeof window&&l?(0,n.createStore)():void 0,b=(0,o.createStore)(()=>m.chains),I=(0,o.createStore)(()=>{let e=[],t=new Set;for(let n of m.connectors??[]){let r=S(n);if(e.push(r),!h&&r.rdns)for(let e of"string"==typeof r.rdns?[r.rdns]:r.rdns)t.add(e)}if(!h&&y)for(let n of y.getProviders())t.has(n.info.rdns)||e.push(S(C(n)));return e});function S(e){let n=new c(function(e=11){if(!t||v+e>512){t="",v=0;for(let e=0;e<256;e++)t+=(256+256*Math.random()|0).toString(16).substring(1)}return t.substring(v,v+++e)}()),r={...e({emitter:n,chains:b.getState(),storage:u,transports:m.transports}),emitter:n,uid:n.uid};return n.on("connect",x),r.setup?.(),r}function C(e){let{info:t}=e,n=e.provider;return(0,s.injected)({target:{...t,id:t.rdns,provider:n}})}let _=new Map;function E(){return{chainId:b.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let j="0.0.0-canary-";a=w.version.startsWith(j)?Number.parseInt(w.version.replace(j,""),10):Number.parseInt(w.version.split(".")[0]??"0",10);let P=(0,o.createStore)((0,i.subscribeWithSelector)(u?(0,i.persist)(E,{migrate(e,t){if(t===a)return e;let n=E(),r=k(e,n.chainId);return{...n,chainId:r}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:i,uid:o}=t.connector;return[e,{...t,connector:{id:n,name:r,type:i,uid:o}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=k(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:h,storage:u,version:a}):E));function k(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&b.getState().some(t=>t.id===e.chainId)?e.chainId:t}function R(e){P.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function x(e){"connecting"!==P.getState().status&&"reconnecting"!==P.getState().status&&P.setState(t=>{let n=I.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",R),n.emitter.listenerCount("change")||n.emitter.on("change",R),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",O),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function O(e){P.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",R),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",O),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",x)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return P.setState(E()),d&&P.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(b.getState().some(t=>t.id===e))return P.setState(t=>({...t,chainId:e??t.chainId}))}),y?.subscribe(e=>{let t=new Set,n=new Set;for(let e of I.getState())if(t.add(e.id),e.rdns)for(let t of"string"==typeof e.rdns?[e.rdns]:e.rdns)n.add(t);let r=[];for(let i of e){if(n.has(i.info.rdns))continue;let e=S(C(i));t.has(e.id)||r.push(e)}(!u||P.persist.hasHydrated())&&I.setState(e=>[...e,...r],!0)}),{get chains(){return b.getState()}
2,get connectors(){return I.getState()},storage:u,getClient:function(e={}){let t,n=e.chainId??P.getState().chainId,i=b.getState().find(e=>e.id===n);if(e.chainId&&!i)throw new g.ChainNotConfiguredError;{let e=_.get(P.getState().chainId);if(e&&!i)return e;if(!i)throw new g.ChainNotConfiguredError}{let e=_.get(n);if(e)return e}if(m.client)t=m.client({chain:i});else{let e=i.id,n=b.getState().map(e=>e.id),o={};for(let[t,r]of Object.entries(m))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t)if("object"==typeof r)if(e in r)o[t]=r[e];else{if(n.some(e=>e in r))continue;o[t]=r}else o[t]=r;t=(0,r.createClient)({...o,chain:i,batch:o.batch??{multicall:!0},transport:t=>m.transports[e]({...t,connectors:I})})}return _.set(n,t),t},get state(){return P.getState()},setState(e){let t;t="function"==typeof e?e(P.getState()):e;let n=E();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),P.setState(t,!0)},subscribe:(e,t,n)=>P.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:y,async revalidate(){let e=P.getState(),t=e.connections,n=e.current;for(let[,e]of t){let r=e.connector;r.isAuthorized&&await r.isAuthorized()||(t.delete(r.uid),n===r.uid&&(n=null))}P.setState(e=>({...e,connections:t,current:n}))},store:P,ssr:!!h,syncConnectedChain:d,transports:m.transports,chains:{setState(e){let t="function"==typeof e?e(b.getState()):e;if(0!==t.length)return b.setState(t,!0)},subscribe:e=>b.subscribe(e)},connectors:{providerDetailToConnector:C,setup:S,setState:e=>I.setState("function"==typeof e?e(I.getState()):e,!0),subscribe:e=>I.subscribe(e)},events:{change:R,connect:x,disconnect:O}}}}],650725);var y=e.i(314274);function b(e,t){let n=e.split("; ").find(e=>e.startsWith(`${t}=`));if(n)return n.substring(t.length+1)}e.s(["fallback",0,function(e,t){return(0,y.fallback)(e,t)}],911668),e.s(["cookieStorage",0,{getItem:e=>"u"<typeof window?null:b(document.cookie,e)??null,setItem(e,t){"u">typeof window&&(document.cookie=`${e}=${t};path=/;samesite=Lax`)},removeItem(e){"u">typeof window&&(document.cookie=`${e}=;max-age=-1;path=/`)}},"cookieToInitialState",0,function(e,t){if(!t)return;let n=b(t,`${e.storage?.key}.store`);if(n)return l(n).state},"parseCookie",0,b],242416)}]); 3 4//# debugId=ba01af30-174a-3172-5b72-898a45fc6cb7
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.