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]=`c1b709f0-f60f-4329-9e5d-6446f299e251`,e._sentryDebugIdIdentifier=`sentry-dbid-c1b709f0-f60f-4329-9e5d-6446f299e251`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{t}from"./useLocation-gval357w.js";import{Ag as n,Jl as r,Sp as i,fp as a,jg as o}from"./entry.client-mpghtlrl.js";var s=e(o(),1),c=n();function l(){let e=(0,c.c)(3),t=a(),n=i(),r;return e[0]!==n.history||e[1]!==t?(r=e=>{if(typeof e==`number`){n.history.back();return}t({to:e,search:e=>e})},e[0]=n.history,e[1]=t,e[2]=r):r=e[2],r}function u(){return i().history.back}function d(){let e=(0,c.c)(2),n=t(),r;e[0]===n.pathname?r=e[1]:(r=[n.pathname],e[0]=n.pathname,e[1]=r),(0,s.useEffect)(f,r)}function f(){r()}export{l as n,u as r,d as t};