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]=`d0bdc0f1-bf64-41bb-89b1-76aa95967a16`,e._sentryDebugIdIdentifier=`sentry-dbid-d0bdc0f1-bf64-41bb-89b1-76aa95967a16`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Gu as t,Ji as n,Lm as r,Um as i,bt as a,jg as o,ng as s,sn as c,xr as l}from"./entry.client-mpghtlrl.js";import{d as u}from"./accelerators-mediz1dj.js";var d=n(),f=e(o(),1),p=s(),m=performance.now()/1e3,h=r(function(){let e=(0,d.c)(14),n=c(),r=i(),o;e[0]===r?o=e[1]:(o=r.getLogger(`PerfTestRoute`),e[0]=r,e[1]=o);let s=o,h=(0,f.useRef)(null),[g,_]=(0,f.useState)(null),v,y;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>_(performance.now()/1e3),y=[],e[2]=v,e[3]=y):(v=e[2],y=e[3]),(0,f.useEffect)(v,y);let b;e[4]!==s||e[5]!==n?(b=()=>{s.info(`Navigating to Home`),n(t.home.$path())},e[4]=s,e[5]=n,e[6]=b):b=e[6];let x=b;u(`release`,x);let S=performance.memory,C;e[7]===g?C=e[8]:(C=g!==null&&(0,p.jsxs)(`table`,{className:`border-collapse`,children:[(0,p.jsx)(`thead`,{children:(0,p.jsx)(`tr`,{className:`border-separator-neutral-alpha border-b`,children:(0,p.jsx)(`th`,{colSpan:2,className:`px-4 py-3 text-center font-bold text-noninteractive-content-primary-content type-title2`,children:`Performance Metrics`})})}),(0,p.jsxs)(`tbody`,{children:[(0,p.jsxs)(`tr`,{className:`border-separator-neutral-alpha border-b`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 text-end text-noninteractive-content-primary-content type-body`,children:`Time to init route module:`}),(0,p.jsxs)(`td`,{className:`px-4 py-2 font-mono text-noninteractive-content-primary-content type-body`,children:[m.toFixed(3),`s`]})]}),(0,p.jsxs)(`tr`,{className:`border-separator-neutral-alpha border-b`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 text-end text-noninteractive-content-primary-content type-body`,children:`Time to client render:`}),(0,p.jsxs)(`td`,{className:`px-4 py-2 font-mono text-noninteractive-content-primary-content type-body`,children:[g.toFixed(3),`s`]})]}),(0,p.jsxs)(`tr`,{className:`border-separator-neutral-alpha border-b`,children:[(0,p.jsx)(`td`,{className:`px-4 py-2 text-end text-noninteractive-content-primary-content type-body`,children:`Memory usage:`}),(0,p.jsx)(`td`,{className:`px-4 py-2 font-mono text-noninteractive-content-primary-content type-body`,children:S?`${(S.usedJSHeapSize/1024/1024).toFixed(2)} MB`:`N/A`})]})]})]}),e[7]=g,e[8]=C);let w;e[9]===x?w=e[10]:(w=(0,p.jsx)(l,{as:`button`,ref:h,onClick:x,"data-auto-focus":!0,children:`Navigate to Home`}),e[9]=x,e[10]=w);let T;return e[11]!==C||e[12]!==w?(T=(0,p.jsxs)(a,{autoFocusContainer:!0,className:`flex h-screen flex-col items-center justify-center gap-8`,children:[C,w]}),e[11]=C,e[12]=w,e[13]=T):T=e[13],T});export{h as default};