1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{4492:(e,n,o)=>{Promise.resolve().then(o.t.bind(o,4943,23)),Promise.resolve().then(o.t.bind(o,347,23)),Promise.resolve().then(o.bind(o,8534))},8534:(e,n,o)=>{"use strict";o.d(n,{WalletProvider:()=>c,v:()=>s});var l=o(5155),t=o(2115);let i=(0,t.createContext)({isConnected:!1,address:null,connect:async()=>{},disconnect:()=>{}});function c(e){let{children:n}=e,[o,c]=(0,t.useState)(!1),[s,a]=(0,t.useState)(!1),[r,d]=(0,t.useState)(null);(0,t.useEffect)(()=>{c(!0),(async()=>{try{var e,n;let o=null===(n=window)||void 0===n?void 0:null===(e=n.phantom)||void 0===e?void 0:e.solana;if(console.log("Checking existing wallet connection...",{hasProvider:!!o,isPhantom:null==o?void 0:o.isPhantom,isConnected:null==o?void 0:o.isConnected}),(null==o?void 0:o.isPhantom)&&o.isConnected){let e=await o.connect({onlyIfTrusted:!0});if(null==e?void 0:e.publicKey){let n=e.publicKey.toString();console.log("Auto-reconnected to wallet:",n),d(n),a(!0)}}else console.log("No existing wallet connection found")}catch(e){console.log("Error checking connection:",e),a(!1),d(null)}})()},[]);let u=async()=>{if(o)try{var e,n;let o=null===(n=window)||void 0===n?void 0:null===(e=n.phantom)||void 0===e?void 0:e.solana;if(null==o?void 0:o.isPhantom)try{let e=(await o.connect()).publicKey.toString();console.log("Wallet connected successfully:",e),d(e),a(!0)}catch(e){console.error("User rejected the connection",e)}else console.log("Phantom wallet not found, opening install page"),window.open("https://phantom.app/","_blank")}catch(e){console.error("Error connecting wallet:",e)}};return o?(0,l.jsx)(i.Provider,{value:{isConnected:s,address:r,connect:u,disconnect:()=>{if(o)try{var e,n;let o=null===(n=window)||void 0===n?void 0:null===(e=n.phantom)||void 0===e?void 0:e.solana;(null==o?void 0:o.isPhantom)&&o.disconnect(),a(!1),d(null)}catch(e){console.error("Error disconnecting wallet:",e)}}},children:n}):null}let s=()=>(0,t.useContext)(i)},347:()=>{},4943:e=>{e.exports={style:{fontFamily:"'Press Start 2P', 'Press Start 2P Fallback'",fontWeight:400,fontStyle:"normal"},className:"__className_6d0c14",variable:"__variable_6d0c14"}}},e=>{var n=n=>e(e.s=n);e.O(0,[1931,8441,1517,7358],()=>n(4492)),_N_E=e.O()}]);
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.