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]=`5ca51086-53fa-496c-8673-37ca3a86b789`,e._sentryDebugIdIdentifier=`sentry-dbid-5ca51086-53fa-496c-8673-37ca3a86b789`)}catch{}import{Ag as e}from"./entry.client-mpghtlrl.js";import{t}from"./useWidgetNavigation-os2rjdn1.js";var n=e();function r(e){let r=(0,n.c)(8),{navigate:i,getNavigateOptions:a,getHeader:o}=e,s;r[0]===a?s=r[1]:(s=(e,t)=>{let n=a(e);return{key:t,to:n.to,...n.params?{params:n.params}:{},...n.search?{search:n.search}:{}}},r[0]=a,r[1]=s);let c=s,l;r[2]===i?l=r[3]:(l=e=>{i({to:e.to,params:`params`in e&&e.params?e.params:void 0,search:e.search,replace:e.replace})},r[2]=i,r[3]=l);let u=l,d;return r[4]!==u||r[5]!==c||r[6]!==o?(d={navigate:u,getNavigateParams:c,getHeader:o},r[4]=u,r[5]=c,r[6]=o,r[7]=d):d=r[7],t(d)}export{r as t};