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]=`96dd890b-0dd6-4c68-9613-76b3c2279228`,e._sentryDebugIdIdentifier=`sentry-dbid-96dd890b-0dd6-4c68-9613-76b3c2279228`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Sp as n,fp as r,jg as i,ng as a,pr as o}from"./entry.client-mpghtlrl.js";import{r as s}from"./useWidget-nf2epnjz.js";import{r as c}from"./guideRouterEnvironmentHooks-h2xlfina.js";var l=t(),u=e(i(),1),d=a(),f=e=>{let t=(0,l.c)(15),{children:i}=e,a=r(),f=n(),p;t[0]===a?p=t[1]:(p=e=>{a({to:e.to,params:e.params,search:e.search,replace:e.replace})},t[0]=a,t[1]=p);let m=p,h;t[2]===f.history?h=t[3]:(h=()=>{f.history.canGoBack()&&f.history.back()},t[2]=f.history,t[3]=h);let g=h,[_,v]=(0,u.useState)(null),y;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=e=>{v(e.title??null)},t[4]=y):y=t[4];let b=y,x,S;t[5]===_?S=t[6]:(S={title:_},t[5]=_,t[6]=S),x=S,s(x);let C,w;t[7]!==m||t[8]!==g?(w={host:`widget`,navigate:m,navigateBack:g,setHeader:b},t[7]=m,t[8]=g,t[9]=w):w=t[9],C=w;let T=C,E;t[10]===i?E=t[11]:(E=(0,d.jsx)(o,{className:`h-full w-full`,children:i}),t[10]=i,t[11]=E);let D;return t[12]!==T||t[13]!==E?(D=(0,d.jsx)(c.Provider,{value:T,children:E}),t[12]=T,t[13]=E,t[14]=D):D=t[14],D};function p(e,t){let n=()=>(0,d.jsx)(f,{children:(0,d.jsx)(e,{})});return n.displayName=`WidgetGuidePage(${t})`,n}export{p as t};