try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2b22227e-ed55-470c-ac74-7a244b07f965`,e._sentryDebugIdIdentifier=`sentry-dbid-2b22227e-ed55-470c-ac74-7a244b07f965`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{R as t}from"./vendor-misc-hfpbxrii.js";import{t as n}from"./GameStreamBootstrapper-dkchivvi.js";import{$d as r,Ag as i,Fg as a,Ig as o,Tg as s,Ym as c,dn as l,jm as u,lh as d,mr as f,sh as p,th as m}from"./entry.client-dr7r6s9a.js";var h=a(),g=e(o(),1),_=i(),v=l(e=>{let t=(0,h.c)(3),{streamClient:r,sessionConfig:i}=e,a;return t[0]!==r||t[1]!==i?(a=(0,_.jsx)(n,{streamClient:r,config:i}),t[0]=r,t[1]=i,t[2]=a):a=t[2],a},()=>{let[e]=t(r.internal.devTools.$.ipConnect.launch),n=e.ipAddress,{getLogger:i}=m(),a=i(`IpConnectPage`),o=`127.0.0.1:9002`;if(n)try{o=decodeURIComponent(n)}catch(e){a.error(`Failed to decode IP address`,e)}let c=(0,g.useMemo)(()=>({connectMode:`ip-connect`,ipAddress:o,uriPathAndQuery:``}),[o,``]),{services:{gameStream:{play:l}}}=p(),[{data:u}]=s({queries:[l.queries.streamClient.getOptions()]});return{streamClient:u,sessionConfig:c}}),y=c(f(()=>{let{t:e}=d(`IPConnectPage`),t=u(),n=v.useComponent();return t?null:(0,_.jsx)(g.Suspense,{fallback:(0,_.jsx)(`div`,{children:e(`Loading IP Connect Page...`,{shortKey:`loading_70daac`})}),children:(0,_.jsx)(n,{})})},`IPConnectPage`));export{y as default};