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]=`d6a3b911-f419-4a3d-8f03-84c980093c98`,e._sentryDebugIdIdentifier=`sentry-dbid-d6a3b911-f419-4a3d-8f03-84c980093c98`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,jg as n}from"./entry.client-mpghtlrl.js";import{tt as r}from"./xds-react-components-ihgca01z.js";var i=t(),a=e(n(),1),o=(e,t)=>{let n=(0,i.c)(10),o=t===void 0?1500:t,[s,c]=(0,a.useState)(!1),l=r(),u=e.current,d;n[0]!==s||n[1]!==l.current||n[2]!==o||n[3]!==u?(d=()=>{let e=()=>{if(!s){let e=setTimeout(()=>{l.current&&c(!0)},o);return()=>{clearTimeout(e)}}};return u?.addEventListener(`focusin`,e),()=>u?.removeEventListener(`focusin`,e)},n[0]=s,n[1]=l.current,n[2]=o,n[3]=u,n[4]=d):d=n[4];let f;return n[5]!==u||n[6]!==o||n[7]!==s||n[8]!==l?(f=[u,o,s,l],n[5]=u,n[6]=o,n[7]=s,n[8]=l,n[9]=f):f=n[9],(0,a.useEffect)(d,f),s};export{o as t};