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]=`ca7dd767-8247-4c67-a9b0-98119059fc33`,e._sentryDebugIdIdentifier=`sentry-dbid-ca7dd767-8247-4c67-a9b0-98119059fc33`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{Ag as t,Fg as n,Ig as r}from"./entry.client-dr7r6s9a.js";var i=n(),a=e(r(),1),o=t(),s=`guide-tab-bar`,c=(0,a.createContext)(null),l=()=>{let e=(0,a.useContext)(c);if(!e)throw Error(`useGuideNavToggleContext must be used within GuideNavToggleProvider`);return e},u=e=>{let t=(0,i.c)(11),{pathname:n,children:r}=e,[s,l]=(0,a.useState)(!1),u=(0,a.useRef)(null),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>{u.current=e},t[0]=d):d=t[0];let f=d,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{l(e=>!e)},t[1]=p):p=t[1];let m=p,h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{l(!1)},t[2]=h):h=t[2];let g=h,_;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{l(!1)},t[3]=_):_=t[3];let v;t[4]===n?v=t[5]:(v=[n],t[4]=n,t[5]=v),(0,a.useEffect)(_,v);let y;t[6]===s?y=t[7]:(y={isTabBarOpen:s,toggleTabBar:m,closeTabBar:g,hamburgerRef:u,setHamburgerElement:f},t[6]=s,t[7]=y);let b=y,x;return t[8]!==b||t[9]!==r?(x=(0,o.jsx)(c.Provider,{value:b,children:r}),t[8]=b,t[9]=r,t[10]=x):x=t[10],x};export{u as n,l as r,s as t};