1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2076],{5578:(e,t,r)=>{Promise.resolve().then(r.bind(r,95447))},12565:(e,t,r)=>{"use strict";r.d(t,{cn:()=>o});var s=r(1631),a=r(69203);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}},95447:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>J});var s=r(80069),a=r(12007),o=r(44671),l=r(20801);let n=(0,l.createContext)(void 0);function c(e){let{children:t}=e,[r,a]=(0,l.useState)(()=>{try{return localStorage.getItem("customProjectId")||void 0}catch(e){console.error("Failed to read projectId from localStorage during init:",e);return}}),[o,c]=(0,l.useState)(!0),i=(0,l.useCallback)(e=>{a(e);try{e?localStorage.setItem("customProjectId",e):localStorage.removeItem("customProjectId")}catch(e){console.error("Failed to update projectId in localStorage:",e)}},[]);(0,l.useEffect)(()=>{c(!1)},[]);let d=(0,l.useMemo)(()=>({projectId:r,setProjectId:i,isProjectIdLoading:o}),[r,i,o]);return(0,s.jsx)(n,{value:d,children:t})}var i=r(53208);let d=(0,l.createContext)({projectId:void 0,appKit:void 0});function u(e){let{children:t,config:r}=e,a=(0,i.U)(e=>e.appKit),{projectId:c,isProjectIdLoading:u}=function(){let{projectId:e,setProjectId:t,isProjectIdLoading:r}=function(){let e=(0,l.use)(n);if(!e)throw Error("useProjectIdContext must be used within a ProjectIdProvider");return e}();return{projectId:e,setProjectId:t,isProjectIdLoading:r}}(),m=(0,l.useRef)(void 0),f=(0,l.useMemo)(()=>c||(r.projectId?r.projectId:"a91487f22b50836d9b62f576d6ba9dff"),[c,r.projectId]);(0,l.useEffect)(()=>{if(u||!f||m.current)return;let e=(0,o.sX)({...r,projectId:f});e.setThemeMode("light"),m.current=e,(0,i.w)(e)},[r,f,u]);let p=(0,l.useMemo)(()=>({projectId:f,appKit:a}),[a,f]);return(0,s.jsx)(d,{value:p,children:u&&!f?null:a&&f?(0,s.jsx)(s.Fragment,{children:t}):null})}var m=r(42873),f=r(78179),p=r(13048);r(13422);let j=e=>{let{children:t}=e,r=(0,p.clusterApiUrl)("mainnet-beta"),a=(0,l.useMemo)(()=>[],[]);return(0,s.jsx)(m.S,{endpoint:r,children:(0,s.jsx)(f.r,{wallets:a,autoConnect:!0,children:t})})};var v=r(25523);let x=r.p+"static/media/toast_done.366369a6.svg",h=r.p+"static/media/toast_fail.2d0b3778.svg";var g=r(13645),b=r(42196),I=r(69483),w=r(39374),N=r(12482),C=r(34852);let E=e=>{let{...t}=e,{theme:r="system"}=(0,C.D)();return(0,s.jsx)(v.l$,{theme:r,className:"toaster group",icons:{success:(0,s.jsx)(g.A,{className:"size-4"}),info:(0,s.jsx)(b.A,{className:"size-4"}),warning:(0,s.jsx)(I.A,{className:"size-4"}),error:(0,s.jsx)(w.A,{className:"size-4"}),loading:(0,s.jsx)(N.A,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...t})};var _=r(12565),P=r(41886);let S=e=>{let{containerClassName:t,descriptionClassName:r}=e,a=(0,P.WE)(e=>e.showing),o=(0,P.WE)(e=>e.toast),n=(null==o?void 0:o.severity)==="success"?x:h;return(0,l.useEffect)(()=>{a&&o&&v.oR.custom(()=>(0,s.jsx)("div",{className:"flex min-w-[356px] justify-center items-center",children:(0,s.jsxs)("div",{className:(0,_.cn)("flex items-center gap-3 px-4 py-2.5 bg-[#2C2C30] rounded-[6px] shadow-[0_6px_8px_#21252926]",t),children:[(0,s.jsx)("img",{src:n,width:16,height:16,alt:"",className:(0,_.cn)("w-4 h-4 object-cover")}),(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsx)("div",{className:(0,_.cn)("break-words text-sm leading-5 text-white",r),children:o.detail})})]})}),{duration:o.life,position:"top-center"})},[t,r,n,o,a]),(0,s.jsx)(E,{})};var k=r(95702),y=r(70140),A=r(76055),z=r(39580),M=r(47805),F=r(57684),K=r(57454);function R(){let e=(0,k.useSearchParams)(),t=(0,k.useRouter)(),r=(0,K.kH)(e=>e.userInfo),{showThridLoginLoadingDialog:s}=(0,A.s)();return(0,l.useEffect)(()=>{z.z.connect(),(0,M.iQ)(),(0,F.UD)();let t=e.get("provider");t&&"google"===t?s():r&&(0,K.xJ)();let a=e.get("ref");(0,y.uC)({inviteCode:a||""})},[]),(0,l.useEffect)(()=>{if(r){let e=(0,K.EY)();"/"!==e&&t.replace(e)}},[null==r?void 0:r.uid]),null}var U=r(83248);let D=(0,a.default)(()=>Promise.all([r.e(1453),r.e(4485),r.e(9500),r.e(5298),r.e(3953)]).then(r.bind(r,8992)),{loadableGenerated:{webpack:()=>[8992]},ssr:!1});function J(e){let{children:t}=e,r=(0,U.Y8)("multiChain"),a=(0,U.uJ)(r.adapters),o={...r,adapters:a};return(0,s.jsx)(c,{children:(0,s.jsx)(u,{config:o,children:(0,s.jsxs)(j,{children:[(0,s.jsxs)(D,{children:[(0,s.jsx)(R,{}),t]}),(0,s.jsx)(S,{})]})})})}}},e=>{e.O(0,[4075,5743,6408,3571,1680,395,6926,8442,4168,5143,3132,6693,2682,3785,9282,6799,9619,894,3351,4759,1526,0,7358],()=>e(e.s=5578)),_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.