@moondreamsdev/dreamer-ui 1.7.10-test.106 → 1.7.10-test.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Toast-79CV9AdK.js → Toast-COdBrq_S.js} +3 -1
- package/dist/Toast-COdBrq_S.js.map +1 -0
- package/dist/Toast-DE4pa92G.cjs +2 -0
- package/dist/Toast-DE4pa92G.cjs.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +2572 -2294
- package/dist/components.esm.js.map +1 -1
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.esm.js +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/Toast-79CV9AdK.js.map +0 -1
- package/dist/Toast-BmyRi42e.cjs +0 -2
- package/dist/Toast-BmyRi42e.cjs.map +0 -1
|
@@ -148,6 +148,8 @@ l(null);
|
|
|
148
148
|
l(null);
|
|
149
149
|
l(null);
|
|
150
150
|
l(null);
|
|
151
|
+
l(null);
|
|
152
|
+
l(null);
|
|
151
153
|
function G() {
|
|
152
154
|
const [e, r] = v(0);
|
|
153
155
|
return p(() => {
|
|
@@ -517,4 +519,4 @@ export {
|
|
|
517
519
|
N as n,
|
|
518
520
|
dl as u
|
|
519
521
|
};
|
|
520
|
-
//# sourceMappingURL=Toast-
|
|
522
|
+
//# sourceMappingURL=Toast-COdBrq_S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast-COdBrq_S.js","sources":["join-BmgR_f4v.js","X-CIoyLewf.js","Toast-79CV9AdK.js","components.esm.js","../src/components/actionmodal/ActionModal.tsx","../src/components/dropdown-menu/DropdownContext.tsx","../src/components/tabs/TabsContext.tsx","../src/components/toast/Toast.tsx"],"sourcesContent":["function n(...t) {\n return t.filter((s) => typeof s == \"string\" && s).join(\" \").trim() || void 0;\n}\nexport {\n n as j\n};\n//# sourceMappingURL=join-BmgR_f4v.js.map\n","import { jsx as e } from \"react/jsx-runtime\";\nfunction t({\n size: C = 15,\n color: l = \"currentColor\",\n className: n = \"inline\",\n ...i\n}) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M0.877075 7.49988C0.877075 3.84219 3.84222 0.877045 7.49991 0.877045C11.1576 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1576 14.1227 7.49991 14.1227C3.84222 14.1227 0.877075 11.1575 0.877075 7.49988ZM7.49991 1.82704C4.36689 1.82704 1.82708 4.36686 1.82708 7.49988C1.82708 10.6329 4.36689 13.1727 7.49991 13.1727C10.6329 13.1727 13.1727 10.6329 13.1727 7.49988C13.1727 4.36686 10.6329 1.82704 7.49991 1.82704ZM9.85358 5.14644C10.0488 5.3417 10.0488 5.65829 9.85358 5.85355L8.20713 7.49999L9.85358 9.14644C10.0488 9.3417 10.0488 9.65829 9.85358 9.85355C9.65832 10.0488 9.34173 10.0488 9.14647 9.85355L7.50002 8.2071L5.85358 9.85355C5.65832 10.0488 5.34173 10.0488 5.14647 9.85355C4.95121 9.65829 4.95121 9.3417 5.14647 9.14644L6.79292 7.49999L5.14647 5.85355C4.95121 5.65829 4.95121 5.3417 5.14647 5.14644C5.34173 4.95118 5.65832 4.95118 5.85358 5.14644L7.50002 6.79289L9.14647 5.14644C9.34173 4.95118 9.65832 4.95118 9.85358 5.14644Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction o({\n size: C = 15,\n color: l = \"currentColor\",\n className: n = \"inline\",\n ...i\n}) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction d({\n size: C = 15,\n color: l = \"currentColor\",\n className: n = \"inline\",\n ...i\n}) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction h({ size: C = 15, color: l = \"currentColor\", className: n = \"inline\", ...i }) {\n return /* @__PURE__ */ e(\n \"svg\",\n {\n ...i,\n width: C,\n height: C,\n className: n,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ e(\n \"path\",\n {\n d: \"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z\",\n fill: l,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nexport {\n t as C,\n o as E,\n d as I,\n h as X\n};\n//# sourceMappingURL=X-CIoyLewf.js.map\n","import { jsx as t, Fragment as S, jsxs as b } from \"react/jsx-runtime\";\nimport F, { createContext as l, useId as q, useState as v, useEffect as p, useRef as H, useCallback as L, useMemo as E, useContext as T } from \"react\";\nimport { createPortal as P } from \"react-dom\";\nimport { X as $, C as K, E as V, I as X } from \"./X-CIoyLewf.js\";\nimport { j as Z } from \"./join-BmgR_f4v.js\";\nfunction N(...e) {\n return e.filter((r) => typeof r == \"string\" && r).join(\" \").trim() || void 0;\n}\nfunction _({ size: e = 15, color: r = \"currentColor\", className: o = \"inline\", ...n }) {\n return /* @__PURE__ */ t(\n \"svg\",\n {\n ...n,\n width: e,\n height: e,\n className: o,\n viewBox: \"0 0 15 15\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: /* @__PURE__ */ t(\n \"path\",\n {\n d: \"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z\",\n fill: r,\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n }\n )\n }\n );\n}\nfunction y(...e) {\n return e.filter((r) => typeof r == \"string\" && r).join(\" \").trim() || void 0;\n}\nl(void 0);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(void 0);\nl(void 0);\nl(null);\nl(void 0);\nl(void 0);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nl(null);\nfunction G() {\n const [e, r] = v(0);\n return p(() => {\n const o = setInterval(() => {\n r((n) => (n + 1) % 3);\n }, 500);\n return () => clearInterval(o);\n }, []), /* @__PURE__ */ t(\"div\", { className: \"absolute inset-0 inline-flex items-center justify-center gap-x-2 align-middle\", children: [0, 1, 2].map((o) => /* @__PURE__ */ t(\n \"div\",\n {\n className: N(\n \"rounded-full transition-all duration-500 ease-in-out size-[0.35em] bg-current\",\n e === o && \"transform -translate-y-1\"\n )\n },\n o\n )) });\n}\nconst J = {\n base: \"\",\n primary: \"bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80\",\n tertiary: \"text-primary hover:text-primary-foreground disabled:text-muted\",\n outline: \"border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted\",\n link: \"underline-offset-4 hover:underline disabled:underline disabled:text-muted\",\n destructive: \"bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground\"\n}, Q = {\n stripped: \"\",\n fitted: \"size-fit\",\n sm: \"px-2 py-1 text-sm\",\n md: \"px-4 py-2 text-base\",\n lg: \"px-6 py-3 text-lg\",\n icon: \"p-1 w-fit aspect-square\",\n full: \"p-2 w-full\"\n}, U = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"rounded-full\"\n}, w = {\n variant: \"primary\",\n size: \"md\",\n rounded: \"md\"\n};\nfunction W({\n variant: e = w.variant,\n size: r,\n rounded: o = w.rounded,\n loading: n,\n className: u,\n ...a\n}) {\n let i;\n e === \"link\" && !r ? i = \"fitted\" : i = r || w.size;\n const s = N(\n \"appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all\",\n J[e],\n Q[i],\n U[o],\n n && \"relative pointer-events-none\",\n u\n );\n if (a.href && !a.disabled)\n return /* @__PURE__ */ t(\n \"a\",\n {\n ...a,\n rel: a.rel ? a.rel : a.target === \"_blank\" ? \"noopener noreferrer\" : void 0,\n \"aria-label\": a[\"aria-label\"],\n \"aria-description\": a[\"aria-description\"],\n href: a.href,\n className: s,\n children: a.children\n }\n );\n const d = a;\n return /* @__PURE__ */ b(\n \"button\",\n {\n ...d,\n \"aria-label\": d[\"aria-label\"],\n \"aria-description\": d[\"aria-description\"],\n \"aria-disabled\": d.disabled || n,\n \"aria-busy\": n,\n type: d.type ?? \"button\",\n className: s,\n children: [\n n && /* @__PURE__ */ t(G, {}),\n /* @__PURE__ */ t(\"span\", { className: N(n && \"invisible\"), children: d.children })\n ]\n }\n );\n}\nfunction Y(e) {\n const [r, o] = v(!1), [n, u] = v(!1);\n return p(() => {\n e ? (u(!0), setTimeout(() => o(!0), 10)) : (o(!1), setTimeout(() => u(!1), 150));\n }, [e]), { show: r, shouldRender: n };\n}\nfunction R(e, r) {\n p(() => {\n const o = (n) => {\n n.key === \"Escape\" && e && r();\n };\n return document.addEventListener(\"keydown\", o), e && (document.body.style.overflow = \"hidden\"), () => {\n document.removeEventListener(\"keydown\", o), document.body.style.overflow = \"auto\";\n };\n }, [e, r]);\n}\nfunction ll(e, r) {\n const o = H(null), n = L(() => {\n const u = document.getElementById(e);\n if (!u) return;\n const a = u.querySelectorAll('[data-modal-action=\"true\"]');\n if (a.length > 0) {\n a[0].focus();\n return;\n }\n const i = u.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (i.length > 0) {\n const s = Array.from(i).filter((d) => !(d instanceof HTMLButtonElement && d.getAttribute(\"data-modal-close-button\") === \"true\"));\n if (s.length > 0) {\n s[0].focus();\n return;\n }\n i[0].focus();\n return;\n }\n u.focus();\n }, [e]);\n p(() => (r && (o.current = document.activeElement, n()), () => {\n document.body.style.overflow = \"auto\", o.current instanceof HTMLElement && o.current.focus();\n }), [r, n]);\n}\nfunction el({\n id: e,\n isOpen: r,\n onClose: o,\n title: n,\n children: u,\n contentOnly: a = !1,\n className: i,\n overlayClassName: s,\n hideCloseButton: d = !1,\n actions: c = [],\n disableCloseOnOverlayClick: m = !1,\n ariaLabelledBy: f,\n ariaDescribedBy: g\n}) {\n const h = q(), k = e || `modal-${h}`, C = e ? `${e}-title` : `modal-title-${h}`, { show: A, shouldRender: x } = Y(r);\n if (ll(k, x), R(x, o), !x) return null;\n const j = () => n ? F.isValidElement(n) ? /* @__PURE__ */ t(\"div\", { className: \"mb-4\", children: n }) : /* @__PURE__ */ t(\"h2\", { className: \"mb-4 text-xl font-semibold\", id: C, children: n }) : null, M = () => c.length === 0 ? null : /* @__PURE__ */ t(\"div\", { className: \"mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3\", children: c.map((D, I) => {\n const { label: B, ...O } = D;\n return /* @__PURE__ */ t(W, { ...O, \"data-modal-action\": \"true\", children: B }, I);\n }) });\n return /* @__PURE__ */ t(S, { children: P(\n /* @__PURE__ */ t(\n \"div\",\n {\n \"aria-labelledby\": f ?? n ? C : void 0,\n \"aria-describedby\": g,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-y-auto\",\n children: /* @__PURE__ */ b(\"div\", { className: \"flex min-h-screen items-center justify-center p-4\", children: [\n /* @__PURE__ */ t(\n \"div\",\n {\n className: y(\"fixed inset-0 bg-black/20 transition-all\", s),\n onClick: () => {\n m || o();\n }\n }\n ),\n a && /* @__PURE__ */ t(\"div\", { className: y(\"relative w-fit\", i), children: u }),\n !a && /* @__PURE__ */ b(\n \"div\",\n {\n id: k,\n tabIndex: -1,\n className: y(\n \"relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in duration-75\",\n A ? \"opacity-100 scale-100\" : \"opacity-0 scale-90\",\n i\n ),\n children: [\n !d && /* @__PURE__ */ t(\n \"button\",\n {\n type: \"button\",\n onClick: o,\n \"data-modal-close-button\": \"true\",\n className: \"rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ t(_, { size: 18 })\n }\n ),\n j(),\n u,\n M()\n ]\n }\n )\n ] })\n }\n ),\n document.body\n ) });\n}\nfunction sl({\n type: e,\n message: r,\n cancelText: o,\n confirmText: n,\n onConfirm: u,\n onClose: a,\n destructive: i = !1,\n title: s,\n ...d\n}) {\n const c = E(() => e === \"confirm\" ? {\n confirm: n || \"Confirm\",\n cancel: o || \"Cancel\",\n defaultTitle: s || \"Confirm Action\"\n } : {\n confirm: n || \"OK\",\n cancel: null,\n defaultTitle: s || \"Alert\"\n }, [e, n, s, o]), m = E(\n () => [\n ...c.cancel ? [\n {\n label: c.cancel,\n variant: \"secondary\",\n onClick: a\n }\n ] : [],\n {\n label: c.confirm,\n variant: i ? \"destructive\" : \"primary\",\n onClick: () => {\n u == null || u(), a();\n }\n }\n ],\n [c, i, u, a]\n );\n return /* @__PURE__ */ t(\n el,\n {\n ...d,\n title: s || c.defaultTitle,\n onClose: a,\n actions: m,\n disableCloseOnOverlayClick: e === \"confirm\",\n hideCloseButton: e === \"confirm\",\n children: typeof r == \"string\" ? /* @__PURE__ */ t(\"p\", { className: \"text-sm\", children: r }) : r\n }\n );\n}\nconst nl = l(null), dl = () => {\n const e = T(nl);\n if (!e)\n throw new Error(\"DropdownMenu components must be used within a DropdownMenu component\");\n return e;\n}, tl = l(null), cl = () => {\n const e = T(tl);\n if (!e)\n throw new Error(\"Tabs components must be used within a Tabs component\");\n return e;\n}, z = {\n info: {\n className: \"bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100\",\n icon: /* @__PURE__ */ t(X, { size: 20 })\n },\n warning: {\n className: \"bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100\",\n icon: /* @__PURE__ */ t(V, { size: 20 })\n },\n error: {\n className: \"bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100\",\n icon: /* @__PURE__ */ t(K, { size: 20 })\n }\n};\nfunction ml({\n id: e,\n title: r,\n description: o,\n type: n = \"info\",\n action: u,\n duration: a = 5e3,\n onRemove: i,\n customTypes: s,\n customComponent: d\n}) {\n const [c, m] = v(!1), f = L(() => {\n m(!0), setTimeout(() => {\n i == null || i(e);\n }, 150);\n }, [e, i]);\n if (p(() => {\n if (a > 0) {\n const h = setTimeout(() => {\n f();\n }, a);\n return () => clearTimeout(h);\n }\n }, [a, e, i, f]), d)\n return /* @__PURE__ */ t(\n d,\n {\n id: e,\n title: r,\n description: o,\n type: n,\n action: u,\n duration: a,\n onRemove: i\n }\n );\n const g = (s == null ? void 0 : s[n]) || z[n] || z.info;\n return /* @__PURE__ */ b(\n \"div\",\n {\n role: n === \"error\" ? \"alert\" : \"status\",\n \"aria-live\": n === \"error\" ? void 0 : \"polite\",\n className: Z(\n \"relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out\",\n u && \"pb-3\",\n g.className,\n c ? \"opacity-0 translate-x-full\" : \"opacity-100 translate-x-0\"\n ),\n children: [\n /* @__PURE__ */ t(\"div\", { className: \"flex-shrink-0 mr-3\", children: g.icon }),\n /* @__PURE__ */ b(\"div\", { className: \"flex-grow min-w-0\", children: [\n /* @__PURE__ */ t(\"div\", { className: \"font-medium text-sm leading-5\", children: r }),\n o && /* @__PURE__ */ t(\"div\", { className: \"mt-1 text-sm opacity-90 leading-5\", children: o }),\n u && /* @__PURE__ */ t(\"div\", { className: \"mt-1.5\", children: /* @__PURE__ */ t(\n \"button\",\n {\n onClick: u.onClick,\n className: \"text-sm font-medium underline hover:no-underline focus:outline-none focus:ring-1 focus:ring-current rounded px-1 py-0.5 hover:cursor-pointer\",\n children: u.label\n }\n ) })\n ] }),\n /* @__PURE__ */ t(\n \"button\",\n {\n onClick: f,\n className: \"flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0\",\n children: /* @__PURE__ */ t($, { size: 16 })\n }\n )\n ]\n }\n );\n}\nexport {\n sl as A,\n nl as D,\n ml as T,\n tl as a,\n cl as b,\n N as n,\n dl as u\n};\n//# sourceMappingURL=Toast-79CV9AdK.js.map\n","var je = Object.defineProperty;\nvar Ve = (r, a, n) => a in r ? je(r, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[a] = n;\nvar Ne = (r, a, n) => Ve(r, typeof a != \"symbol\" ? a + \"\" : a, n);\nimport { jsxs as w, jsx as e, Fragment as J } from \"react/jsx-runtime\";\nimport P, { useId as G, useState as F, createElement as $e, useEffect as S, useRef as L, useCallback as A, useMemo as H, Component as Pe, isValidElement as Ke, cloneElement as He } from \"react\";\nimport { j as N } from \"./join-BmgR_f4v.js\";\nimport { f as Ie, j as _e, c as Be, g as Te, h as ye, b as ge, D as Ze, W as qe, k as Qe, i as Ue, C as Ye, a as Xe, l as Je, E as Oe, Q as et, d as tt, e as rt } from \"./Window-uX5BuBwi.js\";\nimport { u as we, D as nt, n as R, a as ot, b as Ee } from \"./Toast-79CV9AdK.js\";\nimport { A as Zn, T as qn } from \"./Toast-79CV9AdK.js\";\nimport { X as oe, E as de, C as it, I as Le } from \"./X-CIoyLewf.js\";\nimport { createPortal as ie } from \"react-dom\";\nimport { downloadFile as at, mergeRefs as st } from \"./utils.esm.js\";\nfunction pe({\n id: r,\n title: a,\n content: n,\n children: o,\n className: t = \"\",\n disabled: i = !1,\n isOpen: s = !1,\n onToggle: l,\n triggerClassName: c = \"\",\n bodyClassName: f = \"\"\n}) {\n const u = G(), d = r || `accordion-item-${u}`, h = `${d}-header`, m = `${d}-panel`, x = () => {\n !i && l && l();\n }, b = (p) => {\n (p.key === \"Enter\" || p.key === \" \") && (p.preventDefault(), x());\n };\n return /* @__PURE__ */ w(\"div\", { className: N(\"border-b border-gray-200\", i && \"opacity-60 cursor-not-allowed\", t), children: [\n /* @__PURE__ */ w(\n \"button\",\n {\n id: h,\n type: \"button\",\n className: N(\n \"w-full text-left py-3 px-4 flex justify-between items-center focus:outline focus:outline-secondary\",\n i ? \"cursor-not-allowed\" : \"hover:bg-gray-50/10 cursor-pointer\",\n c\n ),\n \"aria-expanded\": s,\n \"aria-controls\": m,\n disabled: i,\n onClick: x,\n onKeyDown: b,\n children: [\n /* @__PURE__ */ e(\"span\", { children: a }),\n /* @__PURE__ */ e(\n \"span\",\n {\n className: N(\n \"transform transition-transform duration-300 ease-linear\",\n s ? \"rotate-180\" : \"rotate-0\"\n ),\n \"aria-hidden\": \"true\",\n children: /* @__PURE__ */ e(Ie, { size: 18 })\n }\n )\n ]\n }\n ),\n /* @__PURE__ */ e(\n \"div\",\n {\n id: m,\n role: \"region\",\n \"aria-labelledby\": h,\n className: N(\n \"transition-all duration-300 ease-linear px-4\",\n s ? \"max-h-96 opacity-100 overflow-auto py-3\" : \"max-h-0 opacity-0 overflow-hidden\",\n f\n ),\n children: s && (o || n)\n }\n )\n ] });\n}\nfunction dn({\n id: r,\n items: a = [],\n children: n,\n className: o = \"\",\n itemClassName: t = \"\",\n allowMultiple: i = !1,\n defaultOpenItems: s = [],\n triggersClassName: l = \"\",\n bodiesClassName: c = \"\"\n}) {\n const f = G(), u = r || `accordion-group-${f}`, [d, h] = F(new Set(s)), m = (p) => {\n h((g) => {\n const v = new Set(g);\n return v.has(p) ? v.delete(p) : (i || v.clear(), v.add(p)), v;\n });\n }, x = (p) => `${f}-item-${p}`, b = (p) => d.has(p);\n return /* @__PURE__ */ w(\"div\", { id: u, className: o, children: [\n a.length > 0 && a.map((p, g) => {\n const v = p.id || x(g);\n return /* @__PURE__ */ e(\n pe,\n {\n id: v,\n title: p.title,\n content: p.content,\n disabled: p.disabled,\n isOpen: b(v),\n onToggle: () => m(v),\n className: t,\n triggerClassName: l,\n bodyClassName: c\n },\n v\n );\n }),\n a.length === 0 && n && P.Children.map(n, (p, g) => {\n if (P.isValidElement(p) && p.type === pe) {\n const v = p.props.id || x(g);\n return /* @__PURE__ */ $e(\n pe,\n {\n ...p.props,\n key: v,\n id: v,\n className: N(t, p.props.className),\n isOpen: b(v),\n onToggle: () => m(v),\n triggerClassName: N(l, p.props.triggerClassName),\n bodyClassName: N(c, p.props.bodyClassName)\n }\n );\n }\n return null;\n })\n ] });\n}\nfunction lt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"40\", r: \"32\", fill: \"url(#astronautHelmet)\", stroke: \"#4F46E5\", strokeWidth: \"2\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"40\", r: \"24\", fill: \"#FED7AA\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"43\", cy: \"36\", r: \"3\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"57\", cy: \"36\", r: \"3\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M46 46 Q50 50 54 46\", stroke: \"#1F2937\", strokeWidth: \"2\", fill: \"none\" }),\n /* @__PURE__ */ e(\"rect\", { x: \"38\", y: \"65\", width: \"24\", height: \"30\", rx: \"12\", fill: \"#E5E7EB\" }),\n /* @__PURE__ */ e(\"rect\", { x: \"44\", y: \"70\", width: \"12\", height: \"8\", rx: \"2\", fill: \"#6366F1\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"astronautHelmet\", cx: \"50%\", cy: \"30%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#DBEAFE\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#93C5FD\" })\n ] }) })\n ] });\n}\nfunction ct({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"50\", r: \"40\", fill: \"url(#moonGradient)\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"38\", cy: \"35\", r: \"4\", fill: \"#D1D5DB\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"65\", cy: \"42\", r: \"3\", fill: \"#D1D5DB\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"42\", cy: \"65\", r: \"5\", fill: \"#D1D5DB\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"45\", cy: \"45\", r: \"2.5\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"58\", cy: \"45\", r: \"2.5\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M47 55 Q52 60 57 55\", stroke: \"#1F2937\", strokeWidth: \"2\", fill: \"none\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"moonGradient\", cx: \"30%\", cy: \"30%\", r: \"80%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#F9FAFB\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#E5E7EB\" })\n ] }) })\n ] });\n}\nfunction dt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"path\", { d: \"M50 15 L58 38 L82 38 L64 52 L72 75 L50 61 L28 75 L36 52 L18 38 L42 38 Z\", fill: \"url(#starGradient)\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"44\", cy: \"42\", r: \"2\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"56\", cy: \"42\", r: \"2\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M46 50 Q50 54 54 50\", stroke: \"#1F2937\", strokeWidth: \"2\", fill: \"none\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"65\", cy: \"25\", r: \"1.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"35\", cy: \"30\", r: \"1\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"starGradient\", cx: \"50%\", cy: \"40%\", r: \"60%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#FEF3C7\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#FCD34D\" })\n ] }) })\n ] });\n}\nfunction ut({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"50\", r: \"38\", fill: \"url(#galaxyGradient)\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M20 50 Q35 30 50 50 Q65 70 80 50\", stroke: \"#8B5CF6\", strokeWidth: \"3\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M50 20 Q70 35 50 50 Q30 65 50 80\", stroke: \"#A78BFA\", strokeWidth: \"2\", opacity: \"0.5\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"50\", r: \"12\", fill: \"#1E1B4B\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"46\", cy: \"47\", r: \"1.5\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"54\", cy: \"47\", r: \"1.5\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M47 53 Q50 56 53 53\", stroke: \"#E0E7FF\", strokeWidth: \"1.5\", fill: \"none\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"30\", cy: \"25\", r: \"1\", fill: \"#FFF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"75\", cy: \"70\", r: \"1.5\", fill: \"#FFF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"25\", cy: \"75\", r: \"1\", fill: \"#FFF\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"galaxyGradient\", cx: \"50%\", cy: \"50%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#4C1D95\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"0.5\", stopColor: \"#7C3AED\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#1E1B4B\" })\n ] }) })\n ] });\n}\nfunction ft({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"ellipse\", { cx: \"50\", cy: \"50\", rx: \"35\", ry: \"30\", fill: \"url(#nebulaGradient)\", opacity: \"0.8\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"40\", cy: \"45\", rx: \"20\", ry: \"25\", fill: \"url(#nebulaPink)\", opacity: \"0.6\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"60\", cy: \"55\", rx: \"25\", ry: \"20\", fill: \"url(#nebulaBlue)\", opacity: \"0.6\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"50\", r: \"15\", fill: \"#312E81\", opacity: \"0.9\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"46\", cy: \"47\", r: \"2\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"54\", cy: \"47\", r: \"2\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M47 53 Q50 56 53 53\", stroke: \"#E0E7FF\", strokeWidth: \"1.5\", fill: \"none\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"25\", cy: \"30\", r: \"1\", fill: \"#FFF\", opacity: \"0.9\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"75\", cy: \"25\", r: \"1.5\", fill: \"#FFF\", opacity: \"0.8\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"30\", cy: \"75\", r: \"1\", fill: \"#FFF\", opacity: \"0.9\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"70\", cy: \"75\", r: \"1.5\", fill: \"#FFF\", opacity: \"0.7\" }),\n /* @__PURE__ */ w(\"defs\", { children: [\n /* @__PURE__ */ w(\"radialGradient\", { id: \"nebulaGradient\", cx: \"50%\", cy: \"50%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#7C3AED\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#312E81\" })\n ] }),\n /* @__PURE__ */ w(\"radialGradient\", { id: \"nebulaPink\", cx: \"50%\", cy: \"50%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#F472B6\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#BE185D\" })\n ] }),\n /* @__PURE__ */ w(\"radialGradient\", { id: \"nebulaBlue\", cx: \"50%\", cy: \"50%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#3B82F6\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#1E40AF\" })\n ] })\n ] })\n ] });\n}\nfunction mt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"50\", r: \"32\", fill: \"url(#planetGradient)\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"50\", cy: \"50\", rx: \"45\", ry: \"8\", fill: \"none\", stroke: \"#A78BFA\", strokeWidth: \"2\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"38\", cy: \"40\", r: \"5\", fill: \"#065F46\", opacity: \"0.6\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"62\", cy: \"45\", r: \"4\", fill: \"#065F46\", opacity: \"0.6\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"45\", cy: \"62\", r: \"3\", fill: \"#065F46\", opacity: \"0.6\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"46\", cy: \"48\", r: \"2.5\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"54\", cy: \"48\", r: \"2.5\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M47 55 Q50 58 53 55\", stroke: \"#1F2937\", strokeWidth: \"2\", fill: \"none\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"planetGradient\", cx: \"30%\", cy: \"30%\", r: \"80%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#A7F3D0\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"0.6\", stopColor: \"#34D399\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#059669\" })\n ] }) })\n ] });\n}\nfunction ht({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"55\", r: \"28\", fill: \"url(#catGradient)\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M28 40 L38 25 L42 45 Z\", fill: \"#6366F1\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M58 45 L62 25 L72 40 Z\", fill: \"#6366F1\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M32 38 L36 30 L38 40 Z\", fill: \"#EC4899\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M62 40 L64 30 L68 38 Z\", fill: \"#EC4899\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"43\", cy: \"50\", rx: \"4\", ry: \"6\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"57\", cy: \"50\", rx: \"4\", ry: \"6\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"43\", cy: \"52\", rx: \"1.5\", ry: \"4\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"57\", cy: \"52\", rx: \"1.5\", ry: \"4\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M48 58 L50 60 L52 58 Z\", fill: \"#EC4899\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M50 60 Q46 64 42 62\", stroke: \"#1F2937\", strokeWidth: \"1.5\", fill: \"none\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M50 60 Q54 64 58 62\", stroke: \"#1F2937\", strokeWidth: \"1.5\", fill: \"none\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"25\", y1: \"55\", x2: \"35\", y2: \"57\", stroke: \"#1F2937\", strokeWidth: \"1\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"65\", y1: \"57\", x2: \"75\", y2: \"55\", stroke: \"#1F2937\", strokeWidth: \"1\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"20\", cy: \"25\", r: \"1.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"80\", cy: \"30\", r: \"1\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"15\", cy: \"70\", r: \"1\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"catGradient\", cx: \"50%\", cy: \"40%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#A78BFA\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#6366F1\" })\n ] }) })\n ] });\n}\nfunction pt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"35\", cy: \"55\", r: \"18\", fill: \"url(#cloudGradient)\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"55\", cy: \"50\", r: \"22\", fill: \"url(#cloudGradient)\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"45\", cy: \"65\", r: \"15\", fill: \"url(#cloudGradient)\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"65\", cy: \"60\", r: \"16\", fill: \"url(#cloudGradient)\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"48\", cy: \"52\", r: \"2.5\", fill: \"#6366F1\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"56\", cy: \"52\", r: \"2.5\", fill: \"#6366F1\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M49 58 Q52 62 55 58\", stroke: \"#6366F1\", strokeWidth: \"2\", fill: \"none\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"70\", cy: \"35\", r: \"3\", fill: \"rgba(167, 139, 250, 0.3)\", stroke: \"#A78BFA\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"78\", cy: \"28\", r: \"2\", fill: \"rgba(167, 139, 250, 0.3)\", stroke: \"#A78BFA\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"83\", cy: \"20\", r: \"1.5\", fill: \"rgba(167, 139, 250, 0.3)\", stroke: \"#A78BFA\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"70\", cy: \"35\", r: \"0.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"78\", cy: \"28\", r: \"0.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"cloudGradient\", cx: \"50%\", cy: \"40%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#F8FAFC\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#E2E8F0\" })\n ] }) })\n ] });\n}\nfunction bt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"ellipse\", { cx: \"50\", cy: \"45\", rx: \"15\", ry: \"30\", fill: \"url(#rocketGradient)\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M35 20 L50 10 L65 20 L50 25 Z\", fill: \"#EF4444\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"35\", r: \"8\", fill: \"#DBEAFE\", stroke: \"#2563EB\", strokeWidth: \"2\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"47\", cy: \"33\", r: \"1.5\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"53\", cy: \"33\", r: \"1.5\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M48 37 Q50 39 52 37\", stroke: \"#1F2937\", strokeWidth: \"1\", fill: \"none\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M35 60 L25 70 L35 75 Z\", fill: \"#6B7280\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M65 60 L75 70 L65 75 Z\", fill: \"#6B7280\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"50\", cy: \"80\", rx: \"8\", ry: \"12\", fill: \"#F59E0B\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"50\", cy: \"82\", rx: \"5\", ry: \"8\", fill: \"#EF4444\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"25\", cy: \"20\", r: \"1\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"75\", cy: \"25\", r: \"1.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"rocketGradient\", cx: \"30%\", cy: \"30%\", r: \"80%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#E5E7EB\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#9CA3AF\" })\n ] }) })\n ] });\n}\nfunction xt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"50\", r: \"38\", fill: \"url(#constellationBg)\", opacity: \"0.8\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"35\", cy: \"25\", r: \"2\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"30\", r: \"2.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"65\", cy: \"35\", r: \"2\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"30\", cy: \"50\", r: \"1.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"70\", cy: \"50\", r: \"2\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"40\", cy: \"70\", r: \"2.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"60\", cy: \"75\", r: \"1.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"35\", y1: \"25\", x2: \"50\", y2: \"30\", stroke: \"#A78BFA\", strokeWidth: \"1\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"50\", y1: \"30\", x2: \"65\", y2: \"35\", stroke: \"#A78BFA\", strokeWidth: \"1\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"30\", y1: \"50\", x2: \"50\", y2: \"30\", stroke: \"#A78BFA\", strokeWidth: \"1\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"50\", y1: \"30\", x2: \"70\", y2: \"50\", stroke: \"#A78BFA\", strokeWidth: \"1\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"30\", y1: \"50\", x2: \"40\", y2: \"70\", stroke: \"#A78BFA\", strokeWidth: \"1\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"line\", { x1: \"70\", y1: \"50\", x2: \"60\", y2: \"75\", stroke: \"#A78BFA\", strokeWidth: \"1\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"48\", cy: \"48\", r: \"2\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"52\", cy: \"48\", r: \"2\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M48 54 Q50 56 52 54\", stroke: \"#E0E7FF\", strokeWidth: \"1.5\", fill: \"none\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"constellationBg\", cx: \"50%\", cy: \"50%\", r: \"70%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#1E1B4B\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#0F0D2A\" })\n ] }) })\n ] });\n}\nfunction vt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"35\", cy: \"35\", r: \"18\", fill: \"url(#cometGradient)\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"31\", cy: \"31\", r: \"2\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"39\", cy: \"31\", r: \"2\", fill: \"#1F2937\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M32 38 Q35 41 38 38\", stroke: \"#1F2937\", strokeWidth: \"1.5\", fill: \"none\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M50 50 Q65 65 85 85\", stroke: \"url(#tailGradient1)\", strokeWidth: \"8\", opacity: \"0.7\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M48 52 Q60 68 75 88\", stroke: \"url(#tailGradient2)\", strokeWidth: \"6\", opacity: \"0.5\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M52 48 Q70 62 90 82\", stroke: \"url(#tailGradient3)\", strokeWidth: \"4\", opacity: \"0.3\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"60\", cy: \"60\", r: \"1.5\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"70\", cy: \"70\", r: \"1\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"80\", cy: \"80\", r: \"0.8\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ w(\"defs\", { children: [\n /* @__PURE__ */ w(\"radialGradient\", { id: \"cometGradient\", cx: \"30%\", cy: \"30%\", r: \"80%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#FEF3C7\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#F59E0B\" })\n ] }),\n /* @__PURE__ */ w(\"linearGradient\", { id: \"tailGradient1\", x1: \"50%\", y1: \"50%\", x2: \"85%\", y2: \"85%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"transparent\" })\n ] }),\n /* @__PURE__ */ w(\"linearGradient\", { id: \"tailGradient2\", x1: \"48%\", y1: \"52%\", x2: \"75%\", y2: \"88%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#F472B6\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"transparent\" })\n ] }),\n /* @__PURE__ */ w(\"linearGradient\", { id: \"tailGradient3\", x1: \"52%\", y1: \"48%\", x2: \"90%\", y2: \"82%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#A78BFA\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"transparent\" })\n ] })\n ] })\n ] });\n}\nfunction yt({ size: r }) {\n return /* @__PURE__ */ w(\"svg\", { width: r, height: r, viewBox: \"0 0 100 100\", fill: \"none\", children: [\n /* @__PURE__ */ e(\"circle\", { cx: \"50\", cy: \"50\", r: \"40\", fill: \"url(#twilightGradient)\" }),\n /* @__PURE__ */ e(\"ellipse\", { cx: \"50\", cy: \"65\", rx: \"25\", ry: \"15\", fill: \"#1F2937\", opacity: \"0.8\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"30\", cy: \"25\", r: \"1.5\", fill: \"#FFF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"70\", cy: \"30\", r: \"1\", fill: \"#FFF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"40\", cy: \"35\", r: \"1.2\", fill: \"#FFF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"60\", cy: \"25\", r: \"0.8\", fill: \"#FFF\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M20 40 Q15 35 20 30 Q25 35 20 40\", fill: \"#FCD34D\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"47\", cy: \"62\", r: \"1.5\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"circle\", { cx: \"53\", cy: \"62\", r: \"1.5\", fill: \"#E0E7FF\" }),\n /* @__PURE__ */ e(\"path\", { d: \"M48 67 Q50 69 52 67\", stroke: \"#E0E7FF\", strokeWidth: \"1\", fill: \"none\" }),\n /* @__PURE__ */ e(\"defs\", { children: /* @__PURE__ */ w(\"radialGradient\", { id: \"twilightGradient\", cx: \"50%\", cy: \"30%\", r: \"80%\", children: [\n /* @__PURE__ */ e(\"stop\", { stopColor: \"#7C3AED\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"0.7\", stopColor: \"#3730A3\" }),\n /* @__PURE__ */ e(\"stop\", { offset: \"1\", stopColor: \"#1E1B4B\" })\n ] }) })\n ] });\n}\nconst gt = {\n astronaut: lt,\n moon: ct,\n star: dt,\n galaxy: ut,\n nebula: ft,\n planet: mt,\n \"cosmic-cat\": ht,\n \"dream-cloud\": pt,\n rocket: bt,\n constellation: xt,\n comet: vt,\n twilight: yt\n}, wt = {\n xs: { size: \"w-8 h-8\", iconSize: \"24\" },\n sm: { size: \"w-10 h-10\", iconSize: \"32\" },\n md: { size: \"w-12 h-12\", iconSize: \"40\" },\n lg: { size: \"w-16 h-16\", iconSize: \"56\" },\n xl: { size: \"w-20 h-20\", iconSize: \"72\" },\n \"2xl\": { size: \"w-24 h-24\", iconSize: \"88\" }\n}, Et = {\n circle: \"rounded-full\",\n square: \"rounded-lg\"\n};\nfunction un({\n id: r,\n ref: a,\n size: n = \"md\",\n shape: o = \"circle\",\n preset: t,\n alt: i,\n className: s,\n src: l,\n initials: c,\n ...f\n}) {\n const u = wt[n], d = Et[o], h = t ? gt[t] : null;\n return /* @__PURE__ */ e(\n \"div\",\n {\n id: r,\n ref: a,\n className: N(\n \"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 border-2 border-border\",\n u.size,\n d,\n s\n ),\n \"data-size\": n,\n \"data-shape\": o,\n \"data-preset\": t,\n role: \"img\",\n \"aria-label\": i || `Avatar ${t ? `of ${t}` : \"\"}`,\n ...f,\n children: l ? /* @__PURE__ */ e(\"img\", { src: l, alt: i || \"User avatar\", className: \"w-full h-full object-cover\" }) : h ? /* @__PURE__ */ e(h, { size: u.iconSize }) : c ? /* @__PURE__ */ e(\"span\", { className: \"text-gray-600 font-medium text-sm\", children: c.slice(0, 2).toUpperCase() }) : /* @__PURE__ */ e(\"div\", { className: \"w-full h-full bg-gradient-to-br from-gray-300 to-gray-400\" })\n }\n );\n}\nconst Nt = {\n decorative: { \"aria-hidden\": !0 },\n status: { role: \"status\" },\n alert: { role: \"alert\" }\n}, kt = {\n base: \"\",\n primary: \"bg-primary text-primary-foreground\",\n secondary: \"bg-secondary text-secondary-foreground\",\n accent: \"bg-accent text-accent-foreground\",\n destructive: \"bg-destructive text-destructive-foreground\",\n success: \"bg-success text-success-foreground\",\n muted: \"bg-muted text-muted-foreground\"\n}, Ct = {\n base: \"\",\n primary: \"border border-primary bg-transparent text-primary\",\n secondary: \"border border-secondary bg-transparent text-secondary\",\n accent: \"border border-accent bg-transparent text-accent\",\n destructive: \"border border-destructive bg-transparent text-destructive\",\n success: \"border border-success bg-transparent text-success\",\n muted: \"border border-muted-foreground bg-transparent text-muted-foreground\"\n}, be = {\n xs: {\n text: \"text-xs\",\n aspectSquare: \"p-1\",\n aspectVideo: \"px-2 py-0.5\"\n },\n sm: {\n text: \"text-sm\",\n aspectSquare: \"p-1.5\",\n aspectVideo: \"px-2.5 py-1\"\n },\n md: {\n text: \"text-base\",\n aspectSquare: \"p-2\",\n aspectVideo: \"px-3 py-1.5\"\n }\n};\nfunction fn({\n id: r,\n ref: a,\n variant: n = \"muted\",\n outline: o = !1,\n children: t,\n className: i,\n aspect: s = \"video\",\n use: l = \"decorative\",\n size: c = \"xs\",\n ...f\n}) {\n return /* @__PURE__ */ e(\n \"span\",\n {\n id: r,\n ref: a,\n className: N(\n \"font-medium rounded-full inline-flex select-none\",\n be[c].text,\n s === \"square\" && be[c].aspectSquare,\n s === \"video\" && be[c].aspectVideo,\n o ? Ct[n] : kt[n],\n i\n ),\n \"data-variant\": n,\n \"data-outline\": o,\n \"data-aspect\": s,\n \"data-use\": l,\n \"data-size\": c,\n ...Nt[l],\n ...f,\n children: t\n }\n );\n}\nfunction Dt() {\n const [r, a] = F(0);\n return S(() => {\n const n = setInterval(() => {\n a((o) => (o + 1) % 3);\n }, 500);\n return () => clearInterval(n);\n }, []), /* @__PURE__ */ e(\"div\", { className: \"absolute inset-0 inline-flex items-center justify-center gap-x-2 align-middle\", children: [0, 1, 2].map((n) => /* @__PURE__ */ e(\n \"div\",\n {\n className: N(\n \"rounded-full transition-all duration-500 ease-in-out size-[0.35em] bg-current\",\n r === n && \"transform -translate-y-1\"\n )\n },\n n\n )) });\n}\nconst Ft = {\n base: \"\",\n primary: \"bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground\",\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80\",\n tertiary: \"text-primary hover:text-primary-foreground disabled:text-muted\",\n outline: \"border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted\",\n link: \"underline-offset-4 hover:underline disabled:underline disabled:text-muted\",\n destructive: \"bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground\"\n}, At = {\n stripped: \"\",\n fitted: \"size-fit\",\n sm: \"px-2 py-1 text-sm\",\n md: \"px-4 py-2 text-base\",\n lg: \"px-6 py-3 text-lg\",\n icon: \"p-1 w-fit aspect-square\",\n full: \"p-2 w-full\"\n}, St = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"rounded-full\"\n}, xe = {\n variant: \"primary\",\n size: \"md\",\n rounded: \"md\"\n};\nfunction zt({\n variant: r = xe.variant,\n size: a,\n rounded: n = xe.rounded,\n loading: o,\n className: t,\n ...i\n}) {\n let s;\n r === \"link\" && !a ? s = \"fitted\" : s = a || xe.size;\n const c = N(\n \"appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all\",\n Ft[r],\n At[s],\n St[n],\n o && \"relative pointer-events-none\",\n t\n );\n if (i.href && !i.disabled)\n return /* @__PURE__ */ e(\n \"a\",\n {\n ...i,\n rel: i.rel ? i.rel : i.target === \"_blank\" ? \"noopener noreferrer\" : void 0,\n \"aria-label\": i[\"aria-label\"],\n \"aria-description\": i[\"aria-description\"],\n href: i.href,\n className: c,\n children: i.children\n }\n );\n const f = i;\n return /* @__PURE__ */ w(\n \"button\",\n {\n ...f,\n \"aria-label\": f[\"aria-label\"],\n \"aria-description\": f[\"aria-description\"],\n \"aria-disabled\": f.disabled || o,\n \"aria-busy\": o,\n type: f.type ?? \"button\",\n className: c,\n children: [\n o && /* @__PURE__ */ e(Dt, {}),\n /* @__PURE__ */ e(\"span\", { className: N(o && \"invisible\"), children: f.children })\n ]\n }\n );\n}\nconst $t = {\n info: {\n border: \"border-blue-600\",\n interior: \"bg-blue-800/20\",\n core: \"text-blue-400\",\n description: \"text-blue-200\"\n },\n destructive: {\n border: \"border-destructive\",\n interior: \"bg-destructive/10\",\n core: \"text-destructive\",\n description: \"text-destructive\"\n },\n success: {\n border: \"border-success\",\n interior: \"bg-success/10\",\n core: \"text-success\",\n description: \"text-success\"\n },\n warning: {\n border: \"border-yellow-700\",\n interior: \"bg-yellow-800/20\",\n core: \"text-yellow-400\",\n description: \"text-yellow-200\"\n },\n base: {\n border: \"\",\n interior: \"\",\n core: \"\",\n description: \"opacity-90\"\n }\n}, It = {\n info: /* @__PURE__ */ e(Le, { size: 22 }),\n destructive: /* @__PURE__ */ e(it, { size: 22 }),\n success: /* @__PURE__ */ e(Be, { size: 22 }),\n warning: /* @__PURE__ */ e(de, { size: 20 }),\n base: /* @__PURE__ */ e(_e, { size: 22 })\n};\nfunction mn({\n id: r,\n ref: a,\n variant: n = \"base\",\n icon: o,\n title: t,\n description: i,\n className: s,\n dismissible: l = !1,\n onDismiss: c\n}) {\n const f = G(), u = r || `callout-${f}`, [d, h] = F(!1), m = $t[n], x = It[n], b = () => {\n h(!0), c && c();\n };\n return d ? null : /* @__PURE__ */ w(\n \"div\",\n {\n id: u,\n ref: a,\n className: N(\"relative rounded-lg p-2 sm:p-4 border\", m.border, m.interior, s),\n \"data-variant\": n,\n role: \"note\",\n \"aria-describedby\": i ? `${u}-description` : void 0,\n \"aria-labelledby\": t ? `${u}-title` : void 0,\n children: [\n /* @__PURE__ */ w(\"div\", { className: \"flex items-start gap-x-2\", children: [\n o && /* @__PURE__ */ e(\"span\", { className: m.core, children: o === \"default\" ? x : o }),\n (t || i) && /* @__PURE__ */ w(\"div\", { className: \"flex-1\", children: [\n t && /* @__PURE__ */ e(\"div\", { id: `${u}-title`, className: N(\"font-medium\", m.core), children: t }),\n i && /* @__PURE__ */ e(\"div\", { id: `${u}-description`, className: N(\"mt-0.5 font-light\", m.description), children: i })\n ] })\n ] }),\n l && /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: b,\n \"data-callout-close-button\": \"true\",\n className: N(\n m.core,\n \"rounded-md p-0.5 top-2.5 right-2.5 absolute focus:outline-none hover:ring focus:ring-2 focus:ring-current leading-0\"\n ),\n \"aria-label\": \"Close callout\",\n children: /* @__PURE__ */ e(oe, { size: 18 })\n }\n )\n ]\n }\n );\n}\nconst Bt = {\n sm: {\n container: \"text-sm\",\n header: \"text-base font-medium\",\n content: \"text-sm leading-relaxed\",\n footer: \"text-xs\",\n paddingMulti: 1 / 3\n },\n md: {\n container: \"text-base\",\n header: \"text-lg font-semibold\",\n content: \"text-base leading-relaxed\",\n footer: \"text-sm\",\n paddingMulti: 1 / 2\n },\n lg: {\n container: \"text-lg\",\n header: \"text-xl font-bold\",\n content: \"text-lg leading-relaxed\",\n footer: \"text-base\",\n paddingMulti: 1\n }\n};\nfunction hn({\n id: r,\n className: a,\n ref: n,\n size: o = \"md\",\n padding: t = 16,\n header: i,\n footer: s,\n children: l,\n imageSrc: c,\n imageAlt: f,\n imageComponent: u,\n imageToEdge: d = !0,\n ...h\n}) {\n const m = Bt[o], x = c || u;\n return /* @__PURE__ */ w(\n \"div\",\n {\n id: r,\n ref: n,\n \"data-testid\": \"card\",\n \"data-size\": o,\n \"data-padding\": t,\n className: N(\n // Base styles\n \"border border-border rounded-lg shadow-sm overflow-hidden\",\n // Responsive design\n \"w-full max-w-full\",\n // Size-specific styles\n m.container,\n a\n ),\n ...h,\n children: [\n x && /* @__PURE__ */ e(\n \"div\",\n {\n style: d ? void 0 : { padding: t, paddingBottom: 0 },\n className: \"w-full overflow-hidden\",\n children: u || /* @__PURE__ */ e(\"img\", { src: c, alt: f || \"\", className: \"w-full h-auto object-cover rounded-xs\", loading: \"lazy\" })\n }\n ),\n /* @__PURE__ */ w(\"div\", { style: { padding: t, rowGap: t * m.paddingMulti }, className: \"flex flex-col\", children: [\n i && /* @__PURE__ */ e(\"div\", { className: m.header, children: i }),\n l && /* @__PURE__ */ e(\"div\", { className: m.content, children: l }),\n s && /* @__PURE__ */ e(\"div\", { className: m.footer, children: s })\n ] })\n ]\n }\n );\n}\nfunction Tt({\n totalItems: r,\n itemsToShow: a,\n infinite: n,\n autoScroll: o,\n scrollInterval: t,\n pauseScrollOnHover: i,\n currentIndex: s,\n onIndexChange: l\n}) {\n const [c, f] = F(s || 0), [u, d] = F(!1), h = L(null), m = Math.ceil(r / a), x = n || c > 0, b = n || c < m - 1, p = A(\n (E) => {\n const y = Math.max(0, Math.min(E, m - 1));\n f(y), l == null || l(y);\n },\n [m, l]\n ), g = A(() => {\n if (x) {\n const E = c === 0 && n ? m - 1 : c - 1;\n p(E);\n }\n }, [c, x, n, m, p]), v = A(() => {\n if (b) {\n const E = c === m - 1 && n ? 0 : c + 1;\n p(E);\n }\n }, [c, b, n, m, p]);\n return S(() => {\n s !== void 0 && s !== c && f(s);\n }, [s, c]), S(() => {\n if (!o) return;\n const E = () => {\n h.current = setInterval(() => {\n i && u || v();\n }, t);\n }, y = () => {\n h.current && (clearInterval(h.current), h.current = null);\n };\n return !u || !i ? E() : y(), y;\n }, [o, t, i, u, v]), S(() => {\n f(0);\n }, [a]), {\n currentSlide: c,\n canGoPrev: x,\n canGoNext: b,\n goToPrev: g,\n goToNext: v,\n goToSlide: p,\n isHovered: u,\n setIsHovered: d\n };\n}\nconst te = {\n xs: 0,\n // Smaller than `sm`\n sm: 640,\n // Tailwind's `sm` breakpoint: `@media (min-width: 640px)`\n md: 768,\n // Tailwind's `md` breakpoint: `@media (min-width: 768px)`\n lg: 1024,\n // Tailwind's `lg` breakpoint: `@media (min-width: 1024px)`\n xl: 1280,\n // Tailwind's `xl` breakpoint: `@media (min-width: 1280px)`\n \"2xl\": 1536\n // Tailwind's `2xl` breakpoint: `@media (min-width: 1536px)`\n};\nfunction Lt() {\n const [r, a] = F(), [n, o] = F(0), t = (i) => te[i];\n return S(() => {\n const i = (l) => l >= te[\"2xl\"] ? \"2xl\" : l >= te.xl ? \"xl\" : l >= te.lg ? \"lg\" : l >= te.md ? \"md\" : l >= te.sm ? \"sm\" : \"xs\";\n a(i(window.innerWidth)), o(window.innerWidth);\n const s = () => {\n a(i(window.innerWidth)), o(window.innerWidth);\n };\n return window.addEventListener(\"resize\", s), () => {\n window.removeEventListener(\"resize\", s);\n };\n }, []), { screenSize: r, screenWidth: n, getBreakpoint: t };\n}\nconst ae = {\n sm: {\n button: \"h-6 w-6 text-xs\",\n icon: \"size-3\"\n },\n md: {\n button: \"h-8 w-8 text-sm\",\n icon: \"size-4\"\n },\n lg: {\n button: \"h-10 w-10 text-lg\",\n icon: \"size-5\"\n }\n}, ke = {\n default: \"bg-accent text-accent-foreground hover:bg-accent-foreground hover:text-accent\",\n outline: \"border border-border bg-background hover:bg-accent hover:text-accent-foreground hover:border-accent\",\n ghost: \"hover:text-accent\"\n}, se = {\n aligned: {\n prev: \"absolute top-1/2 -translate-x-1/2 -translate-y-1/2 z-10\",\n next: \"absolute right-0 top-1/2 translate-x-1/2 -translate-y-1/2 z-10\"\n },\n exterior: {\n prev: \"absolute -left-10 top-1/2 -translate-y-1/2 z-10\",\n next: \"absolute -right-10 top-1/2 -translate-y-1/2 z-10\"\n },\n interior: {\n prev: \"absolute left-2 top-1/2 -translate-y-1/2 z-10\",\n next: \"absolute right-2 top-1/2 -translate-y-1/2 z-10\"\n }\n};\nfunction pn({\n children: r,\n id: a,\n ref: n,\n className: o,\n autoScroll: t = !1,\n scrollInterval: i = 3e3,\n pauseScrollOnHover: s = !0,\n currentIndex: l,\n onIndexChange: c,\n hidePrevNext: f = !1,\n hideDots: u = !1,\n itemsToShow: d = 1,\n buttonSize: h = \"md\",\n buttonVariant: m = \"default\",\n buttonPosition: x = \"exterior\",\n infinite: b = !0,\n prevButton: p,\n nextButton: g,\n itemsClassName: v,\n containerClassName: E,\n dotsClassName: y,\n gap: k = 8\n}) {\n var j, re;\n const z = L(null), C = P.Children.toArray(r).filter(P.isValidElement), D = C.length, { screenSize: T } = Lt(), M = H(() => {\n if (typeof d == \"number\")\n return d;\n if (typeof d == \"object\" && d && T) {\n const X = [\"2xl\", \"xl\", \"lg\", \"md\", \"sm\", \"xs\"], K = X.indexOf(T);\n for (let ee = K; ee < X.length; ee++) {\n const ne = X[ee];\n if (d[ne] !== void 0)\n return d[ne];\n }\n }\n return 1;\n }, [d, T]), { currentSlide: _, canGoPrev: V, canGoNext: B, goToPrev: $, goToNext: W, goToSlide: Z, setIsHovered: Q } = Tt({\n totalItems: D,\n itemsToShow: M,\n infinite: b,\n autoScroll: t,\n scrollInterval: i,\n pauseScrollOnHover: s,\n currentIndex: l,\n onIndexChange: c\n }), Y = A(\n (X) => {\n if (M === 1)\n return { leftWidth: 0, rightWidth: 0, widthReduction: 0 };\n const K = k * (M - 1) / M;\n return X % M === 0 ? { leftWidth: 0, rightWidth: k / 2, widthReduction: K } : X % M === M - 1 ? { leftWidth: k / 2, rightWidth: 0, widthReduction: K } : { leftWidth: k / 2, rightWidth: k / 2, widthReduction: K };\n },\n [M, k]\n ), q = () => {\n $();\n }, O = () => {\n W();\n }, fe = () => {\n s && Q(!0);\n }, me = () => {\n s && Q(!1);\n }, he = -(_ * (100 / D) * M), I = N(\n \"inline-flex items-center justify-center rounded-md font-medium transition-all focus-visible:outline-none focus-visible:ring focus-visible:ring-ring disabled:pointer-events-none\",\n x === \"aligned\" ? \"disabled:opacity-90\" : \"disabled:opacity-50\"\n );\n return /* @__PURE__ */ w(\"div\", { className: N(\"relative\", o), \"data-carousel-wrapper\": \"true\", children: [\n !f && /* @__PURE__ */ e(J, { children: p ? P.cloneElement(\n p,\n {\n onClick: q,\n disabled: !V,\n className: N(\n ((j = p.props) == null ? void 0 : j.className) || \"\",\n se[x].prev\n ),\n role: \"button\",\n \"aria-disabled\": !V,\n \"aria-label\": \"Previous slide\",\n \"data-carousel-prev\": \"true\"\n }\n ) : /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: q,\n disabled: !V,\n className: N(\n I,\n ae[h].button,\n ke[m],\n se[x].prev\n ),\n \"aria-disabled\": !V,\n \"aria-label\": \"Previous slide\",\n \"data-carousel-prev\": \"true\",\n children: /* @__PURE__ */ e(Te, { className: ae[h].icon })\n }\n ) }),\n /* @__PURE__ */ w(\n \"div\",\n {\n id: a,\n ref: n,\n className: N(\"relative overflow-hidden\", E),\n onMouseEnter: fe,\n onMouseLeave: me,\n \"data-carousel\": \"true\",\n \"data-current-index\": _,\n \"data-items-to-show\": M,\n \"data-auto-scroll\": t,\n \"data-button-position\": x,\n children: [\n /* @__PURE__ */ e(\n \"div\",\n {\n ref: z,\n className: \"flex transition-transform duration-300 ease-in-out\",\n style: {\n transform: `translateX(${he}%)`,\n width: `${D / M * 100}%`\n },\n children: C.map((X, K) => {\n const { leftWidth: ee, rightWidth: ne, widthReduction: Ge } = Y(K);\n return /* @__PURE__ */ e(\n \"div\",\n {\n className: N(\"flex-shrink-0\", v),\n style: {\n width: `calc(${100 / D}% - ${Ge}px)`,\n marginRight: ne > 0 ? `${ne}px` : void 0,\n marginLeft: ee > 0 ? `${ee}px` : void 0\n },\n \"data-slide-index\": K,\n children: X\n },\n K\n );\n })\n }\n ),\n !u && /* @__PURE__ */ e(\"div\", { className: \"absolute bottom-4 left-1/2 -translate-x-1/2 flex space-x-2\", children: Array.from({ length: Math.ceil(D / M) }).map((X, K) => /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: () => Z(K),\n className: N(\n \"w-2 h-2 rounded-full transition-colors duration-200\",\n K === _ ? \"bg-accent\" : \"bg-muted hover:bg-muted-foreground/50\",\n y\n ),\n \"aria-label\": `Go to slide ${K + 1}`,\n \"data-carousel-dot\": K\n },\n K\n )) })\n ]\n }\n ),\n !f && /* @__PURE__ */ e(J, { children: g ? P.cloneElement(\n g,\n {\n onClick: O,\n disabled: !B,\n className: N(\n ((re = g.props) == null ? void 0 : re.className) || \"\",\n se[x].next\n ),\n role: \"button\",\n \"aria-disabled\": !B,\n \"aria-label\": \"Next slide\",\n \"data-carousel-next\": \"true\"\n }\n ) : /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: O,\n disabled: !B,\n className: N(\n I,\n ae[h].button,\n ke[m],\n se[x].next\n ),\n \"aria-disabled\": !B,\n \"aria-label\": \"Next slide\",\n \"data-carousel-next\": \"true\",\n children: /* @__PURE__ */ e(ye, { className: ae[h].icon })\n }\n ) })\n ] });\n}\nfunction Mt(r) {\n const [a, n] = F(\"\"), o = A((t) => {\n let i = t, s = \"\";\n for (; i && !s; ) {\n const l = window.getComputedStyle(i).backgroundColor;\n l && l !== \"transparent\" && l !== \"rgba(0, 0, 0, 0)\" && (s = l), i = i.parentElement;\n }\n return s || \"transparent\";\n }, []);\n return S(() => {\n const t = document.getElementById(r);\n if (t) {\n const i = o(t.parentElement);\n n(i);\n }\n }, [r, o]), a;\n}\nfunction bn({\n ref: r,\n id: a,\n size: n = 20,\n color: o,\n filled: t = !1,\n rounded: i = !0,\n checked: s = !1,\n onCheckedChange: l,\n disabled: c,\n className: f = \"\",\n display: u = \"inline\",\n ...d\n}) {\n const h = G(), m = H(() => a || `checkbox-${h}`, [a, h]), x = Mt(m), [b, p] = F(s);\n S(() => {\n p(s);\n }, [s]);\n const g = () => {\n c || (p(!b), l == null || l(!b));\n }, v = (y) => {\n y.key === \" \" && (y.preventDefault(), g());\n }, E = N(\n \"items-center justify-center border outline outline-transparent focus:outline-current focus:outline-offset-2\",\n u === \"inline\" ? \"inline-flex\" : \"flex\",\n i && \"rounded\",\n c && \"opacity-40 cursor-not-allowed\",\n !c && \"cursor-pointer\",\n f\n );\n return /* @__PURE__ */ e(\n \"button\",\n {\n id: m,\n type: \"button\",\n ref: r,\n tabIndex: 0,\n role: \"checkbox\",\n onClick: g,\n \"aria-checked\": b,\n \"aria-disabled\": c,\n onKeyDownCapture: v,\n style: {\n width: n,\n height: n,\n color: o,\n backgroundColor: b && t ? \"currentcolor\" : \"transparent\"\n },\n className: E,\n ...d,\n children: b && /* @__PURE__ */ e(ge, { size: n, color: t ? x : void 0 })\n }\n );\n}\nfunction xn({\n children: r,\n className: a,\n linkTo: n,\n linkProps: o,\n onButtonClick: t,\n buttonProps: i,\n ...s\n}) {\n return n && t && console.warn('Clickable: Both \"linkTo\" and \"onButtonClick\" props are provided. Only \"linkTo\" will be used.'), /* @__PURE__ */ w(\"div\", { className: N(\"relative w-fit\", a), ...s, children: [\n r,\n n && /* @__PURE__ */ e(\n \"a\",\n {\n ...o,\n rel: (o == null ? void 0 : o.rel) || \"noreferrer\",\n href: n,\n className: N(\"absolute inset-0\", o == null ? void 0 : o.className)\n }\n ),\n !n && t && /* @__PURE__ */ e(\n \"button\",\n {\n ...i,\n type: \"button\",\n onClick: t,\n className: N(\"absolute inset-0 cursor-pointer\", i == null ? void 0 : i.className)\n }\n )\n ] });\n}\nfunction Rt(r) {\n const [a, n] = F(null);\n return S(() => {\n var l;\n const o = (l = document.getElementById(r)) == null ? void 0 : l.parentElement;\n if (!o) return;\n const t = () => {\n const c = window.getComputedStyle(o), f = parseFloat(c.fontSize), u = c.lineHeight === \"normal\" ? f * 1.2 : parseFloat(c.lineHeight), d = f - 2, h = d / f, m = u * h;\n n({\n fontSize: f,\n lineHeight: u,\n smallerFontSize: d,\n smallerLineHeight: m\n });\n };\n t();\n const i = new ResizeObserver(t);\n i.observe(o);\n const s = new MutationObserver(t);\n return s.observe(o, {\n attributes: !0,\n attributeFilter: [\"style\", \"class\"],\n subtree: !1\n }), () => {\n i.disconnect(), s.disconnect();\n };\n }, [r]), a;\n}\nconst Wt = {\n base: \"\",\n modest: \"opacity-90 bg-muted/10\",\n accent: \"text-accent bg-muted/10\",\n current: \"text-current bg-current/10\"\n};\nfunction vn({ id: r, ref: a, content: n, variant: o = \"accent\", className: t, style: i, ...s }) {\n const l = G(), c = r || `code-${l}`, f = Rt(c);\n return /* @__PURE__ */ e(\n \"code\",\n {\n id: c,\n ref: a,\n className: N(\"px-2 py-1 rounded\", Wt[o], t),\n \"data-variant\": o,\n style: {\n fontSize: f ? `${f.smallerFontSize}px` : void 0,\n lineHeight: f ? `${f.smallerLineHeight}px` : void 0,\n ...i\n },\n ...s,\n children: n\n }\n );\n}\nconst Gt = {\n keyword: \"text-rose-400\",\n runner: \"text-amber-400\",\n comment: \"text-gray-500/80\",\n command: \"text-gray-100\",\n variable: \"text-blue-400\",\n string: \"text-white/70\",\n option: \"text-purple-400\",\n plain: \"text-gray-200\",\n operator: \"text-pink-500\",\n substitution: \"text-green-300\"\n}, jt = {\n selector: \"text-blue-400 font-medium\",\n property: \"text-purple-400\",\n value: \"text-green-400\",\n punctuation: \"text-gray-400\",\n atRule: \"text-pink-400 font-semibold\",\n comment: \"text-gray-500 italic\",\n string: \"text-green-400\",\n number: \"text-green-400\",\n plain: \"text-gray-100\",\n function: \"text-cyan-400\"\n}, Vt = {\n key: \"text-purple-400 font-semibold\",\n string: \"text-green-400\",\n number: \"text-orange-400 font-medium\",\n boolean: \"text-cyan-400 font-medium\",\n punctuation: \"text-gray-400\",\n plain: \"text-gray-100\"\n}, Pt = {\n keyword: \"text-purple-400 font-semibold\",\n type: \"text-cyan-400 font-medium\",\n string: \"text-green-400\",\n \"jsx-bracket\": \"text-gray-400\",\n \"jsx-tag\": \"text-blue-400 font-medium\",\n \"jsx-attribute\": \"text-amber-400\",\n \"jsx-brace\": \"text-yellow-400\",\n jsx: \"text-blue-400 font-medium\",\n // fallback for old jsx type\n property: \"text-amber-400\",\n number: \"text-orange-400 font-medium\",\n comment: \"text-gray-500 italic\",\n function: \"text-rose-400 font-semibold\",\n hook: \"text-rose-400 font-semibold\",\n operator: \"text-gray-300\",\n plain: \"text-gray-100\"\n}, Kt = /* @__PURE__ */ new Set([\n \"for\",\n \"in\",\n \"do\",\n \"done\",\n \"else\",\n \"if\",\n \"fi\",\n \"then\",\n \"while\",\n \"until\",\n \"case\",\n \"esac\"\n]), Ht = /* @__PURE__ */ new Set([\"npm\", \"npx\", \"pnpm\", \"yarn\", \"vite\"]);\nfunction Me(r) {\n const a = [];\n if (r.trim() === \"\")\n return a.push({ text: \" \", type: \"plain\" }), a;\n if (r.trim().startsWith(\"#\"))\n return a.push({ text: r, type: \"comment\" }), a;\n const n = /(\\$\\([^)]*\\)|\"[^\"]*\"|'[^']*'|\\$[\\w_]+|[a-zA-Z_]\\w*=|--?[a-zA-Z0-9][\\w-]*(?:=.*)?|>>|>|#.*|\\s+|[^\\s]+)/g, o = (i) => {\n if (/^\\$\\([^)]*\\)$/.test(i)) {\n const s = i.slice(2, -1);\n return [{ text: \"$(\", type: \"operator\" }, ...Me(s), { text: \")\", type: \"operator\" }];\n }\n if (/^\".*\"$/.test(i)) {\n const s = i.slice(1, -1), l = [];\n let c = 0;\n const f = /\\$[\\w_]+/g;\n let u;\n for (; (u = f.exec(s)) !== null; )\n u.index > c && l.push({\n text: s.slice(c, u.index),\n type: \"string\"\n }), l.push({ text: u[0], type: \"variable\" }), c = u.index + u[0].length;\n return c < s.length && l.push({ text: s.slice(c), type: \"string\" }), [{ text: '\"', type: \"string\" }, ...l, { text: '\"', type: \"string\" }];\n }\n return /^'.*'$/.test(i) ? [{ text: i, type: \"string\" }] : /^\\$[\\w_]+$/.test(i) ? [{ text: i, type: \"variable\" }] : /^[a-zA-Z_]\\w*=$/.test(i) ? [{ text: i, type: \"variable\" }] : /^--?[a-zA-Z0-9][\\w-]*(=.*)?$/.test(i) ? [{ text: i, type: \"option\" }] : /^>>|>$/.test(i) ? [{ text: i, type: \"operator\" }] : /^#.*$/.test(i) ? [{ text: i, type: \"comment\" }] : /^\\s+$/.test(i) ? [{ text: i, type: \"plain\" }] : Kt.has(i) ? [{ text: i, type: \"keyword\" }] : Ht.has(i) ? [{ text: i, type: \"runner\" }] : [{ text: i, type: \"command\" }];\n };\n let t;\n for (; (t = n.exec(r)) !== null; )\n a.push(...o(t[0]));\n return a;\n}\nfunction _t(r, a = !1) {\n const n = [];\n let o = a;\n if (r.trim() === \"\")\n return n.push({ text: \" \", type: \"plain\" }), { tokens: n, inComment: o };\n let t = \"selector\", i = 0;\n r.match(/^\\s+/) && r.includes(\":\") && !r.includes(\"{\") && (t = \"property\", i = 1);\n const s = /(\\/\\*[\\s\\S]*?\\*\\/|\\/\\*[\\s\\S]*$|\\*\\/)|(@[a-zA-Z-]+)|(\\{|\\}|:|;|,|\\(|\\))|(\"(?:[^\"]*)\"|'(?:[^']*)')|([a-zA-Z-]+)(?=\\()|([0-9.]+(?:px|rem|em|%|vh|vw|deg|s|ms|fr)?)|(#[a-fA-F0-9]{3,8})|([a-zA-Z0-9_-]+|[.#][a-zA-Z0-9_-]+)|(\\s+)|(\\S+)/g;\n let l;\n for (; l = s.exec(r); ) {\n const [, c, f, u, d, h, m, x, b, p, g] = l;\n if (c)\n c.includes(\"/*\") && !c.includes(\"*/\") ? o = !0 : c.includes(\"*/\") && (o = !1), n.push({ text: c, type: \"comment\" });\n else if (o)\n l[0].includes(\"*/\") && (o = !1), n.push({ text: l[0], type: \"comment\" });\n else if (f)\n n.push({ text: f, type: \"atRule\" });\n else if (h)\n n.push({ text: h, type: \"function\" });\n else if (u)\n u === \"{\" ? (i++, t = \"property\") : u === \"}\" ? (i--, t = i > 0 ? \"property\" : \"selector\") : u === \":\" ? t === \"property\" && (t = \"value\") : u === \";\" ? i > 0 && (t = \"property\") : u === \",\" && i === 0 && (t = \"selector\"), n.push({ text: u, type: \"punctuation\" });\n else if (d)\n n.push({ text: d, type: \"string\" });\n else if (m)\n n.push({ text: m, type: \"number\" });\n else if (x)\n n.push({ text: x, type: \"value\" });\n else if (b) {\n let v;\n b.startsWith(\".\") || b.startsWith(\"#\") || t === \"selector\" ? v = \"selector\" : t === \"property\" ? v = \"property\" : v = \"value\", n.push({ text: b, type: v });\n } else if (p)\n n.push({ text: p.replace(/ /g, \" \"), type: \"plain\" });\n else if (g) {\n const v = t === \"value\" ? \"value\" : \"plain\";\n n.push({ text: g, type: v });\n }\n }\n return { tokens: n, inComment: o };\n}\nfunction Zt(r) {\n const a = /(\"[^\"]*\")\\s*(:)|(\"[^\"]*\")|(\\d+)|(true|false|null)|(\\{|\\}|\\[|\\]|,)/g, n = [];\n let o = 0, t;\n for (; (t = a.exec(r)) !== null; )\n t.index > o && n.push({ text: r.slice(o, t.index), type: \"plain\" }), t[1] && t[2] ? (n.push({ text: t[1], type: \"key\" }), n.push({ text: t[2], type: \"punctuation\" })) : t[3] ? n.push({ text: t[3], type: \"string\" }) : t[4] ? n.push({ text: t[4], type: \"number\" }) : t[5] ? n.push({ text: t[5], type: \"boolean\" }) : t[6] && n.push({ text: t[6], type: \"punctuation\" }), o = a.lastIndex;\n return o < r.length && n.push({ text: r.slice(o), type: \"plain\" }), n;\n}\nfunction qt(r, a = !1, n = 0) {\n const o = [];\n let t = r, i = a, s = n;\n for (; t.length > 0; ) {\n const l = t.match(/^\\/\\*[\\s\\S]*?\\*\\//);\n if (l) {\n o.push({ text: l[0], type: \"comment\" }), t = t.slice(l[0].length);\n continue;\n }\n const c = t.match(/^\\/\\/.*$/m);\n if (c) {\n o.push({ text: c[0], type: \"comment\" }), t = t.slice(c[0].length);\n continue;\n }\n const f = t.match(/^(`[^`]*`|\"[^\"]*\"|'[^']*')/);\n if (f) {\n o.push({ text: f[0], type: \"string\" }), t = t.slice(f[0].length);\n continue;\n }\n const u = t.match(/^<([a-zA-Z][a-zA-Z0-9]*)/);\n if (u) {\n o.push({ text: \"<\", type: \"jsx-bracket\" }), o.push({ text: u[1], type: \"jsx-tag\" }), t = t.slice(u[0].length), i = !0;\n continue;\n }\n const d = t.match(/^<\\/([a-zA-Z][a-zA-Z0-9]*)>/);\n if (d) {\n o.push({ text: \"</\", type: \"jsx-bracket\" }), o.push({ text: d[1], type: \"jsx-tag\" }), o.push({ text: \">\", type: \"jsx-bracket\" }), t = t.slice(d[0].length), i = !1;\n continue;\n }\n if (t.match(/^\\/?>/)) {\n const z = t.match(/^(\\/?>\\s*)/);\n if (z) {\n o.push({ text: z[1].trim(), type: \"jsx-bracket\" }), t = t.slice(z[1].length), z[1].includes(\">\") && (i = !1);\n continue;\n }\n }\n const h = t.match(/^([a-zA-Z][a-zA-Z0-9]*)(\\s*)(=)/);\n if (h && i && s === 0) {\n o.push({ text: h[1], type: \"jsx-attribute\" }), h[2] && o.push({ text: h[2], type: \"plain\" }), o.push({ text: \"=\", type: \"plain\" }), t = t.slice(h[0].length);\n continue;\n }\n const m = t.match(/^[{}]/);\n if (m) {\n o.push({ text: m[0], type: \"jsx-brace\" }), m[0] === \"{\" ? s++ : m[0] === \"}\" && s--, t = t.slice(1);\n continue;\n }\n const x = t.match(/^\\s+/);\n if (x) {\n o.push({ text: x[0], type: \"plain\" }), t = t.slice(x[0].length);\n continue;\n }\n const b = t.match(/^(=>|===|!==|==|!=|<=|>=|&&|\\|\\||[+\\-*/%=<>!&|^~?:;,()[\\]{}.])/);\n if (b) {\n o.push({ text: b[0], type: \"operator\" }), t = t.slice(b[0].length);\n continue;\n }\n const p = t.match(\n /^(const|let|var|function|if|else|for|while|return|import|export|class|extends|interface|type|enum|async|await|public|private|protected|static|from|as|default|new|this|super|try|catch|finally|throw|break|continue|switch|case|typeof|instanceof)\\b/\n );\n if (p) {\n o.push({ text: p[0], type: \"keyword\" }), t = t.slice(p[0].length);\n continue;\n }\n const g = t.match(/^(use[A-Z][a-zA-Z]*)\\b/);\n if (g) {\n o.push({ text: g[0], type: \"hook\" }), t = t.slice(g[0].length);\n continue;\n }\n const v = t.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=(\\?\\.)?\\()/);\n if (v) {\n o.push({ text: v[1], type: \"function\" }), t = t.slice(v[1].length);\n continue;\n }\n const E = t.match(\n /^(string|number|boolean|object|any|void|never|unknown|null|undefined|Promise|Array|React\\.FC|FC|JSX\\.Element|HTMLElement|Event|MouseEvent|KeyboardEvent|ChangeEvent)\\b/\n );\n if (E) {\n o.push({ text: E[0], type: \"type\" }), t = t.slice(E[0].length);\n continue;\n }\n const y = t.match(/^(\\d+\\.?\\d*)/);\n if (y) {\n o.push({ text: y[0], type: \"number\" }), t = t.slice(y[0].length);\n continue;\n }\n const k = t.match(/^([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=:)/);\n if (k && !i) {\n o.push({ text: k[1], type: \"property\" }), t = t.slice(k[1].length);\n continue;\n }\n o.push({ text: t[0], type: \"plain\" }), t = t.slice(1);\n }\n return o;\n}\nfunction Qt(r, a) {\n const n = {\n ...Gt,\n ...a\n };\n return r.map((o, t) => {\n const i = Me(o);\n return /* @__PURE__ */ e(\"div\", { className: \"leading-6\", children: i.map((s, l) => /* @__PURE__ */ e(\"span\", { className: n[s.type] || \"text-gray-100\", children: s.text }, l)) }, t);\n });\n}\nfunction Ut(r, a) {\n const n = { ...jt, ...a };\n let o = !1;\n return r.map((t, i) => {\n const { tokens: s, inComment: l } = _t(t, o);\n return o = l, /* @__PURE__ */ e(\"div\", { className: \"leading-6\", children: s.map((c, f) => /* @__PURE__ */ e(\"span\", { className: n[c.type] || \"text-gray-100\", children: c.text }, f)) }, i);\n });\n}\nfunction Yt(r, a) {\n const n = { ...Vt, ...a };\n return r.map((o, t) => /* @__PURE__ */ e(\"div\", { className: \"leading-6\", children: Zt(o).map((i, s) => /* @__PURE__ */ e(\"span\", { className: n[i.type] || \"text-gray-100\", children: i.text }, s)) }, t));\n}\nfunction Xt(r, a) {\n const n = { ...Pt, ...a };\n let o = !1, t = 0;\n return r.map((i, s) => {\n if (i.trim() === \"\")\n return /* @__PURE__ */ e(\"div\", { className: \"leading-6\", children: \" \" }, s);\n const l = qt(i, o, t);\n i.includes(\"<\") && i.match(/<[a-zA-Z]/) && (o = !0), i.includes(\">\") && !i.includes(\"<\") && (o = !1, t = 0);\n const c = (i.match(/\\{/g) || []).length, f = (i.match(/\\}/g) || []).length;\n return t += c - f, t < 0 && (t = 0), /* @__PURE__ */ e(\"div\", { className: \"leading-6\", children: l.map((u, d) => /* @__PURE__ */ e(\"span\", { className: n[u.type] || \"text-gray-100\", children: u.text }, d)) }, s);\n });\n}\nfunction Jt(r) {\n const [a, n] = F(!1), o = A(async () => {\n try {\n await navigator.clipboard.writeText(r), n(!0), setTimeout(() => n(!1), 3e3);\n } catch (t) {\n console.error(\"Failed to copy code:\", t);\n }\n }, [r]);\n return { copied: a, handleCopy: o };\n}\nfunction Ot(r, a) {\n const n = L(null), o = L(null);\n return S(() => {\n if (r) {\n n.current = document.activeElement, document.body.style.overflow = \"hidden\", setTimeout(() => {\n var i;\n (i = o.current) == null || i.focus();\n }, 100);\n const t = (i) => {\n i.key === \"Escape\" && a(!1);\n };\n return document.addEventListener(\"keydown\", t), () => {\n document.removeEventListener(\"keydown\", t), document.body.style.overflow = \"\";\n };\n } else n.current && (n.current.focus(), n.current = null);\n }, [r, a]), { containerRef: o };\n}\nfunction er(r, a, n, o) {\n return { handleKeyDown: A(\n (i) => {\n i.key === \"c\" && (i.metaKey || i.ctrlKey) && r ? (i.preventDefault(), n()) : i.key === \"f\" && a && (i.preventDefault(), o());\n },\n [r, a, n, o]\n ) };\n}\nfunction tr(r) {\n switch (r) {\n case \"typescript\":\n case \"ts\":\n return \"ts\";\n case \"tsx\":\n return \"tsx\";\n case \"json\":\n return \"json\";\n case \"bash\":\n case \"sh\":\n return \"sh\";\n default:\n return \"txt\";\n }\n}\nfunction yn({\n code: r,\n language: a = \"typescript\",\n allowCopy: n = !0,\n allowDownload: o = !1,\n allowFullscreen: t = !1,\n filename: i,\n showTrafficLights: s = !0,\n showLineNumbers: l = !1,\n hideHeader: c = !1,\n hideFiletype: f = !1,\n maxHeight: u,\n tokenClasses: d,\n className: h,\n id: m,\n ref: x,\n ...b\n}) {\n const [p, g] = F(!1), { containerRef: v } = Ot(p, g), { copied: E, handleCopy: y } = Jt(r), k = A(() => {\n const $ = i || `code.${tr(a)}`;\n at(r, $);\n }, [r, i, a]), z = A(() => {\n g(($) => !$);\n }, []), { handleKeyDown: C } = er(n, t, y, z), D = H(() => r.split(`\n`), [r]), T = A(\n ($ = !0) => /* @__PURE__ */ w(\"div\", { className: N(\"flex items-center space-x-2\", !$ && \"absolute top-2 right-2 z-10\"), children: [\n !f && /* @__PURE__ */ e(\n \"span\",\n {\n className: \"text-xs text-gray-400 uppercase tracking-wide font-medium\",\n \"aria-label\": `Code language: ${a}`,\n children: a\n }\n ),\n t && /* @__PURE__ */ e(\n \"button\",\n {\n onClick: z,\n className: \"p-1.5 leading-0 text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors motion-reduce:transition-none min-h-[44px] min-w-[44px] flex items-center justify-center md:min-h-auto md:min-w-auto md:p-1.5\",\n title: p ? \"Exit fullscreen\" : \"Fullscreen\",\n \"aria-label\": p ? \"Exit fullscreen mode\" : \"Enter fullscreen mode\",\n \"aria-pressed\": p,\n type: \"button\",\n children: p ? /* @__PURE__ */ e(Ze, { size: 14 }) : /* @__PURE__ */ e(qe, { size: 14 })\n }\n ),\n o && /* @__PURE__ */ e(\n \"button\",\n {\n onClick: k,\n className: \"p-1.5 leading-0 text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors motion-reduce:transition-none min-h-[44px] min-w-[44px] flex items-center justify-center md:min-h-auto md:min-w-auto md:p-1.5\",\n title: \"Download code\",\n \"aria-label\": \"Download code as file\",\n type: \"button\",\n children: /* @__PURE__ */ e(Qe, { size: 14 })\n }\n ),\n n && /* @__PURE__ */ e(\n \"button\",\n {\n onClick: y,\n className: \"p-1.5 leading-0 text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors motion-reduce:transition-none min-h-[44px] min-w-[44px] flex items-center justify-center md:min-h-auto md:min-w-auto md:p-1.5\",\n title: E ? \"Code copied!\" : \"Copy code\",\n \"aria-label\": E ? \"Code copied to clipboard\" : \"Copy code to clipboard\",\n \"aria-live\": \"polite\",\n type: \"button\",\n children: E ? /* @__PURE__ */ e(ge, { size: 14, className: \"text-green-400\" }) : /* @__PURE__ */ e(Ue, { size: 14 })\n }\n )\n ] }),\n [\n f,\n a,\n t,\n p,\n o,\n k,\n n,\n y,\n E,\n z\n ]\n ), M = H(() => a === \"json\" ? Yt(D, d) : a === \"tsx\" || a === \"ts\" || a === \"typescript\" ? Xt(D, d) : a === \"bash\" || a === \"sh\" ? Qt(D, d) : a === \"css\" ? Ut(D, d) : [\n /* @__PURE__ */ e(\"span\", { className: \"text-gray-400\", children: \"Unsupported language\" }, 0)\n ], [D, d, a]), _ = H(() => l ? D.map(($, W) => /* @__PURE__ */ e(\n \"div\",\n {\n className: \"text-gray-500 text-right pl-3 pr-1 select-none min-w-8 text-sm font-mono leading-6\",\n \"aria-hidden\": \"true\",\n role: \"presentation\",\n children: W + 1\n },\n W\n )) : null, [l, D]), V = H(\n () => ({\n maxHeight: u && !p ? `${u}px` : p ? c ? \"calc(100vh - 5px)\" : \"calc(100vh - 45px)\" : void 0,\n overflow: u || p ? \"auto\" : \"visible\"\n }),\n [u, p, c]\n ), B = /* @__PURE__ */ w(\n \"div\",\n {\n id: m,\n ref: ($) => {\n v.current = $, typeof x == \"function\" ? x($) : x && (x.current = $);\n },\n className: N(\n \"bg-gray-900 rounded-lg border border-gray-700 overflow-hidden motion-reduce:transition-none\",\n p && \"fixed inset-0 z-[9999] max-h-fit\",\n h\n ),\n \"data-language\": a,\n \"data-filename\": i,\n \"data-fullscreen\": p,\n role: \"region\",\n \"aria-label\": `Code block${i ? ` for ${i}` : \"\"} in ${a}`,\n \"aria-describedby\": l ? `${m}-description` : void 0,\n tabIndex: 0,\n onKeyDown: C,\n ...b,\n children: [\n l && /* @__PURE__ */ w(\"div\", { id: `${m}-description`, className: \"sr-only\", children: [\n \"Code block with line numbers. Use Cmd+C or Ctrl+C to copy code.\",\n t && \" Press F to toggle fullscreen.\"\n ] }),\n /* @__PURE__ */ e(\"div\", { \"aria-live\": \"polite\", \"aria-atomic\": \"true\", className: \"sr-only\", children: E && \"Code copied to clipboard\" }),\n !c && /* @__PURE__ */ w(\"div\", { className: \"flex items-center justify-between px-4 py-2 bg-gray-800 border-b border-gray-700\", children: [\n /* @__PURE__ */ w(\"div\", { className: \"flex items-center space-x-3\", children: [\n s && /* @__PURE__ */ w(\"div\", { className: \"flex space-x-2\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"w-3 h-3 bg-red-500 rounded-full\" }),\n /* @__PURE__ */ e(\"div\", { className: \"w-3 h-3 bg-yellow-500 rounded-full\" }),\n /* @__PURE__ */ e(\"div\", { className: \"w-3 h-3 bg-green-500 rounded-full\" })\n ] }),\n i && /* @__PURE__ */ e(\"span\", { className: \"text-sm text-gray-300 font-medium\", children: i })\n ] }),\n T(!0)\n ] }),\n /* @__PURE__ */ w(\"div\", { className: N(\"flex overflow-hidden\", c && \"relative\"), style: V, children: [\n c && T(!1),\n /* @__PURE__ */ e(\"div\", { className: \"flex-1 overflow-x-auto\", children: /* @__PURE__ */ w(\"div\", { className: \"flex\", children: [\n l && /* @__PURE__ */ e(\n \"div\",\n {\n className: \"bg-gray-800 py-4 border-r border-gray-700 flex flex-col flex-shrink-0\",\n \"aria-hidden\": \"true\",\n role: \"presentation\",\n children: _\n }\n ),\n /* @__PURE__ */ e(\"div\", { className: \"flex-1 p-4\", children: /* @__PURE__ */ e(\n \"pre\",\n {\n className: \"text-sm font-mono focus:outline-none\",\n role: \"code\",\n \"aria-label\": `${a} code content`,\n tabIndex: -1,\n children: /* @__PURE__ */ e(\"code\", { children: M })\n }\n ) })\n ] }) })\n ] })\n ]\n }\n );\n return /* @__PURE__ */ w(J, { children: [\n !p && B,\n p && ie(\n /* @__PURE__ */ w(J, { children: [\n /* @__PURE__ */ e(\n \"div\",\n {\n className: \"fixed inset-0 bg-black z-[9998]\",\n onClick: () => g(!1),\n \"aria-hidden\": \"true\"\n }\n ),\n B\n ] }),\n document.body\n )\n ] });\n}\nfunction gn({\n children: r,\n label: a,\n isOpen: n,\n onToggle: o,\n id: t,\n ref: i,\n disabled: s = !1,\n className: l,\n buttonClassName: c\n}) {\n const f = G(), u = t ?? f, [d, h] = F(!1), m = n !== void 0 ? n : d, x = () => {\n s || (n === void 0 && h((b) => !b), o == null || o(!m));\n };\n return S(() => {\n h(n ?? !1);\n }, [n]), /* @__PURE__ */ w(\"div\", { ref: i, id: u, \"data-open\": m, className: N(\"overflow-hidden\", l), children: [\n /* @__PURE__ */ e(\n \"button\",\n {\n id: `${u}-button`,\n type: \"button\",\n \"aria-expanded\": m,\n \"aria-controls\": `${u}-panel`,\n disabled: s,\n tabIndex: 0,\n className: N(\n \"w-full px-4 py-3 font-medium hover:bg-primary/10 disabled:opacity-50 disabled:cursor-not-allowed\",\n c\n ),\n onClick: x,\n onKeyDown: (b) => {\n (b.key === \"Enter\" || b.key === \" \") && (b.preventDefault(), x());\n },\n \"data-open\": m,\n \"data-label\": typeof a == \"string\" ? a : void 0,\n children: /* @__PURE__ */ w(\"div\", { className: \"flex items-center w-full gap-2\", children: [\n /* @__PURE__ */ e(\"span\", { className: \"flex-1 text-left\", children: a }),\n m ? /* @__PURE__ */ e(Ye, { className: \"size-5\", \"aria-hidden\": \"true\" }) : /* @__PURE__ */ e(Xe, { className: \"size-5\", \"aria-hidden\": \"true\" })\n ] })\n }\n ),\n /* @__PURE__ */ e(\"div\", { id: `${u}-panel`, role: \"region\", \"aria-labelledby\": u, \"aria-live\": \"polite\", hidden: !m, children: r })\n ] });\n}\nfunction rr(r) {\n const [a, n] = F(!1), [o, t] = F(!1);\n return S(() => {\n if (r) {\n t(!0);\n const i = setTimeout(() => n(!0), 10);\n return () => clearTimeout(i);\n } else {\n n(!1);\n const i = setTimeout(() => t(!1), 300);\n return () => clearTimeout(i);\n }\n }, [r]), { show: a, shouldRender: o };\n}\nfunction nr({\n isOpen: r,\n onClose: a,\n enabled: n = !0\n}) {\n const [o, t] = F(!1), [i, s] = F(0), [l, c] = F(0), f = A((y) => {\n !n || !r || (t(!0), c(y), document.body.style.userSelect = \"none\");\n }, [n, r]), u = A((y) => {\n if (!o || !n) return;\n const k = y - l, z = Math.max(0, k);\n s(z);\n }, [o, n, l]), d = A(() => {\n if (!o || !n) return;\n t(!1), document.body.style.userSelect = \"\", i > 100 && a(), s(0);\n }, [o, n, i, a]), h = A((y) => {\n y.preventDefault(), f(y.clientY);\n }, [f]), m = A((y) => {\n u(y.clientY);\n }, [u]), x = A(() => {\n d();\n }, [d]), b = A((y) => {\n y.preventDefault(), f(y.touches[0].clientY);\n }, [f]), p = A((y) => {\n y.preventDefault(), u(y.touches[0].clientY);\n }, [u]), g = A(() => {\n d();\n }, [d]);\n S(() => {\n if (o)\n return document.addEventListener(\"mousemove\", m), document.addEventListener(\"mouseup\", x), document.addEventListener(\"touchmove\", p, { passive: !1 }), document.addEventListener(\"touchend\", g), () => {\n document.removeEventListener(\"mousemove\", m), document.removeEventListener(\"mouseup\", x), document.removeEventListener(\"touchmove\", p), document.removeEventListener(\"touchend\", g);\n };\n }, [o, m, x, p, g]);\n const v = A((y) => {\n n && (y.key === \"ArrowDown\" || y.key === \"Escape\") && (y.preventDefault(), a());\n }, [n, a]);\n return {\n dragHandlers: n ? {\n onMouseDown: h,\n onTouchStart: b,\n onKeyDown: v\n } : {},\n translateY: i,\n isDragging: o\n };\n}\nfunction or(r, a) {\n const n = L(null);\n S(() => {\n if (!a) return;\n n.current = document.activeElement;\n const o = document.getElementById(r);\n o && o.focus();\n const t = (i) => {\n if (i.key !== \"Tab\") return;\n const s = document.getElementById(r);\n if (!s) return;\n const l = s.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n ), c = l[0], f = l[l.length - 1];\n i.shiftKey && document.activeElement === c ? (i.preventDefault(), f == null || f.focus()) : !i.shiftKey && document.activeElement === f && (i.preventDefault(), c == null || c.focus());\n };\n return document.addEventListener(\"keydown\", t), () => {\n document.removeEventListener(\"keydown\", t), n.current && typeof n.current.focus == \"function\" && n.current.focus();\n };\n }, [r, a]);\n}\nfunction ir(r, a) {\n S(() => {\n if (!r) return;\n const n = window.getComputedStyle(document.body).overflow;\n document.body.style.overflow = \"hidden\";\n const o = (t) => {\n t.key === \"Escape\" && a();\n };\n return document.addEventListener(\"keydown\", o), () => {\n document.body.style.overflow = n, document.removeEventListener(\"keydown\", o);\n };\n }, [r, a]);\n}\nfunction wn({\n ref: r,\n id: a,\n isOpen: n,\n onClose: o,\n title: t,\n children: i,\n footer: s,\n className: l,\n overlayClassName: c,\n showCloseButton: f = !1,\n disableCloseOnOverlayClick: u = !1,\n enableDragGestures: d = !0,\n ariaLabelledBy: h,\n ariaDescribedBy: m\n}) {\n const x = G(), b = a || `drawer-${x}`, p = `${x}-title`, { show: g, shouldRender: v } = rr(n), { dragHandlers: E, translateY: y, isDragging: k } = nr({\n isOpen: n,\n onClose: o,\n enabled: d\n });\n if (or(b, v), ir(v, o), !v) return null;\n const z = () => t ? P.isValidElement(t) ? /* @__PURE__ */ e(\"div\", { children: t }) : /* @__PURE__ */ e(\"h2\", { className: \"text-2xl font-semibold\", id: p, children: t }) : null, C = () => {\n if (!s) return null;\n if (P.isValidElement(s)) {\n const D = s, T = D.props.className || \"\";\n return P.cloneElement(D, { className: N(\"px-6 py-4\", T) });\n }\n return /* @__PURE__ */ e(\"div\", { className: \"px-6 py-4\", children: s });\n };\n return /* @__PURE__ */ e(J, { children: ie(\n /* @__PURE__ */ w(\n \"div\",\n {\n \"aria-labelledby\": h ?? t ? p : void 0,\n \"aria-describedby\": m,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-hidden\",\n \"data-drawer-open\": n,\n children: [\n /* @__PURE__ */ e(\n \"div\",\n {\n className: N(\n \"fixed inset-0 bg-black/40 transition-opacity duration-300\",\n g ? \"opacity-100\" : \"opacity-0\",\n c\n ),\n onClick: () => {\n u || o();\n }\n }\n ),\n /* @__PURE__ */ e(\"div\", { className: \"fixed inset-x-0 bottom-0 flex max-h-full\", children: /* @__PURE__ */ e(\n \"div\",\n {\n id: b,\n ref: r,\n tabIndex: -1,\n className: N(\n \"relative w-screen transform shadow-xl bg-popover text-popover-foreground transition-transform duration-300 ease-in-out border-t border-border rounded-t-lg\",\n g ? \"translate-y-0\" : \"translate-y-full\",\n l\n ),\n style: {\n transform: d && y !== 0 ? `translateY(${y}px)` : void 0,\n transition: y !== 0 ? \"none\" : void 0\n },\n children: /* @__PURE__ */ w(\"div\", { className: \"flex h-full flex-col\", children: [\n d && /* @__PURE__ */ e(\n \"div\",\n {\n className: N(\n \"flex justify-center pt-3 pb-2 cursor-grab active:cursor-grabbing\",\n d && \"select-none\"\n ),\n ...E,\n role: d ? \"button\" : void 0,\n tabIndex: d ? 0 : void 0,\n \"aria-label\": d ? \"Drag to resize drawer\" : void 0,\n children: /* @__PURE__ */ e(\n \"div\",\n {\n className: N(\n \"w-12 h-1.5 bg-popover-foreground/25 rounded-full transition-colors\",\n d && \"hover:bg-popover-foreground/50\",\n k && \"bg-popover-foreground/50\"\n )\n }\n )\n }\n ),\n t && /* @__PURE__ */ e(\"div\", { className: \"px-6 pt-4\", children: z() }),\n f && /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: o,\n \"data-drawer-close-button\": \"true\",\n \"aria-label\": \"Close drawer\",\n className: \"rounded-md p-0.5 top-3 right-3 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ e(oe, { size: 18 })\n }\n ),\n /* @__PURE__ */ e(\"div\", { className: N(\"flex-1 overflow-y-auto px-6 pb-6\", t ? \"pt-6\" : \"pt-4\"), children: i }),\n C()\n ] })\n }\n ) })\n ]\n }\n ),\n document.body\n ) });\n}\nfunction ar(r) {\n switch (r) {\n case \"top\":\n return \"bottom\";\n case \"bottom\":\n return \"top\";\n case \"left\":\n return \"right\";\n case \"right\":\n return \"left\";\n }\n}\nfunction sr({\n internalIsOpen: r,\n autoSwitchPlacement: a,\n placement: n,\n offset: o,\n triggerRef: t,\n popoverRef: i\n}) {\n const [s, l] = F(n);\n return S(() => {\n if (!r || !a) return;\n const c = () => {\n if (!t.current || !i.current) return;\n const d = t.current.getBoundingClientRect(), h = i.current.getBoundingClientRect(), m = window.innerWidth, x = window.innerHeight;\n let b = n;\n const p = ar(n);\n if (n === \"top\" || n === \"bottom\") {\n const g = n === \"top\" ? d.top >= h.height + o : x - d.bottom >= h.height + o, v = p === \"top\" ? d.top >= h.height + o : x - d.bottom >= h.height + o;\n !g && v && (b = p);\n } else {\n const g = n === \"left\" ? d.left >= h.width + o : m - d.right >= h.width + o, v = p === \"left\" ? d.left >= h.width + o : m - d.right >= h.width + o;\n !g && v && (b = p);\n }\n l(b);\n };\n c();\n const f = () => c();\n window.addEventListener(\"scroll\", f, !0), window.addEventListener(\"resize\", f);\n const u = new ResizeObserver(c);\n return t.current && u.observe(t.current), i.current && u.observe(i.current), () => {\n window.removeEventListener(\"scroll\", f, !0), window.removeEventListener(\"resize\", f), u.disconnect();\n };\n }, [r, n, o, a, t, i]), s;\n}\nconst lr = {\n bottom: {\n start: \"top-full left-0 origin-top-left\",\n center: \"top-full left-1/2 -translate-x-1/2 origin-top\",\n end: \"top-full right-0 origin-top-right\"\n },\n top: {\n start: \"bottom-full left-0 origin-bottom-left\",\n center: \"bottom-full left-1/2 -translate-x-1/2 origin-bottom\",\n end: \"bottom-full right-0 origin-bottom-right\"\n },\n left: {\n start: \"right-full top-0 origin-top-right\",\n center: \"right-full top-1/2 -translate-y-1/2 origin-right\",\n end: \"right-full bottom-0 origin-bottom-right\"\n },\n right: {\n start: \"left-full top-0 origin-top-left\",\n center: \"left-full top-1/2 -translate-y-1/2 origin-left\",\n end: \"left-full bottom-0 origin-bottom-left\"\n }\n};\nfunction cr(r, a) {\n switch (r) {\n case \"top\":\n return { marginBottom: `${a}px` };\n case \"bottom\":\n return { marginTop: `${a}px` };\n case \"left\":\n return { marginRight: `${a}px` };\n case \"right\":\n return { marginLeft: `${a}px` };\n default:\n return {};\n }\n}\nfunction dr({\n id: r,\n ref: a,\n isOpen: n,\n onOpenChange: o,\n children: t,\n className: i,\n closeOnOverlayClick: s = !0,\n trigger: l,\n placement: c = \"bottom\",\n alignment: f = \"center\",\n closeOnTriggerClick: u = !0,\n offset: d = 8,\n autoSwitchPlacement: h = !0\n}) {\n const [m, x] = F(n ?? !1), b = L(null), p = L(null), g = L(null), v = G(), E = sr({\n internalIsOpen: m,\n autoSwitchPlacement: h,\n placement: c,\n offset: d,\n triggerRef: p,\n popoverRef: b\n }), y = A(\n (C) => {\n o && o(C), n === void 0 && x(C);\n },\n [n, o]\n );\n S(() => {\n n !== void 0 && x(n);\n }, [n]), S(() => {\n if (!m) return;\n const C = (D) => {\n D.key === \"Escape\" && y(!1);\n };\n return document.addEventListener(\"keydown\", C), () => document.removeEventListener(\"keydown\", C);\n }, [m, y]), S(() => {\n if (!m || !s) return;\n const C = (D) => {\n const T = D.target;\n b.current && !b.current.contains(T) && p.current && !p.current.contains(T) && y(!1);\n };\n return document.addEventListener(\"mousedown\", C), () => document.removeEventListener(\"mousedown\", C);\n }, [m, s, y]), S(() => {\n var C, D;\n m ? (g.current = document.activeElement, (C = b.current) == null || C.focus()) : ((D = g.current) == null || D.focus(), g.current = null);\n }, [m]);\n const k = l.props, z = P.cloneElement(l, {\n \"aria-expanded\": m,\n \"aria-haspopup\": \"dialog\",\n \"aria-controls\": v,\n ref: st(p, k.ref),\n onClick: (C) => {\n var D, T;\n if ((D = k.onClick) == null || D.call(k, C), !(!u && m) && n === void 0) {\n if (C.defaultPrevented || (T = b.current) != null && T.contains(C.target)) return;\n y(!m);\n }\n }\n });\n return /* @__PURE__ */ w(\"div\", { id: r, ref: a, className: \"relative inline-block\", children: [\n z,\n /* @__PURE__ */ e(\n \"div\",\n {\n id: v,\n ref: b,\n className: N(\n \"absolute z-[90] transform rounded-md shadow-lg bg-popover text-popover-foreground transition-all ease-out\",\n m ? \"opacity-100 scale-100\" : \"opacity-0 scale-75 pointer-events-none\",\n lr[E][f],\n i\n ),\n style: cr(E, d),\n role: \"dialog\",\n \"aria-modal\": \"true\",\n tabIndex: -1,\n inert: m ? void 0 : !0,\n \"aria-hidden\": m ? void 0 : !0,\n children: t\n }\n )\n ] });\n}\nfunction Re({ option: r, ...a }) {\n const { onItemSelect: n } = we(), o = () => {\n r.onClick && r.onClick(), r.value && n(r.value);\n }, t = r.subItems && r.subItems.length > 0, i = r.href && !r.disabled;\n return /* @__PURE__ */ w(\n i ? \"a\" : \"div\",\n {\n href: i ? r.href : void 0,\n className: N(\n \"relative flex items-center gap-2 px-3 py-2 text-sm focus:outline-none focus:bg-popover-foreground/10\",\n r.disabled ? \"opacity-50 cursor-default\" : \"cursor-pointer\"\n ),\n onClick: r.disabled ? void 0 : o,\n ...a,\n children: [\n r.icon && /* @__PURE__ */ e(\"span\", { className: \"size-4\", children: r.icon }),\n /* @__PURE__ */ w(\"div\", { className: \"flex-1\", children: [\n /* @__PURE__ */ e(\"div\", { children: r.label }),\n r.description && /* @__PURE__ */ e(\"div\", { className: \"text-xs text-popover-foreground/60\", children: r.description })\n ] }),\n r.keyboardShortcut && /* @__PURE__ */ e(\"div\", { className: \"text-xs text-popover-foreground/60\", children: r.keyboardShortcut }),\n t && /* @__PURE__ */ e(ye, { className: \"size-4\" })\n ]\n }\n );\n}\nfunction ur({ option: r, level: a, index: n }) {\n const { focus: o, setFocus: t } = we(), [i, s] = F(!1), [l, c] = F(!1), f = L(null), u = L(void 0), d = G(), h = () => {\n r.disabled || (t({ level: a, index: n }), x());\n }, m = () => {\n t(null), b();\n }, x = () => {\n s(!0);\n }, b = () => {\n s(!1);\n }, p = (E) => {\n if (E.key === \"ArrowRight\") {\n if (E.preventDefault(), r.disabled) return;\n c(!1);\n }\n };\n S(() => {\n const E = o == null ? void 0 : o.level, y = u.current, k = a + 1;\n E && y && y === k && E === y - 1 ? c(!0) : c(!1), u.current = E;\n }, [o, a]);\n const g = r.subItems !== void 0 && r.subItems.length > 0, v = i && !l && g;\n return /* @__PURE__ */ w(\n \"div\",\n {\n ref: f,\n className: \"relative focus:outline-none focus:bg-popover-foreground/10\",\n onMouseEnter: h,\n onMouseLeave: m,\n onFocus: x,\n onBlur: b,\n onKeyDown: p,\n tabIndex: 0,\n \"data-menu-item\": r.value,\n \"data-level\": a,\n \"data-index\": n,\n \"aria-haspopup\": g ? \"true\" : void 0,\n \"aria-expanded\": v ? \"true\" : \"false\",\n \"aria-disabled\": r.disabled ? \"true\" : void 0,\n \"aria-label\": r.label,\n \"aria-controls\": v ? d : void 0,\n children: [\n /* @__PURE__ */ e(Re, { option: r }),\n v && /* @__PURE__ */ e(\"div\", { className: \"absolute left-full top-0 z-30\", children: /* @__PURE__ */ e(We, { items: r.subItems ?? [], level: a + 1, id: d }) })\n ]\n }\n );\n}\nfunction We({ items: r, level: a, id: n }) {\n const { setFocus: o, className: t = \"\" } = we();\n let i = 0;\n const s = (l, c) => {\n switch (l.__type) {\n case \"option\":\n return l.subItems && l.subItems.length > 0 ? /* @__PURE__ */ e(ur, { option: l, level: a, index: i++ }, c) : /* @__PURE__ */ e(\n Re,\n {\n option: l,\n \"data-menu-item\": l.value,\n \"data-level\": a,\n \"data-index\": i++,\n tabIndex: -1,\n \"aria-disabled\": l.disabled ? \"true\" : void 0,\n onMouseEnter: (f) => {\n if (f.preventDefault(), l.disabled) return;\n const u = Number(f.currentTarget.getAttribute(\"data-index\"));\n o({ level: a, index: u });\n },\n onMouseLeave: (f) => {\n f.preventDefault(), o(null);\n }\n },\n c\n );\n case \"group\":\n return /* @__PURE__ */ w(\"div\", { children: [\n l.title && /* @__PURE__ */ e(\"div\", { className: \"px-3 py-2 text-xs font-semibold text-popover-foreground/50 uppercase\", children: l.title }),\n l.items.map((f, u) => s(f, `${c}-${u}`))\n ] }, c);\n case \"separator\":\n return /* @__PURE__ */ e(\"div\", { \"aria-hidden\": !0, className: \"my-1 mx-2 border-t border-popover-foreground/20\" }, c);\n case \"custom\":\n return /* @__PURE__ */ e(\"div\", { children: l.render() }, c);\n default:\n return null;\n }\n };\n return /* @__PURE__ */ e(\n \"div\",\n {\n id: n,\n className: N(\n \"border py-1 border-popover-foreground/20 rounded-md min-w-52 shadow-lg bg-popover text-popover-foreground\",\n t\n ),\n tabIndex: 0,\n \"data-level\": a,\n \"data-menu\": !0,\n role: \"menu\",\n \"aria-label\": `Dropdown menu level ${a}`,\n children: r.map((l, c) => s(l, String(c)))\n }\n );\n}\nfunction fr(r, a) {\n return Array.from(r.querySelectorAll(`[data-menu-item][data-level=\"${a}\"]`));\n}\nfunction mr(r, a) {\n const n = a === null ? 0 : (a + 1) % r.length;\n for (let o = 0; o < r.length; o++) {\n const t = (n + o) % r.length;\n if (!r[t].hasAttribute(\"aria-disabled\"))\n return t;\n }\n return -1;\n}\nfunction hr(r, a) {\n const n = a === null ? r.length - 1 : (a - 1 + r.length) % r.length;\n for (let o = 0; o < r.length; o++) {\n const t = (n - o + r.length) % r.length;\n if (!r[t].hasAttribute(\"aria-disabled\"))\n return t;\n }\n return -1;\n}\nfunction pr({ dropdownId: r, focus: a, setFocus: n, isOpen: o, onClose: t }) {\n const i = A(\n (s) => {\n var d;\n if (!o) return;\n const { level: l, index: c } = a || { level: 1, index: null }, f = document.querySelector(`#${r} [data-menu][data-level=\"${l}\"]`);\n if (!f) return;\n const u = fr(f, l);\n if (u.length !== 0)\n switch (s.key) {\n case \"ArrowDown\": {\n s.preventDefault();\n const h = mr(u, c);\n if (h === -1) return;\n n({ level: l, index: h });\n break;\n }\n case \"ArrowUp\": {\n s.preventDefault();\n const h = hr(u, c);\n if (h === -1) return;\n n({ level: l, index: h });\n break;\n }\n case \"ArrowRight\": {\n if (s.preventDefault(), c !== null) {\n const m = u[c].querySelector(\"[data-menu]\");\n m && m.querySelector(\"[data-menu-item]\") && n({ level: l + 1, index: 0 });\n }\n break;\n }\n case \"ArrowLeft\": {\n s.preventDefault();\n const h = (d = f.parentElement) == null ? void 0 : d.closest(\"[data-menu-item]\");\n if (!h) {\n console.error(`No parent menu found leaving menu level ${l}`);\n return;\n }\n const m = h.getAttribute(\"data-index\") ? Number(h.getAttribute(\"data-index\")) : -1;\n h && n({ level: l - 1, index: m === -1 ? 0 : m });\n break;\n }\n case \"Enter\": {\n if (s.preventDefault(), c !== null) {\n const h = u[c];\n h == null || h.click(), n(null);\n }\n break;\n }\n case \"Escape\": {\n s.preventDefault(), t == null || t(), n(null);\n break;\n }\n case \"Tab\": {\n t();\n break;\n }\n }\n },\n [o, a, n, t, r]\n );\n return S(() => {\n if (o)\n return document.addEventListener(\"keydown\", i), () => {\n document.removeEventListener(\"keydown\", i);\n };\n }, [i, o]), { handleKeyDown: i };\n}\nfunction br(r, a, n) {\n return document.querySelector(\n `#${r} [data-menu-item][data-level=\"${a}\"][data-index=\"${n}\"]`\n );\n}\nfunction En({\n id: r,\n items: a,\n onItemSelect: n,\n trigger: o,\n isOpen: t,\n placement: i = \"bottom\",\n alignment: s = \"start\",\n onOpenChange: l,\n className: c = \"\",\n ...f\n}) {\n const u = G(), d = r || `dropdown-menu-${u}`, [h, m] = F(null), [x, b] = F(!1), p = t === void 0, g = p ? x : t, v = A(() => {\n m(null), b(!1);\n }, []), E = A(\n (C) => {\n n && n(C), v();\n },\n [n, v]\n ), y = A(\n (C) => {\n p && b(C), l && l(C);\n },\n [p, l]\n ), k = H(\n () => ({\n id: d,\n focus: h,\n setFocus: m,\n isOpen: g,\n onItemSelect: E,\n onClose: v,\n className: c\n }),\n [h, m, E, v, c, g, d]\n );\n pr({\n dropdownId: d,\n focus: h,\n setFocus: m,\n isOpen: g,\n onClose: v\n });\n const z = H(() => P.cloneElement(o, {\n onClick: (C) => {\n p && b((T) => !T);\n const D = o.props;\n D.onClick && D.onClick(C);\n }\n }), [p, b, o]);\n return S(() => {\n if (h) {\n const C = br(d, h.level, h.index);\n C == null || C.focus();\n }\n }, [h, d]), /* @__PURE__ */ e(\n dr,\n {\n id: d,\n isOpen: p ? x : g,\n trigger: z,\n placement: i,\n alignment: s,\n onOpenChange: y,\n className: N(\"min-w-52\", c),\n ...f,\n children: /* @__PURE__ */ e(nt.Provider, { value: k, children: /* @__PURE__ */ e(We, { items: a, level: 1 }) })\n }\n );\n}\nconst xr = (r) => ({\n __type: \"option\",\n ...r\n}), vr = (r, a) => ({\n __type: \"group\",\n title: a,\n items: r\n}), yr = () => ({\n __type: \"separator\"\n}), gr = (r) => ({\n __type: \"custom\",\n render: r\n}), Nn = {\n option: xr,\n group: vr,\n separator: yr,\n custom: gr\n}, wr = {\n danger: {\n container: \"border-destructive bg-destructive/10\",\n icon: \"text-destructive\",\n title: \"text-destructive\",\n description: \"text-destructive/80\",\n button: \"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus:ring-destructive\",\n details: \"bg-destructive/5 border-destructive/20 text-destructive\"\n },\n warning: {\n container: \"border-yellow-600 bg-yellow-600/10\",\n icon: \"text-yellow-600\",\n title: \"text-yellow-600\",\n description: \"text-yellow-600/80\",\n button: \"bg-yellow-600 text-white hover:bg-yellow-600/90 focus:ring-yellow-600\",\n details: \"bg-yellow-600/5 border-yellow-600/20 text-yellow-600\"\n },\n info: {\n container: \"border-blue-600 bg-blue-600/10\",\n icon: \"text-blue-600\",\n title: \"text-blue-600\",\n description: \"text-blue-600/80\",\n button: \"bg-blue-600 text-white hover:bg-blue-600/90 focus:ring-blue-600\",\n details: \"bg-blue-600/5 border-blue-600/20 text-blue-600\"\n }\n}, Er = {\n danger: /* @__PURE__ */ e(de, { size: 24 }),\n warning: /* @__PURE__ */ e(de, { size: 24 }),\n info: /* @__PURE__ */ e(Le, { size: 24 })\n};\nfunction kn({\n id: r,\n variant: a = \"danger\",\n showRetry: n = !0,\n fallbackMessage: o,\n fallback: t,\n onRetry: i,\n onError: s,\n className: l,\n children: c,\n inDevEnv: f = !1\n}) {\n return /* @__PURE__ */ e(\n Nr,\n {\n id: r,\n variant: a,\n showRetry: n,\n fallbackMessage: o,\n fallback: t,\n onRetry: i,\n onError: s,\n className: l,\n inDevEnv: f,\n children: c\n }\n );\n}\nclass Nr extends Pe {\n constructor(n) {\n super(n);\n Ne(this, \"handleRetry\", () => {\n var n, o;\n this.setState({ hasError: !1, error: void 0, errorInfo: void 0 }), (o = (n = this.props).onRetry) == null || o.call(n);\n });\n this.state = { hasError: !1 };\n }\n static getDerivedStateFromError(n) {\n return { hasError: !0, error: n };\n }\n componentDidCatch(n, o) {\n var t, i;\n this.setState({ error: n, errorInfo: o }), (i = (t = this.props).onError) == null || i.call(t, n, o), this.props.inDevEnv && (console.error(\"ErrorBoundary caught an error:\", n), console.error(\"Error info:\", o));\n }\n render() {\n var f;\n const {\n id: n,\n variant: o = \"danger\",\n showRetry: t = !0,\n fallbackMessage: i = \"Something went wrong\",\n fallback: s,\n className: l,\n inDevEnv: c\n } = this.props;\n if (this.state.hasError) {\n if (s)\n return s;\n const u = wr[o], d = Er[o];\n return /* @__PURE__ */ w(\n \"div\",\n {\n id: n,\n \"data-variant\": o,\n \"data-has-error\": this.state.hasError,\n className: N(\n \"rounded-lg border p-6 text-center\",\n u.container,\n l\n ),\n role: \"alert\",\n \"aria-live\": \"assertive\",\n children: [\n /* @__PURE__ */ e(\"div\", { className: N(\"mb-4 flex justify-center\", u.icon), children: d }),\n /* @__PURE__ */ e(\"h3\", { className: N(\"text-lg font-semibold mb-2\", u.title), children: \"Oops! Something went wrong\" }),\n /* @__PURE__ */ e(\"p\", { className: N(\"text-sm mb-4\", u.description), children: i }),\n c && this.state.error && /* @__PURE__ */ w(\"details\", { className: \"mt-4 text-left\", children: [\n /* @__PURE__ */ e(\"summary\", { className: \"cursor-pointer text-sm font-medium mb-2\", children: \"Error Details (Development Only)\" }),\n /* @__PURE__ */ w(\"div\", { className: N(\n \"rounded border p-3 text-xs font-mono whitespace-pre-wrap overflow-auto max-h-40\",\n u.details\n ), children: [\n /* @__PURE__ */ e(\"div\", { className: \"font-bold mb-1\", children: \"Error:\" }),\n /* @__PURE__ */ e(\"div\", { className: \"mb-2\", children: this.state.error.toString() }),\n ((f = this.state.errorInfo) == null ? void 0 : f.componentStack) && /* @__PURE__ */ w(J, { children: [\n /* @__PURE__ */ e(\"div\", { className: \"font-bold mb-1\", children: \"Component Stack:\" }),\n /* @__PURE__ */ e(\"div\", { children: this.state.errorInfo.componentStack })\n ] })\n ] })\n ] }),\n t && /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: this.handleRetry,\n className: N(\n \"inline-flex items-center gap-2 px-4 py-2 rounded-md font-medium transition-colors\",\n \"focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-transparent\",\n u.button\n ),\n \"aria-label\": \"Try again\",\n children: \"Try Again\"\n }\n )\n ]\n }\n );\n }\n return this.props.children;\n }\n}\nfunction ue({ elementId: r, type: a, message: n }) {\n return S(() => {\n const o = document.getElementById(r);\n if (o) {\n if (!n && a === \"error\") {\n o.removeAttribute(\"data-error\");\n return;\n }\n if (!n && a === \"success\") {\n o.removeAttribute(\"data-success\");\n return;\n }\n return o.setAttribute(\"aria-describedby\", `${r}-${a}-message`), o.setAttribute(\"aria-invalid\", a === \"error\" ? \"true\" : \"false\"), a === \"error\" && o.setAttribute(\"data-error\", \"true\"), a === \"success\" && o.setAttribute(\"data-success\", \"true\"), () => {\n o.removeAttribute(\"aria-describedby\"), o.removeAttribute(\"aria-invalid\"), o.removeAttribute(\"data-error\"), o.removeAttribute(\"data-success\");\n };\n }\n }, [r, a, n]), n ? /* @__PURE__ */ w(\n \"small\",\n {\n className: N(\n \"mt-0.5 text-sm inline-flex items-center gap-1 w-full justify-start\",\n a === \"error\" && \"text-destructive\",\n a === \"success\" && \"text-success\"\n ),\n role: \"status\",\n children: [\n a === \"error\" ? /* @__PURE__ */ e(de, {}) : /* @__PURE__ */ e(Be, {}),\n /* @__PURE__ */ e(\"span\", { id: `${r}-${a}-message`, children: n })\n ]\n }\n ) : null;\n}\nconst kr = {\n base: \"\",\n default: \"ring ring-transparent focus:ring-primary-foreground not-disabled:data-error:ring-destructive not-disabled:data-success:ring-success\",\n underline: \"border-b border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\",\n outline: \"border border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\"\n}, Cr = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"px-3 rounded-full\"\n}, Ce = {\n variant: \"default\",\n rounded: \"none\"\n};\nfunction Cn({\n variant: r = Ce.variant,\n rounded: a,\n displayOnlyMode: n = !1,\n errorMessage: o,\n successMessage: t,\n type: i = \"text\",\n className: s,\n ...l\n}) {\n const c = G(), [f, u] = F(!1);\n let d = a;\n r === \"outline\" && !a && (d = \"md\"), d = d || Ce.rounded;\n const x = N(\n \"appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted/70 hide-number-input-arrows transition-all\",\n \"file:mr-2 file:border-0 file:rounded-md file:px-1.5 file:py-1 file:bg-primary hover:file:bg-primary/85 file:text-sm file:font-medium file:text-foreground file:transition-colors\",\n !n && kr[r],\n !n && Cr[d],\n i === \"password\" && \"pr-10\",\n !n && \"px-2 py-1\",\n n && \"pointer-events-none\",\n s\n );\n return /* @__PURE__ */ w(\"div\", { className: N(n && \"cursor-text\"), style: { height: l.height, width: l.width }, children: [\n /* @__PURE__ */ w(\"div\", { className: N(i === \"password\" && \"relative\"), children: [\n /* @__PURE__ */ e(\n \"input\",\n {\n ...l,\n id: c,\n type: i === \"password\" && f ? \"text\" : i,\n \"aria-disabled\": l.disabled,\n readOnly: n,\n \"aria-readonly\": n || l[\"aria-readonly\"],\n \"data-error\": o ? !0 : void 0,\n \"data-success\": t ? !0 : void 0,\n className: x\n }\n ),\n i === \"password\" && /* @__PURE__ */ e(\n \"button\",\n {\n onClick: () => u(!f),\n className: \"absolute inset-y-0 right-0 px-2 hover:cursor-pointer\",\n \"aria-label\": \"Toggle password visibility\",\n \"data-state\": f ? \"visible\" : \"hidden\",\n children: f ? /* @__PURE__ */ e(Je, { size: 20 }) : /* @__PURE__ */ e(Oe, { size: 20 })\n }\n )\n ] }),\n !n && /* @__PURE__ */ e(ue, { elementId: c, type: \"error\", message: o }),\n !n && /* @__PURE__ */ e(ue, { elementId: c, type: \"success\", message: t })\n ] });\n}\nfunction Dn({\n display: r = \"inline\",\n width: a = \"fit-content\",\n className: n = \"\",\n required: o,\n helpMessage: t,\n suffix: i,\n htmlFor: s,\n children: l,\n description: c,\n ...f\n}) {\n var b, p;\n const u = G(), d = (((b = t == null ? void 0 : t.trim()) == null ? void 0 : b.length) || 0) > 0, h = (((p = c == null ? void 0 : c.trim()) == null ? void 0 : p.length) || 0) > 0, m = d ? `${s ?? u}-help` : void 0, x = h ? `${s ?? u}-description` : void 0;\n return /* @__PURE__ */ w(\n \"div\",\n {\n style: { display: r === \"inline\" ? \"inline-block\" : \"block\", width: a },\n className: N(\"mb-0.5\", n),\n children: [\n /* @__PURE__ */ w(\"div\", { className: \"relative flex\", children: [\n /* @__PURE__ */ w(\"label\", { className: \"font-medium\", htmlFor: s, ...f, children: [\n l,\n o && /* @__PURE__ */ e(\"span\", { className: \"text-red-500 font-medium ml-1\", \"aria-label\": \"required\", children: \"*\" })\n ] }),\n d && /* @__PURE__ */ e(\n \"span\",\n {\n className: \"text-gray-500 ml-1 size-fit -translate-y-1/3\",\n \"aria-describedby\": m,\n \"aria-label\": \"Help information\",\n title: t,\n children: /* @__PURE__ */ e(et, {})\n }\n ),\n d && /* @__PURE__ */ e(\"div\", { id: m, className: \"sr-only\", children: t }),\n i && /* @__PURE__ */ e(\"span\", { className: \"ml-1\", children: i })\n ] }),\n h && /* @__PURE__ */ e(\"small\", { id: x, className: \"block opacity-80 mt-0.5\", role: \"note\", children: c })\n ]\n }\n );\n}\nfunction Dr(r) {\n const [a, n] = F(!1), [o, t] = F(!1);\n return S(() => {\n r ? (t(!0), setTimeout(() => n(!0), 10)) : (n(!1), setTimeout(() => t(!1), 150));\n }, [r]), { show: a, shouldRender: o };\n}\nfunction Fr(r, a) {\n S(() => {\n const n = (o) => {\n o.key === \"Escape\" && r && a();\n };\n return document.addEventListener(\"keydown\", n), r && (document.body.style.overflow = \"hidden\"), () => {\n document.removeEventListener(\"keydown\", n), document.body.style.overflow = \"auto\";\n };\n }, [r, a]);\n}\nfunction Ar(r, a) {\n const n = L(null), o = A(() => {\n const t = document.getElementById(r);\n if (!t) return;\n const i = t.querySelectorAll('[data-modal-action=\"true\"]');\n if (i.length > 0) {\n i[0].focus();\n return;\n }\n const s = t.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (s.length > 0) {\n const l = Array.from(s).filter((c) => !(c instanceof HTMLButtonElement && c.getAttribute(\"data-modal-close-button\") === \"true\"));\n if (l.length > 0) {\n l[0].focus();\n return;\n }\n s[0].focus();\n return;\n }\n t.focus();\n }, [r]);\n S(() => (a && (n.current = document.activeElement, o()), () => {\n document.body.style.overflow = \"auto\", n.current instanceof HTMLElement && n.current.focus();\n }), [a, o]);\n}\nfunction Fn({\n id: r,\n isOpen: a,\n onClose: n,\n title: o,\n children: t,\n contentOnly: i = !1,\n className: s,\n overlayClassName: l,\n hideCloseButton: c = !1,\n actions: f = [],\n disableCloseOnOverlayClick: u = !1,\n ariaLabelledBy: d,\n ariaDescribedBy: h\n}) {\n const m = G(), x = r || `modal-${m}`, b = r ? `${r}-title` : `modal-title-${m}`, { show: p, shouldRender: g } = Dr(a);\n if (Ar(x, g), Fr(g, n), !g) return null;\n const v = () => o ? P.isValidElement(o) ? /* @__PURE__ */ e(\"div\", { className: \"mb-4\", children: o }) : /* @__PURE__ */ e(\"h2\", { className: \"mb-4 text-xl font-semibold\", id: b, children: o }) : null, E = () => f.length === 0 ? null : /* @__PURE__ */ e(\"div\", { className: \"mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3\", children: f.map((y, k) => {\n const { label: z, ...C } = y;\n return /* @__PURE__ */ e(zt, { ...C, \"data-modal-action\": \"true\", children: z }, k);\n }) });\n return /* @__PURE__ */ e(J, { children: ie(\n /* @__PURE__ */ e(\n \"div\",\n {\n \"aria-labelledby\": d ?? o ? b : void 0,\n \"aria-describedby\": h,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-y-auto\",\n children: /* @__PURE__ */ w(\"div\", { className: \"flex min-h-screen items-center justify-center p-4\", children: [\n /* @__PURE__ */ e(\n \"div\",\n {\n className: R(\"fixed inset-0 bg-black/20 transition-all\", l),\n onClick: () => {\n u || n();\n }\n }\n ),\n i && /* @__PURE__ */ e(\"div\", { className: R(\"relative w-fit\", s), children: t }),\n !i && /* @__PURE__ */ w(\n \"div\",\n {\n id: x,\n tabIndex: -1,\n className: R(\n \"relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in duration-75\",\n p ? \"opacity-100 scale-100\" : \"opacity-0 scale-90\",\n s\n ),\n children: [\n !c && /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: n,\n \"data-modal-close-button\": \"true\",\n className: \"rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ e(oe, { size: 18 })\n }\n ),\n v(),\n t,\n E()\n ]\n }\n )\n ] })\n }\n ),\n document.body\n ) });\n}\nconst Sr = {\n link: \"text-primary hover:text-primary-foreground hover:bg-primary/10 aria-current:text-primary-foreground aria-current:bg-primary\",\n outline: \"border border-primary text-primary hover:bg-primary hover:text-primary-foreground aria-current:bg-primary aria-current:text-primary-foreground aria-current:border-primary\",\n filled: \"bg-secondary text-secondary-foreground hover:bg-primary hover:text-primary-foreground aria-current:bg-primary aria-current:text-primary-foreground\"\n}, zr = {\n sm: \"px-2 py-1 text-sm min-w-[32px] min-h-8\",\n md: \"px-2 py-1 text-base min-w-[40px] min-h-10\"\n};\nfunction An({\n page: r,\n pageCount: a = 5,\n maxVisiblePages: n = 5,\n showFirstLast: o = !0,\n onPageChange: t,\n size: i = \"md\",\n variant: s = \"link\",\n className: l,\n ref: c,\n buttonsClassName: f,\n ...u\n}) {\n const d = a === 1 / 0, m = A(() => {\n if (d) return [];\n const y = a, k = Math.min(n, y);\n if (y <= k)\n return Array.from({ length: y }, (T, M) => M + 1);\n const z = Math.floor(k / 2);\n let C = Math.max(1, r - z), D = Math.min(y, C + k - 1);\n return D - C + 1 < k && (C = Math.max(1, D - k + 1), D = Math.min(y, C + k - 1)), Array.from({ length: D - C + 1 }, (T, M) => C + M);\n }, [d, n, r, a])(), x = r > 1, b = d || r < a, p = o && !d, g = o && !d, v = (y) => {\n y >= 1 && (d || y <= a) && t(y);\n }, E = A(() => {\n const y = R(\n \"flex items-center justify-center min-w-fit\",\n \"disabled:opacity-50 disabled:cursor-not-allowed\",\n zr[i],\n \"rounded-md\"\n );\n return R(y, Sr[s], f);\n }, [s, i, f]);\n return /* @__PURE__ */ w(\n \"nav\",\n {\n ref: c,\n className: R(\"flex items-center justify-center gap-1\", l),\n role: \"navigation\",\n \"aria-label\": \"Pagination\",\n \"data-page\": r,\n \"data-page-count\": d ? \"infinite\" : a,\n ...u,\n children: [\n p && /* @__PURE__ */ w(\n \"button\",\n {\n onClick: () => v(1),\n className: E(),\n disabled: r === 1,\n \"aria-label\": \"Go to first page\",\n children: [\n /* @__PURE__ */ e(tt, { size: i === \"sm\" ? 12 : 15 }),\n /* @__PURE__ */ e(\"span\", { className: \"ml-1\", children: \"First\" })\n ]\n }\n ),\n /* @__PURE__ */ w(\n \"button\",\n {\n onClick: () => v(r - 1),\n className: E(),\n disabled: !x,\n \"aria-label\": \"Go to previous page\",\n children: [\n /* @__PURE__ */ e(Te, { size: i === \"sm\" ? 12 : 15 }),\n /* @__PURE__ */ e(\"span\", { className: \"ml-1\", children: \"Previous\" })\n ]\n }\n ),\n !d && m.map((y) => /* @__PURE__ */ e(\n \"button\",\n {\n onClick: () => v(y),\n className: R(E(), \"aspect-square\"),\n \"aria-label\": `Go to page ${y}`,\n \"aria-current\": y === r ? !0 : void 0,\n children: y\n },\n y\n )),\n /* @__PURE__ */ w(\n \"button\",\n {\n onClick: () => v(r + 1),\n className: E(),\n disabled: !b,\n \"aria-label\": \"Go to next page\",\n children: [\n /* @__PURE__ */ e(\"span\", { className: \"mr-1\", children: \"Next\" }),\n /* @__PURE__ */ e(ye, { size: i === \"sm\" ? 12 : 15 })\n ]\n }\n ),\n g && /* @__PURE__ */ w(\n \"button\",\n {\n onClick: () => v(a),\n className: E(),\n disabled: r === a,\n \"aria-label\": \"Go to last page\",\n children: [\n /* @__PURE__ */ e(\"span\", { className: \"mr-1\", children: \"Last\" }),\n /* @__PURE__ */ e(rt, { size: i === \"sm\" ? 12 : 15 })\n ]\n }\n )\n ]\n }\n );\n}\nfunction $r(r) {\n const [a, n] = F(!1), [o, t] = F(!1);\n return S(() => {\n r ? (t(!0), setTimeout(() => n(!0), 10)) : (n(!1), setTimeout(() => t(!1), 300));\n }, [r]), { show: a, shouldRender: o };\n}\nfunction Ir(r, a) {\n S(() => {\n const n = (o) => {\n o.key === \"Escape\" && r && a();\n };\n return document.addEventListener(\"keydown\", n), r && (document.body.style.overflow = \"hidden\"), () => {\n document.removeEventListener(\"keydown\", n), document.body.style.overflow = \"auto\";\n };\n }, [r, a]);\n}\nfunction Br(r, a) {\n const n = L(null), o = A(() => {\n const t = document.getElementById(r);\n if (!t) return;\n const i = t.querySelectorAll('[data-panel-action=\"true\"]');\n if (i.length > 0) {\n i[0].focus();\n return;\n }\n const s = t.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n if (s.length > 0) {\n const l = Array.from(s).filter((c) => !(c instanceof HTMLButtonElement && c.getAttribute(\"data-panel-close-button\") === \"true\"));\n if (l.length > 0) {\n l[0].focus();\n return;\n }\n s[0].focus();\n return;\n }\n t.focus();\n }, [r]);\n S(() => (a && (n.current = document.activeElement, o()), () => {\n document.body.style.overflow = \"auto\", n.current instanceof HTMLElement && n.current.focus();\n }), [a, o]);\n}\nconst Tr = {\n size: {\n sm: \"max-w-sm\",\n md: \"max-w-md\",\n lg: \"max-w-lg\",\n xl: \"max-w-xl\",\n \"2xl\": \"max-w-2xl\",\n full: \"w-full\",\n screen: \"w-screen\"\n }\n};\nfunction Sn({\n ref: r,\n id: a,\n isOpen: n,\n onClose: o,\n title: t,\n children: i,\n footer: s,\n size: l = \"md\",\n className: c,\n overlayClassName: f,\n hideCloseButton: u = !1,\n disableCloseOnOverlayClick: d = !1,\n ariaLabelledBy: h,\n ariaDescribedBy: m\n}) {\n const x = G(), b = a || `panel-${x}`, p = a ? `${a}-title` : `panel-title-${x}`, { show: g, shouldRender: v } = $r(n);\n if (Br(b, v), Ir(v, o), !v) return null;\n const E = () => t ? P.isValidElement(t) ? /* @__PURE__ */ e(\"div\", { children: t }) : /* @__PURE__ */ e(\"h2\", { className: \"text-2xl font-semibold\", id: p, children: t }) : null, y = () => {\n if (!s) return null;\n if (P.isValidElement(s)) {\n const k = s, z = k.props.className || \"\";\n return P.cloneElement(k, { className: R(\"px-6 py-4\", z) });\n }\n return /* @__PURE__ */ e(\"div\", { className: \"px-6 py-4\", children: s });\n };\n return /* @__PURE__ */ e(J, { children: ie(\n /* @__PURE__ */ w(\n \"div\",\n {\n \"aria-labelledby\": h ?? t ? p : void 0,\n \"aria-describedby\": m,\n role: \"dialog\",\n \"aria-modal\": \"true\",\n className: \"fixed inset-0 z-[100] overflow-hidden\",\n \"data-panel-open\": n,\n children: [\n /* @__PURE__ */ e(\n \"div\",\n {\n className: R(\n \"fixed inset-0 bg-black/40 transition-opacity duration-300\",\n g ? \"opacity-100\" : \"opacity-0\",\n f\n ),\n onClick: () => {\n d || o();\n }\n }\n ),\n /* @__PURE__ */ e(\"div\", { className: \"fixed inset-y-0 right-0 flex max-w-full\", children: /* @__PURE__ */ e(\n \"div\",\n {\n id: b,\n ref: r,\n tabIndex: -1,\n className: R(\n \"relative h-full transform shadow-xl bg-popover text-popover-foreground transition-transform duration-300 ease-in-out\",\n l !== \"screen\" && \"border-l border-border\",\n Tr.size[l],\n g ? \"translate-x-0\" : \"translate-x-full\",\n c\n ),\n \"data-panel-size\": l,\n children: /* @__PURE__ */ w(\"div\", { className: \"flex h-full flex-col\", children: [\n t && /* @__PURE__ */ e(\"div\", { className: \"px-6 pt-6\", children: E() }),\n !u && /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: o,\n \"data-panel-close-button\": \"true\",\n \"aria-label\": \"Close panel\",\n className: \"rounded-md p-0.5 top-3 right-3 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0\",\n children: /* @__PURE__ */ e(oe, { size: 18 })\n }\n ),\n /* @__PURE__ */ e(\"div\", { className: R(\"flex-1 overflow-y-auto px-6 pb-6\", t ? \"pt-6\" : \"pt-10\"), children: i }),\n y()\n ] })\n }\n ) })\n ]\n }\n ),\n document.body\n ) });\n}\nfunction Lr({ itemId: r, checked: a, onChange: n, name: o, disabled: t = !1, className: i = \"\" }) {\n const s = \"relative inline-flex items-center justify-center rounded-full\", l = () => {\n t || n();\n }, c = N(\n s,\n !a && \"hover:border-current/60\",\n !t && \"border-current cursor-pointer\",\n t && \"border-muted/60 cursor-not-allowed\",\n i\n );\n return /* @__PURE__ */ e(\n \"div\",\n {\n id: r,\n role: \"radio\",\n tabIndex: -1,\n \"aria-checked\": a,\n \"aria-disabled\": t,\n \"aria-description\": `Radio button for ${o}`,\n \"aria-labelledby\": `${r}-label`,\n onClick: l,\n className: c,\n style: {\n width: \"1em\",\n height: \"1em\",\n padding: \"0.1em\",\n borderWidth: \"0.06em\"\n },\n children: a && /* @__PURE__ */ e(\n \"div\",\n {\n className: N(\"size-full aspect-square rounded-full\", t && \"bg-muted/60\", !t && \"bg-current\")\n }\n )\n }\n );\n}\nfunction ve({\n value: r,\n children: a,\n className: n = \"\",\n isSelected: o = !1,\n onChange: t,\n disabled: i = !1,\n hideInput: s = !1,\n description: l,\n name: c\n}) {\n const u = `radio-${G()}-${r}`, d = () => {\n i || t == null || t(r);\n };\n return /* @__PURE__ */ w(\n \"div\",\n {\n title: l,\n className: N(\n \"relative flex items-center\",\n n,\n // Uses text color for borders\n s && `p-2 border-2 focus-within:border-dashed focus-within:${i ? \"border-current/50\" : \"border-current/80\"}`,\n s && !o && `border-transparent ${i ? \"\" : \"not-focus-within:hover:border-border/60\"}`,\n s && o && \"border-border\",\n i && \"opacity-60 cursor-not-allowed\"\n ),\n style: {\n gap: \"0.5em\"\n },\n children: [\n !s && /* @__PURE__ */ e(\n Lr,\n {\n itemId: u,\n name: c || \"\",\n checked: o,\n onChange: d,\n disabled: i,\n className: N(s && \"\")\n }\n ),\n /* @__PURE__ */ e(\n \"div\",\n {\n id: s ? u : void 0,\n tabIndex: s ? -1 : void 0,\n role: s ? \"radio\" : void 0,\n onClick: s ? d : void 0,\n \"aria-checked\": s ? o ? \"true\" : \"false\" : void 0,\n \"aria-disabled\": s ? i : void 0,\n \"aria-description\": s ? l || `Radio button for ${c}` : void 0,\n \"aria-labelledby\": s ? `${u}-label` : void 0,\n className: N(s && \"size-full\", typeof a == \"object\" && \"grow focus:outline-none\"),\n children: /* @__PURE__ */ e(\n \"label\",\n {\n id: `${u}-label`,\n onClick: s ? void 0 : d,\n className: N(i && \"cursor-not-allowed\", !i && \"cursor-pointer\"),\n children: a\n }\n )\n }\n )\n ]\n }\n );\n}\nfunction Mr(r, a) {\n const [n, o] = F(a), [t, i] = F(-1), [s, l] = F(!1), c = A((m, x) => {\n var g;\n const b = m[x];\n b.hasAttribute(\"disabled\") || b.getAttribute(\"aria-disabled\") === \"true\" || ((g = m[x]) == null || g.click(), i(x));\n }, []), f = A(\n (m, x) => {\n var p;\n if (m.preventDefault(), s || !x.length) return;\n const b = a !== -1 ? a : 0;\n (p = x[b]) == null || p.focus(), o(b), a !== -1 && c(x, b);\n },\n [a, s, c]\n ), u = A(\n (m) => {\n var g;\n if (!m.shiftKey)\n return;\n m.preventDefault();\n const x = Array.from(\n document.querySelectorAll(\n 'a, button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])'\n )\n ).filter((v) => !v.hasAttribute(\"disabled\") && v.tabIndex >= 0), b = x.findIndex((v) => v.id === r), p = b > 0 ? b - 1 : x.length - 1;\n (g = x[p]) == null || g.focus();\n },\n [r]\n ), d = A(\n (m, x) => {\n var E;\n if (!x.length) return;\n const b = m.target;\n if (!x.some((y) => y.id === b.id)) return;\n const g = n !== -1 ? n : 0;\n let v = g;\n switch (m.key) {\n case \"ArrowUp\":\n case \"ArrowLeft\":\n m.preventDefault(), v = g > 0 ? g - 1 : x.length - 1;\n break;\n case \"ArrowDown\":\n case \"ArrowRight\":\n m.preventDefault(), v = (g + 1) % x.length;\n break;\n // Select the option when the space key is pressed\n case \" \":\n m.preventDefault(), c(x, g);\n return;\n case \"Tab\":\n u(m);\n return;\n default:\n return;\n }\n (E = x[v]) == null || E.focus(), o(v), t !== -1 && c(x, v);\n },\n [n, t, u, c]\n ), h = A(() => {\n const m = document.querySelector(`[id=\"${r}\"][role=\"radiogroup\"]`);\n return m ? Array.from(m.querySelectorAll('[role=\"radio\"]')) : [];\n }, [r]);\n S(() => {\n const m = document.querySelector(`[id=\"${r}\"][role=\"radiogroup\"]`);\n if (!m) return;\n const x = h(), b = (E) => f(E, x), p = (E) => d(E, x), g = () => l(!0), v = () => l(!1);\n return document.addEventListener(\"keydown\", p), m.addEventListener(\"focus\", b), m.addEventListener(\"mousedown\", g), document.addEventListener(\"mouseup\", v), () => {\n document.removeEventListener(\"keydown\", p), m.removeEventListener(\"focus\", b), m.removeEventListener(\"mousedown\", g), document.removeEventListener(\"mouseup\", v);\n };\n }, [r, h, f, d]);\n}\nfunction zn({\n options: r = [],\n value: a,\n onChange: n,\n id: o,\n children: t,\n className: i = \"\",\n childrenClassName: s = \"\",\n hideInputs: l = !1\n}) {\n const c = G(), f = o || `radio-group-${c}`;\n Mr(\n f,\n r.findIndex((d) => d === a)\n );\n const u = H(() => r.reduce((d, h) => (typeof h == \"string\" ? d.some((m) => m.value === h) || d.push({ label: h, value: h }) : d.push(h), d), []), [r]);\n return /* @__PURE__ */ w(\"div\", { id: f, role: \"radiogroup\", tabIndex: 0, className: N(i, \"focus:outline-none\"), children: [\n u.length > 0 && u.map((d, h) => /* @__PURE__ */ e(\n ve,\n {\n value: d.value,\n isSelected: a === d.value,\n onChange: n,\n name: f,\n disabled: d.disabled,\n description: d.description,\n hideInput: l,\n className: s,\n children: d.label\n },\n `${d.value}-${h}`\n )),\n u.length === 0 && t && P.Children.map(t, (d) => P.isValidElement(d) && d.type === ve ? /* @__PURE__ */ e(\n ve,\n {\n ...d.props,\n className: N(s, d.props.className),\n hideInput: d.props.hideInput || l,\n isSelected: a === d.props.value,\n onChange: n,\n name: f,\n children: d.props.children\n }\n ) : null)\n ] });\n}\nfunction Rr(r) {\n const a = L(null), n = L(null), o = L(null), [t, i] = F(!1), [s, l] = F(!1), [c, f] = F({\n vertical: !1,\n horizontal: !1\n }), u = L(null), d = L(null), h = A(() => {\n const b = a.current;\n if (!b) return;\n const p = b.scrollHeight > b.clientHeight, g = b.scrollWidth > b.clientWidth;\n f({\n vertical: p,\n horizontal: g\n });\n }, []), m = A(() => {\n const b = a.current, p = n.current, g = o.current;\n if (b) {\n if (p && c.vertical) {\n const E = (c.horizontal ? b.clientHeight - r : b.clientHeight) / b.scrollHeight, y = Math.max(E * 100, 10), k = b.scrollHeight - b.clientHeight, z = k > 0 ? b.scrollTop / k : 0, C = 100 - y, D = z * C;\n p.style.height = `${y}%`, p.style.top = `${D}%`, p.style.transform = \"none\";\n }\n if (g && c.horizontal) {\n const E = (c.vertical ? b.clientWidth - r : b.clientWidth) / b.scrollWidth, y = Math.max(E * 100, 10), k = b.scrollWidth - b.clientWidth, z = k > 0 ? b.scrollLeft / k : 0, C = 100 - y, D = z * C;\n g.style.width = `${y}%`, g.style.left = `${D}%`, g.style.transform = \"none\";\n }\n }\n }, [c, r]), x = A(() => {\n u.current && clearTimeout(u.current), d.current && clearTimeout(d.current), i(!0), l(!1), m(), u.current = setTimeout(() => {\n l(!0), d.current = setTimeout(() => {\n i(!1), l(!1);\n }, 300);\n }, 1e3);\n }, [m]);\n return S(() => {\n const b = a.current;\n if (!b) return;\n h();\n const p = new ResizeObserver(h);\n p.observe(b);\n const g = new MutationObserver(h);\n return g.observe(b, {\n childList: !0,\n subtree: !0,\n attributes: !0\n }), () => {\n p.disconnect(), g.disconnect();\n };\n }, [h]), S(() => {\n m();\n }, [c, m]), S(() => () => {\n u.current && clearTimeout(u.current), d.current && clearTimeout(d.current);\n }, []), {\n viewportRef: a,\n verticalThumbRef: n,\n horizontalThumbRef: o,\n isScrolling: t,\n isFadingOut: s,\n scrollbarVisible: c,\n handleScroll: x\n };\n}\nfunction $n({\n className: r,\n thumbClassName: a,\n viewportClassName: n,\n scrollbarClassName: o,\n scrollbarThickness: t = 10,\n children: i,\n id: s,\n ref: l,\n ...c\n}) {\n const { viewportRef: f, verticalThumbRef: u, horizontalThumbRef: d, isScrolling: h, isFadingOut: m, scrollbarVisible: x, handleScroll: b } = Rr(t), p = R(\n \"relative flex-1 rounded-full bg-slate-400/60 hover:bg-slate-400/80 active:bg-slate-400\",\n a\n );\n return /* @__PURE__ */ w(\"div\", { ref: l, id: s, className: R(\"relative overflow-hidden\", r), \"data-scroll-area-root\": \"\", ...c, children: [\n /* @__PURE__ */ e(\n \"div\",\n {\n ref: f,\n className: R(\n \"h-full w-full overflow-auto rounded-[inherit] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden\",\n n\n ),\n onScroll: b,\n \"data-scroll-area-viewport\": \"\",\n children: i\n }\n ),\n x.vertical && (h || m) && /* @__PURE__ */ e(\n \"div\",\n {\n className: R(\n \"touch-none select-none transition-all duration-300\",\n \"p-[1px]\",\n \"absolute right-0 top-0\",\n m ? \"opacity-0\" : \"opacity-100\",\n o\n ),\n \"data-scroll-area-scrollbar\": \"vertical\",\n \"data-state\": h ? \"visible\" : \"hidden\",\n style: {\n width: `${t}px`,\n height: x.horizontal ? `calc(100% - ${t}px)` : \"100%\"\n },\n children: /* @__PURE__ */ e(\n \"div\",\n {\n ref: u,\n className: R(\"absolute rounded-full\", p),\n \"data-scroll-area-thumb\": \"\",\n style: { height: \"20%\", top: \"0%\", width: \"100%\" }\n }\n )\n }\n ),\n x.horizontal && (h || m) && /* @__PURE__ */ e(\n \"div\",\n {\n className: R(\n \"touch-none select-none transition-all duration-300\",\n \"p-[1px]\",\n \"absolute bottom-0 left-0\",\n m ? \"opacity-0\" : \"opacity-100\",\n o\n ),\n \"data-scroll-area-scrollbar\": \"horizontal\",\n \"data-state\": h ? \"visible\" : \"hidden\",\n style: {\n height: `${t}px`,\n width: x.vertical ? `calc(100% - ${t}px)` : \"100%\"\n },\n children: /* @__PURE__ */ e(\n \"div\",\n {\n ref: d,\n className: R(\"absolute rounded-full\", p),\n \"data-scroll-area-thumb\": \"\",\n style: { width: \"20%\", left: \"0%\", height: \"100%\" }\n }\n )\n }\n ),\n x.vertical && x.horizontal && /* @__PURE__ */ e(\n \"div\",\n {\n className: R(\"bg-transparent\", \"absolute bottom-0 right-0\"),\n \"data-scroll-area-corner\": \"\",\n style: {\n height: `${t}px`,\n width: `${t}px`\n }\n }\n )\n ] });\n}\nfunction Wr(r) {\n const [a, n] = F(!1), [o, t] = F(!1);\n return S(() => {\n r ? (t(!0), setTimeout(() => n(!0), 10)) : (n(!1), setTimeout(() => t(!1), 150));\n }, [r]), { show: a, shouldRender: o };\n}\nfunction Gr({\n isOpen: r,\n setIsOpen: a,\n filteredOptions: n,\n highlightedIndex: o,\n setHighlightedIndex: t,\n onSelect: i,\n triggerRef: s\n}) {\n return { handleKeyDown: A(\n (c) => {\n var f;\n switch (c.key) {\n case \"ArrowDown\":\n if (c.preventDefault(), !r)\n a(!0);\n else {\n const u = o < n.length - 1 ? o + 1 : 0;\n let d = u;\n for (let h = 0; h < n.length; h++) {\n const m = (u + h) % n.length;\n if (!n[m].disabled) {\n d = m;\n break;\n }\n }\n t(d);\n }\n break;\n case \"ArrowUp\":\n if (c.preventDefault(), !r)\n a(!0);\n else {\n const u = o > 0 ? o - 1 : n.length - 1;\n let d = u;\n for (let h = 0; h < n.length; h++) {\n const m = (u - h + n.length) % n.length;\n if (!n[m].disabled) {\n d = m;\n break;\n }\n }\n t(d);\n }\n break;\n case \"Enter\":\n case \" \":\n if (c.preventDefault(), !r)\n a(!0);\n else if (o >= 0 && o < n.length) {\n const u = n[o];\n u.disabled || i(u);\n }\n break;\n case \"Escape\":\n c.preventDefault(), r && (a(!1), (f = s.current) == null || f.focus());\n break;\n case \"Tab\":\n r && a(!1);\n break;\n }\n },\n [r, a, n, o, t, i, s]\n ) };\n}\nfunction jr({\n isOpen: r,\n filteredOptions: a,\n selectedOption: n,\n shouldRender: o,\n optionsContainerRef: t\n}) {\n const [i, s] = F(-1), l = H(() => n ? a.findIndex((c) => c.value === n.value) : -1, [a, n]);\n return S(() => {\n r && a.length > 0 ? s(n && l >= 0 ? l : 0) : s(-1);\n }, [a, r, n, l]), S(() => {\n if (i >= 0 && t.current && o) {\n const c = () => {\n const f = t.current, u = f == null ? void 0 : f.querySelector(`[data-option-index=\"${i}\"]`);\n if (u) {\n const d = r && n && i === l ? \"auto\" : \"smooth\";\n u.scrollIntoView({\n behavior: d,\n block: \"nearest\"\n });\n }\n };\n r && o && n ? setTimeout(c, 10) : c();\n }\n }, [i, o, r, n, a, t, l]), { highlightedIndex: i, setHighlightedIndex: s };\n}\nconst De = {\n sm: {\n trigger: \"px-2 py-1 text-sm\",\n options: \"px-2 py-2 text-xs\"\n },\n md: {\n trigger: \"px-3 py-2 text-base\",\n options: \"px-3 py-2.5 text-sm\"\n },\n lg: {\n trigger: \"px-4 py-3 text-lg\",\n options: \"px-4 py-3 text-base\"\n }\n};\nfunction In({\n options: r,\n value: a,\n placeholder: n = \"Select an option...\",\n searchable: o = !1,\n disabled: t = !1,\n clearable: i = !1,\n size: s = \"md\",\n className: l,\n triggerClassName: c,\n dropdownClassName: f,\n id: u,\n ref: d,\n onChange: h,\n onSearch: m,\n searchPlaceholder: x = \"Search options...\"\n}) {\n const b = G(), g = `${u ?? b}-listbox`, v = (I) => `${g}-option-${I}`, [E, y] = F(!1), [k, z] = F(\"\"), C = L(null), D = L(null), T = L(null), M = L(null), { show: _, shouldRender: V } = Wr(E), B = H(() => !o || !k ? r : r.filter(\n (I) => {\n var j;\n return I.text.toLowerCase().includes(k.toLowerCase()) || ((j = I.description) == null ? void 0 : j.toLowerCase().includes(k.toLowerCase()));\n }\n ), [r, o, k]), $ = H(() => r.find((I) => I.value === a), [r, a]), { highlightedIndex: W, setHighlightedIndex: Z } = jr({\n isOpen: E,\n filteredOptions: B,\n selectedOption: $,\n shouldRender: V,\n optionsContainerRef: M\n }), Q = W >= 0 ? v(W) : void 0;\n S(() => {\n E && V && o && D.current && D.current.focus();\n }, [E, o, V]);\n const Y = A(\n (I) => {\n var j;\n I.disabled || (h == null || h(I.value), y(!1), z(\"\"), (j = C.current) == null || j.focus());\n },\n [h]\n ), { handleKeyDown: q } = Gr({\n isOpen: E,\n setIsOpen: y,\n filteredOptions: B,\n highlightedIndex: W,\n setHighlightedIndex: Z,\n onSelect: Y,\n triggerRef: C\n });\n S(() => {\n if (!E)\n return;\n const I = (j) => {\n var re;\n T.current && !T.current.contains(j.target) && !((re = C.current) != null && re.contains(j.target)) && (y(!1), z(\"\"));\n };\n return document.addEventListener(\"mousedown\", I), () => document.removeEventListener(\"mousedown\", I);\n }, [E]);\n const O = () => {\n t || (y(!E), E || (z(\"\"), Z(-1)));\n }, fe = (I) => {\n I.disabled || (h == null || h(I.value), y(!1), z(\"\"));\n }, me = (I) => {\n const j = I.target.value;\n z(j), m == null || m(j), Z(-1);\n }, he = (I) => {\n I.preventDefault(), I.stopPropagation(), h == null || h(\"\");\n };\n return /* @__PURE__ */ w(\n \"div\",\n {\n className: N(\"relative\", l),\n id: u,\n ref: d,\n \"data-select\": \"true\",\n \"data-value\": a,\n \"data-searchable\": o,\n \"data-disabled\": t,\n \"data-clearable\": i,\n children: [\n /* @__PURE__ */ w(\"div\", { className: \"relative\", children: [\n /* @__PURE__ */ w(\n \"button\",\n {\n ref: C,\n type: \"button\",\n className: N(\n \"flex items-center justify-between w-full text-left bg-inherit border border-border rounded-md transition-colors\",\n \"hover:border-primary focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary\",\n t && \"opacity-50 cursor-not-allowed hover:border-border\",\n E && \"border-primary ring-1 ring-primary\",\n De[s].trigger,\n c\n ),\n onClick: O,\n onKeyDown: q,\n disabled: t,\n \"aria-disabled\": t,\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": E,\n \"aria-controls\": E ? g : void 0,\n \"aria-activedescendant\": E && !o ? Q : void 0,\n \"aria-label\": $ ? $.text : n,\n \"data-select-trigger\": \"true\",\n children: [\n /* @__PURE__ */ e(\"span\", { className: N(\"block truncate\", !$ && \"opacity-70\"), children: $ ? $.text : n }),\n /* @__PURE__ */ e(\"div\", { className: \"flex items-center ml-2\", children: /* @__PURE__ */ e(Ie, { size: 16, className: N(\"transition-transform duration-200\", E && \"rotate-180\") }) })\n ]\n }\n ),\n i && $ && /* @__PURE__ */ e(\n \"button\",\n {\n type: \"button\",\n onClick: he,\n className: \"absolute right-8 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-accent/20 transition-colors group z-10\",\n \"aria-label\": \"Clear selection\",\n \"data-select-clear\": \"true\",\n children: /* @__PURE__ */ e(oe, { size: 14, className: \"opacity-70 group-hover:opacity-100 transition-opacity\" })\n }\n )\n ] }),\n V && /* @__PURE__ */ w(\n \"div\",\n {\n ref: T,\n className: N(\n \"absolute z-50 w-full mt-1 bg-popover text-popover-foreground border border-border rounded-md shadow-lg transition-all duration-150\",\n _ ? \"opacity-100 translate-y-0\" : \"opacity-0 -translate-y-2\",\n f\n ),\n id: g,\n role: \"listbox\",\n \"data-select-content\": \"true\",\n children: [\n o && /* @__PURE__ */ e(\"div\", { className: \"border-b border-border\", children: /* @__PURE__ */ e(\n \"input\",\n {\n ref: D,\n type: \"text\",\n value: k,\n onChange: me,\n onKeyDown: q,\n placeholder: x,\n className: \"w-full px-2 py-2 text-inherit focus:outline-none\",\n \"aria-autocomplete\": \"list\",\n \"aria-controls\": g,\n \"aria-activedescendant\": Q,\n \"data-select-search\": \"true\"\n }\n ) }),\n /* @__PURE__ */ e(\"div\", { ref: M, className: \"max-h-60 overflow-auto\", children: B.length > 0 ? B.map((I, j) => /* @__PURE__ */ w(\n \"div\",\n {\n id: v(j),\n className: N(\n \"flex items-center cursor-pointer transition-colors\",\n \"hover:bg-accent/10 focus:bg-accent/10\",\n De[s].options,\n I.disabled && \"opacity-50 cursor-not-allowed\",\n j === W && \"bg-accent/20\",\n a === I.value && \"bg-accent/30\"\n ),\n onClick: () => fe(I),\n role: \"option\",\n \"aria-selected\": a === I.value,\n \"aria-disabled\": I.disabled,\n \"data-select-option\": \"true\",\n \"data-value\": I.value,\n \"data-highlighted\": j === W,\n \"data-option-index\": j,\n children: [\n /* @__PURE__ */ w(\"div\", { className: \"flex-1 min-w-0\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"font-medium\", children: I.text }),\n I.description && /* @__PURE__ */ e(\"div\", { className: \"text-xs opacity-70 mt-0.5\", children: I.description })\n ] }),\n a === I.value && /* @__PURE__ */ e(ge, { size: 16, className: \"ml-2 text-primary flex-shrink-0\" })\n ]\n },\n I.value\n )) : /* @__PURE__ */ e(\"div\", { className: \"px-3 py-2 text-sm opacity-70 text-center\", children: o && k ? \"No results found\" : \"No options available\" }) })\n ]\n }\n )\n ]\n }\n );\n}\nconst Vr = {\n thin: {\n horizontal: \"h-px\",\n vertical: \"w-px\"\n },\n medium: {\n horizontal: \"h-0.5\",\n vertical: \"w-0.5\"\n },\n thick: {\n horizontal: \"h-1\",\n vertical: \"w-1\"\n },\n \"extra-thick\": {\n horizontal: \"h-2\",\n vertical: \"w-2\"\n }\n}, Pr = {\n horizontal: \"w-full\",\n vertical: \"min-h-4 h-full\"\n};\nfunction Bn({\n orientation: r = \"horizontal\",\n decorative: a = !1,\n thickness: n = \"thin\",\n className: o,\n ...t\n}) {\n const i = N(\n \"shrink-0 bg-border\",\n Pr[r],\n Vr[n][r],\n o\n );\n return /* @__PURE__ */ e(\n \"div\",\n {\n ...t,\n className: i,\n role: a ? \"presentation\" : \"separator\",\n \"aria-orientation\": a ? void 0 : r,\n \"aria-hidden\": a,\n \"data-orientation\": r,\n \"data-thickness\": n\n }\n );\n}\nconst Fe = {\n shape: {\n rectangle: \"rounded-md min-h-1\",\n circle: \"rounded-full aspect-square min-h-1\",\n text: \"rounded-sm min-h-1 h-4\"\n },\n lineSpacing: {\n xs: \"space-y-1\",\n sm: \"space-y-2\",\n md: \"space-y-3\",\n lg: \"space-y-4\",\n xl: \"space-y-6\"\n }\n};\nfunction Tn({\n shape: r = \"rectangle\",\n lineSpacing: a = \"sm\",\n className: n,\n lines: o = 1,\n animate: t = !0,\n ref: i,\n ...s\n}) {\n const l = N(\"bg-muted/70\", t && \"animate-pulse\", Fe.shape[r], n);\n return o > 1 ? /* @__PURE__ */ e(\n \"div\",\n {\n ref: i,\n className: Fe.lineSpacing[a],\n role: \"presentation\",\n \"aria-hidden\": \"true\",\n \"data-testid\": \"skeleton-container\",\n \"data-lines\": o,\n \"data-shape\": r,\n \"data-animate\": t,\n ...s,\n children: Array.from({ length: o }, (c, f) => /* @__PURE__ */ e(\n \"div\",\n {\n className: N(\n l,\n // Make last line shorter for a more natural text appearance\n f === o - 1 && \"w-3/4\"\n ),\n role: \"presentation\",\n \"aria-hidden\": \"true\",\n \"data-testid\": \"skeleton-line\",\n \"data-line-index\": f\n },\n f\n ))\n }\n ) : /* @__PURE__ */ e(\n \"div\",\n {\n ref: i,\n className: l,\n role: \"presentation\",\n \"aria-hidden\": \"true\",\n \"data-testid\": \"skeleton\",\n \"data-shape\": r,\n \"data-animate\": t,\n ...s\n }\n );\n}\nfunction Ln({\n id: r,\n value: a,\n defaultValue: n = 0,\n onValueChange: o,\n min: t = 0,\n max: i = 100,\n step: s = 1,\n disabled: l = !1,\n trackClassName: c,\n rangeClassName: f,\n thumbClassName: u,\n className: d,\n ref: h,\n ariaLabel: m,\n ariaLabelledBy: x,\n ...b\n}) {\n const [p, g] = F(n), v = a !== void 0, E = v ? a : p, y = L(null), k = L(!1), z = L(0), C = A(\n (B) => {\n const $ = Math.max(t, Math.min(i, B)), W = Math.round($ / s) * s;\n v || g(W), o == null || o(W);\n },\n [t, i, s, v, o]\n ), D = A(\n (B, $ = !1) => {\n var Y;\n const W = (Y = y.current) == null ? void 0 : Y.getBoundingClientRect();\n if (!W) return E;\n let Z = B.clientX;\n $ && (Z = Z - z.current);\n const Q = Math.max(0, Math.min(1, (Z - W.left) / W.width));\n return t + (i - t) * Q;\n },\n [t, i, E]\n ), T = A(\n (B) => {\n if (l || B.target !== B.currentTarget) return;\n const $ = D(B);\n C($);\n },\n [l, D, C]\n ), M = A(\n (B) => {\n var Y;\n if (l) return;\n B.stopPropagation(), k.current = !0;\n const $ = (Y = y.current) == null ? void 0 : Y.getBoundingClientRect(), W = B.currentTarget.getBoundingClientRect();\n if ($ && W) {\n const q = W.left + W.width / 2;\n z.current = B.clientX - q;\n }\n B.currentTarget.setPointerCapture(B.pointerId);\n const Z = (q) => {\n if (!k.current) return;\n const O = D(q, !0);\n C(O);\n }, Q = (q) => {\n if (q.pointerId === B.pointerId) {\n k.current = !1, z.current = 0;\n try {\n B.currentTarget.releasePointerCapture(q.pointerId);\n } catch {\n }\n document.removeEventListener(\"pointermove\", Z), document.removeEventListener(\"pointerup\", Q);\n }\n };\n document.addEventListener(\"pointermove\", Z), document.addEventListener(\"pointerup\", Q);\n },\n [l, D, C]\n ), _ = A(\n (B) => {\n if (l) return;\n let $ = E;\n switch (B.key) {\n case \"ArrowRight\":\n case \"ArrowUp\":\n $ = E + s;\n break;\n case \"ArrowLeft\":\n case \"ArrowDown\":\n $ = E - s;\n break;\n case \"Home\":\n $ = t;\n break;\n case \"End\":\n $ = i;\n break;\n case \"PageUp\":\n $ = E + s * 10;\n break;\n case \"PageDown\":\n $ = E - s * 10;\n break;\n default:\n return;\n }\n B.preventDefault(), C($);\n },\n [l, E, s, t, i, C]\n ), V = i === t ? 0 : (E - t) / (i - t) * 100;\n return /* @__PURE__ */ e(\n \"div\",\n {\n id: r,\n ref: h,\n className: R(\n \"relative flex items-center w-full touch-none select-none\",\n l && \"opacity-50 cursor-not-allowed\",\n d\n ),\n \"data-disabled\": l,\n \"data-value\": E,\n \"data-min\": t,\n \"data-max\": i,\n \"data-step\": s,\n ...b,\n children: /* @__PURE__ */ w(\n \"div\",\n {\n ref: y,\n className: R(\n \"relative h-1.5 w-full rounded-full bg-muted cursor-pointer\",\n l && \"cursor-not-allowed\",\n c\n ),\n onPointerDown: T,\n children: [\n /* @__PURE__ */ e(\n \"div\",\n {\n className: R(\n \"absolute h-full rounded-full pointer-events-none\",\n // pointer-events are disabled so that user interactions are handled by the track element, enabling correct slider behavior\n !k.current && \"transition-all\",\n f\n ),\n style: { width: `${V}%` }\n }\n ),\n /* @__PURE__ */ e(\n \"div\",\n {\n className: R(\n \"absolute size-5 -top-2 rounded-full shadow-md cursor-grab\",\n l && \"cursor-not-allowed\",\n !l && \"cursor-grab focus:outline-none focus:ring-2\",\n k.current ? \"cursor-grabbing scale-110\" : \"transition-all\",\n u\n ),\n style: { left: `calc(${V}% - 10px)` },\n tabIndex: l ? -1 : 0,\n role: \"slider\",\n \"aria-valuemin\": t,\n \"aria-valuemax\": i,\n \"aria-valuenow\": E,\n \"aria-label\": m,\n \"aria-labelledby\": x,\n \"aria-disabled\": l,\n onKeyDown: _,\n onPointerDown: M\n }\n )\n ]\n }\n )\n }\n );\n}\nfunction Mn({ children: r, ref: a, ...n }) {\n if (Ke(r)) {\n let o = { ...n };\n return r.props && (o = { ...o, ...r.props }), He(r, {\n ...o,\n ref: (t) => {\n typeof a == \"function\" ? a(t) : a && (a.current = t);\n }\n });\n }\n return $e(\"div\", { ...n, ref: a }, r);\n}\nconst Kr = ({ defaultValue: r, value: a, onValueChange: n } = {}) => {\n const [o, t] = F(r || \"\"), i = a !== void 0, s = i ? a : o, l = A((c) => {\n i || t(c), n == null || n(c);\n }, [i, n]);\n return {\n value: s,\n onValueChange: l\n };\n};\nfunction Rn({\n defaultValue: r,\n value: a,\n onValueChange: n,\n tabsWidth: o = \"fit\",\n variant: t = \"underline\",\n className: i,\n children: s,\n ref: l,\n id: c,\n triggersClassName: f,\n contentClassName: u\n}) {\n const { value: d, onValueChange: h } = Kr({\n defaultValue: r,\n value: a,\n onValueChange: n\n }), m = {\n selectedValue: d,\n onValueChange: h,\n tabsWidth: o,\n variant: t,\n triggersClassName: f,\n contentClassName: u\n };\n return /* @__PURE__ */ e(ot.Provider, { value: m, children: /* @__PURE__ */ e(\"div\", { id: c, ref: l, className: i, \"data-tabs-width\": o, \"data-variant\": t, children: s }) });\n}\nfunction Wn({ value: r, className: a, children: n, ref: o }) {\n const { selectedValue: t, contentClassName: i } = Ee(), s = t === r;\n return s ? /* @__PURE__ */ e(\n \"div\",\n {\n ref: o,\n role: \"tabpanel\",\n id: `tabs-content-${r}`,\n \"aria-labelledby\": `tabs-trigger-${r}`,\n \"data-state\": s ? \"active\" : \"inactive\",\n \"data-value\": r,\n className: N(\"mt-4 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2\", i, a),\n tabIndex: 0,\n children: n\n }\n ) : null;\n}\nconst Ae = {\n width: {\n fit: \"w-fit\",\n full: \"w-full *:flex-1\"\n },\n variant: {\n underline: \"border-b border-border\",\n pills: \"\",\n bordered: \"border border-border rounded-lg p-1\"\n }\n}, Hr = {\n underline: \"border-b-2 border-transparent data-[state=active]:border-accent data-[state=active]:text-accent hover:text-accent-foreground\",\n pills: \"rounded-md data-[state=active]:bg-accent data-[state=active]:text-accent-foreground hover:bg-accent/30\",\n bordered: \"rounded data-[state=active]:bg-accent data-[state=active]:text-accent-foreground hover:bg-accent/30\"\n};\nfunction Gn({ children: r, className: a, id: n, ref: o }) {\n const { tabsWidth: t, variant: i } = Ee();\n return /* @__PURE__ */ e(\n \"div\",\n {\n id: n,\n ref: o,\n role: \"tablist\",\n className: N(\"flex\", Ae.width[t], Ae.variant[i], a),\n \"data-tabs-width\": t,\n \"data-variant\": i,\n children: r\n }\n );\n}\nfunction jn({ value: r, disabled: a = !1, className: n, children: o, onClick: t, id: i, ref: s }) {\n const { selectedValue: l, onValueChange: c, variant: f, triggersClassName: u } = Ee(), d = l === r, h = (x) => {\n a || c(r), t == null || t(x);\n };\n return /* @__PURE__ */ e(\n \"button\",\n {\n id: i,\n ref: s,\n role: \"tab\",\n type: \"button\",\n \"aria-selected\": d,\n \"aria-controls\": `tabs-content-${r}`,\n \"data-state\": d ? \"active\" : \"inactive\",\n \"data-value\": r,\n disabled: a,\n className: N(\n \"inline-flex items-center justify-center whitespace-nowrap px-3 py-2 text-sm ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\n d ? \"font-medium\" : \"font-light\",\n Hr[f],\n u,\n n\n ),\n onClick: h,\n children: o\n }\n );\n}\nfunction _r({ elementId: r, maxLength: a }) {\n const [n, o] = F(0);\n return S(() => {\n const t = document.getElementById(r);\n if (!t)\n return;\n const i = () => {\n const s = t.value.length;\n o(s);\n const l = s >= a;\n t.setAttribute(\"aria-describedby\", `${r}-character-count`), t.setAttribute(\"aria-invalid\", l ? \"true\" : \"false\"), l ? t.setAttribute(\"data-error\", \"true\") : t.removeAttribute(\"data-error\");\n };\n return i(), t.addEventListener(\"input\", i), t.setAttribute(\"maxlength\", String(a)), () => {\n t.removeEventListener(\"input\", i), t.removeAttribute(\"maxlength\"), t.removeAttribute(\"aria-describedby\"), t.removeAttribute(\"aria-invalid\"), t.removeAttribute(\"data-error\");\n };\n }, [r, a]), /* @__PURE__ */ e(\n \"small\",\n {\n className: N(\n \"mt-0.5 text-sm inline-flex items-center gap-1 w-full justify-end\",\n n >= a && \"text-destructive\",\n n < a && \"text-current\"\n ),\n role: \"status\",\n children: /* @__PURE__ */ w(\"span\", { id: `${r}-character-count`, children: [\n n,\n \" / \",\n a,\n \" characters\"\n ] })\n }\n );\n}\nfunction Zr(r, a) {\n S(() => {\n const n = document.getElementById(r);\n if (!n)\n return;\n if (!a) {\n n.style.height = \"auto\";\n return;\n }\n const o = () => {\n n.style.height = \"auto\", n.style.height = `${n.scrollHeight}px`;\n };\n return o(), n.addEventListener(\"input\", o), n.addEventListener(\"resize\", o), window.addEventListener(\"resize\", o), () => {\n n.removeEventListener(\"input\", o), n.removeEventListener(\"resize\", o), window.removeEventListener(\"resize\", o);\n };\n }, [r, a]);\n}\nconst qr = {\n base: \"\",\n \"left-line\": \"border-l border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\",\n outline: \"border border-border focus:border-primary-foreground disabled:border-muted/30 not-disabled:data-error:border-destructive not-disabled:data-success:border-success\"\n}, Qr = {\n none: \"rounded-none\",\n sm: \"rounded-sm\",\n md: \"rounded-md\",\n lg: \"rounded-lg\",\n full: \"px-3 rounded-full\"\n}, Se = {\n variant: \"outline\",\n rounded: \"none\"\n};\nfunction Vn({\n variant: r = Se.variant,\n rounded: a,\n displayOnlyMode: n = !1,\n errorMessage: o,\n successMessage: t,\n hideResizeHandle: i = !1,\n autoExpand: s = !1,\n characterLimit: l = 0,\n className: c,\n ...f\n}) {\n const u = G();\n Zr(u, s || n);\n let d = a;\n r === \"outline\" && !a && (d = \"md\"), d = d || Se.rounded;\n let h = i;\n (n || r === \"left-line\" && !i) && (h = !0);\n const x = N(\n \"appearance-none w-full focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-muted/70 hide-number-input-arrows transition-all\",\n !n && qr[r],\n !n && Qr[d],\n !n && \"px-2 py-1\",\n n && \"pointer-events-none\",\n h && \"no-resize-handle\",\n c\n );\n return /* @__PURE__ */ w(\"div\", { className: N(\"-space-y-1.5\", n && \"cursor-text\"), children: [\n /* @__PURE__ */ e(\n \"textarea\",\n {\n ...f,\n id: u,\n \"aria-disabled\": f.disabled,\n readOnly: n,\n \"aria-readonly\": n || f[\"aria-readonly\"],\n style: {\n resize: s ? \"none\" : void 0\n },\n className: x\n }\n ),\n l > 0 && /* @__PURE__ */ e(_r, { elementId: u, maxLength: l }),\n !n && /* @__PURE__ */ e(ue, { elementId: u, type: \"error\", message: o }),\n !n && /* @__PURE__ */ e(ue, { elementId: u, type: \"success\", message: t })\n ] });\n}\nconst Ur = {\n sm: {\n container: \"h-5 min-w-9 w-9\",\n thumb: \"h-4 w-4\",\n translate: \"translate-x-4\"\n },\n md: {\n container: \"h-6 min-w-11 w-11\",\n thumb: \"h-5 w-5\",\n translate: \"translate-x-5\"\n },\n lg: {\n container: \"h-7 min-w-13 w-13\",\n thumb: \"h-6 w-6\",\n translate: \"translate-x-6\"\n }\n}, Yr = {\n default: {\n unchecked: \"bg-muted\",\n checked: \"bg-primary\"\n },\n success: {\n unchecked: \"bg-muted\",\n checked: \"bg-success\"\n },\n destructive: {\n unchecked: \"bg-muted\",\n checked: \"bg-destructive\"\n }\n}, ze = {\n variant: \"default\",\n size: \"md\"\n};\nfunction Pn({\n ref: r,\n id: a,\n size: n = ze.size,\n variant: o = ze.variant,\n checked: t,\n onCheckedChange: i,\n disabled: s = !1,\n className: l,\n thumbClassName: c,\n backgroundClassNames: f,\n ...u\n}) {\n const d = G(), h = H(() => a || `toggle-${d}`, [a, d]), [m, x] = F(t);\n S(() => {\n x(t);\n }, [t]);\n const b = () => {\n if (!s) {\n const k = !m;\n t === void 0 && x(k), i == null || i(k);\n }\n }, p = (k) => {\n (k.key === \" \" || k.key === \"Enter\") && (k.preventDefault(), b());\n }, g = Ur[n], v = Yr[o], E = N(\n // Base styles\n \"relative inline-flex items-center rounded-full transition-all duration-200 ease-in-out\",\n \"focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2\",\n // Size\n g.container,\n // Variant and state\n m ? (f == null ? void 0 : f.checked) || v.checked : (f == null ? void 0 : f.unchecked) || v.unchecked,\n // Disabled state\n s && \"opacity-50 cursor-not-allowed\",\n !s && \"cursor-pointer\",\n l\n ), y = N(\n // Base thumb styles\n \"absolute left-0.5 top-1/2 -translate-y-1/2 rounded-full bg-white shadow-sm transition-transform duration-200 ease-in-out\",\n // Size\n g.thumb,\n // Position based on state\n m && g.translate,\n c\n );\n return /* @__PURE__ */ w(\n \"button\",\n {\n ref: r,\n id: h,\n type: \"button\",\n role: \"switch\",\n tabIndex: 0,\n \"aria-checked\": m,\n \"aria-disabled\": s,\n disabled: s,\n onClick: b,\n onKeyDown: p,\n className: E,\n ...u,\n children: [\n /* @__PURE__ */ e(\"span\", { className: y }),\n /* @__PURE__ */ e(\"span\", { className: \"sr-only\", children: m ? \"Enabled\" : \"Disabled\" })\n ]\n }\n );\n}\nconst le = 8, ce = 4, U = 6;\nfunction Xr(r) {\n return { calculatePosition: A(\n (n, o) => {\n const t = n.getBoundingClientRect(), i = o.getBoundingClientRect(), s = {\n width: window.innerWidth,\n height: window.innerHeight\n }, l = (h, m, x, b) => h < 0 || m < 0 || h + x > s.width || m + b > s.height, c = {\n top: {\n x: t.left + t.width / 2 - i.width / 2,\n y: t.top - i.height - ce,\n arrow: {\n x: i.width / 2 - U,\n y: i.height\n }\n },\n bottom: {\n x: t.left + t.width / 2 - i.width / 2,\n y: t.bottom + ce,\n arrow: {\n x: i.width / 2 - U,\n y: -6\n }\n },\n left: {\n x: t.left - i.width - ce,\n y: t.top + t.height / 2 - i.height / 2,\n arrow: {\n x: i.width,\n y: i.height / 2 - U\n }\n },\n right: {\n x: t.right + ce,\n y: t.top + t.height / 2 - i.height / 2,\n arrow: {\n x: -6,\n y: i.height / 2 - U\n }\n }\n };\n let f = r, u = c[r];\n if (l(u.x, u.y, i.width, i.height)) {\n const h = {\n top: \"bottom\",\n bottom: \"top\",\n left: \"right\",\n right: \"left\"\n }, m = c[h[r]];\n if (!l(m.x, m.y, i.width, i.height))\n f = h[r], u = m;\n else {\n const x = [\"top\", \"bottom\", \"left\", \"right\"].filter(\n (b) => b !== r && b !== h[r]\n );\n for (const b of x) {\n const p = c[b];\n if (!l(p.x, p.y, i.width, i.height)) {\n f = b, u = p;\n break;\n }\n }\n }\n }\n u.x = Math.max(\n le,\n Math.min(u.x, s.width - i.width - le)\n ), u.y = Math.max(\n le,\n Math.min(u.y, s.height - i.height - le)\n );\n const d = {\n x: t.left + t.width / 2,\n y: t.top + t.height / 2\n };\n return f === \"top\" || f === \"bottom\" ? u.arrow.x = Math.max(\n U,\n Math.min(d.x - u.x - U, i.width - U * 2)\n ) : u.arrow.y = Math.max(\n U,\n Math.min(d.y - u.y - U, i.height - U * 2)\n ), {\n ...u,\n placement: f\n };\n },\n [r]\n ) };\n}\nfunction Jr(r, a, n) {\n const o = L(null), t = L(null), i = A(() => {\n if (!o.current || !t.current) return;\n const s = r(o.current, t.current);\n n(s);\n }, [r, n]);\n return S(() => {\n if (!a) return;\n const s = () => i();\n return window.addEventListener(\"resize\", s), () => {\n window.removeEventListener(\"resize\", s);\n };\n }, [a, i]), {\n triggerRef: o,\n tooltipRef: t,\n updatePosition: i\n };\n}\nfunction Or(r, a, n, o, t, i, s, l, c) {\n const f = L(null), u = A(() => {\n r || (f.current && clearTimeout(f.current), f.current = window.setTimeout(() => {\n n(!0), requestAnimationFrame(() => {\n t(), o(!0);\n });\n }, a));\n }, [r, a, n, t, o]), d = A(\n (h = !1) => {\n if (f.current && clearTimeout(f.current), h) {\n o(!1), setTimeout(() => n(!1), 150);\n return;\n }\n f.current = window.setTimeout(() => {\n o(!1), setTimeout(() => n(!1), 150);\n }, 100);\n },\n [o, n]\n );\n return S(() => {\n !i && !s && !l && c && d();\n }, [i, s, l, c, d]), S(() => () => {\n f.current && clearTimeout(f.current);\n }, []), {\n showTooltip: u,\n hideTooltip: d,\n timeoutRef: f\n };\n}\nfunction Kn({\n id: r,\n children: a,\n message: n,\n placement: o = \"top\",\n disabled: t = !1,\n delay: i = 200,\n className: s\n}) {\n const [l, c] = F(!1), [f, u] = F(!1), [d, h] = F(null), [m, x] = F(!1), [b, p] = F(!1), [g, v] = F(!1), { calculatePosition: E } = Xr(o), { triggerRef: y, tooltipRef: k, updatePosition: z } = Jr(E, f, h), { showTooltip: C, hideTooltip: D, timeoutRef: T } = Or(\n t,\n i,\n u,\n c,\n z,\n m,\n b,\n g,\n l\n ), M = G(), _ = r ?? M;\n return /* @__PURE__ */ w(J, { children: [\n P.cloneElement(a, {\n ref: (V) => {\n y.current = V;\n },\n onMouseEnter: () => {\n x(!0), C();\n },\n onMouseLeave: () => {\n x(!1);\n },\n onFocus: () => {\n v(!0), C();\n },\n onBlur: () => {\n v(!1), D(!0);\n },\n onKeyDown: (V) => {\n V.key === \"Escape\" && D(!0);\n },\n \"aria-describedby\": t ? void 0 : _\n }),\n f && ie(\n /* @__PURE__ */ e(\n \"div\",\n {\n ref: k,\n id: _,\n role: \"tooltip\",\n className: N(\n \"fixed z-50 px-2 py-1 text-sm rounded shadow-lg bg-popover text-popover-foreground pointer-events-auto transition-all duration-150 ease-out\",\n l ? \"opacity-100\" : \"opacity-0\",\n s\n ),\n style: d ? { left: d.x, top: d.y } : { opacity: 0 },\n onMouseEnter: () => {\n p(!0), T.current && clearTimeout(T.current);\n },\n onMouseLeave: () => {\n p(!1);\n },\n children: n\n }\n ),\n document.body\n )\n ] });\n}\nexport {\n dn as Accordion,\n pe as AccordionItem,\n Zn as ActionModal,\n un as Avatar,\n fn as Badge,\n zt as Button,\n mn as Callout,\n hn as Card,\n pn as Carousel,\n bn as Checkbox,\n xn as Clickable,\n vn as Code,\n yn as CodeBlock,\n gn as Disclosure,\n wn as Drawer,\n En as DropdownMenu,\n Nn as DropdownMenuFactories,\n kn as ErrorBoundary,\n Cn as Input,\n Dn as Label,\n Dt as LoadingDots,\n Fn as Modal,\n An as Pagination,\n Sn as Panel,\n dr as Popover,\n zn as RadioGroup,\n ve as RadioGroupItem,\n Lr as RadioInput,\n $n as ScrollArea,\n In as Select,\n Bn as Separator,\n Tn as Skeleton,\n Ln as Slider,\n Mn as Slot,\n Rn as Tabs,\n Wn as TabsContent,\n Gn as TabsList,\n jn as TabsTrigger,\n Vn as Textarea,\n qn as Toast,\n Pn as Toggle,\n Kn as Tooltip\n};\n//# sourceMappingURL=components.esm.js.map\n","import { Modal, ModalProps } from '@moondreamsdev/dreamer-ui/components';\nimport React, { useMemo } from 'react';\n\ninterface BaseActionModalProps extends Omit<ModalProps, 'children' | 'actions'> {\n message: React.ReactNode;\n destructive?: boolean;\n}\n\ninterface AlertModalProps extends BaseActionModalProps {\n type: 'alert';\n confirmText?: string;\n onConfirm?: () => void;\n // Cancel-related props are not allowed for alerts\n cancelText?: never;\n}\n\ninterface ConfirmModalProps extends BaseActionModalProps {\n type: 'confirm';\n confirmText?: string;\n cancelText?: string;\n onConfirm?: () => void;\n}\n\nexport type ActionModalProps = AlertModalProps | ConfirmModalProps;\n\nexport function ActionModal({\n type,\n message,\n cancelText,\n confirmText,\n onConfirm,\n onClose,\n destructive = false,\n title,\n ...modalProps\n}: ActionModalProps) {\n const defaultTexts = useMemo(() => {\n if (type === 'confirm') {\n return {\n confirm: confirmText || 'Confirm',\n cancel: cancelText || 'Cancel',\n defaultTitle: title || 'Confirm Action',\n };\n }\n return {\n confirm: confirmText || 'OK',\n cancel: null,\n defaultTitle: title || 'Alert',\n };\n }, [type, confirmText, title, cancelText]);\n\n const actions: ModalProps['actions'] = useMemo(\n () => [\n ...(defaultTexts.cancel\n ? [\n {\n label: defaultTexts.cancel,\n variant: 'secondary' as const,\n onClick: onClose,\n },\n ]\n : []),\n {\n label: defaultTexts.confirm,\n variant: destructive ? 'destructive' : 'primary',\n onClick: () => {\n onConfirm?.();\n onClose();\n },\n },\n ],\n [defaultTexts, destructive, onConfirm, onClose]\n );\n\n return (\n <Modal\n {...modalProps}\n title={title || defaultTexts.defaultTitle}\n onClose={onClose}\n actions={actions}\n disableCloseOnOverlayClick={type === 'confirm'}\n hideCloseButton={type === 'confirm'}\n >\n {typeof message === 'string' ? <p className='text-sm'>{message}</p> : message}\n </Modal>\n );\n}\n","import { createContext, useContext } from 'react';\n\nexport interface DropdownMenuContextFocus {\n level: number;\n index: number;\n}\n\nexport interface DropdownMenuContextValue {\n id: string;\n focus: DropdownMenuContextFocus | null;\n setFocus: (focus: DropdownMenuContextFocus | null) => void;\n isOpen: boolean;\n onItemSelect: (value: string) => void;\n onClose: () => void;\n className?: string;\n}\n\nexport const DropdownMenuContext = createContext<DropdownMenuContextValue | null>(null);\n\nexport const useDropdownMenuContext = () => {\n const context = useContext(DropdownMenuContext);\n if (!context) {\n throw new Error('DropdownMenu components must be used within a DropdownMenu component');\n }\n return context;\n};\n","import { createContext, useContext } from 'react';\nimport { TabsVariant, TabsWidth } from './variants';\n\nexport interface TabsContextValue {\n selectedValue: string;\n onValueChange: (value: string) => void;\n tabsWidth: TabsWidth;\n variant: TabsVariant;\n triggersClassName?: string;\n contentClassName?: string;\n}\n\nexport const TabsContext = createContext<TabsContextValue | null>(null);\n\nexport const useTabsContext = () => {\n const context = useContext(TabsContext);\n if (!context) {\n throw new Error('Tabs components must be used within a Tabs component');\n }\n return context;\n};\n","import { ReactNode, useCallback, useEffect, useState } from 'react';\nimport { CrossCircled, ExclamationTriangle, InfoCircled, X } from '../../symbols';\nimport { join } from '../../utils';\nexport type ToastType = 'info' | 'warning' | 'error';\n\nexport interface ToastAction {\n label: string;\n onClick: () => void;\n}\n\n/** Data for a toast notification */\nexport interface ToastData {\n id: string;\n title: string;\n description?: string;\n type?: ToastType;\n action?: ToastAction;\n duration?: number;\n onRemove?: (id: string) => void;\n}\n\ninterface ToastProps extends ToastData {\n customTypes?: Record<string, { className: string; icon?: ReactNode }>;\n customComponent?: React.ComponentType<ToastData>;\n}\n\nconst defaultTypeStyles: Record<ToastType, { className: string; icon: ReactNode }> = {\n info: {\n className: 'bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100',\n icon: <InfoCircled size={20} />,\n },\n warning: {\n className:\n 'bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100',\n icon: <ExclamationTriangle size={20} />,\n },\n error: {\n className: 'bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100',\n icon: <CrossCircled size={20} />,\n },\n};\n\nexport function Toast({\n id,\n title,\n description,\n type = 'info',\n action,\n duration = 5000,\n onRemove,\n customTypes,\n customComponent: CustomComponent,\n}: ToastProps) {\n const [isExiting, setIsExiting] = useState(false);\n\n const handleRemove = useCallback(() => {\n setIsExiting(true);\n setTimeout(() => {\n onRemove?.(id);\n }, 150); // Match animation duration\n }, [id, onRemove]);\n\n useEffect(() => {\n if (duration > 0) {\n const timer = setTimeout(() => {\n handleRemove();\n }, duration);\n\n return () => clearTimeout(timer);\n }\n }, [duration, id, onRemove, handleRemove]);\n\n if (CustomComponent) {\n return (\n <CustomComponent\n id={id}\n title={title}\n description={description}\n type={type}\n action={action}\n duration={duration}\n onRemove={onRemove}\n />\n );\n }\n\n // Check custom types first, then fall back to default\n const typeStyle = customTypes?.[type] || defaultTypeStyles[type as ToastType] || defaultTypeStyles.info;\n\n return (\n <div\n role={type === 'error' ? 'alert' : 'status'}\n aria-live={type === 'error' ? undefined : 'polite'}\n className={join(\n 'relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out',\n action && 'pb-3',\n typeStyle.className,\n isExiting ? 'opacity-0 translate-x-full' : 'opacity-100 translate-x-0'\n )}\n >\n {/* Icon */}\n <div className='flex-shrink-0 mr-3'>{typeStyle.icon}</div>\n\n {/* Content */}\n <div className='flex-grow min-w-0'>\n <div className='font-medium text-sm leading-5'>{title}</div>\n {description && <div className='mt-1 text-sm opacity-90 leading-5'>{description}</div>}\n {action && (\n <div className='mt-1.5'>\n <button\n onClick={action.onClick}\n className='text-sm font-medium underline hover:no-underline focus:outline-none focus:ring-1 focus:ring-current rounded px-1 py-0.5 hover:cursor-pointer'\n >\n {action.label}\n </button>\n </div>\n )}\n </div>\n\n {/* Close button */}\n <button\n onClick={handleRemove}\n className='flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0'\n >\n <X size={16} />\n </button>\n </div>\n );\n}\n"],"names":["n","t","s","h","C","l","i","e","N","Dt","r","a","F","S","o","Ft","At","St","xe","zt","c","f","w","Dr","Fr","Ar","L","A","Fn","u","d","m","G","x","b","p","g","v","P","E","y","k","z","J","ie","R","oe","ActionModal","type","message","cancelText","confirmText","onConfirm","onClose","destructive","title","modalProps","defaultTexts","useMemo","actions","jsx","Modal","DropdownMenuContext","createContext","useDropdownMenuContext","context","useContext","TabsContext","useTabsContext","defaultTypeStyles","InfoCircled","ExclamationTriangle","CrossCircled","Toast","id","description","action","duration","onRemove","customTypes","CustomComponent","isExiting","setIsExiting","useState","handleRemove","useCallback","useEffect","timer","typeStyle","jsxs","join","X"],"mappings":";;;;;AAAA,SAASA,KAAKC,GAAG;AACf,SAAOA,EAAE,OAAO,CAACC,MAAM,OAAOA,KAAK,YAAYA,CAAC,EAAE,KAAK,GAAG,EAAE,KAAM,KAAI;AACxE;ACg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