import{j as e,R as r,a as t,N as m,i as c,u as l,b as x,r as u,l as o,T as p,c as d,d as n,e as g,H as h,P as j}from"./use-init-i18n-DnFRQkfM.js";import{A as f,G as b,P as w,M as I,S as R,u as v,a as N,I as P}from"./use-lang-storage-DdcuYIBo.js";import{initSentry as S}from"./sentry-DBZlCy6s.js";function y(){return e.jsx(r,{children:e.jsxs(t,{path:"/",element:e.jsx(R,{}),children:[e.jsx(t,{index:!0,element:e.jsx(m,{to:"account",replace:!0})}),e.jsx(t,{path:"account",element:e.jsx(f,{})}),e.jsx(t,{path:"general-settings",element:e.jsx(b,{})}),e.jsx(t,{path:"reward",element:e.jsx(w,{})}),e.jsx(t,{path:"membership-info",element:e.jsx(I,{})})]})})}S();c();function A(){const{theme:s}=l();return x(),v(),N(),u.useEffect(()=>{o.removeItem("omniside_api_status")},[]),e.jsxs("div",{className:s,children:[e.jsx("div",{className:"bg-white text-sidebar-foreground dark:bg-sidebar",children:e.jsx(y,{})}),e.jsx(p,{position:"top-center",richColors:!0,className:"w-fit !font-[inherit]",toastOptions:{classNames:{toast:"!min-h-[40px] !h-auto !py-2 !rounded-xl",title:"min-[375px]:max-w-[calc(100vw-70px)]! min-[375px]:text-nowrap!"},className:"font-[inherit] max-[600px]:-translate-x-1/2! max-[600px]:left-1/2! -translate-x-1/2 left-1/2 !w-fit"}}),e.jsx(P,{})]})}async function E(){const s=await o.getItem("lang"),i=s&&n.locales.includes(s)?s:n.defaultLocale;await d(i),g.createRoot(document.getElementById("root")).render(e.jsx(h,{children:e.jsx(j,{children:e.jsx(A,{})})})),requestAnimationFrame(()=>{requestAnimationFrame(()=>{var a;(a=document.getElementById("omni-boot"))==null||a.remove()})})}E();
