import{j as n}from"./jsx-runtime-C4_65a1U.js";import{r as s}from"./index-B9zr-vzA.js";import{a as f}from"./index-BYdxj4vr.js";import{c as u}from"./misc-DRDyxdMg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"8a6db0ac5fe78363b0c97fe458a96ce773bf357c"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5cc2fc1c-dcc0-4be1-a938-678e96dfd4a7",e._sentryDebugIdIdentifier="sentry-dbid-5cc2fc1c-dcc0-4be1-a938-678e96dfd4a7")}catch{}})();function x({className:e,children:t="Loading"}){const{reducedMotion:r}=f();return r==="reduce"?n.jsx("div",{className:"animate-pulse",children:t}):n.jsxs("div",{className:u("flex items-center gap-2 font-mono text-sm font-medium uppercase",e),role:"status",children:[n.jsx("div",{"aria-hidden":"true",children:n.jsx(d,{})}),t,n.jsx("div",{"aria-hidden":"true",children:n.jsx(d,{})})]})}const a="█<▓█ ▒░/▒░ █░>▒▓/ █▒▒ ▓▒▓/█<░▒ ▓/░>",o=()=>a[Math.floor(Math.random()*a.length)];function d(){const[e,t]=s.useState(a[0]),[r,c]=s.useState(a[1]);return l(()=>{t(o()),c(o())},80),n.jsxs("span",{children:[e,r]})}function l(e,t=1e3){const r=s.useRef(null);s.useEffect(()=>{r.current=e},[e]),s.useEffect(()=>{function c(){r.current?.()}if(t!==null){const i=setInterval(c,t);return()=>clearInterval(i)}},[t])}export{x as L};
//# sourceMappingURL=loading-DDR0n-s7.js.map
